Class: Gossiperl::Client::Thrift::DigestUnsubscribe

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
ID =
3
EVENT_TYPES =
4
SECRET =
5
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'},
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  EVENT_TYPES => {:type => ::Thrift::Types::LIST, :name => 'event_types', :element => {:type => ::Thrift::Types::STRING}},
  SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


296
297
298
299
300
301
302
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 296

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 id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field event_types is unset!') unless @event_types
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field secret is unset!') unless @secret
end