Class: Thrift::Types::Plugin::GenerateCodeRequest
- Inherits:
-
Object
- Object
- Thrift::Types::Plugin::GenerateCodeRequest
- Includes:
- Struct, Struct_Union
- Defined in:
- lib/thrift/types/plugin/plugin_types.rb,
lib/thrift/types/plugin/plugin_types.rb
Constant Summary collapse
- NAME =
'GenerateCodeRequest'.freeze
- NAMESPACE =
'types.plugin'.freeze
- LEGACY_ANNOTATIONS =
{ }.freeze
- STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_INDEX_PROGRAM =
1- THRIFT_FIELD_INDEX_LANGUAGE =
2- THRIFT_FIELD_INDEX_OPTIONS =
3- THRIFT_FIELD_PROGRAM_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_PROGRAM_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_LANGUAGE_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_LANGUAGE_STRUCTURED_ANNOTATIONS =
[ ].freeze
- THRIFT_FIELD_OPTIONS_LEGACY_ANNOTATIONS =
{ }.freeze
- THRIFT_FIELD_OPTIONS_STRUCTURED_ANNOTATIONS =
[ ].freeze
- FIELDS =
{ THRIFT_FIELD_INDEX_PROGRAM => {type: ::Thrift::Types::STRUCT, name: 'program', class: ::Thrift::Types::Program_definition::ProgramDefinition, legacy_annotations: THRIFT_FIELD_PROGRAM_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_PROGRAM_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_LANGUAGE => {type: ::Thrift::Types::STRING, name: 'language', legacy_annotations: THRIFT_FIELD_LANGUAGE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_LANGUAGE_STRUCTURED_ANNOTATIONS}, THRIFT_FIELD_INDEX_OPTIONS => {type: ::Thrift::Types::MAP, name: 'options', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, legacy_annotations: THRIFT_FIELD_OPTIONS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_OPTIONS_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
58 |
# File 'lib/thrift/types/plugin/plugin_types.rb', line 58 def struct_fields; FIELDS; end |
#validate ⇒ Object
60 61 62 63 64 |
# File 'lib/thrift/types/plugin/plugin_types.rb', line 60 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field program is unset!') unless @program raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field language is unset!') unless @language raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field options is unset!') unless @options end |