Class: Gossiperl::Client::Thrift::DigestForwardedAck

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gossiperl_client/headers.rb,
lib/gossiperl_client/thrift/gossiperl_types.rb

Constant Summary collapse

NAME =
1
REPLY_ID =
2
SECRET =
3
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  REPLY_ID => {:type => ::Thrift::Types::STRING, :name => 'reply_id'},
  SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



47
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 47

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


49
50
51
52
53
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 49

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reply_id is unset!') unless @reply_id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field secret is unset!') unless @secret
end