Class: Concord::Thrift::StreamMetadata

Inherits:
Object
  • Object
show all
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_fieldsObject



96
# File 'lib/gen-rb/bolt_types.rb', line 96

def struct_fields; FIELDS; end

#validateObject



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