Class: Concord::Thrift::StreamMetadata
- Inherits:
-
Object
- Object
- Concord::Thrift::StreamMetadata
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/bolt_types.rb
Constant Summary collapse
- NAME =
1
- GROUPING =
2
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, GROUPING => {:type => ::Thrift::Types::I32, :name => 'grouping', :default => 1, :enum_class => ::Concord::Thrift::StreamGrouping} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
96 |
# File 'lib/gen-rb/bolt_types.rb', line 96 def struct_fields; FIELDS; end |
#validate ⇒ Object
98 99 100 101 102 |
# File 'lib/gen-rb/bolt_types.rb', line 98 def validate unless @grouping.nil? || ::Concord::Thrift::StreamGrouping::VALID_VALUES.include?(@grouping) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grouping!') end end |