Class: GetRequest

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

KEYNAME =
1
NS =
2
FIELDS =
{
  KEYNAME => {:type => ::Thrift::Types::STRING, :name => 'keyName'},
  NS => {:type => ::Thrift::Types::I32, :name => 'ns', :enum_class => ::G_a_b_z0_a_f_g_h}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



9981
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9981

def struct_fields; FIELDS; end

#validateObject



9983
9984
9985
9986
9987
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9983

def validate
  unless @ns.nil? || ::G_a_b_z0_a_f_g_h::VALID_VALUES.include?(@ns)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ns!')
  end
end