Class: AddDocumentsToCentroidRequest

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

Constant Summary collapse

CENTROIDID =
1
DOCUMENTIDS =
2
IGNOREMISSINGDOCUMENT =
3
IGNOREMISSINGCENTROID =
4
IGNOREALREADYINCENTROID =
5
FIELDS =
{
  CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
  DOCUMENTIDS => {:type => ::Thrift::Types::LIST, :name => 'documentIds', :element => {:type => ::Thrift::Types::STRING}},
  IGNOREMISSINGDOCUMENT => {:type => ::Thrift::Types::BOOL, :name => 'ignoreMissingDocument', :optional => true},
  IGNOREMISSINGCENTROID => {:type => ::Thrift::Types::BOOL, :name => 'ignoreMissingCentroid', :optional => true},
  IGNOREALREADYINCENTROID => {:type => ::Thrift::Types::BOOL, :name => 'ignoreAlreadyInCentroid', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


549
550
551
552
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 549

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