Class: ProcessedDocumentDTO

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

Constant Summary collapse

METADATA =
1
WORDVECTOR =
2
FIELDS =
{
  METADATA => {:type => ::Thrift::Types::STRUCT, :name => 'metadata', :class => ::ProcessedDocumentMetadataDTO},
  WORDVECTOR => {:type => ::Thrift::Types::STRUCT, :name => 'wordVector', :class => ::WordVectorDTO}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


171
172
173
174
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 171

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