Class: Gossiperl::Client::Thrift::DigestUnsubscribeAck
- Inherits:
-
Object
- Object
- Gossiperl::Client::Thrift::DigestUnsubscribeAck
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gossiperl_client/headers.rb,
lib/gossiperl_client/thrift/gossiperl_types.rb
Constant Summary collapse
- HEARTBEAT =
1
- REPLY_ID =
2
- EVENT_TYPES =
3
- FIELDS =
{ HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'}, REPLY_ID => {:type => ::Thrift::Types::STRING, :name => 'reply_id'}, EVENT_TYPES => {:type => ::Thrift::Types::LIST, :name => 'event_types', :element => {:type => ::Thrift::Types::STRING}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
342 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 342 def struct_fields; FIELDS; end |
#validate ⇒ Object
344 345 346 347 348 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 344 def validate 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 event_types is unset!') unless @event_types end |