Class: RemoveDocumentFromCentroidResponse

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
DOCUMENTID =
2
FIELDS =
{
  CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
  DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


386
387
388
389
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 386

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 documentId is unset!') unless @documentId
end