Class: Gossiperl::Client::Thrift::DigestSubscriptions
- Inherits:
-
Object
- Object
- Gossiperl::Client::Thrift::DigestSubscriptions
- 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
- SUBSCRIPTIONS =
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'}, SUBSCRIPTIONS => {:type => ::Thrift::Types::LIST, :name => 'subscriptions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Gossiperl::Client::Thrift::DigestSubscription}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
237 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 237 def struct_fields; FIELDS; end |
#validate ⇒ Object
239 240 241 242 243 244 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 239 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 subscriptions is unset!') unless @subscriptions end |