Class: Gossiperl::Client::Thrift::DigestSubscription

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

EVENT_TYPE =
1
MEMBER_NAME =
2
ORIGIN =
3
HEARTBEAT =
4
FIELDS =
{
  EVENT_TYPE => {:type => ::Thrift::Types::STRING, :name => 'event_type'},
  MEMBER_NAME => {:type => ::Thrift::Types::STRING, :name => 'member_name'},
  ORIGIN => {:type => ::Thrift::Types::STRING, :name => 'origin'},
  HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


158
159
160
161
162
163
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 158

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field event_type is unset!') unless @event_type
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field member_name is unset!') unless @member_name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field origin is unset!') unless @origin
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field heartbeat is unset!') unless @heartbeat
end