Class: AuthService::RespondE2EELoginRequest_args
- Inherits:
-
Object
- Object
- AuthService::RespondE2EELoginRequest_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/auth_service.rb
Constant Summary collapse
- VERIFIER =
1
- PUBLICKEY =
2
- ENCRYPTEDKEYCHAIN =
3
- HASHKEYCHAIN =
4
- ERRORCODE =
5
- FIELDS =
{ VERIFIER => {:type => ::Thrift::Types::STRING, :name => 'verifier'}, PUBLICKEY => {:type => ::Thrift::Types::STRUCT, :name => 'publicKey', :class => ::E2EEPublicKey}, ENCRYPTEDKEYCHAIN => {:type => ::Thrift::Types::STRING, :name => 'encryptedKeyChain'}, HASHKEYCHAIN => {:type => ::Thrift::Types::STRING, :name => 'hashKeyChain'}, ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::P0_a_e_a_b_ca} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
664 |
# File 'lib/linerb/gen-rb/auth_service.rb', line 664 def struct_fields; FIELDS; end |
#validate ⇒ Object
666 667 668 669 670 |
# File 'lib/linerb/gen-rb/auth_service.rb', line 666 def validate unless @errorCode.nil? || ::P0_a_e_a_b_ca::VALID_VALUES.include?(@errorCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!') end end |