class Google::Apis::ServicemanagementV1::Enum

Enum type definition.

Attributes

enumvalue[RW]

Enum value definitions. Corresponds to the JSON property `enumvalue` @return [Array<Google::Apis::ServicemanagementV1::EnumValue>]

name[RW]

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

options[RW]

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

source_context[RW]

`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined. Corresponds to the JSON property `sourceContext` @return [Google::Apis::ServicemanagementV1::SourceContext]

syntax[RW]

The source syntax. Corresponds to the JSON property `syntax` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicemanagement_v1/classes.rb, line 1234
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 1239
def update!(**args)
  @enumvalue = args[:enumvalue] if args.key?(:enumvalue)
  @name = args[:name] if args.key?(:name)
  @options = args[:options] if args.key?(:options)
  @source_context = args[:source_context] if args.key?(:source_context)
  @syntax = args[:syntax] if args.key?(:syntax)
end