Class: Google::Apis::ChromepolicyV1::Proto2EnumValueDescriptorProto

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromepolicy_v1/classes.rb,
lib/google/apis/chromepolicy_v1/representations.rb,
lib/google/apis/chromepolicy_v1/representations.rb

Overview

Describes a value within an enum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Proto2EnumValueDescriptorProto

Returns a new instance of Proto2EnumValueDescriptorProto.



1030
1031
1032
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1030

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1023

def name
  @name
end

#numberFixnum

Corresponds to the JSON property number

Returns:

  • (Fixnum)


1028
1029
1030
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1028

def number
  @number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1035
1036
1037
1038
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1035

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @number = args[:number] if args.key?(:number)
end