Class: CentroidMetadataDTO
- Inherits:
-
Object
- Object
- CentroidMetadataDTO
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced_protocol_types.rb
Constant Summary collapse
- ID =
1- CREATED =
2- LASTDOCUMENTCHANGE =
3- LASTCALCULATED =
4- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, CREATED => {:type => ::Thrift::Types::I64, :name => 'created'}, LASTDOCUMENTCHANGE => {:type => ::Thrift::Types::I64, :name => 'lastDocumentChange'}, LASTCALCULATED => {:type => ::Thrift::Types::I64, :name => 'lastCalculated'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
78 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 78 def struct_fields; FIELDS; end |
#validate ⇒ Object
80 81 82 83 84 85 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 80 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field created is unset!') unless @created raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastDocumentChange is unset!') unless @lastDocumentChange raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastCalculated is unset!') unless @lastCalculated end |