Class: Thrift::Types::Type_definition::MapTypeDefinition
- Inherits:
-
Object
- Object
- Thrift::Types::Type_definition::MapTypeDefinition
- Includes:
- Struct, Struct_Union
- Defined in:
- lib/thrift/types/type_definition/type_definition_types.rb,
lib/thrift/types/type_definition/type_definition_types.rb
Constant Summary collapse
- NAME =
'MapTypeDefinition'.freeze
- NAMESPACE =
'types.type_definition'.freeze
- LEGACY_ANNOTATIONS =
{ }.freeze
- STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_INDEX_KEY_TYPE =
1- THRIFT_FIELD_INDEX_VALUE_TYPE =
2- THRIFT_FIELD_KEY_TYPE_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_KEY_TYPE_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_VALUE_TYPE_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_VALUE_TYPE_STRUCTURED_ANNOTATIONS =
[ ].freeze
- FIELDS =
{ THRIFT_FIELD_INDEX_KEY_TYPE => {type: ::Thrift::Types::STRUCT, name: 'key_type', class: ::Thrift::Types::Type_definition::TypeDefinition, legacy_annotations: THRIFT_FIELD_KEY_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_KEY_TYPE_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_VALUE_TYPE => {type: ::Thrift::Types::STRUCT, name: 'value_type', class: ::Thrift::Types::Type_definition::TypeDefinition, legacy_annotations: THRIFT_FIELD_VALUE_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_VALUE_TYPE_STRUCTURED_ANNOTATIONS} }.freeze
Constants included from Struct_Union
Instance Method Summary collapse
Methods included from Struct
#<=>, #==, append_features, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write
Methods included from 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
104 |
# File 'lib/thrift/types/type_definition/type_definition_types.rb', line 104 def struct_fields; FIELDS; end |
#validate ⇒ Object
106 107 108 109 |
# File 'lib/thrift/types/type_definition/type_definition_types.rb', line 106 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key_type is unset!') unless @key_type raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value_type is unset!') unless @value_type end |