Class: Gapic::Schema::EnumValue
- Extended by:
- Forwardable
- Defined in:
- lib/gapic/schema/wrappers.rb
Overview
Wrapper for a protobuf Enum Value.
Instance Attribute Summary
Attributes inherited from Proto
#address, #descriptor, #docs, #parent
Instance Method Summary collapse
-
#initialize(descriptor, address, docs) ⇒ EnumValue
constructor
Initializes a message object.
-
#name ⇒ String
The unqualified name of the EnumValue.
-
#number ⇒ Integer
The number value.
-
#options ⇒ Array<Google::Protobuf::EnumValueOptions>
The options of the enum value.
Methods inherited from Proto
#docs_leading_comments, #leading_comments, #leading_detached_comments, #path, #span, #trailing_comments
Constructor Details
#initialize(descriptor, address, docs) ⇒ EnumValue
Initializes a message object.
467 468 469 |
# File 'lib/gapic/schema/wrappers.rb', line 467 def initialize descriptor, address, docs super descriptor, address, docs end |
Instance Method Details
#name ⇒ String
Returns the unqualified name of the EnumValue.
478 479 480 481 482 483 |
# File 'lib/gapic/schema/wrappers.rb', line 478 def_delegators( :descriptor, :name, :number, :options ) |
#number ⇒ Integer
Returns The number value.
478 479 480 481 482 483 |
# File 'lib/gapic/schema/wrappers.rb', line 478 def_delegators( :descriptor, :name, :number, :options ) |
#options ⇒ Array<Google::Protobuf::EnumValueOptions>
Returns The options of the enum value.
478 479 480 481 482 483 |
# File 'lib/gapic/schema/wrappers.rb', line 478 def_delegators( :descriptor, :name, :number, :options ) |