Class: Google::Apis::ChromepolicyV1::Proto2DescriptorProto

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 message type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Proto2DescriptorProto

Returns a new instance of Proto2DescriptorProto.



1517
1518
1519
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1517

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

Instance Attribute Details

#enum_typeArray<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto>

Corresponds to the JSON property enumType



1490
1491
1492
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1490

def enum_type
  @enum_type
end

#fieldArray<Google::Apis::ChromepolicyV1::Proto2FieldDescriptorProto>

Corresponds to the JSON property field



1495
1496
1497
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1495

def field
  @field
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


1500
1501
1502
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1500

def name
  @name
end

#nested_typeArray<Google::Apis::ChromepolicyV1::Proto2DescriptorProto>

Corresponds to the JSON property nestedType



1505
1506
1507
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1505

def nested_type
  @nested_type
end

#oneof_declArray<Google::Apis::ChromepolicyV1::Proto2OneofDescriptorProto>

Corresponds to the JSON property oneofDecl



1510
1511
1512
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1510

def oneof_decl
  @oneof_decl
end

#visibilityString

Support for export and local keywords on enums. Corresponds to the JSON property visibility

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1515

def visibility
  @visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1522
1523
1524
1525
1526
1527
1528
1529
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1522

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)
  @visibility = args[:visibility] if args.key?(:visibility)
end