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
#containing_api, #containing_file, #docs_leading_comments, #leading_comments, #leading_detached_comments, #path, #span, #trailing_comments
Constructor Details
#initialize(descriptor, address, docs) ⇒ EnumValue
Initializes a message object.
489 490 491 |
# File 'lib/gapic/schema/wrappers.rb', line 489 def initialize descriptor, address, docs super descriptor, address, docs end |
Instance Method Details
#name ⇒ String
Returns the unqualified name of the EnumValue.
500 501 502 503 504 505 |
# File 'lib/gapic/schema/wrappers.rb', line 500 def_delegators( :descriptor, :name, :number, :options ) |
#number ⇒ Integer
Returns The number value.
500 501 502 503 504 505 |
# File 'lib/gapic/schema/wrappers.rb', line 500 def_delegators( :descriptor, :name, :number, :options ) |
#options ⇒ Array<Google::Protobuf::EnumValueOptions>
Returns The options of the enum value.
500 501 502 503 504 505 |
# File 'lib/gapic/schema/wrappers.rb', line 500 def_delegators( :descriptor, :name, :number, :options ) |