Class: Types::Type_definition::SetTypeDefinition
- Inherits:
-
Object
- Object
- Types::Type_definition::SetTypeDefinition
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/types/type_definition/type_definition_types.rb,
lib/types/type_definition/type_definition_types.rb
Constant Summary collapse
- NAME =
'SetTypeDefinition'.freeze
- NAMESPACE =
'types.type_definition'.freeze
- LEGACY_ANNOTATIONS =
{ }.freeze
- STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_INDEX_ELEMENT_TYPE =
1- THRIFT_FIELD_ELEMENT_TYPE_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_ELEMENT_TYPE_STRUCTURED_ANNOTATIONS =
[ ].freeze
- FIELDS =
{ THRIFT_FIELD_INDEX_ELEMENT_TYPE => {type: ::Thrift::Types::STRUCT, name: 'element_type', class: ::Types::Type_definition::TypeDefinition, legacy_annotations: THRIFT_FIELD_ELEMENT_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ELEMENT_TYPE_STRUCTURED_ANNOTATIONS} }.freeze
Constants included from Thrift::Struct_Union
Thrift::Struct_Union::CONTAINER_TYPES
Instance Method Summary collapse
Methods included from Thrift::Struct
#<=>, #==, append_features, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write
Methods included from Thrift::Struct_Union
#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data
Instance Method Details
#struct_fields ⇒ Object
138 |
# File 'lib/types/type_definition/type_definition_types.rb', line 138 def struct_fields; FIELDS; end |
#validate ⇒ Object
140 141 142 |
# File 'lib/types/type_definition/type_definition_types.rb', line 140 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field element_type is unset!') unless @element_type end |