Class: Gapic::Schema::EnumValue

Inherits:
Proto
  • Object
show all
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

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.

Parameters:



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.

Returns:

  • (String) —

    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.

Returns:

  • (Integer) —

    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.

Returns:



500
501
502
503
504
505
# File 'lib/gapic/schema/wrappers.rb', line 500

def_delegators(
  :descriptor,
  :name,
  :number,
  :options
)