Class: AuthLoginRequest

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

AUTHLOGINVERSION =
1
METADATA =
2
CIPHERTEXT =
3
FIELDS =
{
  AUTHLOGINVERSION => {:type => ::Thrift::Types::I32, :name => 'authLoginVersion', :enum_class => ::J0_a_e_a_b_g0},
  METADATA => {:type => ::Thrift::Types::MAP, :name => 'metaData', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  CIPHERTEXT => {:type => ::Thrift::Types::STRING, :name => 'cipherText'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



12307
12308
12309
12310
12311
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12307

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