Class: AddDocumentsToCentroidResponse

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
ADDED =
3
FIELDS =
{
  CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
  DOCUMENTIDS => {:type => ::Thrift::Types::LIST, :name => 'documentIds', :element => {:type => ::Thrift::Types::STRING}},
  ADDED => {:type => ::Thrift::Types::LIST, :name => 'added', :element => {:type => ::Thrift::Types::BOOL}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


571
572
573
574
575
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 571

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
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field added is unset!') unless @added
end