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