Class: ExchangeEncryptionKeyRequest

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 => ::G_a_b_z0_a_b_g},
  PUBLICKEY => {:type => ::Thrift::Types::STRING, :name => 'publicKey'},
  NONCE => {:type => ::Thrift::Types::STRING, :name => 'nonce'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



6880
6881
6882
6883
6884
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6880

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