Class: AuthKeyExchangeRequest

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

AUTHKEYVERSION =
1
PUBLICKEY =
2
NONCE =
3
FIELDS =
{
  AUTHKEYVERSION => {:type => ::Thrift::Types::I32, :name => 'authKeyVersion', :enum_class => ::P0_a_e_a_b_e0},
  PUBLICKEY => {:type => ::Thrift::Types::STRING, :name => 'publicKey'},
  NONCE => {:type => ::Thrift::Types::STRING, :name => 'nonce'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



15614
15615
15616
15617
15618
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15614

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