Class: ProcessedDocumentMetadataDTO
- Inherits:
-
Object
- Object
- ProcessedDocumentMetadataDTO
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced_protocol_types.rb
Constant Summary collapse
- ID =
1- SHA1HASH =
2- CREATED =
3- UPDATED =
4- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, SHA1HASH => {:type => ::Thrift::Types::STRING, :name => 'sha1Hash'}, CREATED => {:type => ::Thrift::Types::I64, :name => 'created'}, UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
124 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 124 def struct_fields; FIELDS; end |
#validate ⇒ Object
126 127 128 129 130 131 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 126 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 sha1Hash is unset!') unless @sha1Hash raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field created is unset!') unless @created raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updated is unset!') unless @updated end |