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.



1383
1384
1385
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1383

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

Instance Attribute Details

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

Corresponds to the JSON property enumType



1361
1362
1363
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1361

def enum_type
  @enum_type
end

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

Corresponds to the JSON property field



1366
1367
1368
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1366

def field
  @field
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


1371
1372
1373
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1371

def name
  @name
end

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

Corresponds to the JSON property nestedType



1376
1377
1378
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1376

def nested_type
  @nested_type
end

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

Corresponds to the JSON property oneofDecl



1381
1382
1383
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1381

def oneof_decl
  @oneof_decl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1388
1389
1390
1391
1392
1393
1394
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1388

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