class Google::Apis::ServicemanagementV1::EnumValue

Enum value definition.

Attributes

name[RW]

Enum value name. Corresponds to the JSON property `name` @return [String]

number[RW]

Enum value number. Corresponds to the JSON property `number` @return [Fixnum]

options[RW]

Protocol buffer options. Corresponds to the JSON property `options` @return [Array<Google::Apis::ServicemanagementV1::Option>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicemanagement_v1/classes.rb, line 1267
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicemanagement_v1/classes.rb, line 1272
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @number = args[:number] if args.key?(:number)
  @options = args[:options] if args.key?(:options)
end