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_c_u0_a_f_g_h}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



8419
8420
8421
8422
8423
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8419

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