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, #initialize, #leading_comments, #leading_detached_comments, #option_extension_names, #option_named, #path, #span, #trailing_comments

Constructor Details

This class inherits a constructor from Gapic::Schema::Proto

Instance Method Details

#nameString

Returns the unqualified name of the EnumValue.

Returns:

  • (String)

    the unqualified name of the EnumValue



629
630
631
632
633
634
# File 'lib/gapic/schema/wrappers.rb', line 629

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

#numberInteger

Returns The number value.

Returns:

  • (Integer)

    The number value.



629
630
631
632
633
634
# File 'lib/gapic/schema/wrappers.rb', line 629

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

#optionsArray<Google::Protobuf::EnumValueOptions>

Returns The options of the enum value.

Returns:

  • (Array<Google::Protobuf::EnumValueOptions>)

    The options of the enum value.



629
630
631
632
633
634
# File 'lib/gapic/schema/wrappers.rb', line 629

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