Class: Google::Apis::ChromepolicyV1::Proto2DescriptorProto
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::Proto2DescriptorProto
- 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 message type.
Instance Attribute Summary collapse
-
#enum_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto>
Corresponds to the JSON property
enumType. -
#field ⇒ Array<Google::Apis::ChromepolicyV1::Proto2FieldDescriptorProto>
Corresponds to the JSON property
field. -
#name ⇒ String
Corresponds to the JSON property
name. -
#nested_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2DescriptorProto>
Corresponds to the JSON property
nestedType. -
#oneof_decl ⇒ Array<Google::Apis::ChromepolicyV1::Proto2OneofDescriptorProto>
Corresponds to the JSON property
oneofDecl.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Proto2DescriptorProto
constructor
A new instance of Proto2DescriptorProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Proto2DescriptorProto
Returns a new instance of Proto2DescriptorProto.
746 747 748 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 746 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enum_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto>
Corresponds to the JSON property enumType
724 725 726 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 724 def enum_type @enum_type end |
#field ⇒ Array<Google::Apis::ChromepolicyV1::Proto2FieldDescriptorProto>
Corresponds to the JSON property field
729 730 731 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 729 def field @field end |
#name ⇒ String
Corresponds to the JSON property name
734 735 736 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 734 def name @name end |
#nested_type ⇒ Array<Google::Apis::ChromepolicyV1::Proto2DescriptorProto>
Corresponds to the JSON property nestedType
739 740 741 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 739 def nested_type @nested_type end |
#oneof_decl ⇒ Array<Google::Apis::ChromepolicyV1::Proto2OneofDescriptorProto>
Corresponds to the JSON property oneofDecl
744 745 746 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 744 def oneof_decl @oneof_decl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
751 752 753 754 755 756 757 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 751 def update!(**args) @enum_type = args[:enum_type] if args.key?(:enum_type) @field = args[:field] if args.key?(:field) @name = args[:name] if args.key?(:name) @nested_type = args[:nested_type] if args.key?(:nested_type) @oneof_decl = args[:oneof_decl] if args.key?(:oneof_decl) end |