Class: AuthKeyExchangeRequest
- Inherits:
-
Object
- Object
- AuthKeyExchangeRequest
- 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 => ::J0_a_e_a_b_d0}, PUBLICKEY => {:type => ::Thrift::Types::STRING, :name => 'publicKey'}, NONCE => {:type => ::Thrift::Types::STRING, :name => 'nonce'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14475 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14475 def struct_fields; FIELDS; end |
#validate ⇒ Object
14477 14478 14479 14480 14481 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14477 def validate unless @authKeyVersion.nil? || ::J0_a_e_a_b_d0::VALID_VALUES.include?(@authKeyVersion) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field authKeyVersion!') end end |