@google-cloud/dms 2.1.2 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -13001,6 +13001,3615 @@
13001
13001
  return CustomHttpPattern;
13002
13002
  })();
13003
13003
 
13004
+ api.CommonLanguageSettings = (function() {
13005
+
13006
+ /**
13007
+ * Properties of a CommonLanguageSettings.
13008
+ * @memberof google.api
13009
+ * @interface ICommonLanguageSettings
13010
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
13011
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
13012
+ */
13013
+
13014
+ /**
13015
+ * Constructs a new CommonLanguageSettings.
13016
+ * @memberof google.api
13017
+ * @classdesc Represents a CommonLanguageSettings.
13018
+ * @implements ICommonLanguageSettings
13019
+ * @constructor
13020
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
13021
+ */
13022
+ function CommonLanguageSettings(properties) {
13023
+ this.destinations = [];
13024
+ if (properties)
13025
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13026
+ if (properties[keys[i]] != null)
13027
+ this[keys[i]] = properties[keys[i]];
13028
+ }
13029
+
13030
+ /**
13031
+ * CommonLanguageSettings referenceDocsUri.
13032
+ * @member {string} referenceDocsUri
13033
+ * @memberof google.api.CommonLanguageSettings
13034
+ * @instance
13035
+ */
13036
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
13037
+
13038
+ /**
13039
+ * CommonLanguageSettings destinations.
13040
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
13041
+ * @memberof google.api.CommonLanguageSettings
13042
+ * @instance
13043
+ */
13044
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
13045
+
13046
+ /**
13047
+ * Creates a new CommonLanguageSettings instance using the specified properties.
13048
+ * @function create
13049
+ * @memberof google.api.CommonLanguageSettings
13050
+ * @static
13051
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
13052
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
13053
+ */
13054
+ CommonLanguageSettings.create = function create(properties) {
13055
+ return new CommonLanguageSettings(properties);
13056
+ };
13057
+
13058
+ /**
13059
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
13060
+ * @function encode
13061
+ * @memberof google.api.CommonLanguageSettings
13062
+ * @static
13063
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
13064
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13065
+ * @returns {$protobuf.Writer} Writer
13066
+ */
13067
+ CommonLanguageSettings.encode = function encode(message, writer) {
13068
+ if (!writer)
13069
+ writer = $Writer.create();
13070
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
13071
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
13072
+ if (message.destinations != null && message.destinations.length) {
13073
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
13074
+ for (var i = 0; i < message.destinations.length; ++i)
13075
+ writer.int32(message.destinations[i]);
13076
+ writer.ldelim();
13077
+ }
13078
+ return writer;
13079
+ };
13080
+
13081
+ /**
13082
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
13083
+ * @function encodeDelimited
13084
+ * @memberof google.api.CommonLanguageSettings
13085
+ * @static
13086
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
13087
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13088
+ * @returns {$protobuf.Writer} Writer
13089
+ */
13090
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
13091
+ return this.encode(message, writer).ldelim();
13092
+ };
13093
+
13094
+ /**
13095
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
13096
+ * @function decode
13097
+ * @memberof google.api.CommonLanguageSettings
13098
+ * @static
13099
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13100
+ * @param {number} [length] Message length if known beforehand
13101
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
13102
+ * @throws {Error} If the payload is not a reader or valid buffer
13103
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13104
+ */
13105
+ CommonLanguageSettings.decode = function decode(reader, length) {
13106
+ if (!(reader instanceof $Reader))
13107
+ reader = $Reader.create(reader);
13108
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
13109
+ while (reader.pos < end) {
13110
+ var tag = reader.uint32();
13111
+ switch (tag >>> 3) {
13112
+ case 1: {
13113
+ message.referenceDocsUri = reader.string();
13114
+ break;
13115
+ }
13116
+ case 2: {
13117
+ if (!(message.destinations && message.destinations.length))
13118
+ message.destinations = [];
13119
+ if ((tag & 7) === 2) {
13120
+ var end2 = reader.uint32() + reader.pos;
13121
+ while (reader.pos < end2)
13122
+ message.destinations.push(reader.int32());
13123
+ } else
13124
+ message.destinations.push(reader.int32());
13125
+ break;
13126
+ }
13127
+ default:
13128
+ reader.skipType(tag & 7);
13129
+ break;
13130
+ }
13131
+ }
13132
+ return message;
13133
+ };
13134
+
13135
+ /**
13136
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
13137
+ * @function decodeDelimited
13138
+ * @memberof google.api.CommonLanguageSettings
13139
+ * @static
13140
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13141
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
13142
+ * @throws {Error} If the payload is not a reader or valid buffer
13143
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13144
+ */
13145
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
13146
+ if (!(reader instanceof $Reader))
13147
+ reader = new $Reader(reader);
13148
+ return this.decode(reader, reader.uint32());
13149
+ };
13150
+
13151
+ /**
13152
+ * Verifies a CommonLanguageSettings message.
13153
+ * @function verify
13154
+ * @memberof google.api.CommonLanguageSettings
13155
+ * @static
13156
+ * @param {Object.<string,*>} message Plain object to verify
13157
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13158
+ */
13159
+ CommonLanguageSettings.verify = function verify(message) {
13160
+ if (typeof message !== "object" || message === null)
13161
+ return "object expected";
13162
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
13163
+ if (!$util.isString(message.referenceDocsUri))
13164
+ return "referenceDocsUri: string expected";
13165
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
13166
+ if (!Array.isArray(message.destinations))
13167
+ return "destinations: array expected";
13168
+ for (var i = 0; i < message.destinations.length; ++i)
13169
+ switch (message.destinations[i]) {
13170
+ default:
13171
+ return "destinations: enum value[] expected";
13172
+ case 0:
13173
+ case 10:
13174
+ case 20:
13175
+ break;
13176
+ }
13177
+ }
13178
+ return null;
13179
+ };
13180
+
13181
+ /**
13182
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
13183
+ * @function fromObject
13184
+ * @memberof google.api.CommonLanguageSettings
13185
+ * @static
13186
+ * @param {Object.<string,*>} object Plain object
13187
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
13188
+ */
13189
+ CommonLanguageSettings.fromObject = function fromObject(object) {
13190
+ if (object instanceof $root.google.api.CommonLanguageSettings)
13191
+ return object;
13192
+ var message = new $root.google.api.CommonLanguageSettings();
13193
+ if (object.referenceDocsUri != null)
13194
+ message.referenceDocsUri = String(object.referenceDocsUri);
13195
+ if (object.destinations) {
13196
+ if (!Array.isArray(object.destinations))
13197
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
13198
+ message.destinations = [];
13199
+ for (var i = 0; i < object.destinations.length; ++i)
13200
+ switch (object.destinations[i]) {
13201
+ default:
13202
+ if (typeof object.destinations[i] === "number") {
13203
+ message.destinations[i] = object.destinations[i];
13204
+ break;
13205
+ }
13206
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
13207
+ case 0:
13208
+ message.destinations[i] = 0;
13209
+ break;
13210
+ case "GITHUB":
13211
+ case 10:
13212
+ message.destinations[i] = 10;
13213
+ break;
13214
+ case "PACKAGE_MANAGER":
13215
+ case 20:
13216
+ message.destinations[i] = 20;
13217
+ break;
13218
+ }
13219
+ }
13220
+ return message;
13221
+ };
13222
+
13223
+ /**
13224
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
13225
+ * @function toObject
13226
+ * @memberof google.api.CommonLanguageSettings
13227
+ * @static
13228
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
13229
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13230
+ * @returns {Object.<string,*>} Plain object
13231
+ */
13232
+ CommonLanguageSettings.toObject = function toObject(message, options) {
13233
+ if (!options)
13234
+ options = {};
13235
+ var object = {};
13236
+ if (options.arrays || options.defaults)
13237
+ object.destinations = [];
13238
+ if (options.defaults)
13239
+ object.referenceDocsUri = "";
13240
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
13241
+ object.referenceDocsUri = message.referenceDocsUri;
13242
+ if (message.destinations && message.destinations.length) {
13243
+ object.destinations = [];
13244
+ for (var j = 0; j < message.destinations.length; ++j)
13245
+ object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
13246
+ }
13247
+ return object;
13248
+ };
13249
+
13250
+ /**
13251
+ * Converts this CommonLanguageSettings to JSON.
13252
+ * @function toJSON
13253
+ * @memberof google.api.CommonLanguageSettings
13254
+ * @instance
13255
+ * @returns {Object.<string,*>} JSON object
13256
+ */
13257
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
13258
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13259
+ };
13260
+
13261
+ /**
13262
+ * Gets the default type url for CommonLanguageSettings
13263
+ * @function getTypeUrl
13264
+ * @memberof google.api.CommonLanguageSettings
13265
+ * @static
13266
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13267
+ * @returns {string} The default type url
13268
+ */
13269
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13270
+ if (typeUrlPrefix === undefined) {
13271
+ typeUrlPrefix = "type.googleapis.com";
13272
+ }
13273
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
13274
+ };
13275
+
13276
+ return CommonLanguageSettings;
13277
+ })();
13278
+
13279
+ api.ClientLibrarySettings = (function() {
13280
+
13281
+ /**
13282
+ * Properties of a ClientLibrarySettings.
13283
+ * @memberof google.api
13284
+ * @interface IClientLibrarySettings
13285
+ * @property {string|null} [version] ClientLibrarySettings version
13286
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
13287
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
13288
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
13289
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
13290
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
13291
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
13292
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
13293
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
13294
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
13295
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
13296
+ */
13297
+
13298
+ /**
13299
+ * Constructs a new ClientLibrarySettings.
13300
+ * @memberof google.api
13301
+ * @classdesc Represents a ClientLibrarySettings.
13302
+ * @implements IClientLibrarySettings
13303
+ * @constructor
13304
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
13305
+ */
13306
+ function ClientLibrarySettings(properties) {
13307
+ if (properties)
13308
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13309
+ if (properties[keys[i]] != null)
13310
+ this[keys[i]] = properties[keys[i]];
13311
+ }
13312
+
13313
+ /**
13314
+ * ClientLibrarySettings version.
13315
+ * @member {string} version
13316
+ * @memberof google.api.ClientLibrarySettings
13317
+ * @instance
13318
+ */
13319
+ ClientLibrarySettings.prototype.version = "";
13320
+
13321
+ /**
13322
+ * ClientLibrarySettings launchStage.
13323
+ * @member {google.api.LaunchStage} launchStage
13324
+ * @memberof google.api.ClientLibrarySettings
13325
+ * @instance
13326
+ */
13327
+ ClientLibrarySettings.prototype.launchStage = 0;
13328
+
13329
+ /**
13330
+ * ClientLibrarySettings restNumericEnums.
13331
+ * @member {boolean} restNumericEnums
13332
+ * @memberof google.api.ClientLibrarySettings
13333
+ * @instance
13334
+ */
13335
+ ClientLibrarySettings.prototype.restNumericEnums = false;
13336
+
13337
+ /**
13338
+ * ClientLibrarySettings javaSettings.
13339
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
13340
+ * @memberof google.api.ClientLibrarySettings
13341
+ * @instance
13342
+ */
13343
+ ClientLibrarySettings.prototype.javaSettings = null;
13344
+
13345
+ /**
13346
+ * ClientLibrarySettings cppSettings.
13347
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
13348
+ * @memberof google.api.ClientLibrarySettings
13349
+ * @instance
13350
+ */
13351
+ ClientLibrarySettings.prototype.cppSettings = null;
13352
+
13353
+ /**
13354
+ * ClientLibrarySettings phpSettings.
13355
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
13356
+ * @memberof google.api.ClientLibrarySettings
13357
+ * @instance
13358
+ */
13359
+ ClientLibrarySettings.prototype.phpSettings = null;
13360
+
13361
+ /**
13362
+ * ClientLibrarySettings pythonSettings.
13363
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
13364
+ * @memberof google.api.ClientLibrarySettings
13365
+ * @instance
13366
+ */
13367
+ ClientLibrarySettings.prototype.pythonSettings = null;
13368
+
13369
+ /**
13370
+ * ClientLibrarySettings nodeSettings.
13371
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
13372
+ * @memberof google.api.ClientLibrarySettings
13373
+ * @instance
13374
+ */
13375
+ ClientLibrarySettings.prototype.nodeSettings = null;
13376
+
13377
+ /**
13378
+ * ClientLibrarySettings dotnetSettings.
13379
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
13380
+ * @memberof google.api.ClientLibrarySettings
13381
+ * @instance
13382
+ */
13383
+ ClientLibrarySettings.prototype.dotnetSettings = null;
13384
+
13385
+ /**
13386
+ * ClientLibrarySettings rubySettings.
13387
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
13388
+ * @memberof google.api.ClientLibrarySettings
13389
+ * @instance
13390
+ */
13391
+ ClientLibrarySettings.prototype.rubySettings = null;
13392
+
13393
+ /**
13394
+ * ClientLibrarySettings goSettings.
13395
+ * @member {google.api.IGoSettings|null|undefined} goSettings
13396
+ * @memberof google.api.ClientLibrarySettings
13397
+ * @instance
13398
+ */
13399
+ ClientLibrarySettings.prototype.goSettings = null;
13400
+
13401
+ /**
13402
+ * Creates a new ClientLibrarySettings instance using the specified properties.
13403
+ * @function create
13404
+ * @memberof google.api.ClientLibrarySettings
13405
+ * @static
13406
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
13407
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
13408
+ */
13409
+ ClientLibrarySettings.create = function create(properties) {
13410
+ return new ClientLibrarySettings(properties);
13411
+ };
13412
+
13413
+ /**
13414
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
13415
+ * @function encode
13416
+ * @memberof google.api.ClientLibrarySettings
13417
+ * @static
13418
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
13419
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13420
+ * @returns {$protobuf.Writer} Writer
13421
+ */
13422
+ ClientLibrarySettings.encode = function encode(message, writer) {
13423
+ if (!writer)
13424
+ writer = $Writer.create();
13425
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
13426
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
13427
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
13428
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
13429
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
13430
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
13431
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
13432
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
13433
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
13434
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
13435
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
13436
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
13437
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
13438
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
13439
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
13440
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
13441
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
13442
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
13443
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
13444
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
13445
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
13446
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
13447
+ return writer;
13448
+ };
13449
+
13450
+ /**
13451
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
13452
+ * @function encodeDelimited
13453
+ * @memberof google.api.ClientLibrarySettings
13454
+ * @static
13455
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
13456
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13457
+ * @returns {$protobuf.Writer} Writer
13458
+ */
13459
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
13460
+ return this.encode(message, writer).ldelim();
13461
+ };
13462
+
13463
+ /**
13464
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
13465
+ * @function decode
13466
+ * @memberof google.api.ClientLibrarySettings
13467
+ * @static
13468
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13469
+ * @param {number} [length] Message length if known beforehand
13470
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
13471
+ * @throws {Error} If the payload is not a reader or valid buffer
13472
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13473
+ */
13474
+ ClientLibrarySettings.decode = function decode(reader, length) {
13475
+ if (!(reader instanceof $Reader))
13476
+ reader = $Reader.create(reader);
13477
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
13478
+ while (reader.pos < end) {
13479
+ var tag = reader.uint32();
13480
+ switch (tag >>> 3) {
13481
+ case 1: {
13482
+ message.version = reader.string();
13483
+ break;
13484
+ }
13485
+ case 2: {
13486
+ message.launchStage = reader.int32();
13487
+ break;
13488
+ }
13489
+ case 3: {
13490
+ message.restNumericEnums = reader.bool();
13491
+ break;
13492
+ }
13493
+ case 21: {
13494
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
13495
+ break;
13496
+ }
13497
+ case 22: {
13498
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
13499
+ break;
13500
+ }
13501
+ case 23: {
13502
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
13503
+ break;
13504
+ }
13505
+ case 24: {
13506
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
13507
+ break;
13508
+ }
13509
+ case 25: {
13510
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
13511
+ break;
13512
+ }
13513
+ case 26: {
13514
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
13515
+ break;
13516
+ }
13517
+ case 27: {
13518
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
13519
+ break;
13520
+ }
13521
+ case 28: {
13522
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
13523
+ break;
13524
+ }
13525
+ default:
13526
+ reader.skipType(tag & 7);
13527
+ break;
13528
+ }
13529
+ }
13530
+ return message;
13531
+ };
13532
+
13533
+ /**
13534
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
13535
+ * @function decodeDelimited
13536
+ * @memberof google.api.ClientLibrarySettings
13537
+ * @static
13538
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13539
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
13540
+ * @throws {Error} If the payload is not a reader or valid buffer
13541
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13542
+ */
13543
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
13544
+ if (!(reader instanceof $Reader))
13545
+ reader = new $Reader(reader);
13546
+ return this.decode(reader, reader.uint32());
13547
+ };
13548
+
13549
+ /**
13550
+ * Verifies a ClientLibrarySettings message.
13551
+ * @function verify
13552
+ * @memberof google.api.ClientLibrarySettings
13553
+ * @static
13554
+ * @param {Object.<string,*>} message Plain object to verify
13555
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13556
+ */
13557
+ ClientLibrarySettings.verify = function verify(message) {
13558
+ if (typeof message !== "object" || message === null)
13559
+ return "object expected";
13560
+ if (message.version != null && message.hasOwnProperty("version"))
13561
+ if (!$util.isString(message.version))
13562
+ return "version: string expected";
13563
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
13564
+ switch (message.launchStage) {
13565
+ default:
13566
+ return "launchStage: enum value expected";
13567
+ case 0:
13568
+ case 6:
13569
+ case 7:
13570
+ case 1:
13571
+ case 2:
13572
+ case 3:
13573
+ case 4:
13574
+ case 5:
13575
+ break;
13576
+ }
13577
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
13578
+ if (typeof message.restNumericEnums !== "boolean")
13579
+ return "restNumericEnums: boolean expected";
13580
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
13581
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
13582
+ if (error)
13583
+ return "javaSettings." + error;
13584
+ }
13585
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
13586
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
13587
+ if (error)
13588
+ return "cppSettings." + error;
13589
+ }
13590
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
13591
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
13592
+ if (error)
13593
+ return "phpSettings." + error;
13594
+ }
13595
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
13596
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
13597
+ if (error)
13598
+ return "pythonSettings." + error;
13599
+ }
13600
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
13601
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
13602
+ if (error)
13603
+ return "nodeSettings." + error;
13604
+ }
13605
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
13606
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
13607
+ if (error)
13608
+ return "dotnetSettings." + error;
13609
+ }
13610
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
13611
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
13612
+ if (error)
13613
+ return "rubySettings." + error;
13614
+ }
13615
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
13616
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
13617
+ if (error)
13618
+ return "goSettings." + error;
13619
+ }
13620
+ return null;
13621
+ };
13622
+
13623
+ /**
13624
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
13625
+ * @function fromObject
13626
+ * @memberof google.api.ClientLibrarySettings
13627
+ * @static
13628
+ * @param {Object.<string,*>} object Plain object
13629
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
13630
+ */
13631
+ ClientLibrarySettings.fromObject = function fromObject(object) {
13632
+ if (object instanceof $root.google.api.ClientLibrarySettings)
13633
+ return object;
13634
+ var message = new $root.google.api.ClientLibrarySettings();
13635
+ if (object.version != null)
13636
+ message.version = String(object.version);
13637
+ switch (object.launchStage) {
13638
+ default:
13639
+ if (typeof object.launchStage === "number") {
13640
+ message.launchStage = object.launchStage;
13641
+ break;
13642
+ }
13643
+ break;
13644
+ case "LAUNCH_STAGE_UNSPECIFIED":
13645
+ case 0:
13646
+ message.launchStage = 0;
13647
+ break;
13648
+ case "UNIMPLEMENTED":
13649
+ case 6:
13650
+ message.launchStage = 6;
13651
+ break;
13652
+ case "PRELAUNCH":
13653
+ case 7:
13654
+ message.launchStage = 7;
13655
+ break;
13656
+ case "EARLY_ACCESS":
13657
+ case 1:
13658
+ message.launchStage = 1;
13659
+ break;
13660
+ case "ALPHA":
13661
+ case 2:
13662
+ message.launchStage = 2;
13663
+ break;
13664
+ case "BETA":
13665
+ case 3:
13666
+ message.launchStage = 3;
13667
+ break;
13668
+ case "GA":
13669
+ case 4:
13670
+ message.launchStage = 4;
13671
+ break;
13672
+ case "DEPRECATED":
13673
+ case 5:
13674
+ message.launchStage = 5;
13675
+ break;
13676
+ }
13677
+ if (object.restNumericEnums != null)
13678
+ message.restNumericEnums = Boolean(object.restNumericEnums);
13679
+ if (object.javaSettings != null) {
13680
+ if (typeof object.javaSettings !== "object")
13681
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
13682
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
13683
+ }
13684
+ if (object.cppSettings != null) {
13685
+ if (typeof object.cppSettings !== "object")
13686
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
13687
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
13688
+ }
13689
+ if (object.phpSettings != null) {
13690
+ if (typeof object.phpSettings !== "object")
13691
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
13692
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
13693
+ }
13694
+ if (object.pythonSettings != null) {
13695
+ if (typeof object.pythonSettings !== "object")
13696
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
13697
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
13698
+ }
13699
+ if (object.nodeSettings != null) {
13700
+ if (typeof object.nodeSettings !== "object")
13701
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
13702
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
13703
+ }
13704
+ if (object.dotnetSettings != null) {
13705
+ if (typeof object.dotnetSettings !== "object")
13706
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
13707
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
13708
+ }
13709
+ if (object.rubySettings != null) {
13710
+ if (typeof object.rubySettings !== "object")
13711
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
13712
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
13713
+ }
13714
+ if (object.goSettings != null) {
13715
+ if (typeof object.goSettings !== "object")
13716
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
13717
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
13718
+ }
13719
+ return message;
13720
+ };
13721
+
13722
+ /**
13723
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
13724
+ * @function toObject
13725
+ * @memberof google.api.ClientLibrarySettings
13726
+ * @static
13727
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
13728
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13729
+ * @returns {Object.<string,*>} Plain object
13730
+ */
13731
+ ClientLibrarySettings.toObject = function toObject(message, options) {
13732
+ if (!options)
13733
+ options = {};
13734
+ var object = {};
13735
+ if (options.defaults) {
13736
+ object.version = "";
13737
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
13738
+ object.restNumericEnums = false;
13739
+ object.javaSettings = null;
13740
+ object.cppSettings = null;
13741
+ object.phpSettings = null;
13742
+ object.pythonSettings = null;
13743
+ object.nodeSettings = null;
13744
+ object.dotnetSettings = null;
13745
+ object.rubySettings = null;
13746
+ object.goSettings = null;
13747
+ }
13748
+ if (message.version != null && message.hasOwnProperty("version"))
13749
+ object.version = message.version;
13750
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
13751
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
13752
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
13753
+ object.restNumericEnums = message.restNumericEnums;
13754
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
13755
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
13756
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
13757
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
13758
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
13759
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
13760
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
13761
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
13762
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
13763
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
13764
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
13765
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
13766
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
13767
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
13768
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
13769
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
13770
+ return object;
13771
+ };
13772
+
13773
+ /**
13774
+ * Converts this ClientLibrarySettings to JSON.
13775
+ * @function toJSON
13776
+ * @memberof google.api.ClientLibrarySettings
13777
+ * @instance
13778
+ * @returns {Object.<string,*>} JSON object
13779
+ */
13780
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
13781
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13782
+ };
13783
+
13784
+ /**
13785
+ * Gets the default type url for ClientLibrarySettings
13786
+ * @function getTypeUrl
13787
+ * @memberof google.api.ClientLibrarySettings
13788
+ * @static
13789
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13790
+ * @returns {string} The default type url
13791
+ */
13792
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13793
+ if (typeUrlPrefix === undefined) {
13794
+ typeUrlPrefix = "type.googleapis.com";
13795
+ }
13796
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
13797
+ };
13798
+
13799
+ return ClientLibrarySettings;
13800
+ })();
13801
+
13802
+ api.Publishing = (function() {
13803
+
13804
+ /**
13805
+ * Properties of a Publishing.
13806
+ * @memberof google.api
13807
+ * @interface IPublishing
13808
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
13809
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
13810
+ * @property {string|null} [documentationUri] Publishing documentationUri
13811
+ * @property {string|null} [apiShortName] Publishing apiShortName
13812
+ * @property {string|null} [githubLabel] Publishing githubLabel
13813
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
13814
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
13815
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
13816
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
13817
+ */
13818
+
13819
+ /**
13820
+ * Constructs a new Publishing.
13821
+ * @memberof google.api
13822
+ * @classdesc Represents a Publishing.
13823
+ * @implements IPublishing
13824
+ * @constructor
13825
+ * @param {google.api.IPublishing=} [properties] Properties to set
13826
+ */
13827
+ function Publishing(properties) {
13828
+ this.methodSettings = [];
13829
+ this.codeownerGithubTeams = [];
13830
+ this.librarySettings = [];
13831
+ if (properties)
13832
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13833
+ if (properties[keys[i]] != null)
13834
+ this[keys[i]] = properties[keys[i]];
13835
+ }
13836
+
13837
+ /**
13838
+ * Publishing methodSettings.
13839
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
13840
+ * @memberof google.api.Publishing
13841
+ * @instance
13842
+ */
13843
+ Publishing.prototype.methodSettings = $util.emptyArray;
13844
+
13845
+ /**
13846
+ * Publishing newIssueUri.
13847
+ * @member {string} newIssueUri
13848
+ * @memberof google.api.Publishing
13849
+ * @instance
13850
+ */
13851
+ Publishing.prototype.newIssueUri = "";
13852
+
13853
+ /**
13854
+ * Publishing documentationUri.
13855
+ * @member {string} documentationUri
13856
+ * @memberof google.api.Publishing
13857
+ * @instance
13858
+ */
13859
+ Publishing.prototype.documentationUri = "";
13860
+
13861
+ /**
13862
+ * Publishing apiShortName.
13863
+ * @member {string} apiShortName
13864
+ * @memberof google.api.Publishing
13865
+ * @instance
13866
+ */
13867
+ Publishing.prototype.apiShortName = "";
13868
+
13869
+ /**
13870
+ * Publishing githubLabel.
13871
+ * @member {string} githubLabel
13872
+ * @memberof google.api.Publishing
13873
+ * @instance
13874
+ */
13875
+ Publishing.prototype.githubLabel = "";
13876
+
13877
+ /**
13878
+ * Publishing codeownerGithubTeams.
13879
+ * @member {Array.<string>} codeownerGithubTeams
13880
+ * @memberof google.api.Publishing
13881
+ * @instance
13882
+ */
13883
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
13884
+
13885
+ /**
13886
+ * Publishing docTagPrefix.
13887
+ * @member {string} docTagPrefix
13888
+ * @memberof google.api.Publishing
13889
+ * @instance
13890
+ */
13891
+ Publishing.prototype.docTagPrefix = "";
13892
+
13893
+ /**
13894
+ * Publishing organization.
13895
+ * @member {google.api.ClientLibraryOrganization} organization
13896
+ * @memberof google.api.Publishing
13897
+ * @instance
13898
+ */
13899
+ Publishing.prototype.organization = 0;
13900
+
13901
+ /**
13902
+ * Publishing librarySettings.
13903
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
13904
+ * @memberof google.api.Publishing
13905
+ * @instance
13906
+ */
13907
+ Publishing.prototype.librarySettings = $util.emptyArray;
13908
+
13909
+ /**
13910
+ * Creates a new Publishing instance using the specified properties.
13911
+ * @function create
13912
+ * @memberof google.api.Publishing
13913
+ * @static
13914
+ * @param {google.api.IPublishing=} [properties] Properties to set
13915
+ * @returns {google.api.Publishing} Publishing instance
13916
+ */
13917
+ Publishing.create = function create(properties) {
13918
+ return new Publishing(properties);
13919
+ };
13920
+
13921
+ /**
13922
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
13923
+ * @function encode
13924
+ * @memberof google.api.Publishing
13925
+ * @static
13926
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
13927
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13928
+ * @returns {$protobuf.Writer} Writer
13929
+ */
13930
+ Publishing.encode = function encode(message, writer) {
13931
+ if (!writer)
13932
+ writer = $Writer.create();
13933
+ if (message.methodSettings != null && message.methodSettings.length)
13934
+ for (var i = 0; i < message.methodSettings.length; ++i)
13935
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
13936
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
13937
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
13938
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
13939
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
13940
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
13941
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
13942
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
13943
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
13944
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
13945
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
13946
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
13947
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
13948
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
13949
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
13950
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
13951
+ if (message.librarySettings != null && message.librarySettings.length)
13952
+ for (var i = 0; i < message.librarySettings.length; ++i)
13953
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
13954
+ return writer;
13955
+ };
13956
+
13957
+ /**
13958
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
13959
+ * @function encodeDelimited
13960
+ * @memberof google.api.Publishing
13961
+ * @static
13962
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
13963
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13964
+ * @returns {$protobuf.Writer} Writer
13965
+ */
13966
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
13967
+ return this.encode(message, writer).ldelim();
13968
+ };
13969
+
13970
+ /**
13971
+ * Decodes a Publishing message from the specified reader or buffer.
13972
+ * @function decode
13973
+ * @memberof google.api.Publishing
13974
+ * @static
13975
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13976
+ * @param {number} [length] Message length if known beforehand
13977
+ * @returns {google.api.Publishing} Publishing
13978
+ * @throws {Error} If the payload is not a reader or valid buffer
13979
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13980
+ */
13981
+ Publishing.decode = function decode(reader, length) {
13982
+ if (!(reader instanceof $Reader))
13983
+ reader = $Reader.create(reader);
13984
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
13985
+ while (reader.pos < end) {
13986
+ var tag = reader.uint32();
13987
+ switch (tag >>> 3) {
13988
+ case 2: {
13989
+ if (!(message.methodSettings && message.methodSettings.length))
13990
+ message.methodSettings = [];
13991
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
13992
+ break;
13993
+ }
13994
+ case 101: {
13995
+ message.newIssueUri = reader.string();
13996
+ break;
13997
+ }
13998
+ case 102: {
13999
+ message.documentationUri = reader.string();
14000
+ break;
14001
+ }
14002
+ case 103: {
14003
+ message.apiShortName = reader.string();
14004
+ break;
14005
+ }
14006
+ case 104: {
14007
+ message.githubLabel = reader.string();
14008
+ break;
14009
+ }
14010
+ case 105: {
14011
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
14012
+ message.codeownerGithubTeams = [];
14013
+ message.codeownerGithubTeams.push(reader.string());
14014
+ break;
14015
+ }
14016
+ case 106: {
14017
+ message.docTagPrefix = reader.string();
14018
+ break;
14019
+ }
14020
+ case 107: {
14021
+ message.organization = reader.int32();
14022
+ break;
14023
+ }
14024
+ case 109: {
14025
+ if (!(message.librarySettings && message.librarySettings.length))
14026
+ message.librarySettings = [];
14027
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
14028
+ break;
14029
+ }
14030
+ default:
14031
+ reader.skipType(tag & 7);
14032
+ break;
14033
+ }
14034
+ }
14035
+ return message;
14036
+ };
14037
+
14038
+ /**
14039
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
14040
+ * @function decodeDelimited
14041
+ * @memberof google.api.Publishing
14042
+ * @static
14043
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14044
+ * @returns {google.api.Publishing} Publishing
14045
+ * @throws {Error} If the payload is not a reader or valid buffer
14046
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14047
+ */
14048
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
14049
+ if (!(reader instanceof $Reader))
14050
+ reader = new $Reader(reader);
14051
+ return this.decode(reader, reader.uint32());
14052
+ };
14053
+
14054
+ /**
14055
+ * Verifies a Publishing message.
14056
+ * @function verify
14057
+ * @memberof google.api.Publishing
14058
+ * @static
14059
+ * @param {Object.<string,*>} message Plain object to verify
14060
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14061
+ */
14062
+ Publishing.verify = function verify(message) {
14063
+ if (typeof message !== "object" || message === null)
14064
+ return "object expected";
14065
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
14066
+ if (!Array.isArray(message.methodSettings))
14067
+ return "methodSettings: array expected";
14068
+ for (var i = 0; i < message.methodSettings.length; ++i) {
14069
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
14070
+ if (error)
14071
+ return "methodSettings." + error;
14072
+ }
14073
+ }
14074
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
14075
+ if (!$util.isString(message.newIssueUri))
14076
+ return "newIssueUri: string expected";
14077
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
14078
+ if (!$util.isString(message.documentationUri))
14079
+ return "documentationUri: string expected";
14080
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
14081
+ if (!$util.isString(message.apiShortName))
14082
+ return "apiShortName: string expected";
14083
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
14084
+ if (!$util.isString(message.githubLabel))
14085
+ return "githubLabel: string expected";
14086
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
14087
+ if (!Array.isArray(message.codeownerGithubTeams))
14088
+ return "codeownerGithubTeams: array expected";
14089
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
14090
+ if (!$util.isString(message.codeownerGithubTeams[i]))
14091
+ return "codeownerGithubTeams: string[] expected";
14092
+ }
14093
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
14094
+ if (!$util.isString(message.docTagPrefix))
14095
+ return "docTagPrefix: string expected";
14096
+ if (message.organization != null && message.hasOwnProperty("organization"))
14097
+ switch (message.organization) {
14098
+ default:
14099
+ return "organization: enum value expected";
14100
+ case 0:
14101
+ case 1:
14102
+ case 2:
14103
+ case 3:
14104
+ case 4:
14105
+ break;
14106
+ }
14107
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
14108
+ if (!Array.isArray(message.librarySettings))
14109
+ return "librarySettings: array expected";
14110
+ for (var i = 0; i < message.librarySettings.length; ++i) {
14111
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
14112
+ if (error)
14113
+ return "librarySettings." + error;
14114
+ }
14115
+ }
14116
+ return null;
14117
+ };
14118
+
14119
+ /**
14120
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
14121
+ * @function fromObject
14122
+ * @memberof google.api.Publishing
14123
+ * @static
14124
+ * @param {Object.<string,*>} object Plain object
14125
+ * @returns {google.api.Publishing} Publishing
14126
+ */
14127
+ Publishing.fromObject = function fromObject(object) {
14128
+ if (object instanceof $root.google.api.Publishing)
14129
+ return object;
14130
+ var message = new $root.google.api.Publishing();
14131
+ if (object.methodSettings) {
14132
+ if (!Array.isArray(object.methodSettings))
14133
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
14134
+ message.methodSettings = [];
14135
+ for (var i = 0; i < object.methodSettings.length; ++i) {
14136
+ if (typeof object.methodSettings[i] !== "object")
14137
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
14138
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
14139
+ }
14140
+ }
14141
+ if (object.newIssueUri != null)
14142
+ message.newIssueUri = String(object.newIssueUri);
14143
+ if (object.documentationUri != null)
14144
+ message.documentationUri = String(object.documentationUri);
14145
+ if (object.apiShortName != null)
14146
+ message.apiShortName = String(object.apiShortName);
14147
+ if (object.githubLabel != null)
14148
+ message.githubLabel = String(object.githubLabel);
14149
+ if (object.codeownerGithubTeams) {
14150
+ if (!Array.isArray(object.codeownerGithubTeams))
14151
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
14152
+ message.codeownerGithubTeams = [];
14153
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
14154
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
14155
+ }
14156
+ if (object.docTagPrefix != null)
14157
+ message.docTagPrefix = String(object.docTagPrefix);
14158
+ switch (object.organization) {
14159
+ default:
14160
+ if (typeof object.organization === "number") {
14161
+ message.organization = object.organization;
14162
+ break;
14163
+ }
14164
+ break;
14165
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
14166
+ case 0:
14167
+ message.organization = 0;
14168
+ break;
14169
+ case "CLOUD":
14170
+ case 1:
14171
+ message.organization = 1;
14172
+ break;
14173
+ case "ADS":
14174
+ case 2:
14175
+ message.organization = 2;
14176
+ break;
14177
+ case "PHOTOS":
14178
+ case 3:
14179
+ message.organization = 3;
14180
+ break;
14181
+ case "STREET_VIEW":
14182
+ case 4:
14183
+ message.organization = 4;
14184
+ break;
14185
+ }
14186
+ if (object.librarySettings) {
14187
+ if (!Array.isArray(object.librarySettings))
14188
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
14189
+ message.librarySettings = [];
14190
+ for (var i = 0; i < object.librarySettings.length; ++i) {
14191
+ if (typeof object.librarySettings[i] !== "object")
14192
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
14193
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
14194
+ }
14195
+ }
14196
+ return message;
14197
+ };
14198
+
14199
+ /**
14200
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
14201
+ * @function toObject
14202
+ * @memberof google.api.Publishing
14203
+ * @static
14204
+ * @param {google.api.Publishing} message Publishing
14205
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14206
+ * @returns {Object.<string,*>} Plain object
14207
+ */
14208
+ Publishing.toObject = function toObject(message, options) {
14209
+ if (!options)
14210
+ options = {};
14211
+ var object = {};
14212
+ if (options.arrays || options.defaults) {
14213
+ object.methodSettings = [];
14214
+ object.codeownerGithubTeams = [];
14215
+ object.librarySettings = [];
14216
+ }
14217
+ if (options.defaults) {
14218
+ object.newIssueUri = "";
14219
+ object.documentationUri = "";
14220
+ object.apiShortName = "";
14221
+ object.githubLabel = "";
14222
+ object.docTagPrefix = "";
14223
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
14224
+ }
14225
+ if (message.methodSettings && message.methodSettings.length) {
14226
+ object.methodSettings = [];
14227
+ for (var j = 0; j < message.methodSettings.length; ++j)
14228
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
14229
+ }
14230
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
14231
+ object.newIssueUri = message.newIssueUri;
14232
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
14233
+ object.documentationUri = message.documentationUri;
14234
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
14235
+ object.apiShortName = message.apiShortName;
14236
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
14237
+ object.githubLabel = message.githubLabel;
14238
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
14239
+ object.codeownerGithubTeams = [];
14240
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
14241
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
14242
+ }
14243
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
14244
+ object.docTagPrefix = message.docTagPrefix;
14245
+ if (message.organization != null && message.hasOwnProperty("organization"))
14246
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
14247
+ if (message.librarySettings && message.librarySettings.length) {
14248
+ object.librarySettings = [];
14249
+ for (var j = 0; j < message.librarySettings.length; ++j)
14250
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
14251
+ }
14252
+ return object;
14253
+ };
14254
+
14255
+ /**
14256
+ * Converts this Publishing to JSON.
14257
+ * @function toJSON
14258
+ * @memberof google.api.Publishing
14259
+ * @instance
14260
+ * @returns {Object.<string,*>} JSON object
14261
+ */
14262
+ Publishing.prototype.toJSON = function toJSON() {
14263
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14264
+ };
14265
+
14266
+ /**
14267
+ * Gets the default type url for Publishing
14268
+ * @function getTypeUrl
14269
+ * @memberof google.api.Publishing
14270
+ * @static
14271
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14272
+ * @returns {string} The default type url
14273
+ */
14274
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14275
+ if (typeUrlPrefix === undefined) {
14276
+ typeUrlPrefix = "type.googleapis.com";
14277
+ }
14278
+ return typeUrlPrefix + "/google.api.Publishing";
14279
+ };
14280
+
14281
+ return Publishing;
14282
+ })();
14283
+
14284
+ api.JavaSettings = (function() {
14285
+
14286
+ /**
14287
+ * Properties of a JavaSettings.
14288
+ * @memberof google.api
14289
+ * @interface IJavaSettings
14290
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
14291
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
14292
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
14293
+ */
14294
+
14295
+ /**
14296
+ * Constructs a new JavaSettings.
14297
+ * @memberof google.api
14298
+ * @classdesc Represents a JavaSettings.
14299
+ * @implements IJavaSettings
14300
+ * @constructor
14301
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
14302
+ */
14303
+ function JavaSettings(properties) {
14304
+ this.serviceClassNames = {};
14305
+ if (properties)
14306
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14307
+ if (properties[keys[i]] != null)
14308
+ this[keys[i]] = properties[keys[i]];
14309
+ }
14310
+
14311
+ /**
14312
+ * JavaSettings libraryPackage.
14313
+ * @member {string} libraryPackage
14314
+ * @memberof google.api.JavaSettings
14315
+ * @instance
14316
+ */
14317
+ JavaSettings.prototype.libraryPackage = "";
14318
+
14319
+ /**
14320
+ * JavaSettings serviceClassNames.
14321
+ * @member {Object.<string,string>} serviceClassNames
14322
+ * @memberof google.api.JavaSettings
14323
+ * @instance
14324
+ */
14325
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
14326
+
14327
+ /**
14328
+ * JavaSettings common.
14329
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14330
+ * @memberof google.api.JavaSettings
14331
+ * @instance
14332
+ */
14333
+ JavaSettings.prototype.common = null;
14334
+
14335
+ /**
14336
+ * Creates a new JavaSettings instance using the specified properties.
14337
+ * @function create
14338
+ * @memberof google.api.JavaSettings
14339
+ * @static
14340
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
14341
+ * @returns {google.api.JavaSettings} JavaSettings instance
14342
+ */
14343
+ JavaSettings.create = function create(properties) {
14344
+ return new JavaSettings(properties);
14345
+ };
14346
+
14347
+ /**
14348
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
14349
+ * @function encode
14350
+ * @memberof google.api.JavaSettings
14351
+ * @static
14352
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
14353
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14354
+ * @returns {$protobuf.Writer} Writer
14355
+ */
14356
+ JavaSettings.encode = function encode(message, writer) {
14357
+ if (!writer)
14358
+ writer = $Writer.create();
14359
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
14360
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
14361
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
14362
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
14363
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim();
14364
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14365
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
14366
+ return writer;
14367
+ };
14368
+
14369
+ /**
14370
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
14371
+ * @function encodeDelimited
14372
+ * @memberof google.api.JavaSettings
14373
+ * @static
14374
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
14375
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14376
+ * @returns {$protobuf.Writer} Writer
14377
+ */
14378
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
14379
+ return this.encode(message, writer).ldelim();
14380
+ };
14381
+
14382
+ /**
14383
+ * Decodes a JavaSettings message from the specified reader or buffer.
14384
+ * @function decode
14385
+ * @memberof google.api.JavaSettings
14386
+ * @static
14387
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14388
+ * @param {number} [length] Message length if known beforehand
14389
+ * @returns {google.api.JavaSettings} JavaSettings
14390
+ * @throws {Error} If the payload is not a reader or valid buffer
14391
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14392
+ */
14393
+ JavaSettings.decode = function decode(reader, length) {
14394
+ if (!(reader instanceof $Reader))
14395
+ reader = $Reader.create(reader);
14396
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
14397
+ while (reader.pos < end) {
14398
+ var tag = reader.uint32();
14399
+ switch (tag >>> 3) {
14400
+ case 1: {
14401
+ message.libraryPackage = reader.string();
14402
+ break;
14403
+ }
14404
+ case 2: {
14405
+ if (message.serviceClassNames === $util.emptyObject)
14406
+ message.serviceClassNames = {};
14407
+ var end2 = reader.uint32() + reader.pos;
14408
+ key = "";
14409
+ value = "";
14410
+ while (reader.pos < end2) {
14411
+ var tag2 = reader.uint32();
14412
+ switch (tag2 >>> 3) {
14413
+ case 1:
14414
+ key = reader.string();
14415
+ break;
14416
+ case 2:
14417
+ value = reader.string();
14418
+ break;
14419
+ default:
14420
+ reader.skipType(tag2 & 7);
14421
+ break;
14422
+ }
14423
+ }
14424
+ message.serviceClassNames[key] = value;
14425
+ break;
14426
+ }
14427
+ case 3: {
14428
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14429
+ break;
14430
+ }
14431
+ default:
14432
+ reader.skipType(tag & 7);
14433
+ break;
14434
+ }
14435
+ }
14436
+ return message;
14437
+ };
14438
+
14439
+ /**
14440
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
14441
+ * @function decodeDelimited
14442
+ * @memberof google.api.JavaSettings
14443
+ * @static
14444
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14445
+ * @returns {google.api.JavaSettings} JavaSettings
14446
+ * @throws {Error} If the payload is not a reader or valid buffer
14447
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14448
+ */
14449
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
14450
+ if (!(reader instanceof $Reader))
14451
+ reader = new $Reader(reader);
14452
+ return this.decode(reader, reader.uint32());
14453
+ };
14454
+
14455
+ /**
14456
+ * Verifies a JavaSettings message.
14457
+ * @function verify
14458
+ * @memberof google.api.JavaSettings
14459
+ * @static
14460
+ * @param {Object.<string,*>} message Plain object to verify
14461
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14462
+ */
14463
+ JavaSettings.verify = function verify(message) {
14464
+ if (typeof message !== "object" || message === null)
14465
+ return "object expected";
14466
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
14467
+ if (!$util.isString(message.libraryPackage))
14468
+ return "libraryPackage: string expected";
14469
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
14470
+ if (!$util.isObject(message.serviceClassNames))
14471
+ return "serviceClassNames: object expected";
14472
+ var key = Object.keys(message.serviceClassNames);
14473
+ for (var i = 0; i < key.length; ++i)
14474
+ if (!$util.isString(message.serviceClassNames[key[i]]))
14475
+ return "serviceClassNames: string{k:string} expected";
14476
+ }
14477
+ if (message.common != null && message.hasOwnProperty("common")) {
14478
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14479
+ if (error)
14480
+ return "common." + error;
14481
+ }
14482
+ return null;
14483
+ };
14484
+
14485
+ /**
14486
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
14487
+ * @function fromObject
14488
+ * @memberof google.api.JavaSettings
14489
+ * @static
14490
+ * @param {Object.<string,*>} object Plain object
14491
+ * @returns {google.api.JavaSettings} JavaSettings
14492
+ */
14493
+ JavaSettings.fromObject = function fromObject(object) {
14494
+ if (object instanceof $root.google.api.JavaSettings)
14495
+ return object;
14496
+ var message = new $root.google.api.JavaSettings();
14497
+ if (object.libraryPackage != null)
14498
+ message.libraryPackage = String(object.libraryPackage);
14499
+ if (object.serviceClassNames) {
14500
+ if (typeof object.serviceClassNames !== "object")
14501
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
14502
+ message.serviceClassNames = {};
14503
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
14504
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
14505
+ }
14506
+ if (object.common != null) {
14507
+ if (typeof object.common !== "object")
14508
+ throw TypeError(".google.api.JavaSettings.common: object expected");
14509
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14510
+ }
14511
+ return message;
14512
+ };
14513
+
14514
+ /**
14515
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
14516
+ * @function toObject
14517
+ * @memberof google.api.JavaSettings
14518
+ * @static
14519
+ * @param {google.api.JavaSettings} message JavaSettings
14520
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14521
+ * @returns {Object.<string,*>} Plain object
14522
+ */
14523
+ JavaSettings.toObject = function toObject(message, options) {
14524
+ if (!options)
14525
+ options = {};
14526
+ var object = {};
14527
+ if (options.objects || options.defaults)
14528
+ object.serviceClassNames = {};
14529
+ if (options.defaults) {
14530
+ object.libraryPackage = "";
14531
+ object.common = null;
14532
+ }
14533
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
14534
+ object.libraryPackage = message.libraryPackage;
14535
+ var keys2;
14536
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
14537
+ object.serviceClassNames = {};
14538
+ for (var j = 0; j < keys2.length; ++j)
14539
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
14540
+ }
14541
+ if (message.common != null && message.hasOwnProperty("common"))
14542
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14543
+ return object;
14544
+ };
14545
+
14546
+ /**
14547
+ * Converts this JavaSettings to JSON.
14548
+ * @function toJSON
14549
+ * @memberof google.api.JavaSettings
14550
+ * @instance
14551
+ * @returns {Object.<string,*>} JSON object
14552
+ */
14553
+ JavaSettings.prototype.toJSON = function toJSON() {
14554
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14555
+ };
14556
+
14557
+ /**
14558
+ * Gets the default type url for JavaSettings
14559
+ * @function getTypeUrl
14560
+ * @memberof google.api.JavaSettings
14561
+ * @static
14562
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14563
+ * @returns {string} The default type url
14564
+ */
14565
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14566
+ if (typeUrlPrefix === undefined) {
14567
+ typeUrlPrefix = "type.googleapis.com";
14568
+ }
14569
+ return typeUrlPrefix + "/google.api.JavaSettings";
14570
+ };
14571
+
14572
+ return JavaSettings;
14573
+ })();
14574
+
14575
+ api.CppSettings = (function() {
14576
+
14577
+ /**
14578
+ * Properties of a CppSettings.
14579
+ * @memberof google.api
14580
+ * @interface ICppSettings
14581
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
14582
+ */
14583
+
14584
+ /**
14585
+ * Constructs a new CppSettings.
14586
+ * @memberof google.api
14587
+ * @classdesc Represents a CppSettings.
14588
+ * @implements ICppSettings
14589
+ * @constructor
14590
+ * @param {google.api.ICppSettings=} [properties] Properties to set
14591
+ */
14592
+ function CppSettings(properties) {
14593
+ if (properties)
14594
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14595
+ if (properties[keys[i]] != null)
14596
+ this[keys[i]] = properties[keys[i]];
14597
+ }
14598
+
14599
+ /**
14600
+ * CppSettings common.
14601
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14602
+ * @memberof google.api.CppSettings
14603
+ * @instance
14604
+ */
14605
+ CppSettings.prototype.common = null;
14606
+
14607
+ /**
14608
+ * Creates a new CppSettings instance using the specified properties.
14609
+ * @function create
14610
+ * @memberof google.api.CppSettings
14611
+ * @static
14612
+ * @param {google.api.ICppSettings=} [properties] Properties to set
14613
+ * @returns {google.api.CppSettings} CppSettings instance
14614
+ */
14615
+ CppSettings.create = function create(properties) {
14616
+ return new CppSettings(properties);
14617
+ };
14618
+
14619
+ /**
14620
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
14621
+ * @function encode
14622
+ * @memberof google.api.CppSettings
14623
+ * @static
14624
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
14625
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14626
+ * @returns {$protobuf.Writer} Writer
14627
+ */
14628
+ CppSettings.encode = function encode(message, writer) {
14629
+ if (!writer)
14630
+ writer = $Writer.create();
14631
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14632
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14633
+ return writer;
14634
+ };
14635
+
14636
+ /**
14637
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
14638
+ * @function encodeDelimited
14639
+ * @memberof google.api.CppSettings
14640
+ * @static
14641
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
14642
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14643
+ * @returns {$protobuf.Writer} Writer
14644
+ */
14645
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
14646
+ return this.encode(message, writer).ldelim();
14647
+ };
14648
+
14649
+ /**
14650
+ * Decodes a CppSettings message from the specified reader or buffer.
14651
+ * @function decode
14652
+ * @memberof google.api.CppSettings
14653
+ * @static
14654
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14655
+ * @param {number} [length] Message length if known beforehand
14656
+ * @returns {google.api.CppSettings} CppSettings
14657
+ * @throws {Error} If the payload is not a reader or valid buffer
14658
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14659
+ */
14660
+ CppSettings.decode = function decode(reader, length) {
14661
+ if (!(reader instanceof $Reader))
14662
+ reader = $Reader.create(reader);
14663
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
14664
+ while (reader.pos < end) {
14665
+ var tag = reader.uint32();
14666
+ switch (tag >>> 3) {
14667
+ case 1: {
14668
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14669
+ break;
14670
+ }
14671
+ default:
14672
+ reader.skipType(tag & 7);
14673
+ break;
14674
+ }
14675
+ }
14676
+ return message;
14677
+ };
14678
+
14679
+ /**
14680
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
14681
+ * @function decodeDelimited
14682
+ * @memberof google.api.CppSettings
14683
+ * @static
14684
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14685
+ * @returns {google.api.CppSettings} CppSettings
14686
+ * @throws {Error} If the payload is not a reader or valid buffer
14687
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14688
+ */
14689
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
14690
+ if (!(reader instanceof $Reader))
14691
+ reader = new $Reader(reader);
14692
+ return this.decode(reader, reader.uint32());
14693
+ };
14694
+
14695
+ /**
14696
+ * Verifies a CppSettings message.
14697
+ * @function verify
14698
+ * @memberof google.api.CppSettings
14699
+ * @static
14700
+ * @param {Object.<string,*>} message Plain object to verify
14701
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14702
+ */
14703
+ CppSettings.verify = function verify(message) {
14704
+ if (typeof message !== "object" || message === null)
14705
+ return "object expected";
14706
+ if (message.common != null && message.hasOwnProperty("common")) {
14707
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14708
+ if (error)
14709
+ return "common." + error;
14710
+ }
14711
+ return null;
14712
+ };
14713
+
14714
+ /**
14715
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
14716
+ * @function fromObject
14717
+ * @memberof google.api.CppSettings
14718
+ * @static
14719
+ * @param {Object.<string,*>} object Plain object
14720
+ * @returns {google.api.CppSettings} CppSettings
14721
+ */
14722
+ CppSettings.fromObject = function fromObject(object) {
14723
+ if (object instanceof $root.google.api.CppSettings)
14724
+ return object;
14725
+ var message = new $root.google.api.CppSettings();
14726
+ if (object.common != null) {
14727
+ if (typeof object.common !== "object")
14728
+ throw TypeError(".google.api.CppSettings.common: object expected");
14729
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14730
+ }
14731
+ return message;
14732
+ };
14733
+
14734
+ /**
14735
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
14736
+ * @function toObject
14737
+ * @memberof google.api.CppSettings
14738
+ * @static
14739
+ * @param {google.api.CppSettings} message CppSettings
14740
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14741
+ * @returns {Object.<string,*>} Plain object
14742
+ */
14743
+ CppSettings.toObject = function toObject(message, options) {
14744
+ if (!options)
14745
+ options = {};
14746
+ var object = {};
14747
+ if (options.defaults)
14748
+ object.common = null;
14749
+ if (message.common != null && message.hasOwnProperty("common"))
14750
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14751
+ return object;
14752
+ };
14753
+
14754
+ /**
14755
+ * Converts this CppSettings to JSON.
14756
+ * @function toJSON
14757
+ * @memberof google.api.CppSettings
14758
+ * @instance
14759
+ * @returns {Object.<string,*>} JSON object
14760
+ */
14761
+ CppSettings.prototype.toJSON = function toJSON() {
14762
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14763
+ };
14764
+
14765
+ /**
14766
+ * Gets the default type url for CppSettings
14767
+ * @function getTypeUrl
14768
+ * @memberof google.api.CppSettings
14769
+ * @static
14770
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14771
+ * @returns {string} The default type url
14772
+ */
14773
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14774
+ if (typeUrlPrefix === undefined) {
14775
+ typeUrlPrefix = "type.googleapis.com";
14776
+ }
14777
+ return typeUrlPrefix + "/google.api.CppSettings";
14778
+ };
14779
+
14780
+ return CppSettings;
14781
+ })();
14782
+
14783
+ api.PhpSettings = (function() {
14784
+
14785
+ /**
14786
+ * Properties of a PhpSettings.
14787
+ * @memberof google.api
14788
+ * @interface IPhpSettings
14789
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
14790
+ */
14791
+
14792
+ /**
14793
+ * Constructs a new PhpSettings.
14794
+ * @memberof google.api
14795
+ * @classdesc Represents a PhpSettings.
14796
+ * @implements IPhpSettings
14797
+ * @constructor
14798
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
14799
+ */
14800
+ function PhpSettings(properties) {
14801
+ if (properties)
14802
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14803
+ if (properties[keys[i]] != null)
14804
+ this[keys[i]] = properties[keys[i]];
14805
+ }
14806
+
14807
+ /**
14808
+ * PhpSettings common.
14809
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14810
+ * @memberof google.api.PhpSettings
14811
+ * @instance
14812
+ */
14813
+ PhpSettings.prototype.common = null;
14814
+
14815
+ /**
14816
+ * Creates a new PhpSettings instance using the specified properties.
14817
+ * @function create
14818
+ * @memberof google.api.PhpSettings
14819
+ * @static
14820
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
14821
+ * @returns {google.api.PhpSettings} PhpSettings instance
14822
+ */
14823
+ PhpSettings.create = function create(properties) {
14824
+ return new PhpSettings(properties);
14825
+ };
14826
+
14827
+ /**
14828
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
14829
+ * @function encode
14830
+ * @memberof google.api.PhpSettings
14831
+ * @static
14832
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
14833
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14834
+ * @returns {$protobuf.Writer} Writer
14835
+ */
14836
+ PhpSettings.encode = function encode(message, writer) {
14837
+ if (!writer)
14838
+ writer = $Writer.create();
14839
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14840
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14841
+ return writer;
14842
+ };
14843
+
14844
+ /**
14845
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
14846
+ * @function encodeDelimited
14847
+ * @memberof google.api.PhpSettings
14848
+ * @static
14849
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
14850
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14851
+ * @returns {$protobuf.Writer} Writer
14852
+ */
14853
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
14854
+ return this.encode(message, writer).ldelim();
14855
+ };
14856
+
14857
+ /**
14858
+ * Decodes a PhpSettings message from the specified reader or buffer.
14859
+ * @function decode
14860
+ * @memberof google.api.PhpSettings
14861
+ * @static
14862
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14863
+ * @param {number} [length] Message length if known beforehand
14864
+ * @returns {google.api.PhpSettings} PhpSettings
14865
+ * @throws {Error} If the payload is not a reader or valid buffer
14866
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14867
+ */
14868
+ PhpSettings.decode = function decode(reader, length) {
14869
+ if (!(reader instanceof $Reader))
14870
+ reader = $Reader.create(reader);
14871
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
14872
+ while (reader.pos < end) {
14873
+ var tag = reader.uint32();
14874
+ switch (tag >>> 3) {
14875
+ case 1: {
14876
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14877
+ break;
14878
+ }
14879
+ default:
14880
+ reader.skipType(tag & 7);
14881
+ break;
14882
+ }
14883
+ }
14884
+ return message;
14885
+ };
14886
+
14887
+ /**
14888
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
14889
+ * @function decodeDelimited
14890
+ * @memberof google.api.PhpSettings
14891
+ * @static
14892
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14893
+ * @returns {google.api.PhpSettings} PhpSettings
14894
+ * @throws {Error} If the payload is not a reader or valid buffer
14895
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14896
+ */
14897
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
14898
+ if (!(reader instanceof $Reader))
14899
+ reader = new $Reader(reader);
14900
+ return this.decode(reader, reader.uint32());
14901
+ };
14902
+
14903
+ /**
14904
+ * Verifies a PhpSettings message.
14905
+ * @function verify
14906
+ * @memberof google.api.PhpSettings
14907
+ * @static
14908
+ * @param {Object.<string,*>} message Plain object to verify
14909
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14910
+ */
14911
+ PhpSettings.verify = function verify(message) {
14912
+ if (typeof message !== "object" || message === null)
14913
+ return "object expected";
14914
+ if (message.common != null && message.hasOwnProperty("common")) {
14915
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14916
+ if (error)
14917
+ return "common." + error;
14918
+ }
14919
+ return null;
14920
+ };
14921
+
14922
+ /**
14923
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
14924
+ * @function fromObject
14925
+ * @memberof google.api.PhpSettings
14926
+ * @static
14927
+ * @param {Object.<string,*>} object Plain object
14928
+ * @returns {google.api.PhpSettings} PhpSettings
14929
+ */
14930
+ PhpSettings.fromObject = function fromObject(object) {
14931
+ if (object instanceof $root.google.api.PhpSettings)
14932
+ return object;
14933
+ var message = new $root.google.api.PhpSettings();
14934
+ if (object.common != null) {
14935
+ if (typeof object.common !== "object")
14936
+ throw TypeError(".google.api.PhpSettings.common: object expected");
14937
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14938
+ }
14939
+ return message;
14940
+ };
14941
+
14942
+ /**
14943
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
14944
+ * @function toObject
14945
+ * @memberof google.api.PhpSettings
14946
+ * @static
14947
+ * @param {google.api.PhpSettings} message PhpSettings
14948
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14949
+ * @returns {Object.<string,*>} Plain object
14950
+ */
14951
+ PhpSettings.toObject = function toObject(message, options) {
14952
+ if (!options)
14953
+ options = {};
14954
+ var object = {};
14955
+ if (options.defaults)
14956
+ object.common = null;
14957
+ if (message.common != null && message.hasOwnProperty("common"))
14958
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14959
+ return object;
14960
+ };
14961
+
14962
+ /**
14963
+ * Converts this PhpSettings to JSON.
14964
+ * @function toJSON
14965
+ * @memberof google.api.PhpSettings
14966
+ * @instance
14967
+ * @returns {Object.<string,*>} JSON object
14968
+ */
14969
+ PhpSettings.prototype.toJSON = function toJSON() {
14970
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14971
+ };
14972
+
14973
+ /**
14974
+ * Gets the default type url for PhpSettings
14975
+ * @function getTypeUrl
14976
+ * @memberof google.api.PhpSettings
14977
+ * @static
14978
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14979
+ * @returns {string} The default type url
14980
+ */
14981
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14982
+ if (typeUrlPrefix === undefined) {
14983
+ typeUrlPrefix = "type.googleapis.com";
14984
+ }
14985
+ return typeUrlPrefix + "/google.api.PhpSettings";
14986
+ };
14987
+
14988
+ return PhpSettings;
14989
+ })();
14990
+
14991
+ api.PythonSettings = (function() {
14992
+
14993
+ /**
14994
+ * Properties of a PythonSettings.
14995
+ * @memberof google.api
14996
+ * @interface IPythonSettings
14997
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
14998
+ */
14999
+
15000
+ /**
15001
+ * Constructs a new PythonSettings.
15002
+ * @memberof google.api
15003
+ * @classdesc Represents a PythonSettings.
15004
+ * @implements IPythonSettings
15005
+ * @constructor
15006
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
15007
+ */
15008
+ function PythonSettings(properties) {
15009
+ if (properties)
15010
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15011
+ if (properties[keys[i]] != null)
15012
+ this[keys[i]] = properties[keys[i]];
15013
+ }
15014
+
15015
+ /**
15016
+ * PythonSettings common.
15017
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
15018
+ * @memberof google.api.PythonSettings
15019
+ * @instance
15020
+ */
15021
+ PythonSettings.prototype.common = null;
15022
+
15023
+ /**
15024
+ * Creates a new PythonSettings instance using the specified properties.
15025
+ * @function create
15026
+ * @memberof google.api.PythonSettings
15027
+ * @static
15028
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
15029
+ * @returns {google.api.PythonSettings} PythonSettings instance
15030
+ */
15031
+ PythonSettings.create = function create(properties) {
15032
+ return new PythonSettings(properties);
15033
+ };
15034
+
15035
+ /**
15036
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
15037
+ * @function encode
15038
+ * @memberof google.api.PythonSettings
15039
+ * @static
15040
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
15041
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15042
+ * @returns {$protobuf.Writer} Writer
15043
+ */
15044
+ PythonSettings.encode = function encode(message, writer) {
15045
+ if (!writer)
15046
+ writer = $Writer.create();
15047
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15048
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15049
+ return writer;
15050
+ };
15051
+
15052
+ /**
15053
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
15054
+ * @function encodeDelimited
15055
+ * @memberof google.api.PythonSettings
15056
+ * @static
15057
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
15058
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15059
+ * @returns {$protobuf.Writer} Writer
15060
+ */
15061
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
15062
+ return this.encode(message, writer).ldelim();
15063
+ };
15064
+
15065
+ /**
15066
+ * Decodes a PythonSettings message from the specified reader or buffer.
15067
+ * @function decode
15068
+ * @memberof google.api.PythonSettings
15069
+ * @static
15070
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15071
+ * @param {number} [length] Message length if known beforehand
15072
+ * @returns {google.api.PythonSettings} PythonSettings
15073
+ * @throws {Error} If the payload is not a reader or valid buffer
15074
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15075
+ */
15076
+ PythonSettings.decode = function decode(reader, length) {
15077
+ if (!(reader instanceof $Reader))
15078
+ reader = $Reader.create(reader);
15079
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
15080
+ while (reader.pos < end) {
15081
+ var tag = reader.uint32();
15082
+ switch (tag >>> 3) {
15083
+ case 1: {
15084
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15085
+ break;
15086
+ }
15087
+ default:
15088
+ reader.skipType(tag & 7);
15089
+ break;
15090
+ }
15091
+ }
15092
+ return message;
15093
+ };
15094
+
15095
+ /**
15096
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
15097
+ * @function decodeDelimited
15098
+ * @memberof google.api.PythonSettings
15099
+ * @static
15100
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15101
+ * @returns {google.api.PythonSettings} PythonSettings
15102
+ * @throws {Error} If the payload is not a reader or valid buffer
15103
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15104
+ */
15105
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
15106
+ if (!(reader instanceof $Reader))
15107
+ reader = new $Reader(reader);
15108
+ return this.decode(reader, reader.uint32());
15109
+ };
15110
+
15111
+ /**
15112
+ * Verifies a PythonSettings message.
15113
+ * @function verify
15114
+ * @memberof google.api.PythonSettings
15115
+ * @static
15116
+ * @param {Object.<string,*>} message Plain object to verify
15117
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15118
+ */
15119
+ PythonSettings.verify = function verify(message) {
15120
+ if (typeof message !== "object" || message === null)
15121
+ return "object expected";
15122
+ if (message.common != null && message.hasOwnProperty("common")) {
15123
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
15124
+ if (error)
15125
+ return "common." + error;
15126
+ }
15127
+ return null;
15128
+ };
15129
+
15130
+ /**
15131
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
15132
+ * @function fromObject
15133
+ * @memberof google.api.PythonSettings
15134
+ * @static
15135
+ * @param {Object.<string,*>} object Plain object
15136
+ * @returns {google.api.PythonSettings} PythonSettings
15137
+ */
15138
+ PythonSettings.fromObject = function fromObject(object) {
15139
+ if (object instanceof $root.google.api.PythonSettings)
15140
+ return object;
15141
+ var message = new $root.google.api.PythonSettings();
15142
+ if (object.common != null) {
15143
+ if (typeof object.common !== "object")
15144
+ throw TypeError(".google.api.PythonSettings.common: object expected");
15145
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15146
+ }
15147
+ return message;
15148
+ };
15149
+
15150
+ /**
15151
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
15152
+ * @function toObject
15153
+ * @memberof google.api.PythonSettings
15154
+ * @static
15155
+ * @param {google.api.PythonSettings} message PythonSettings
15156
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15157
+ * @returns {Object.<string,*>} Plain object
15158
+ */
15159
+ PythonSettings.toObject = function toObject(message, options) {
15160
+ if (!options)
15161
+ options = {};
15162
+ var object = {};
15163
+ if (options.defaults)
15164
+ object.common = null;
15165
+ if (message.common != null && message.hasOwnProperty("common"))
15166
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15167
+ return object;
15168
+ };
15169
+
15170
+ /**
15171
+ * Converts this PythonSettings to JSON.
15172
+ * @function toJSON
15173
+ * @memberof google.api.PythonSettings
15174
+ * @instance
15175
+ * @returns {Object.<string,*>} JSON object
15176
+ */
15177
+ PythonSettings.prototype.toJSON = function toJSON() {
15178
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15179
+ };
15180
+
15181
+ /**
15182
+ * Gets the default type url for PythonSettings
15183
+ * @function getTypeUrl
15184
+ * @memberof google.api.PythonSettings
15185
+ * @static
15186
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15187
+ * @returns {string} The default type url
15188
+ */
15189
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15190
+ if (typeUrlPrefix === undefined) {
15191
+ typeUrlPrefix = "type.googleapis.com";
15192
+ }
15193
+ return typeUrlPrefix + "/google.api.PythonSettings";
15194
+ };
15195
+
15196
+ return PythonSettings;
15197
+ })();
15198
+
15199
+ api.NodeSettings = (function() {
15200
+
15201
+ /**
15202
+ * Properties of a NodeSettings.
15203
+ * @memberof google.api
15204
+ * @interface INodeSettings
15205
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
15206
+ */
15207
+
15208
+ /**
15209
+ * Constructs a new NodeSettings.
15210
+ * @memberof google.api
15211
+ * @classdesc Represents a NodeSettings.
15212
+ * @implements INodeSettings
15213
+ * @constructor
15214
+ * @param {google.api.INodeSettings=} [properties] Properties to set
15215
+ */
15216
+ function NodeSettings(properties) {
15217
+ if (properties)
15218
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15219
+ if (properties[keys[i]] != null)
15220
+ this[keys[i]] = properties[keys[i]];
15221
+ }
15222
+
15223
+ /**
15224
+ * NodeSettings common.
15225
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
15226
+ * @memberof google.api.NodeSettings
15227
+ * @instance
15228
+ */
15229
+ NodeSettings.prototype.common = null;
15230
+
15231
+ /**
15232
+ * Creates a new NodeSettings instance using the specified properties.
15233
+ * @function create
15234
+ * @memberof google.api.NodeSettings
15235
+ * @static
15236
+ * @param {google.api.INodeSettings=} [properties] Properties to set
15237
+ * @returns {google.api.NodeSettings} NodeSettings instance
15238
+ */
15239
+ NodeSettings.create = function create(properties) {
15240
+ return new NodeSettings(properties);
15241
+ };
15242
+
15243
+ /**
15244
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
15245
+ * @function encode
15246
+ * @memberof google.api.NodeSettings
15247
+ * @static
15248
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
15249
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15250
+ * @returns {$protobuf.Writer} Writer
15251
+ */
15252
+ NodeSettings.encode = function encode(message, writer) {
15253
+ if (!writer)
15254
+ writer = $Writer.create();
15255
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15256
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15257
+ return writer;
15258
+ };
15259
+
15260
+ /**
15261
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
15262
+ * @function encodeDelimited
15263
+ * @memberof google.api.NodeSettings
15264
+ * @static
15265
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
15266
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15267
+ * @returns {$protobuf.Writer} Writer
15268
+ */
15269
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
15270
+ return this.encode(message, writer).ldelim();
15271
+ };
15272
+
15273
+ /**
15274
+ * Decodes a NodeSettings message from the specified reader or buffer.
15275
+ * @function decode
15276
+ * @memberof google.api.NodeSettings
15277
+ * @static
15278
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15279
+ * @param {number} [length] Message length if known beforehand
15280
+ * @returns {google.api.NodeSettings} NodeSettings
15281
+ * @throws {Error} If the payload is not a reader or valid buffer
15282
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15283
+ */
15284
+ NodeSettings.decode = function decode(reader, length) {
15285
+ if (!(reader instanceof $Reader))
15286
+ reader = $Reader.create(reader);
15287
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
15288
+ while (reader.pos < end) {
15289
+ var tag = reader.uint32();
15290
+ switch (tag >>> 3) {
15291
+ case 1: {
15292
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15293
+ break;
15294
+ }
15295
+ default:
15296
+ reader.skipType(tag & 7);
15297
+ break;
15298
+ }
15299
+ }
15300
+ return message;
15301
+ };
15302
+
15303
+ /**
15304
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
15305
+ * @function decodeDelimited
15306
+ * @memberof google.api.NodeSettings
15307
+ * @static
15308
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15309
+ * @returns {google.api.NodeSettings} NodeSettings
15310
+ * @throws {Error} If the payload is not a reader or valid buffer
15311
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15312
+ */
15313
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
15314
+ if (!(reader instanceof $Reader))
15315
+ reader = new $Reader(reader);
15316
+ return this.decode(reader, reader.uint32());
15317
+ };
15318
+
15319
+ /**
15320
+ * Verifies a NodeSettings message.
15321
+ * @function verify
15322
+ * @memberof google.api.NodeSettings
15323
+ * @static
15324
+ * @param {Object.<string,*>} message Plain object to verify
15325
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15326
+ */
15327
+ NodeSettings.verify = function verify(message) {
15328
+ if (typeof message !== "object" || message === null)
15329
+ return "object expected";
15330
+ if (message.common != null && message.hasOwnProperty("common")) {
15331
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
15332
+ if (error)
15333
+ return "common." + error;
15334
+ }
15335
+ return null;
15336
+ };
15337
+
15338
+ /**
15339
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
15340
+ * @function fromObject
15341
+ * @memberof google.api.NodeSettings
15342
+ * @static
15343
+ * @param {Object.<string,*>} object Plain object
15344
+ * @returns {google.api.NodeSettings} NodeSettings
15345
+ */
15346
+ NodeSettings.fromObject = function fromObject(object) {
15347
+ if (object instanceof $root.google.api.NodeSettings)
15348
+ return object;
15349
+ var message = new $root.google.api.NodeSettings();
15350
+ if (object.common != null) {
15351
+ if (typeof object.common !== "object")
15352
+ throw TypeError(".google.api.NodeSettings.common: object expected");
15353
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15354
+ }
15355
+ return message;
15356
+ };
15357
+
15358
+ /**
15359
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
15360
+ * @function toObject
15361
+ * @memberof google.api.NodeSettings
15362
+ * @static
15363
+ * @param {google.api.NodeSettings} message NodeSettings
15364
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15365
+ * @returns {Object.<string,*>} Plain object
15366
+ */
15367
+ NodeSettings.toObject = function toObject(message, options) {
15368
+ if (!options)
15369
+ options = {};
15370
+ var object = {};
15371
+ if (options.defaults)
15372
+ object.common = null;
15373
+ if (message.common != null && message.hasOwnProperty("common"))
15374
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15375
+ return object;
15376
+ };
15377
+
15378
+ /**
15379
+ * Converts this NodeSettings to JSON.
15380
+ * @function toJSON
15381
+ * @memberof google.api.NodeSettings
15382
+ * @instance
15383
+ * @returns {Object.<string,*>} JSON object
15384
+ */
15385
+ NodeSettings.prototype.toJSON = function toJSON() {
15386
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15387
+ };
15388
+
15389
+ /**
15390
+ * Gets the default type url for NodeSettings
15391
+ * @function getTypeUrl
15392
+ * @memberof google.api.NodeSettings
15393
+ * @static
15394
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15395
+ * @returns {string} The default type url
15396
+ */
15397
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15398
+ if (typeUrlPrefix === undefined) {
15399
+ typeUrlPrefix = "type.googleapis.com";
15400
+ }
15401
+ return typeUrlPrefix + "/google.api.NodeSettings";
15402
+ };
15403
+
15404
+ return NodeSettings;
15405
+ })();
15406
+
15407
+ api.DotnetSettings = (function() {
15408
+
15409
+ /**
15410
+ * Properties of a DotnetSettings.
15411
+ * @memberof google.api
15412
+ * @interface IDotnetSettings
15413
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
15414
+ */
15415
+
15416
+ /**
15417
+ * Constructs a new DotnetSettings.
15418
+ * @memberof google.api
15419
+ * @classdesc Represents a DotnetSettings.
15420
+ * @implements IDotnetSettings
15421
+ * @constructor
15422
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
15423
+ */
15424
+ function DotnetSettings(properties) {
15425
+ if (properties)
15426
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15427
+ if (properties[keys[i]] != null)
15428
+ this[keys[i]] = properties[keys[i]];
15429
+ }
15430
+
15431
+ /**
15432
+ * DotnetSettings common.
15433
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
15434
+ * @memberof google.api.DotnetSettings
15435
+ * @instance
15436
+ */
15437
+ DotnetSettings.prototype.common = null;
15438
+
15439
+ /**
15440
+ * Creates a new DotnetSettings instance using the specified properties.
15441
+ * @function create
15442
+ * @memberof google.api.DotnetSettings
15443
+ * @static
15444
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
15445
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
15446
+ */
15447
+ DotnetSettings.create = function create(properties) {
15448
+ return new DotnetSettings(properties);
15449
+ };
15450
+
15451
+ /**
15452
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
15453
+ * @function encode
15454
+ * @memberof google.api.DotnetSettings
15455
+ * @static
15456
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
15457
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15458
+ * @returns {$protobuf.Writer} Writer
15459
+ */
15460
+ DotnetSettings.encode = function encode(message, writer) {
15461
+ if (!writer)
15462
+ writer = $Writer.create();
15463
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15464
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15465
+ return writer;
15466
+ };
15467
+
15468
+ /**
15469
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
15470
+ * @function encodeDelimited
15471
+ * @memberof google.api.DotnetSettings
15472
+ * @static
15473
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
15474
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15475
+ * @returns {$protobuf.Writer} Writer
15476
+ */
15477
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
15478
+ return this.encode(message, writer).ldelim();
15479
+ };
15480
+
15481
+ /**
15482
+ * Decodes a DotnetSettings message from the specified reader or buffer.
15483
+ * @function decode
15484
+ * @memberof google.api.DotnetSettings
15485
+ * @static
15486
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15487
+ * @param {number} [length] Message length if known beforehand
15488
+ * @returns {google.api.DotnetSettings} DotnetSettings
15489
+ * @throws {Error} If the payload is not a reader or valid buffer
15490
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15491
+ */
15492
+ DotnetSettings.decode = function decode(reader, length) {
15493
+ if (!(reader instanceof $Reader))
15494
+ reader = $Reader.create(reader);
15495
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
15496
+ while (reader.pos < end) {
15497
+ var tag = reader.uint32();
15498
+ switch (tag >>> 3) {
15499
+ case 1: {
15500
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15501
+ break;
15502
+ }
15503
+ default:
15504
+ reader.skipType(tag & 7);
15505
+ break;
15506
+ }
15507
+ }
15508
+ return message;
15509
+ };
15510
+
15511
+ /**
15512
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
15513
+ * @function decodeDelimited
15514
+ * @memberof google.api.DotnetSettings
15515
+ * @static
15516
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15517
+ * @returns {google.api.DotnetSettings} DotnetSettings
15518
+ * @throws {Error} If the payload is not a reader or valid buffer
15519
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15520
+ */
15521
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
15522
+ if (!(reader instanceof $Reader))
15523
+ reader = new $Reader(reader);
15524
+ return this.decode(reader, reader.uint32());
15525
+ };
15526
+
15527
+ /**
15528
+ * Verifies a DotnetSettings message.
15529
+ * @function verify
15530
+ * @memberof google.api.DotnetSettings
15531
+ * @static
15532
+ * @param {Object.<string,*>} message Plain object to verify
15533
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15534
+ */
15535
+ DotnetSettings.verify = function verify(message) {
15536
+ if (typeof message !== "object" || message === null)
15537
+ return "object expected";
15538
+ if (message.common != null && message.hasOwnProperty("common")) {
15539
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
15540
+ if (error)
15541
+ return "common." + error;
15542
+ }
15543
+ return null;
15544
+ };
15545
+
15546
+ /**
15547
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
15548
+ * @function fromObject
15549
+ * @memberof google.api.DotnetSettings
15550
+ * @static
15551
+ * @param {Object.<string,*>} object Plain object
15552
+ * @returns {google.api.DotnetSettings} DotnetSettings
15553
+ */
15554
+ DotnetSettings.fromObject = function fromObject(object) {
15555
+ if (object instanceof $root.google.api.DotnetSettings)
15556
+ return object;
15557
+ var message = new $root.google.api.DotnetSettings();
15558
+ if (object.common != null) {
15559
+ if (typeof object.common !== "object")
15560
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
15561
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15562
+ }
15563
+ return message;
15564
+ };
15565
+
15566
+ /**
15567
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
15568
+ * @function toObject
15569
+ * @memberof google.api.DotnetSettings
15570
+ * @static
15571
+ * @param {google.api.DotnetSettings} message DotnetSettings
15572
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15573
+ * @returns {Object.<string,*>} Plain object
15574
+ */
15575
+ DotnetSettings.toObject = function toObject(message, options) {
15576
+ if (!options)
15577
+ options = {};
15578
+ var object = {};
15579
+ if (options.defaults)
15580
+ object.common = null;
15581
+ if (message.common != null && message.hasOwnProperty("common"))
15582
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15583
+ return object;
15584
+ };
15585
+
15586
+ /**
15587
+ * Converts this DotnetSettings to JSON.
15588
+ * @function toJSON
15589
+ * @memberof google.api.DotnetSettings
15590
+ * @instance
15591
+ * @returns {Object.<string,*>} JSON object
15592
+ */
15593
+ DotnetSettings.prototype.toJSON = function toJSON() {
15594
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15595
+ };
15596
+
15597
+ /**
15598
+ * Gets the default type url for DotnetSettings
15599
+ * @function getTypeUrl
15600
+ * @memberof google.api.DotnetSettings
15601
+ * @static
15602
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15603
+ * @returns {string} The default type url
15604
+ */
15605
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15606
+ if (typeUrlPrefix === undefined) {
15607
+ typeUrlPrefix = "type.googleapis.com";
15608
+ }
15609
+ return typeUrlPrefix + "/google.api.DotnetSettings";
15610
+ };
15611
+
15612
+ return DotnetSettings;
15613
+ })();
15614
+
15615
+ api.RubySettings = (function() {
15616
+
15617
+ /**
15618
+ * Properties of a RubySettings.
15619
+ * @memberof google.api
15620
+ * @interface IRubySettings
15621
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
15622
+ */
15623
+
15624
+ /**
15625
+ * Constructs a new RubySettings.
15626
+ * @memberof google.api
15627
+ * @classdesc Represents a RubySettings.
15628
+ * @implements IRubySettings
15629
+ * @constructor
15630
+ * @param {google.api.IRubySettings=} [properties] Properties to set
15631
+ */
15632
+ function RubySettings(properties) {
15633
+ if (properties)
15634
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15635
+ if (properties[keys[i]] != null)
15636
+ this[keys[i]] = properties[keys[i]];
15637
+ }
15638
+
15639
+ /**
15640
+ * RubySettings common.
15641
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
15642
+ * @memberof google.api.RubySettings
15643
+ * @instance
15644
+ */
15645
+ RubySettings.prototype.common = null;
15646
+
15647
+ /**
15648
+ * Creates a new RubySettings instance using the specified properties.
15649
+ * @function create
15650
+ * @memberof google.api.RubySettings
15651
+ * @static
15652
+ * @param {google.api.IRubySettings=} [properties] Properties to set
15653
+ * @returns {google.api.RubySettings} RubySettings instance
15654
+ */
15655
+ RubySettings.create = function create(properties) {
15656
+ return new RubySettings(properties);
15657
+ };
15658
+
15659
+ /**
15660
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
15661
+ * @function encode
15662
+ * @memberof google.api.RubySettings
15663
+ * @static
15664
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
15665
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15666
+ * @returns {$protobuf.Writer} Writer
15667
+ */
15668
+ RubySettings.encode = function encode(message, writer) {
15669
+ if (!writer)
15670
+ writer = $Writer.create();
15671
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15672
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15673
+ return writer;
15674
+ };
15675
+
15676
+ /**
15677
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
15678
+ * @function encodeDelimited
15679
+ * @memberof google.api.RubySettings
15680
+ * @static
15681
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
15682
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15683
+ * @returns {$protobuf.Writer} Writer
15684
+ */
15685
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
15686
+ return this.encode(message, writer).ldelim();
15687
+ };
15688
+
15689
+ /**
15690
+ * Decodes a RubySettings message from the specified reader or buffer.
15691
+ * @function decode
15692
+ * @memberof google.api.RubySettings
15693
+ * @static
15694
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15695
+ * @param {number} [length] Message length if known beforehand
15696
+ * @returns {google.api.RubySettings} RubySettings
15697
+ * @throws {Error} If the payload is not a reader or valid buffer
15698
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15699
+ */
15700
+ RubySettings.decode = function decode(reader, length) {
15701
+ if (!(reader instanceof $Reader))
15702
+ reader = $Reader.create(reader);
15703
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
15704
+ while (reader.pos < end) {
15705
+ var tag = reader.uint32();
15706
+ switch (tag >>> 3) {
15707
+ case 1: {
15708
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15709
+ break;
15710
+ }
15711
+ default:
15712
+ reader.skipType(tag & 7);
15713
+ break;
15714
+ }
15715
+ }
15716
+ return message;
15717
+ };
15718
+
15719
+ /**
15720
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
15721
+ * @function decodeDelimited
15722
+ * @memberof google.api.RubySettings
15723
+ * @static
15724
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15725
+ * @returns {google.api.RubySettings} RubySettings
15726
+ * @throws {Error} If the payload is not a reader or valid buffer
15727
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15728
+ */
15729
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
15730
+ if (!(reader instanceof $Reader))
15731
+ reader = new $Reader(reader);
15732
+ return this.decode(reader, reader.uint32());
15733
+ };
15734
+
15735
+ /**
15736
+ * Verifies a RubySettings message.
15737
+ * @function verify
15738
+ * @memberof google.api.RubySettings
15739
+ * @static
15740
+ * @param {Object.<string,*>} message Plain object to verify
15741
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15742
+ */
15743
+ RubySettings.verify = function verify(message) {
15744
+ if (typeof message !== "object" || message === null)
15745
+ return "object expected";
15746
+ if (message.common != null && message.hasOwnProperty("common")) {
15747
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
15748
+ if (error)
15749
+ return "common." + error;
15750
+ }
15751
+ return null;
15752
+ };
15753
+
15754
+ /**
15755
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
15756
+ * @function fromObject
15757
+ * @memberof google.api.RubySettings
15758
+ * @static
15759
+ * @param {Object.<string,*>} object Plain object
15760
+ * @returns {google.api.RubySettings} RubySettings
15761
+ */
15762
+ RubySettings.fromObject = function fromObject(object) {
15763
+ if (object instanceof $root.google.api.RubySettings)
15764
+ return object;
15765
+ var message = new $root.google.api.RubySettings();
15766
+ if (object.common != null) {
15767
+ if (typeof object.common !== "object")
15768
+ throw TypeError(".google.api.RubySettings.common: object expected");
15769
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15770
+ }
15771
+ return message;
15772
+ };
15773
+
15774
+ /**
15775
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
15776
+ * @function toObject
15777
+ * @memberof google.api.RubySettings
15778
+ * @static
15779
+ * @param {google.api.RubySettings} message RubySettings
15780
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15781
+ * @returns {Object.<string,*>} Plain object
15782
+ */
15783
+ RubySettings.toObject = function toObject(message, options) {
15784
+ if (!options)
15785
+ options = {};
15786
+ var object = {};
15787
+ if (options.defaults)
15788
+ object.common = null;
15789
+ if (message.common != null && message.hasOwnProperty("common"))
15790
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15791
+ return object;
15792
+ };
15793
+
15794
+ /**
15795
+ * Converts this RubySettings to JSON.
15796
+ * @function toJSON
15797
+ * @memberof google.api.RubySettings
15798
+ * @instance
15799
+ * @returns {Object.<string,*>} JSON object
15800
+ */
15801
+ RubySettings.prototype.toJSON = function toJSON() {
15802
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15803
+ };
15804
+
15805
+ /**
15806
+ * Gets the default type url for RubySettings
15807
+ * @function getTypeUrl
15808
+ * @memberof google.api.RubySettings
15809
+ * @static
15810
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15811
+ * @returns {string} The default type url
15812
+ */
15813
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15814
+ if (typeUrlPrefix === undefined) {
15815
+ typeUrlPrefix = "type.googleapis.com";
15816
+ }
15817
+ return typeUrlPrefix + "/google.api.RubySettings";
15818
+ };
15819
+
15820
+ return RubySettings;
15821
+ })();
15822
+
15823
+ api.GoSettings = (function() {
15824
+
15825
+ /**
15826
+ * Properties of a GoSettings.
15827
+ * @memberof google.api
15828
+ * @interface IGoSettings
15829
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
15830
+ */
15831
+
15832
+ /**
15833
+ * Constructs a new GoSettings.
15834
+ * @memberof google.api
15835
+ * @classdesc Represents a GoSettings.
15836
+ * @implements IGoSettings
15837
+ * @constructor
15838
+ * @param {google.api.IGoSettings=} [properties] Properties to set
15839
+ */
15840
+ function GoSettings(properties) {
15841
+ if (properties)
15842
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15843
+ if (properties[keys[i]] != null)
15844
+ this[keys[i]] = properties[keys[i]];
15845
+ }
15846
+
15847
+ /**
15848
+ * GoSettings common.
15849
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
15850
+ * @memberof google.api.GoSettings
15851
+ * @instance
15852
+ */
15853
+ GoSettings.prototype.common = null;
15854
+
15855
+ /**
15856
+ * Creates a new GoSettings instance using the specified properties.
15857
+ * @function create
15858
+ * @memberof google.api.GoSettings
15859
+ * @static
15860
+ * @param {google.api.IGoSettings=} [properties] Properties to set
15861
+ * @returns {google.api.GoSettings} GoSettings instance
15862
+ */
15863
+ GoSettings.create = function create(properties) {
15864
+ return new GoSettings(properties);
15865
+ };
15866
+
15867
+ /**
15868
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
15869
+ * @function encode
15870
+ * @memberof google.api.GoSettings
15871
+ * @static
15872
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
15873
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15874
+ * @returns {$protobuf.Writer} Writer
15875
+ */
15876
+ GoSettings.encode = function encode(message, writer) {
15877
+ if (!writer)
15878
+ writer = $Writer.create();
15879
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15880
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15881
+ return writer;
15882
+ };
15883
+
15884
+ /**
15885
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
15886
+ * @function encodeDelimited
15887
+ * @memberof google.api.GoSettings
15888
+ * @static
15889
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
15890
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15891
+ * @returns {$protobuf.Writer} Writer
15892
+ */
15893
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
15894
+ return this.encode(message, writer).ldelim();
15895
+ };
15896
+
15897
+ /**
15898
+ * Decodes a GoSettings message from the specified reader or buffer.
15899
+ * @function decode
15900
+ * @memberof google.api.GoSettings
15901
+ * @static
15902
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15903
+ * @param {number} [length] Message length if known beforehand
15904
+ * @returns {google.api.GoSettings} GoSettings
15905
+ * @throws {Error} If the payload is not a reader or valid buffer
15906
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15907
+ */
15908
+ GoSettings.decode = function decode(reader, length) {
15909
+ if (!(reader instanceof $Reader))
15910
+ reader = $Reader.create(reader);
15911
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
15912
+ while (reader.pos < end) {
15913
+ var tag = reader.uint32();
15914
+ switch (tag >>> 3) {
15915
+ case 1: {
15916
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15917
+ break;
15918
+ }
15919
+ default:
15920
+ reader.skipType(tag & 7);
15921
+ break;
15922
+ }
15923
+ }
15924
+ return message;
15925
+ };
15926
+
15927
+ /**
15928
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
15929
+ * @function decodeDelimited
15930
+ * @memberof google.api.GoSettings
15931
+ * @static
15932
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15933
+ * @returns {google.api.GoSettings} GoSettings
15934
+ * @throws {Error} If the payload is not a reader or valid buffer
15935
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15936
+ */
15937
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
15938
+ if (!(reader instanceof $Reader))
15939
+ reader = new $Reader(reader);
15940
+ return this.decode(reader, reader.uint32());
15941
+ };
15942
+
15943
+ /**
15944
+ * Verifies a GoSettings message.
15945
+ * @function verify
15946
+ * @memberof google.api.GoSettings
15947
+ * @static
15948
+ * @param {Object.<string,*>} message Plain object to verify
15949
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15950
+ */
15951
+ GoSettings.verify = function verify(message) {
15952
+ if (typeof message !== "object" || message === null)
15953
+ return "object expected";
15954
+ if (message.common != null && message.hasOwnProperty("common")) {
15955
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
15956
+ if (error)
15957
+ return "common." + error;
15958
+ }
15959
+ return null;
15960
+ };
15961
+
15962
+ /**
15963
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
15964
+ * @function fromObject
15965
+ * @memberof google.api.GoSettings
15966
+ * @static
15967
+ * @param {Object.<string,*>} object Plain object
15968
+ * @returns {google.api.GoSettings} GoSettings
15969
+ */
15970
+ GoSettings.fromObject = function fromObject(object) {
15971
+ if (object instanceof $root.google.api.GoSettings)
15972
+ return object;
15973
+ var message = new $root.google.api.GoSettings();
15974
+ if (object.common != null) {
15975
+ if (typeof object.common !== "object")
15976
+ throw TypeError(".google.api.GoSettings.common: object expected");
15977
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15978
+ }
15979
+ return message;
15980
+ };
15981
+
15982
+ /**
15983
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
15984
+ * @function toObject
15985
+ * @memberof google.api.GoSettings
15986
+ * @static
15987
+ * @param {google.api.GoSettings} message GoSettings
15988
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15989
+ * @returns {Object.<string,*>} Plain object
15990
+ */
15991
+ GoSettings.toObject = function toObject(message, options) {
15992
+ if (!options)
15993
+ options = {};
15994
+ var object = {};
15995
+ if (options.defaults)
15996
+ object.common = null;
15997
+ if (message.common != null && message.hasOwnProperty("common"))
15998
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15999
+ return object;
16000
+ };
16001
+
16002
+ /**
16003
+ * Converts this GoSettings to JSON.
16004
+ * @function toJSON
16005
+ * @memberof google.api.GoSettings
16006
+ * @instance
16007
+ * @returns {Object.<string,*>} JSON object
16008
+ */
16009
+ GoSettings.prototype.toJSON = function toJSON() {
16010
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16011
+ };
16012
+
16013
+ /**
16014
+ * Gets the default type url for GoSettings
16015
+ * @function getTypeUrl
16016
+ * @memberof google.api.GoSettings
16017
+ * @static
16018
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16019
+ * @returns {string} The default type url
16020
+ */
16021
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16022
+ if (typeUrlPrefix === undefined) {
16023
+ typeUrlPrefix = "type.googleapis.com";
16024
+ }
16025
+ return typeUrlPrefix + "/google.api.GoSettings";
16026
+ };
16027
+
16028
+ return GoSettings;
16029
+ })();
16030
+
16031
+ api.MethodSettings = (function() {
16032
+
16033
+ /**
16034
+ * Properties of a MethodSettings.
16035
+ * @memberof google.api
16036
+ * @interface IMethodSettings
16037
+ * @property {string|null} [selector] MethodSettings selector
16038
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
16039
+ */
16040
+
16041
+ /**
16042
+ * Constructs a new MethodSettings.
16043
+ * @memberof google.api
16044
+ * @classdesc Represents a MethodSettings.
16045
+ * @implements IMethodSettings
16046
+ * @constructor
16047
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
16048
+ */
16049
+ function MethodSettings(properties) {
16050
+ if (properties)
16051
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16052
+ if (properties[keys[i]] != null)
16053
+ this[keys[i]] = properties[keys[i]];
16054
+ }
16055
+
16056
+ /**
16057
+ * MethodSettings selector.
16058
+ * @member {string} selector
16059
+ * @memberof google.api.MethodSettings
16060
+ * @instance
16061
+ */
16062
+ MethodSettings.prototype.selector = "";
16063
+
16064
+ /**
16065
+ * MethodSettings longRunning.
16066
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
16067
+ * @memberof google.api.MethodSettings
16068
+ * @instance
16069
+ */
16070
+ MethodSettings.prototype.longRunning = null;
16071
+
16072
+ /**
16073
+ * Creates a new MethodSettings instance using the specified properties.
16074
+ * @function create
16075
+ * @memberof google.api.MethodSettings
16076
+ * @static
16077
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
16078
+ * @returns {google.api.MethodSettings} MethodSettings instance
16079
+ */
16080
+ MethodSettings.create = function create(properties) {
16081
+ return new MethodSettings(properties);
16082
+ };
16083
+
16084
+ /**
16085
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
16086
+ * @function encode
16087
+ * @memberof google.api.MethodSettings
16088
+ * @static
16089
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
16090
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16091
+ * @returns {$protobuf.Writer} Writer
16092
+ */
16093
+ MethodSettings.encode = function encode(message, writer) {
16094
+ if (!writer)
16095
+ writer = $Writer.create();
16096
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
16097
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
16098
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
16099
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
16100
+ return writer;
16101
+ };
16102
+
16103
+ /**
16104
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
16105
+ * @function encodeDelimited
16106
+ * @memberof google.api.MethodSettings
16107
+ * @static
16108
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
16109
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16110
+ * @returns {$protobuf.Writer} Writer
16111
+ */
16112
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
16113
+ return this.encode(message, writer).ldelim();
16114
+ };
16115
+
16116
+ /**
16117
+ * Decodes a MethodSettings message from the specified reader or buffer.
16118
+ * @function decode
16119
+ * @memberof google.api.MethodSettings
16120
+ * @static
16121
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16122
+ * @param {number} [length] Message length if known beforehand
16123
+ * @returns {google.api.MethodSettings} MethodSettings
16124
+ * @throws {Error} If the payload is not a reader or valid buffer
16125
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16126
+ */
16127
+ MethodSettings.decode = function decode(reader, length) {
16128
+ if (!(reader instanceof $Reader))
16129
+ reader = $Reader.create(reader);
16130
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
16131
+ while (reader.pos < end) {
16132
+ var tag = reader.uint32();
16133
+ switch (tag >>> 3) {
16134
+ case 1: {
16135
+ message.selector = reader.string();
16136
+ break;
16137
+ }
16138
+ case 2: {
16139
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
16140
+ break;
16141
+ }
16142
+ default:
16143
+ reader.skipType(tag & 7);
16144
+ break;
16145
+ }
16146
+ }
16147
+ return message;
16148
+ };
16149
+
16150
+ /**
16151
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
16152
+ * @function decodeDelimited
16153
+ * @memberof google.api.MethodSettings
16154
+ * @static
16155
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16156
+ * @returns {google.api.MethodSettings} MethodSettings
16157
+ * @throws {Error} If the payload is not a reader or valid buffer
16158
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16159
+ */
16160
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
16161
+ if (!(reader instanceof $Reader))
16162
+ reader = new $Reader(reader);
16163
+ return this.decode(reader, reader.uint32());
16164
+ };
16165
+
16166
+ /**
16167
+ * Verifies a MethodSettings message.
16168
+ * @function verify
16169
+ * @memberof google.api.MethodSettings
16170
+ * @static
16171
+ * @param {Object.<string,*>} message Plain object to verify
16172
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16173
+ */
16174
+ MethodSettings.verify = function verify(message) {
16175
+ if (typeof message !== "object" || message === null)
16176
+ return "object expected";
16177
+ if (message.selector != null && message.hasOwnProperty("selector"))
16178
+ if (!$util.isString(message.selector))
16179
+ return "selector: string expected";
16180
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
16181
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
16182
+ if (error)
16183
+ return "longRunning." + error;
16184
+ }
16185
+ return null;
16186
+ };
16187
+
16188
+ /**
16189
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
16190
+ * @function fromObject
16191
+ * @memberof google.api.MethodSettings
16192
+ * @static
16193
+ * @param {Object.<string,*>} object Plain object
16194
+ * @returns {google.api.MethodSettings} MethodSettings
16195
+ */
16196
+ MethodSettings.fromObject = function fromObject(object) {
16197
+ if (object instanceof $root.google.api.MethodSettings)
16198
+ return object;
16199
+ var message = new $root.google.api.MethodSettings();
16200
+ if (object.selector != null)
16201
+ message.selector = String(object.selector);
16202
+ if (object.longRunning != null) {
16203
+ if (typeof object.longRunning !== "object")
16204
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
16205
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
16206
+ }
16207
+ return message;
16208
+ };
16209
+
16210
+ /**
16211
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
16212
+ * @function toObject
16213
+ * @memberof google.api.MethodSettings
16214
+ * @static
16215
+ * @param {google.api.MethodSettings} message MethodSettings
16216
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16217
+ * @returns {Object.<string,*>} Plain object
16218
+ */
16219
+ MethodSettings.toObject = function toObject(message, options) {
16220
+ if (!options)
16221
+ options = {};
16222
+ var object = {};
16223
+ if (options.defaults) {
16224
+ object.selector = "";
16225
+ object.longRunning = null;
16226
+ }
16227
+ if (message.selector != null && message.hasOwnProperty("selector"))
16228
+ object.selector = message.selector;
16229
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
16230
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
16231
+ return object;
16232
+ };
16233
+
16234
+ /**
16235
+ * Converts this MethodSettings to JSON.
16236
+ * @function toJSON
16237
+ * @memberof google.api.MethodSettings
16238
+ * @instance
16239
+ * @returns {Object.<string,*>} JSON object
16240
+ */
16241
+ MethodSettings.prototype.toJSON = function toJSON() {
16242
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16243
+ };
16244
+
16245
+ /**
16246
+ * Gets the default type url for MethodSettings
16247
+ * @function getTypeUrl
16248
+ * @memberof google.api.MethodSettings
16249
+ * @static
16250
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16251
+ * @returns {string} The default type url
16252
+ */
16253
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16254
+ if (typeUrlPrefix === undefined) {
16255
+ typeUrlPrefix = "type.googleapis.com";
16256
+ }
16257
+ return typeUrlPrefix + "/google.api.MethodSettings";
16258
+ };
16259
+
16260
+ MethodSettings.LongRunning = (function() {
16261
+
16262
+ /**
16263
+ * Properties of a LongRunning.
16264
+ * @memberof google.api.MethodSettings
16265
+ * @interface ILongRunning
16266
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
16267
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
16268
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
16269
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
16270
+ */
16271
+
16272
+ /**
16273
+ * Constructs a new LongRunning.
16274
+ * @memberof google.api.MethodSettings
16275
+ * @classdesc Represents a LongRunning.
16276
+ * @implements ILongRunning
16277
+ * @constructor
16278
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
16279
+ */
16280
+ function LongRunning(properties) {
16281
+ if (properties)
16282
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16283
+ if (properties[keys[i]] != null)
16284
+ this[keys[i]] = properties[keys[i]];
16285
+ }
16286
+
16287
+ /**
16288
+ * LongRunning initialPollDelay.
16289
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
16290
+ * @memberof google.api.MethodSettings.LongRunning
16291
+ * @instance
16292
+ */
16293
+ LongRunning.prototype.initialPollDelay = null;
16294
+
16295
+ /**
16296
+ * LongRunning pollDelayMultiplier.
16297
+ * @member {number} pollDelayMultiplier
16298
+ * @memberof google.api.MethodSettings.LongRunning
16299
+ * @instance
16300
+ */
16301
+ LongRunning.prototype.pollDelayMultiplier = 0;
16302
+
16303
+ /**
16304
+ * LongRunning maxPollDelay.
16305
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
16306
+ * @memberof google.api.MethodSettings.LongRunning
16307
+ * @instance
16308
+ */
16309
+ LongRunning.prototype.maxPollDelay = null;
16310
+
16311
+ /**
16312
+ * LongRunning totalPollTimeout.
16313
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
16314
+ * @memberof google.api.MethodSettings.LongRunning
16315
+ * @instance
16316
+ */
16317
+ LongRunning.prototype.totalPollTimeout = null;
16318
+
16319
+ /**
16320
+ * Creates a new LongRunning instance using the specified properties.
16321
+ * @function create
16322
+ * @memberof google.api.MethodSettings.LongRunning
16323
+ * @static
16324
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
16325
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
16326
+ */
16327
+ LongRunning.create = function create(properties) {
16328
+ return new LongRunning(properties);
16329
+ };
16330
+
16331
+ /**
16332
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
16333
+ * @function encode
16334
+ * @memberof google.api.MethodSettings.LongRunning
16335
+ * @static
16336
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
16337
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16338
+ * @returns {$protobuf.Writer} Writer
16339
+ */
16340
+ LongRunning.encode = function encode(message, writer) {
16341
+ if (!writer)
16342
+ writer = $Writer.create();
16343
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
16344
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16345
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
16346
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
16347
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
16348
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
16349
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
16350
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16351
+ return writer;
16352
+ };
16353
+
16354
+ /**
16355
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
16356
+ * @function encodeDelimited
16357
+ * @memberof google.api.MethodSettings.LongRunning
16358
+ * @static
16359
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
16360
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16361
+ * @returns {$protobuf.Writer} Writer
16362
+ */
16363
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
16364
+ return this.encode(message, writer).ldelim();
16365
+ };
16366
+
16367
+ /**
16368
+ * Decodes a LongRunning message from the specified reader or buffer.
16369
+ * @function decode
16370
+ * @memberof google.api.MethodSettings.LongRunning
16371
+ * @static
16372
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16373
+ * @param {number} [length] Message length if known beforehand
16374
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
16375
+ * @throws {Error} If the payload is not a reader or valid buffer
16376
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16377
+ */
16378
+ LongRunning.decode = function decode(reader, length) {
16379
+ if (!(reader instanceof $Reader))
16380
+ reader = $Reader.create(reader);
16381
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
16382
+ while (reader.pos < end) {
16383
+ var tag = reader.uint32();
16384
+ switch (tag >>> 3) {
16385
+ case 1: {
16386
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
16387
+ break;
16388
+ }
16389
+ case 2: {
16390
+ message.pollDelayMultiplier = reader.float();
16391
+ break;
16392
+ }
16393
+ case 3: {
16394
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
16395
+ break;
16396
+ }
16397
+ case 4: {
16398
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
16399
+ break;
16400
+ }
16401
+ default:
16402
+ reader.skipType(tag & 7);
16403
+ break;
16404
+ }
16405
+ }
16406
+ return message;
16407
+ };
16408
+
16409
+ /**
16410
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
16411
+ * @function decodeDelimited
16412
+ * @memberof google.api.MethodSettings.LongRunning
16413
+ * @static
16414
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16415
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
16416
+ * @throws {Error} If the payload is not a reader or valid buffer
16417
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16418
+ */
16419
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
16420
+ if (!(reader instanceof $Reader))
16421
+ reader = new $Reader(reader);
16422
+ return this.decode(reader, reader.uint32());
16423
+ };
16424
+
16425
+ /**
16426
+ * Verifies a LongRunning message.
16427
+ * @function verify
16428
+ * @memberof google.api.MethodSettings.LongRunning
16429
+ * @static
16430
+ * @param {Object.<string,*>} message Plain object to verify
16431
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16432
+ */
16433
+ LongRunning.verify = function verify(message) {
16434
+ if (typeof message !== "object" || message === null)
16435
+ return "object expected";
16436
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
16437
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
16438
+ if (error)
16439
+ return "initialPollDelay." + error;
16440
+ }
16441
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
16442
+ if (typeof message.pollDelayMultiplier !== "number")
16443
+ return "pollDelayMultiplier: number expected";
16444
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
16445
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
16446
+ if (error)
16447
+ return "maxPollDelay." + error;
16448
+ }
16449
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
16450
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
16451
+ if (error)
16452
+ return "totalPollTimeout." + error;
16453
+ }
16454
+ return null;
16455
+ };
16456
+
16457
+ /**
16458
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
16459
+ * @function fromObject
16460
+ * @memberof google.api.MethodSettings.LongRunning
16461
+ * @static
16462
+ * @param {Object.<string,*>} object Plain object
16463
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
16464
+ */
16465
+ LongRunning.fromObject = function fromObject(object) {
16466
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
16467
+ return object;
16468
+ var message = new $root.google.api.MethodSettings.LongRunning();
16469
+ if (object.initialPollDelay != null) {
16470
+ if (typeof object.initialPollDelay !== "object")
16471
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
16472
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
16473
+ }
16474
+ if (object.pollDelayMultiplier != null)
16475
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
16476
+ if (object.maxPollDelay != null) {
16477
+ if (typeof object.maxPollDelay !== "object")
16478
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
16479
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
16480
+ }
16481
+ if (object.totalPollTimeout != null) {
16482
+ if (typeof object.totalPollTimeout !== "object")
16483
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
16484
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
16485
+ }
16486
+ return message;
16487
+ };
16488
+
16489
+ /**
16490
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
16491
+ * @function toObject
16492
+ * @memberof google.api.MethodSettings.LongRunning
16493
+ * @static
16494
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
16495
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16496
+ * @returns {Object.<string,*>} Plain object
16497
+ */
16498
+ LongRunning.toObject = function toObject(message, options) {
16499
+ if (!options)
16500
+ options = {};
16501
+ var object = {};
16502
+ if (options.defaults) {
16503
+ object.initialPollDelay = null;
16504
+ object.pollDelayMultiplier = 0;
16505
+ object.maxPollDelay = null;
16506
+ object.totalPollTimeout = null;
16507
+ }
16508
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
16509
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
16510
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
16511
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
16512
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
16513
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
16514
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
16515
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
16516
+ return object;
16517
+ };
16518
+
16519
+ /**
16520
+ * Converts this LongRunning to JSON.
16521
+ * @function toJSON
16522
+ * @memberof google.api.MethodSettings.LongRunning
16523
+ * @instance
16524
+ * @returns {Object.<string,*>} JSON object
16525
+ */
16526
+ LongRunning.prototype.toJSON = function toJSON() {
16527
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16528
+ };
16529
+
16530
+ /**
16531
+ * Gets the default type url for LongRunning
16532
+ * @function getTypeUrl
16533
+ * @memberof google.api.MethodSettings.LongRunning
16534
+ * @static
16535
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16536
+ * @returns {string} The default type url
16537
+ */
16538
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16539
+ if (typeUrlPrefix === undefined) {
16540
+ typeUrlPrefix = "type.googleapis.com";
16541
+ }
16542
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
16543
+ };
16544
+
16545
+ return LongRunning;
16546
+ })();
16547
+
16548
+ return MethodSettings;
16549
+ })();
16550
+
16551
+ /**
16552
+ * ClientLibraryOrganization enum.
16553
+ * @name google.api.ClientLibraryOrganization
16554
+ * @enum {number}
16555
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
16556
+ * @property {number} CLOUD=1 CLOUD value
16557
+ * @property {number} ADS=2 ADS value
16558
+ * @property {number} PHOTOS=3 PHOTOS value
16559
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
16560
+ */
16561
+ api.ClientLibraryOrganization = (function() {
16562
+ var valuesById = {}, values = Object.create(valuesById);
16563
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
16564
+ values[valuesById[1] = "CLOUD"] = 1;
16565
+ values[valuesById[2] = "ADS"] = 2;
16566
+ values[valuesById[3] = "PHOTOS"] = 3;
16567
+ values[valuesById[4] = "STREET_VIEW"] = 4;
16568
+ return values;
16569
+ })();
16570
+
16571
+ /**
16572
+ * ClientLibraryDestination enum.
16573
+ * @name google.api.ClientLibraryDestination
16574
+ * @enum {number}
16575
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
16576
+ * @property {number} GITHUB=10 GITHUB value
16577
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
16578
+ */
16579
+ api.ClientLibraryDestination = (function() {
16580
+ var valuesById = {}, values = Object.create(valuesById);
16581
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
16582
+ values[valuesById[10] = "GITHUB"] = 10;
16583
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
16584
+ return values;
16585
+ })();
16586
+
16587
+ /**
16588
+ * LaunchStage enum.
16589
+ * @name google.api.LaunchStage
16590
+ * @enum {number}
16591
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
16592
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
16593
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
16594
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
16595
+ * @property {number} ALPHA=2 ALPHA value
16596
+ * @property {number} BETA=3 BETA value
16597
+ * @property {number} GA=4 GA value
16598
+ * @property {number} DEPRECATED=5 DEPRECATED value
16599
+ */
16600
+ api.LaunchStage = (function() {
16601
+ var valuesById = {}, values = Object.create(valuesById);
16602
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
16603
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
16604
+ values[valuesById[7] = "PRELAUNCH"] = 7;
16605
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
16606
+ values[valuesById[2] = "ALPHA"] = 2;
16607
+ values[valuesById[3] = "BETA"] = 3;
16608
+ values[valuesById[4] = "GA"] = 4;
16609
+ values[valuesById[5] = "DEPRECATED"] = 5;
16610
+ return values;
16611
+ })();
16612
+
13004
16613
  /**
13005
16614
  * FieldBehavior enum.
13006
16615
  * @name google.api.FieldBehavior
@@ -18949,6 +22558,7 @@
18949
22558
  * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
18950
22559
  * @property {boolean|null} [deprecated] MessageOptions deprecated
18951
22560
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
22561
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
18952
22562
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
18953
22563
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
18954
22564
  */
@@ -19001,6 +22611,14 @@
19001
22611
  */
19002
22612
  MessageOptions.prototype.mapEntry = false;
19003
22613
 
22614
+ /**
22615
+ * MessageOptions deprecatedLegacyJsonFieldConflicts.
22616
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
22617
+ * @memberof google.protobuf.MessageOptions
22618
+ * @instance
22619
+ */
22620
+ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
22621
+
19004
22622
  /**
19005
22623
  * MessageOptions uninterpretedOption.
19006
22624
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -19049,6 +22667,8 @@
19049
22667
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
19050
22668
  if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
19051
22669
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
22670
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
22671
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
19052
22672
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
19053
22673
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
19054
22674
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -19104,6 +22724,10 @@
19104
22724
  message.mapEntry = reader.bool();
19105
22725
  break;
19106
22726
  }
22727
+ case 11: {
22728
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
22729
+ break;
22730
+ }
19107
22731
  case 999: {
19108
22732
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
19109
22733
  message.uninterpretedOption = [];
@@ -19161,6 +22785,9 @@
19161
22785
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
19162
22786
  if (typeof message.mapEntry !== "boolean")
19163
22787
  return "mapEntry: boolean expected";
22788
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
22789
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
22790
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
19164
22791
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
19165
22792
  if (!Array.isArray(message.uninterpretedOption))
19166
22793
  return "uninterpretedOption: array expected";
@@ -19198,6 +22825,8 @@
19198
22825
  message.deprecated = Boolean(object.deprecated);
19199
22826
  if (object.mapEntry != null)
19200
22827
  message.mapEntry = Boolean(object.mapEntry);
22828
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
22829
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
19201
22830
  if (object.uninterpretedOption) {
19202
22831
  if (!Array.isArray(object.uninterpretedOption))
19203
22832
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -19236,6 +22865,7 @@
19236
22865
  object.noStandardDescriptorAccessor = false;
19237
22866
  object.deprecated = false;
19238
22867
  object.mapEntry = false;
22868
+ object.deprecatedLegacyJsonFieldConflicts = false;
19239
22869
  object[".google.api.resource"] = null;
19240
22870
  }
19241
22871
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -19246,6 +22876,8 @@
19246
22876
  object.deprecated = message.deprecated;
19247
22877
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
19248
22878
  object.mapEntry = message.mapEntry;
22879
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
22880
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
19249
22881
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
19250
22882
  object.uninterpretedOption = [];
19251
22883
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -19298,6 +22930,9 @@
19298
22930
  * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
19299
22931
  * @property {boolean|null} [deprecated] FieldOptions deprecated
19300
22932
  * @property {boolean|null} [weak] FieldOptions weak
22933
+ * @property {boolean|null} [debugRedact] FieldOptions debugRedact
22934
+ * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
22935
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
19301
22936
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
19302
22937
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
19303
22938
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -19376,6 +23011,30 @@
19376
23011
  */
19377
23012
  FieldOptions.prototype.weak = false;
19378
23013
 
23014
+ /**
23015
+ * FieldOptions debugRedact.
23016
+ * @member {boolean} debugRedact
23017
+ * @memberof google.protobuf.FieldOptions
23018
+ * @instance
23019
+ */
23020
+ FieldOptions.prototype.debugRedact = false;
23021
+
23022
+ /**
23023
+ * FieldOptions retention.
23024
+ * @member {google.protobuf.FieldOptions.OptionRetention} retention
23025
+ * @memberof google.protobuf.FieldOptions
23026
+ * @instance
23027
+ */
23028
+ FieldOptions.prototype.retention = 0;
23029
+
23030
+ /**
23031
+ * FieldOptions target.
23032
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
23033
+ * @memberof google.protobuf.FieldOptions
23034
+ * @instance
23035
+ */
23036
+ FieldOptions.prototype.target = 0;
23037
+
19379
23038
  /**
19380
23039
  * FieldOptions uninterpretedOption.
19381
23040
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -19438,6 +23097,12 @@
19438
23097
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
19439
23098
  if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
19440
23099
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
23100
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
23101
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
23102
+ if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
23103
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
23104
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
23105
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
19441
23106
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
19442
23107
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
19443
23108
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -19511,6 +23176,18 @@
19511
23176
  message.weak = reader.bool();
19512
23177
  break;
19513
23178
  }
23179
+ case 16: {
23180
+ message.debugRedact = reader.bool();
23181
+ break;
23182
+ }
23183
+ case 17: {
23184
+ message.retention = reader.int32();
23185
+ break;
23186
+ }
23187
+ case 18: {
23188
+ message.target = reader.int32();
23189
+ break;
23190
+ }
19514
23191
  case 999: {
19515
23192
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
19516
23193
  message.uninterpretedOption = [];
@@ -19600,6 +23277,34 @@
19600
23277
  if (message.weak != null && message.hasOwnProperty("weak"))
19601
23278
  if (typeof message.weak !== "boolean")
19602
23279
  return "weak: boolean expected";
23280
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
23281
+ if (typeof message.debugRedact !== "boolean")
23282
+ return "debugRedact: boolean expected";
23283
+ if (message.retention != null && message.hasOwnProperty("retention"))
23284
+ switch (message.retention) {
23285
+ default:
23286
+ return "retention: enum value expected";
23287
+ case 0:
23288
+ case 1:
23289
+ case 2:
23290
+ break;
23291
+ }
23292
+ if (message.target != null && message.hasOwnProperty("target"))
23293
+ switch (message.target) {
23294
+ default:
23295
+ return "target: enum value expected";
23296
+ case 0:
23297
+ case 1:
23298
+ case 2:
23299
+ case 3:
23300
+ case 4:
23301
+ case 5:
23302
+ case 6:
23303
+ case 7:
23304
+ case 8:
23305
+ case 9:
23306
+ break;
23307
+ }
19603
23308
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
19604
23309
  if (!Array.isArray(message.uninterpretedOption))
19605
23310
  return "uninterpretedOption: array expected";
@@ -19697,6 +23402,76 @@
19697
23402
  message.deprecated = Boolean(object.deprecated);
19698
23403
  if (object.weak != null)
19699
23404
  message.weak = Boolean(object.weak);
23405
+ if (object.debugRedact != null)
23406
+ message.debugRedact = Boolean(object.debugRedact);
23407
+ switch (object.retention) {
23408
+ default:
23409
+ if (typeof object.retention === "number") {
23410
+ message.retention = object.retention;
23411
+ break;
23412
+ }
23413
+ break;
23414
+ case "RETENTION_UNKNOWN":
23415
+ case 0:
23416
+ message.retention = 0;
23417
+ break;
23418
+ case "RETENTION_RUNTIME":
23419
+ case 1:
23420
+ message.retention = 1;
23421
+ break;
23422
+ case "RETENTION_SOURCE":
23423
+ case 2:
23424
+ message.retention = 2;
23425
+ break;
23426
+ }
23427
+ switch (object.target) {
23428
+ default:
23429
+ if (typeof object.target === "number") {
23430
+ message.target = object.target;
23431
+ break;
23432
+ }
23433
+ break;
23434
+ case "TARGET_TYPE_UNKNOWN":
23435
+ case 0:
23436
+ message.target = 0;
23437
+ break;
23438
+ case "TARGET_TYPE_FILE":
23439
+ case 1:
23440
+ message.target = 1;
23441
+ break;
23442
+ case "TARGET_TYPE_EXTENSION_RANGE":
23443
+ case 2:
23444
+ message.target = 2;
23445
+ break;
23446
+ case "TARGET_TYPE_MESSAGE":
23447
+ case 3:
23448
+ message.target = 3;
23449
+ break;
23450
+ case "TARGET_TYPE_FIELD":
23451
+ case 4:
23452
+ message.target = 4;
23453
+ break;
23454
+ case "TARGET_TYPE_ONEOF":
23455
+ case 5:
23456
+ message.target = 5;
23457
+ break;
23458
+ case "TARGET_TYPE_ENUM":
23459
+ case 6:
23460
+ message.target = 6;
23461
+ break;
23462
+ case "TARGET_TYPE_ENUM_ENTRY":
23463
+ case 7:
23464
+ message.target = 7;
23465
+ break;
23466
+ case "TARGET_TYPE_SERVICE":
23467
+ case 8:
23468
+ message.target = 8;
23469
+ break;
23470
+ case "TARGET_TYPE_METHOD":
23471
+ case 9:
23472
+ message.target = 9;
23473
+ break;
23474
+ }
19700
23475
  if (object.uninterpretedOption) {
19701
23476
  if (!Array.isArray(object.uninterpretedOption))
19702
23477
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -19785,6 +23560,9 @@
19785
23560
  object.jstype = options.enums === String ? "JS_NORMAL" : 0;
19786
23561
  object.weak = false;
19787
23562
  object.unverifiedLazy = false;
23563
+ object.debugRedact = false;
23564
+ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
23565
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
19788
23566
  object[".google.api.resourceReference"] = null;
19789
23567
  }
19790
23568
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -19801,6 +23579,12 @@
19801
23579
  object.weak = message.weak;
19802
23580
  if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
19803
23581
  object.unverifiedLazy = message.unverifiedLazy;
23582
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
23583
+ object.debugRedact = message.debugRedact;
23584
+ if (message.retention != null && message.hasOwnProperty("retention"))
23585
+ object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
23586
+ if (message.target != null && message.hasOwnProperty("target"))
23587
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
19804
23588
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
19805
23589
  object.uninterpretedOption = [];
19806
23590
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -19874,6 +23658,52 @@
19874
23658
  return values;
19875
23659
  })();
19876
23660
 
23661
+ /**
23662
+ * OptionRetention enum.
23663
+ * @name google.protobuf.FieldOptions.OptionRetention
23664
+ * @enum {number}
23665
+ * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
23666
+ * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
23667
+ * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
23668
+ */
23669
+ FieldOptions.OptionRetention = (function() {
23670
+ var valuesById = {}, values = Object.create(valuesById);
23671
+ values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
23672
+ values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
23673
+ values[valuesById[2] = "RETENTION_SOURCE"] = 2;
23674
+ return values;
23675
+ })();
23676
+
23677
+ /**
23678
+ * OptionTargetType enum.
23679
+ * @name google.protobuf.FieldOptions.OptionTargetType
23680
+ * @enum {number}
23681
+ * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
23682
+ * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
23683
+ * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
23684
+ * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
23685
+ * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
23686
+ * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
23687
+ * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
23688
+ * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
23689
+ * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
23690
+ * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
23691
+ */
23692
+ FieldOptions.OptionTargetType = (function() {
23693
+ var valuesById = {}, values = Object.create(valuesById);
23694
+ values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
23695
+ values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
23696
+ values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
23697
+ values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
23698
+ values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
23699
+ values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
23700
+ values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
23701
+ values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
23702
+ values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
23703
+ values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
23704
+ return values;
23705
+ })();
23706
+
19877
23707
  return FieldOptions;
19878
23708
  })();
19879
23709
 
@@ -20109,6 +23939,7 @@
20109
23939
  * @interface IEnumOptions
20110
23940
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
20111
23941
  * @property {boolean|null} [deprecated] EnumOptions deprecated
23942
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
20112
23943
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
20113
23944
  */
20114
23945
 
@@ -20144,6 +23975,14 @@
20144
23975
  */
20145
23976
  EnumOptions.prototype.deprecated = false;
20146
23977
 
23978
+ /**
23979
+ * EnumOptions deprecatedLegacyJsonFieldConflicts.
23980
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
23981
+ * @memberof google.protobuf.EnumOptions
23982
+ * @instance
23983
+ */
23984
+ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
23985
+
20147
23986
  /**
20148
23987
  * EnumOptions uninterpretedOption.
20149
23988
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -20180,6 +24019,8 @@
20180
24019
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
20181
24020
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
20182
24021
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
24022
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
24023
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
20183
24024
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
20184
24025
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
20185
24026
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -20225,6 +24066,10 @@
20225
24066
  message.deprecated = reader.bool();
20226
24067
  break;
20227
24068
  }
24069
+ case 6: {
24070
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
24071
+ break;
24072
+ }
20228
24073
  case 999: {
20229
24074
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
20230
24075
  message.uninterpretedOption = [];
@@ -20272,6 +24117,9 @@
20272
24117
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
20273
24118
  if (typeof message.deprecated !== "boolean")
20274
24119
  return "deprecated: boolean expected";
24120
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
24121
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
24122
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
20275
24123
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
20276
24124
  if (!Array.isArray(message.uninterpretedOption))
20277
24125
  return "uninterpretedOption: array expected";
@@ -20300,6 +24148,8 @@
20300
24148
  message.allowAlias = Boolean(object.allowAlias);
20301
24149
  if (object.deprecated != null)
20302
24150
  message.deprecated = Boolean(object.deprecated);
24151
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
24152
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
20303
24153
  if (object.uninterpretedOption) {
20304
24154
  if (!Array.isArray(object.uninterpretedOption))
20305
24155
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -20331,11 +24181,14 @@
20331
24181
  if (options.defaults) {
20332
24182
  object.allowAlias = false;
20333
24183
  object.deprecated = false;
24184
+ object.deprecatedLegacyJsonFieldConflicts = false;
20334
24185
  }
20335
24186
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
20336
24187
  object.allowAlias = message.allowAlias;
20337
24188
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
20338
24189
  object.deprecated = message.deprecated;
24190
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
24191
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
20339
24192
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
20340
24193
  object.uninterpretedOption = [];
20341
24194
  for (var j = 0; j < message.uninterpretedOption.length; ++j)