Class: Google::Apis::ChromepolicyV1::Proto2FileDescriptorProto
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChromepolicyV1::Proto2FileDescriptorProto
 
- 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 complete .proto file.
Instance Attribute Summary collapse
- 
  
    
      #enum_type  ⇒ Array<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property enumType.
- 
  
    
      #message_type  ⇒ Array<Google::Apis::ChromepolicyV1::Proto2DescriptorProto> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    All top-level definitions in this file. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    file name, relative to root of source tree Corresponds to the JSON property name.
- 
  
    
      #package  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    e.g. 
- 
  
    
      #syntax  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The syntax of the proto file. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Proto2FileDescriptorProto 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Proto2FileDescriptorProto. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ Proto2FileDescriptorProto
Returns a new instance of Proto2FileDescriptorProto.
| 835 836 837 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 835 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#enum_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto>
Corresponds to the JSON property enumType
| 813 814 815 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 813 def enum_type @enum_type end | 
#message_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2DescriptorProto>
All top-level definitions in this file.
Corresponds to the JSON property messageType
| 818 819 820 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 818 def @message_type end | 
#name ⇒ String
file name, relative to root of source tree
Corresponds to the JSON property name
| 823 824 825 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 823 def name @name end | 
#package ⇒ String
e.g. "foo", "foo.bar", etc.
Corresponds to the JSON property package
| 828 829 830 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 828 def package @package end | 
#syntax ⇒ String
The syntax of the proto file. The supported values are "proto2" and "proto3".
Corresponds to the JSON property syntax
| 833 834 835 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 833 def syntax @syntax end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 840 841 842 843 844 845 846 | # File 'lib/google/apis/chromepolicy_v1/classes.rb', line 840 def update!(**args) @enum_type = args[:enum_type] if args.key?(:enum_type) @message_type = args[:message_type] if args.key?(:message_type) @name = args[:name] if args.key?(:name) @package = args[:package] if args.key?(:package) @syntax = args[:syntax] if args.key?(:syntax) end |