Class: ProcessedDocumentDTO
- Inherits:
-
Object
- Object
- ProcessedDocumentDTO
- 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_fields ⇒ Object
169 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 169 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |