Class: RemoveDocumentsFromCentroidResponse
- Inherits:
-
Object
- Object
- RemoveDocumentsFromCentroidResponse
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced_protocol_types.rb
Constant Summary collapse
- CENTROIDID =
1- DOCUMENTIDS =
2- REMOVED =
3- FIELDS =
{ CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'}, DOCUMENTIDS => {:type => ::Thrift::Types::LIST, :name => 'documentIds', :element => {:type => ::Thrift::Types::STRING}}, REMOVED => {:type => ::Thrift::Types::LIST, :name => 'removed', :element => {:type => ::Thrift::Types::BOOL}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
618 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 618 def struct_fields; FIELDS; end |
#validate ⇒ Object
620 621 622 623 624 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 620 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 removed is unset!') unless @removed end |