Class: Hexspace::TPrimitiveTypeEntry
- Inherits:
-
Object
- Object
- Hexspace::TPrimitiveTypeEntry
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- TYPE =
1
- TYPEQUALIFIERS =
2
- FIELDS =
{ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Hexspace::TTypeId}, TYPEQUALIFIERS => {:type => ::Thrift::Types::STRUCT, :name => 'typeQualifiers', :class => ::Hexspace::TTypeQualifiers, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
374 |
# File 'lib/hexspace/tcli_service_types.rb', line 374 def struct_fields; FIELDS; end |
#validate ⇒ Object
376 377 378 379 380 381 |
# File 'lib/hexspace/tcli_service_types.rb', line 376 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type unless @type.nil? || ::Hexspace::TTypeId::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |