Class: Hexspace::TTypeEntry
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hexspace::TTypeEntry
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- PRIMITIVEENTRY =
1- ARRAYENTRY =
2- MAPENTRY =
3- STRUCTENTRY =
4- UNIONENTRY =
5- USERDEFINEDTYPEENTRY =
6- FIELDS =
{ PRIMITIVEENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'primitiveEntry', :class => ::Hexspace::TPrimitiveTypeEntry, :optional => true}, ARRAYENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'arrayEntry', :class => ::Hexspace::TArrayTypeEntry, :optional => true}, MAPENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'mapEntry', :class => ::Hexspace::TMapTypeEntry, :optional => true}, STRUCTENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'structEntry', :class => ::Hexspace::TStructTypeEntry, :optional => true}, UNIONENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'unionEntry', :class => ::Hexspace::TUnionTypeEntry, :optional => true}, USERDEFINEDTYPEENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'userDefinedTypeEntry', :class => ::Hexspace::TUserDefinedTypeEntry, :optional => true} }
Class Method Summary collapse
- .arrayEntry(val) ⇒ Object
- .mapEntry(val) ⇒ Object
- .primitiveEntry(val) ⇒ Object
- .structEntry(val) ⇒ Object
- .unionEntry(val) ⇒ Object
- .userDefinedTypeEntry(val) ⇒ Object
Instance Method Summary collapse
Class Method Details
.arrayEntry(val) ⇒ Object
481 482 483 |
# File 'lib/hexspace/tcli_service_types.rb', line 481 def arrayEntry(val) TTypeEntry.new(:arrayEntry, val) end |
.mapEntry(val) ⇒ Object
485 486 487 |
# File 'lib/hexspace/tcli_service_types.rb', line 485 def mapEntry(val) TTypeEntry.new(:mapEntry, val) end |
.primitiveEntry(val) ⇒ Object
477 478 479 |
# File 'lib/hexspace/tcli_service_types.rb', line 477 def primitiveEntry(val) TTypeEntry.new(:primitiveEntry, val) end |
.structEntry(val) ⇒ Object
489 490 491 |
# File 'lib/hexspace/tcli_service_types.rb', line 489 def structEntry(val) TTypeEntry.new(:structEntry, val) end |
.unionEntry(val) ⇒ Object
493 494 495 |
# File 'lib/hexspace/tcli_service_types.rb', line 493 def unionEntry(val) TTypeEntry.new(:unionEntry, val) end |
.userDefinedTypeEntry(val) ⇒ Object
497 498 499 |
# File 'lib/hexspace/tcli_service_types.rb', line 497 def userDefinedTypeEntry(val) TTypeEntry.new(:userDefinedTypeEntry, val) end |
Instance Method Details
#struct_fields ⇒ Object
518 |
# File 'lib/hexspace/tcli_service_types.rb', line 518 def struct_fields; FIELDS; end |
#validate ⇒ Object
520 521 522 |
# File 'lib/hexspace/tcli_service_types.rb', line 520 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |