Class: Thrift::Types::Program_definition::ProgramDefinition
- Inherits:
-
Object
- Object
- Thrift::Types::Program_definition::ProgramDefinition
- Includes:
- Struct, Struct_Union
- Defined in:
- lib/thrift/types/program_definition/program_definition_types.rb,
lib/thrift/types/program_definition/program_definition_types.rb
Constant Summary collapse
- NAME =
'ProgramDefinition'.freeze
- NAMESPACE =
'types.program_definition'.freeze
- LEGACY_ANNOTATIONS =
{ }.freeze
- STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_INDEX_NAME =
1- THRIFT_FIELD_INDEX_PATH =
2- THRIFT_FIELD_INDEX_DOC =
3- THRIFT_FIELD_INDEX_NAMESPACES =
4- THRIFT_FIELD_INDEX_INCLUDES =
5- THRIFT_FIELD_INDEX_STRUCTS =
6- THRIFT_FIELD_INDEX_SERVICES =
7- THRIFT_FIELD_INDEX_CONSTANTS =
8- THRIFT_FIELD_INDEX_TYPEDEFS =
9- THRIFT_FIELD_INDEX_ENUMS =
10- THRIFT_FIELD_INDEX_STDLIB =
11- THRIFT_FIELD_NAME_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_NAME_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_PATH_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_PATH_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_DOC_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_DOC_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_NAMESPACES_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_NAMESPACES_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_INCLUDES_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_INCLUDES_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_STRUCTS_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_STRUCTS_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_SERVICES_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_SERVICES_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_CONSTANTS_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_CONSTANTS_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_TYPEDEFS_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_TYPEDEFS_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_ENUMS_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_ENUMS_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_STDLIB_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_STDLIB_STRUCTURED_ANNOTATIONS =
[ ].freeze
- FIELDS =
{ THRIFT_FIELD_INDEX_NAME => {type: ::Thrift::Types::STRING, name: 'name', legacy_annotations: THRIFT_FIELD_NAME_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NAME_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_PATH => {type: ::Thrift::Types::STRING, name: 'path', legacy_annotations: THRIFT_FIELD_PATH_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_PATH_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_DOC => {type: ::Thrift::Types::STRING, name: 'doc', optional: true, legacy_annotations: THRIFT_FIELD_DOC_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_DOC_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_NAMESPACES => {type: ::Thrift::Types::MAP, name: 'namespaces', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, legacy_annotations: THRIFT_FIELD_NAMESPACES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NAMESPACES_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_INCLUDES => {type: ::Thrift::Types::LIST, name: 'includes', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Program_definition::ProgramDefinition}, legacy_annotations: THRIFT_FIELD_INCLUDES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_INCLUDES_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_STRUCTS => {type: ::Thrift::Types::MAP, name: 'structs', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Struct_definition::StructDefinition}, legacy_annotations: THRIFT_FIELD_STRUCTS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STRUCTS_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_SERVICES => {type: ::Thrift::Types::MAP, name: 'services', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Service_definition::ServiceDefinition}, legacy_annotations: THRIFT_FIELD_SERVICES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_SERVICES_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_CONSTANTS => {type: ::Thrift::Types::MAP, name: 'constants', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Constant_definition::ConstantDefinition}, legacy_annotations: THRIFT_FIELD_CONSTANTS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_CONSTANTS_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_TYPEDEFS => {type: ::Thrift::Types::MAP, name: 'typedefs', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Type_definition::TypeDefinition}, legacy_annotations: THRIFT_FIELD_TYPEDEFS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_TYPEDEFS_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_ENUMS => {type: ::Thrift::Types::MAP, name: 'enums', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Enum_definition::EnumDefinition}, legacy_annotations: THRIFT_FIELD_ENUMS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ENUMS_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_STDLIB => {type: ::Thrift::Types::BOOL, name: 'stdlib', legacy_annotations: THRIFT_FIELD_STDLIB_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STDLIB_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
125 |
# File 'lib/thrift/types/program_definition/program_definition_types.rb', line 125 def struct_fields; FIELDS; end |
#validate ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/thrift/types/program_definition/program_definition_types.rb', line 127 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field namespaces is unset!') unless @namespaces raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field includes is unset!') unless @includes raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field structs is unset!') unless @structs raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field services is unset!') unless @services raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field constants is unset!') unless @constants raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typedefs is unset!') unless @typedefs raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field enums is unset!') unless @enums raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field stdlib is unset!') if @stdlib.nil? end |