Class: MultiJoinCentroidsResponse

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen-rb/relevanced_protocol_types.rb

Constant Summary collapse

IDS =
1
RECALCULATED =
2
FIELDS =
{
  IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::STRING}},
  RECALCULATED => {:type => ::Thrift::Types::LIST, :name => 'recalculated', :element => {:type => ::Thrift::Types::BOOL}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



658
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 658

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


660
661
662
663
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 660

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ids is unset!') unless @ids
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recalculated is unset!') unless @recalculated
end