Class: Gossiperl::Client::Thrift::DigestAck

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
HEARTBEAT =
2
REPLY_ID =
3
MEMBERSHIP =
4
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'},
  REPLY_ID => {:type => ::Thrift::Types::STRING, :name => 'reply_id'},
  MEMBERSHIP => {:type => ::Thrift::Types::LIST, :name => 'membership', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Gossiperl::Client::Thrift::DigestMember}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


213
214
215
216
217
218
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 213

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 heartbeat is unset!') unless @heartbeat
  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 membership is unset!') unless @membership
end