Class: RemoveDocumentsFromCentroidRequest

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
IGNORENOTINCENTROID =
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},
  IGNORENOTINCENTROID => {:type => ::Thrift::Types::BOOL, :name => 'ignoreNotInCentroid', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


598
599
600
601
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 598

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