Class: Google::Apis::ChromepolicyV1::Proto2EnumValueDescriptorProto
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChromepolicyV1::Proto2EnumValueDescriptorProto
 
- 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
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property name.
- 
  
    
      #number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property number.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Proto2EnumValueDescriptorProto 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Proto2EnumValueDescriptorProto. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ Proto2EnumValueDescriptorProto
Returns a new instance of Proto2EnumValueDescriptorProto.
| 702 703 704 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 702 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
| 695 696 697 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 695 def name @name end | 
#number ⇒ Fixnum
Corresponds to the JSON property number
| 700 701 702 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 700 def number @number end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 707 708 709 710 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 707 def update!(**args) @name = args[:name] if args.key?(:name) @number = args[:number] if args.key?(:number) end |