@google-cloud/discoveryengine 0.3.0 → 0.4.0

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.
@@ -12022,6 +12022,3615 @@
12022
12022
  return CustomHttpPattern;
12023
12023
  })();
12024
12024
 
12025
+ api.CommonLanguageSettings = (function() {
12026
+
12027
+ /**
12028
+ * Properties of a CommonLanguageSettings.
12029
+ * @memberof google.api
12030
+ * @interface ICommonLanguageSettings
12031
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
12032
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
12033
+ */
12034
+
12035
+ /**
12036
+ * Constructs a new CommonLanguageSettings.
12037
+ * @memberof google.api
12038
+ * @classdesc Represents a CommonLanguageSettings.
12039
+ * @implements ICommonLanguageSettings
12040
+ * @constructor
12041
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
12042
+ */
12043
+ function CommonLanguageSettings(properties) {
12044
+ this.destinations = [];
12045
+ if (properties)
12046
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12047
+ if (properties[keys[i]] != null)
12048
+ this[keys[i]] = properties[keys[i]];
12049
+ }
12050
+
12051
+ /**
12052
+ * CommonLanguageSettings referenceDocsUri.
12053
+ * @member {string} referenceDocsUri
12054
+ * @memberof google.api.CommonLanguageSettings
12055
+ * @instance
12056
+ */
12057
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
12058
+
12059
+ /**
12060
+ * CommonLanguageSettings destinations.
12061
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
12062
+ * @memberof google.api.CommonLanguageSettings
12063
+ * @instance
12064
+ */
12065
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
12066
+
12067
+ /**
12068
+ * Creates a new CommonLanguageSettings instance using the specified properties.
12069
+ * @function create
12070
+ * @memberof google.api.CommonLanguageSettings
12071
+ * @static
12072
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
12073
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
12074
+ */
12075
+ CommonLanguageSettings.create = function create(properties) {
12076
+ return new CommonLanguageSettings(properties);
12077
+ };
12078
+
12079
+ /**
12080
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
12081
+ * @function encode
12082
+ * @memberof google.api.CommonLanguageSettings
12083
+ * @static
12084
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
12085
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12086
+ * @returns {$protobuf.Writer} Writer
12087
+ */
12088
+ CommonLanguageSettings.encode = function encode(message, writer) {
12089
+ if (!writer)
12090
+ writer = $Writer.create();
12091
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
12092
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
12093
+ if (message.destinations != null && message.destinations.length) {
12094
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
12095
+ for (var i = 0; i < message.destinations.length; ++i)
12096
+ writer.int32(message.destinations[i]);
12097
+ writer.ldelim();
12098
+ }
12099
+ return writer;
12100
+ };
12101
+
12102
+ /**
12103
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
12104
+ * @function encodeDelimited
12105
+ * @memberof google.api.CommonLanguageSettings
12106
+ * @static
12107
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
12108
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12109
+ * @returns {$protobuf.Writer} Writer
12110
+ */
12111
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
12112
+ return this.encode(message, writer).ldelim();
12113
+ };
12114
+
12115
+ /**
12116
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
12117
+ * @function decode
12118
+ * @memberof google.api.CommonLanguageSettings
12119
+ * @static
12120
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12121
+ * @param {number} [length] Message length if known beforehand
12122
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
12123
+ * @throws {Error} If the payload is not a reader or valid buffer
12124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12125
+ */
12126
+ CommonLanguageSettings.decode = function decode(reader, length) {
12127
+ if (!(reader instanceof $Reader))
12128
+ reader = $Reader.create(reader);
12129
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
12130
+ while (reader.pos < end) {
12131
+ var tag = reader.uint32();
12132
+ switch (tag >>> 3) {
12133
+ case 1: {
12134
+ message.referenceDocsUri = reader.string();
12135
+ break;
12136
+ }
12137
+ case 2: {
12138
+ if (!(message.destinations && message.destinations.length))
12139
+ message.destinations = [];
12140
+ if ((tag & 7) === 2) {
12141
+ var end2 = reader.uint32() + reader.pos;
12142
+ while (reader.pos < end2)
12143
+ message.destinations.push(reader.int32());
12144
+ } else
12145
+ message.destinations.push(reader.int32());
12146
+ break;
12147
+ }
12148
+ default:
12149
+ reader.skipType(tag & 7);
12150
+ break;
12151
+ }
12152
+ }
12153
+ return message;
12154
+ };
12155
+
12156
+ /**
12157
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
12158
+ * @function decodeDelimited
12159
+ * @memberof google.api.CommonLanguageSettings
12160
+ * @static
12161
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12162
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
12163
+ * @throws {Error} If the payload is not a reader or valid buffer
12164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12165
+ */
12166
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
12167
+ if (!(reader instanceof $Reader))
12168
+ reader = new $Reader(reader);
12169
+ return this.decode(reader, reader.uint32());
12170
+ };
12171
+
12172
+ /**
12173
+ * Verifies a CommonLanguageSettings message.
12174
+ * @function verify
12175
+ * @memberof google.api.CommonLanguageSettings
12176
+ * @static
12177
+ * @param {Object.<string,*>} message Plain object to verify
12178
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12179
+ */
12180
+ CommonLanguageSettings.verify = function verify(message) {
12181
+ if (typeof message !== "object" || message === null)
12182
+ return "object expected";
12183
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
12184
+ if (!$util.isString(message.referenceDocsUri))
12185
+ return "referenceDocsUri: string expected";
12186
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
12187
+ if (!Array.isArray(message.destinations))
12188
+ return "destinations: array expected";
12189
+ for (var i = 0; i < message.destinations.length; ++i)
12190
+ switch (message.destinations[i]) {
12191
+ default:
12192
+ return "destinations: enum value[] expected";
12193
+ case 0:
12194
+ case 10:
12195
+ case 20:
12196
+ break;
12197
+ }
12198
+ }
12199
+ return null;
12200
+ };
12201
+
12202
+ /**
12203
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
12204
+ * @function fromObject
12205
+ * @memberof google.api.CommonLanguageSettings
12206
+ * @static
12207
+ * @param {Object.<string,*>} object Plain object
12208
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
12209
+ */
12210
+ CommonLanguageSettings.fromObject = function fromObject(object) {
12211
+ if (object instanceof $root.google.api.CommonLanguageSettings)
12212
+ return object;
12213
+ var message = new $root.google.api.CommonLanguageSettings();
12214
+ if (object.referenceDocsUri != null)
12215
+ message.referenceDocsUri = String(object.referenceDocsUri);
12216
+ if (object.destinations) {
12217
+ if (!Array.isArray(object.destinations))
12218
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
12219
+ message.destinations = [];
12220
+ for (var i = 0; i < object.destinations.length; ++i)
12221
+ switch (object.destinations[i]) {
12222
+ default:
12223
+ if (typeof object.destinations[i] === "number") {
12224
+ message.destinations[i] = object.destinations[i];
12225
+ break;
12226
+ }
12227
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
12228
+ case 0:
12229
+ message.destinations[i] = 0;
12230
+ break;
12231
+ case "GITHUB":
12232
+ case 10:
12233
+ message.destinations[i] = 10;
12234
+ break;
12235
+ case "PACKAGE_MANAGER":
12236
+ case 20:
12237
+ message.destinations[i] = 20;
12238
+ break;
12239
+ }
12240
+ }
12241
+ return message;
12242
+ };
12243
+
12244
+ /**
12245
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
12246
+ * @function toObject
12247
+ * @memberof google.api.CommonLanguageSettings
12248
+ * @static
12249
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
12250
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12251
+ * @returns {Object.<string,*>} Plain object
12252
+ */
12253
+ CommonLanguageSettings.toObject = function toObject(message, options) {
12254
+ if (!options)
12255
+ options = {};
12256
+ var object = {};
12257
+ if (options.arrays || options.defaults)
12258
+ object.destinations = [];
12259
+ if (options.defaults)
12260
+ object.referenceDocsUri = "";
12261
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
12262
+ object.referenceDocsUri = message.referenceDocsUri;
12263
+ if (message.destinations && message.destinations.length) {
12264
+ object.destinations = [];
12265
+ for (var j = 0; j < message.destinations.length; ++j)
12266
+ 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];
12267
+ }
12268
+ return object;
12269
+ };
12270
+
12271
+ /**
12272
+ * Converts this CommonLanguageSettings to JSON.
12273
+ * @function toJSON
12274
+ * @memberof google.api.CommonLanguageSettings
12275
+ * @instance
12276
+ * @returns {Object.<string,*>} JSON object
12277
+ */
12278
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
12279
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12280
+ };
12281
+
12282
+ /**
12283
+ * Gets the default type url for CommonLanguageSettings
12284
+ * @function getTypeUrl
12285
+ * @memberof google.api.CommonLanguageSettings
12286
+ * @static
12287
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12288
+ * @returns {string} The default type url
12289
+ */
12290
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12291
+ if (typeUrlPrefix === undefined) {
12292
+ typeUrlPrefix = "type.googleapis.com";
12293
+ }
12294
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
12295
+ };
12296
+
12297
+ return CommonLanguageSettings;
12298
+ })();
12299
+
12300
+ api.ClientLibrarySettings = (function() {
12301
+
12302
+ /**
12303
+ * Properties of a ClientLibrarySettings.
12304
+ * @memberof google.api
12305
+ * @interface IClientLibrarySettings
12306
+ * @property {string|null} [version] ClientLibrarySettings version
12307
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
12308
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
12309
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
12310
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
12311
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
12312
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
12313
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
12314
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
12315
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
12316
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
12317
+ */
12318
+
12319
+ /**
12320
+ * Constructs a new ClientLibrarySettings.
12321
+ * @memberof google.api
12322
+ * @classdesc Represents a ClientLibrarySettings.
12323
+ * @implements IClientLibrarySettings
12324
+ * @constructor
12325
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
12326
+ */
12327
+ function ClientLibrarySettings(properties) {
12328
+ if (properties)
12329
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12330
+ if (properties[keys[i]] != null)
12331
+ this[keys[i]] = properties[keys[i]];
12332
+ }
12333
+
12334
+ /**
12335
+ * ClientLibrarySettings version.
12336
+ * @member {string} version
12337
+ * @memberof google.api.ClientLibrarySettings
12338
+ * @instance
12339
+ */
12340
+ ClientLibrarySettings.prototype.version = "";
12341
+
12342
+ /**
12343
+ * ClientLibrarySettings launchStage.
12344
+ * @member {google.api.LaunchStage} launchStage
12345
+ * @memberof google.api.ClientLibrarySettings
12346
+ * @instance
12347
+ */
12348
+ ClientLibrarySettings.prototype.launchStage = 0;
12349
+
12350
+ /**
12351
+ * ClientLibrarySettings restNumericEnums.
12352
+ * @member {boolean} restNumericEnums
12353
+ * @memberof google.api.ClientLibrarySettings
12354
+ * @instance
12355
+ */
12356
+ ClientLibrarySettings.prototype.restNumericEnums = false;
12357
+
12358
+ /**
12359
+ * ClientLibrarySettings javaSettings.
12360
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
12361
+ * @memberof google.api.ClientLibrarySettings
12362
+ * @instance
12363
+ */
12364
+ ClientLibrarySettings.prototype.javaSettings = null;
12365
+
12366
+ /**
12367
+ * ClientLibrarySettings cppSettings.
12368
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
12369
+ * @memberof google.api.ClientLibrarySettings
12370
+ * @instance
12371
+ */
12372
+ ClientLibrarySettings.prototype.cppSettings = null;
12373
+
12374
+ /**
12375
+ * ClientLibrarySettings phpSettings.
12376
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
12377
+ * @memberof google.api.ClientLibrarySettings
12378
+ * @instance
12379
+ */
12380
+ ClientLibrarySettings.prototype.phpSettings = null;
12381
+
12382
+ /**
12383
+ * ClientLibrarySettings pythonSettings.
12384
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
12385
+ * @memberof google.api.ClientLibrarySettings
12386
+ * @instance
12387
+ */
12388
+ ClientLibrarySettings.prototype.pythonSettings = null;
12389
+
12390
+ /**
12391
+ * ClientLibrarySettings nodeSettings.
12392
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
12393
+ * @memberof google.api.ClientLibrarySettings
12394
+ * @instance
12395
+ */
12396
+ ClientLibrarySettings.prototype.nodeSettings = null;
12397
+
12398
+ /**
12399
+ * ClientLibrarySettings dotnetSettings.
12400
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
12401
+ * @memberof google.api.ClientLibrarySettings
12402
+ * @instance
12403
+ */
12404
+ ClientLibrarySettings.prototype.dotnetSettings = null;
12405
+
12406
+ /**
12407
+ * ClientLibrarySettings rubySettings.
12408
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
12409
+ * @memberof google.api.ClientLibrarySettings
12410
+ * @instance
12411
+ */
12412
+ ClientLibrarySettings.prototype.rubySettings = null;
12413
+
12414
+ /**
12415
+ * ClientLibrarySettings goSettings.
12416
+ * @member {google.api.IGoSettings|null|undefined} goSettings
12417
+ * @memberof google.api.ClientLibrarySettings
12418
+ * @instance
12419
+ */
12420
+ ClientLibrarySettings.prototype.goSettings = null;
12421
+
12422
+ /**
12423
+ * Creates a new ClientLibrarySettings instance using the specified properties.
12424
+ * @function create
12425
+ * @memberof google.api.ClientLibrarySettings
12426
+ * @static
12427
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
12428
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
12429
+ */
12430
+ ClientLibrarySettings.create = function create(properties) {
12431
+ return new ClientLibrarySettings(properties);
12432
+ };
12433
+
12434
+ /**
12435
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
12436
+ * @function encode
12437
+ * @memberof google.api.ClientLibrarySettings
12438
+ * @static
12439
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
12440
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12441
+ * @returns {$protobuf.Writer} Writer
12442
+ */
12443
+ ClientLibrarySettings.encode = function encode(message, writer) {
12444
+ if (!writer)
12445
+ writer = $Writer.create();
12446
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
12447
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
12448
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
12449
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
12450
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
12451
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
12452
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
12453
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
12454
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
12455
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
12456
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
12457
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
12458
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
12459
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
12460
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
12461
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
12462
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
12463
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
12464
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
12465
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
12466
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
12467
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
12468
+ return writer;
12469
+ };
12470
+
12471
+ /**
12472
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
12473
+ * @function encodeDelimited
12474
+ * @memberof google.api.ClientLibrarySettings
12475
+ * @static
12476
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
12477
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12478
+ * @returns {$protobuf.Writer} Writer
12479
+ */
12480
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
12481
+ return this.encode(message, writer).ldelim();
12482
+ };
12483
+
12484
+ /**
12485
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
12486
+ * @function decode
12487
+ * @memberof google.api.ClientLibrarySettings
12488
+ * @static
12489
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12490
+ * @param {number} [length] Message length if known beforehand
12491
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
12492
+ * @throws {Error} If the payload is not a reader or valid buffer
12493
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12494
+ */
12495
+ ClientLibrarySettings.decode = function decode(reader, length) {
12496
+ if (!(reader instanceof $Reader))
12497
+ reader = $Reader.create(reader);
12498
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
12499
+ while (reader.pos < end) {
12500
+ var tag = reader.uint32();
12501
+ switch (tag >>> 3) {
12502
+ case 1: {
12503
+ message.version = reader.string();
12504
+ break;
12505
+ }
12506
+ case 2: {
12507
+ message.launchStage = reader.int32();
12508
+ break;
12509
+ }
12510
+ case 3: {
12511
+ message.restNumericEnums = reader.bool();
12512
+ break;
12513
+ }
12514
+ case 21: {
12515
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
12516
+ break;
12517
+ }
12518
+ case 22: {
12519
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
12520
+ break;
12521
+ }
12522
+ case 23: {
12523
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
12524
+ break;
12525
+ }
12526
+ case 24: {
12527
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
12528
+ break;
12529
+ }
12530
+ case 25: {
12531
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
12532
+ break;
12533
+ }
12534
+ case 26: {
12535
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
12536
+ break;
12537
+ }
12538
+ case 27: {
12539
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
12540
+ break;
12541
+ }
12542
+ case 28: {
12543
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
12544
+ break;
12545
+ }
12546
+ default:
12547
+ reader.skipType(tag & 7);
12548
+ break;
12549
+ }
12550
+ }
12551
+ return message;
12552
+ };
12553
+
12554
+ /**
12555
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
12556
+ * @function decodeDelimited
12557
+ * @memberof google.api.ClientLibrarySettings
12558
+ * @static
12559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12560
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
12561
+ * @throws {Error} If the payload is not a reader or valid buffer
12562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12563
+ */
12564
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
12565
+ if (!(reader instanceof $Reader))
12566
+ reader = new $Reader(reader);
12567
+ return this.decode(reader, reader.uint32());
12568
+ };
12569
+
12570
+ /**
12571
+ * Verifies a ClientLibrarySettings message.
12572
+ * @function verify
12573
+ * @memberof google.api.ClientLibrarySettings
12574
+ * @static
12575
+ * @param {Object.<string,*>} message Plain object to verify
12576
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12577
+ */
12578
+ ClientLibrarySettings.verify = function verify(message) {
12579
+ if (typeof message !== "object" || message === null)
12580
+ return "object expected";
12581
+ if (message.version != null && message.hasOwnProperty("version"))
12582
+ if (!$util.isString(message.version))
12583
+ return "version: string expected";
12584
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
12585
+ switch (message.launchStage) {
12586
+ default:
12587
+ return "launchStage: enum value expected";
12588
+ case 0:
12589
+ case 6:
12590
+ case 7:
12591
+ case 1:
12592
+ case 2:
12593
+ case 3:
12594
+ case 4:
12595
+ case 5:
12596
+ break;
12597
+ }
12598
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
12599
+ if (typeof message.restNumericEnums !== "boolean")
12600
+ return "restNumericEnums: boolean expected";
12601
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
12602
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
12603
+ if (error)
12604
+ return "javaSettings." + error;
12605
+ }
12606
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
12607
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
12608
+ if (error)
12609
+ return "cppSettings." + error;
12610
+ }
12611
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
12612
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
12613
+ if (error)
12614
+ return "phpSettings." + error;
12615
+ }
12616
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
12617
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
12618
+ if (error)
12619
+ return "pythonSettings." + error;
12620
+ }
12621
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
12622
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
12623
+ if (error)
12624
+ return "nodeSettings." + error;
12625
+ }
12626
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
12627
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
12628
+ if (error)
12629
+ return "dotnetSettings." + error;
12630
+ }
12631
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
12632
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
12633
+ if (error)
12634
+ return "rubySettings." + error;
12635
+ }
12636
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
12637
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
12638
+ if (error)
12639
+ return "goSettings." + error;
12640
+ }
12641
+ return null;
12642
+ };
12643
+
12644
+ /**
12645
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
12646
+ * @function fromObject
12647
+ * @memberof google.api.ClientLibrarySettings
12648
+ * @static
12649
+ * @param {Object.<string,*>} object Plain object
12650
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
12651
+ */
12652
+ ClientLibrarySettings.fromObject = function fromObject(object) {
12653
+ if (object instanceof $root.google.api.ClientLibrarySettings)
12654
+ return object;
12655
+ var message = new $root.google.api.ClientLibrarySettings();
12656
+ if (object.version != null)
12657
+ message.version = String(object.version);
12658
+ switch (object.launchStage) {
12659
+ default:
12660
+ if (typeof object.launchStage === "number") {
12661
+ message.launchStage = object.launchStage;
12662
+ break;
12663
+ }
12664
+ break;
12665
+ case "LAUNCH_STAGE_UNSPECIFIED":
12666
+ case 0:
12667
+ message.launchStage = 0;
12668
+ break;
12669
+ case "UNIMPLEMENTED":
12670
+ case 6:
12671
+ message.launchStage = 6;
12672
+ break;
12673
+ case "PRELAUNCH":
12674
+ case 7:
12675
+ message.launchStage = 7;
12676
+ break;
12677
+ case "EARLY_ACCESS":
12678
+ case 1:
12679
+ message.launchStage = 1;
12680
+ break;
12681
+ case "ALPHA":
12682
+ case 2:
12683
+ message.launchStage = 2;
12684
+ break;
12685
+ case "BETA":
12686
+ case 3:
12687
+ message.launchStage = 3;
12688
+ break;
12689
+ case "GA":
12690
+ case 4:
12691
+ message.launchStage = 4;
12692
+ break;
12693
+ case "DEPRECATED":
12694
+ case 5:
12695
+ message.launchStage = 5;
12696
+ break;
12697
+ }
12698
+ if (object.restNumericEnums != null)
12699
+ message.restNumericEnums = Boolean(object.restNumericEnums);
12700
+ if (object.javaSettings != null) {
12701
+ if (typeof object.javaSettings !== "object")
12702
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
12703
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
12704
+ }
12705
+ if (object.cppSettings != null) {
12706
+ if (typeof object.cppSettings !== "object")
12707
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
12708
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
12709
+ }
12710
+ if (object.phpSettings != null) {
12711
+ if (typeof object.phpSettings !== "object")
12712
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
12713
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
12714
+ }
12715
+ if (object.pythonSettings != null) {
12716
+ if (typeof object.pythonSettings !== "object")
12717
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
12718
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
12719
+ }
12720
+ if (object.nodeSettings != null) {
12721
+ if (typeof object.nodeSettings !== "object")
12722
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
12723
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
12724
+ }
12725
+ if (object.dotnetSettings != null) {
12726
+ if (typeof object.dotnetSettings !== "object")
12727
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
12728
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
12729
+ }
12730
+ if (object.rubySettings != null) {
12731
+ if (typeof object.rubySettings !== "object")
12732
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
12733
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
12734
+ }
12735
+ if (object.goSettings != null) {
12736
+ if (typeof object.goSettings !== "object")
12737
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
12738
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
12739
+ }
12740
+ return message;
12741
+ };
12742
+
12743
+ /**
12744
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
12745
+ * @function toObject
12746
+ * @memberof google.api.ClientLibrarySettings
12747
+ * @static
12748
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
12749
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12750
+ * @returns {Object.<string,*>} Plain object
12751
+ */
12752
+ ClientLibrarySettings.toObject = function toObject(message, options) {
12753
+ if (!options)
12754
+ options = {};
12755
+ var object = {};
12756
+ if (options.defaults) {
12757
+ object.version = "";
12758
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
12759
+ object.restNumericEnums = false;
12760
+ object.javaSettings = null;
12761
+ object.cppSettings = null;
12762
+ object.phpSettings = null;
12763
+ object.pythonSettings = null;
12764
+ object.nodeSettings = null;
12765
+ object.dotnetSettings = null;
12766
+ object.rubySettings = null;
12767
+ object.goSettings = null;
12768
+ }
12769
+ if (message.version != null && message.hasOwnProperty("version"))
12770
+ object.version = message.version;
12771
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
12772
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
12773
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
12774
+ object.restNumericEnums = message.restNumericEnums;
12775
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
12776
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
12777
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
12778
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
12779
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
12780
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
12781
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
12782
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
12783
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
12784
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
12785
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
12786
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
12787
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
12788
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
12789
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
12790
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
12791
+ return object;
12792
+ };
12793
+
12794
+ /**
12795
+ * Converts this ClientLibrarySettings to JSON.
12796
+ * @function toJSON
12797
+ * @memberof google.api.ClientLibrarySettings
12798
+ * @instance
12799
+ * @returns {Object.<string,*>} JSON object
12800
+ */
12801
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
12802
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12803
+ };
12804
+
12805
+ /**
12806
+ * Gets the default type url for ClientLibrarySettings
12807
+ * @function getTypeUrl
12808
+ * @memberof google.api.ClientLibrarySettings
12809
+ * @static
12810
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12811
+ * @returns {string} The default type url
12812
+ */
12813
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12814
+ if (typeUrlPrefix === undefined) {
12815
+ typeUrlPrefix = "type.googleapis.com";
12816
+ }
12817
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
12818
+ };
12819
+
12820
+ return ClientLibrarySettings;
12821
+ })();
12822
+
12823
+ api.Publishing = (function() {
12824
+
12825
+ /**
12826
+ * Properties of a Publishing.
12827
+ * @memberof google.api
12828
+ * @interface IPublishing
12829
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
12830
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
12831
+ * @property {string|null} [documentationUri] Publishing documentationUri
12832
+ * @property {string|null} [apiShortName] Publishing apiShortName
12833
+ * @property {string|null} [githubLabel] Publishing githubLabel
12834
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
12835
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
12836
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
12837
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
12838
+ */
12839
+
12840
+ /**
12841
+ * Constructs a new Publishing.
12842
+ * @memberof google.api
12843
+ * @classdesc Represents a Publishing.
12844
+ * @implements IPublishing
12845
+ * @constructor
12846
+ * @param {google.api.IPublishing=} [properties] Properties to set
12847
+ */
12848
+ function Publishing(properties) {
12849
+ this.methodSettings = [];
12850
+ this.codeownerGithubTeams = [];
12851
+ this.librarySettings = [];
12852
+ if (properties)
12853
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12854
+ if (properties[keys[i]] != null)
12855
+ this[keys[i]] = properties[keys[i]];
12856
+ }
12857
+
12858
+ /**
12859
+ * Publishing methodSettings.
12860
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
12861
+ * @memberof google.api.Publishing
12862
+ * @instance
12863
+ */
12864
+ Publishing.prototype.methodSettings = $util.emptyArray;
12865
+
12866
+ /**
12867
+ * Publishing newIssueUri.
12868
+ * @member {string} newIssueUri
12869
+ * @memberof google.api.Publishing
12870
+ * @instance
12871
+ */
12872
+ Publishing.prototype.newIssueUri = "";
12873
+
12874
+ /**
12875
+ * Publishing documentationUri.
12876
+ * @member {string} documentationUri
12877
+ * @memberof google.api.Publishing
12878
+ * @instance
12879
+ */
12880
+ Publishing.prototype.documentationUri = "";
12881
+
12882
+ /**
12883
+ * Publishing apiShortName.
12884
+ * @member {string} apiShortName
12885
+ * @memberof google.api.Publishing
12886
+ * @instance
12887
+ */
12888
+ Publishing.prototype.apiShortName = "";
12889
+
12890
+ /**
12891
+ * Publishing githubLabel.
12892
+ * @member {string} githubLabel
12893
+ * @memberof google.api.Publishing
12894
+ * @instance
12895
+ */
12896
+ Publishing.prototype.githubLabel = "";
12897
+
12898
+ /**
12899
+ * Publishing codeownerGithubTeams.
12900
+ * @member {Array.<string>} codeownerGithubTeams
12901
+ * @memberof google.api.Publishing
12902
+ * @instance
12903
+ */
12904
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
12905
+
12906
+ /**
12907
+ * Publishing docTagPrefix.
12908
+ * @member {string} docTagPrefix
12909
+ * @memberof google.api.Publishing
12910
+ * @instance
12911
+ */
12912
+ Publishing.prototype.docTagPrefix = "";
12913
+
12914
+ /**
12915
+ * Publishing organization.
12916
+ * @member {google.api.ClientLibraryOrganization} organization
12917
+ * @memberof google.api.Publishing
12918
+ * @instance
12919
+ */
12920
+ Publishing.prototype.organization = 0;
12921
+
12922
+ /**
12923
+ * Publishing librarySettings.
12924
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
12925
+ * @memberof google.api.Publishing
12926
+ * @instance
12927
+ */
12928
+ Publishing.prototype.librarySettings = $util.emptyArray;
12929
+
12930
+ /**
12931
+ * Creates a new Publishing instance using the specified properties.
12932
+ * @function create
12933
+ * @memberof google.api.Publishing
12934
+ * @static
12935
+ * @param {google.api.IPublishing=} [properties] Properties to set
12936
+ * @returns {google.api.Publishing} Publishing instance
12937
+ */
12938
+ Publishing.create = function create(properties) {
12939
+ return new Publishing(properties);
12940
+ };
12941
+
12942
+ /**
12943
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
12944
+ * @function encode
12945
+ * @memberof google.api.Publishing
12946
+ * @static
12947
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
12948
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12949
+ * @returns {$protobuf.Writer} Writer
12950
+ */
12951
+ Publishing.encode = function encode(message, writer) {
12952
+ if (!writer)
12953
+ writer = $Writer.create();
12954
+ if (message.methodSettings != null && message.methodSettings.length)
12955
+ for (var i = 0; i < message.methodSettings.length; ++i)
12956
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
12957
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
12958
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
12959
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
12960
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
12961
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
12962
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
12963
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
12964
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
12965
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
12966
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
12967
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
12968
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
12969
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
12970
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
12971
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
12972
+ if (message.librarySettings != null && message.librarySettings.length)
12973
+ for (var i = 0; i < message.librarySettings.length; ++i)
12974
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
12975
+ return writer;
12976
+ };
12977
+
12978
+ /**
12979
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
12980
+ * @function encodeDelimited
12981
+ * @memberof google.api.Publishing
12982
+ * @static
12983
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
12984
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12985
+ * @returns {$protobuf.Writer} Writer
12986
+ */
12987
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
12988
+ return this.encode(message, writer).ldelim();
12989
+ };
12990
+
12991
+ /**
12992
+ * Decodes a Publishing message from the specified reader or buffer.
12993
+ * @function decode
12994
+ * @memberof google.api.Publishing
12995
+ * @static
12996
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12997
+ * @param {number} [length] Message length if known beforehand
12998
+ * @returns {google.api.Publishing} Publishing
12999
+ * @throws {Error} If the payload is not a reader or valid buffer
13000
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13001
+ */
13002
+ Publishing.decode = function decode(reader, length) {
13003
+ if (!(reader instanceof $Reader))
13004
+ reader = $Reader.create(reader);
13005
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
13006
+ while (reader.pos < end) {
13007
+ var tag = reader.uint32();
13008
+ switch (tag >>> 3) {
13009
+ case 2: {
13010
+ if (!(message.methodSettings && message.methodSettings.length))
13011
+ message.methodSettings = [];
13012
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
13013
+ break;
13014
+ }
13015
+ case 101: {
13016
+ message.newIssueUri = reader.string();
13017
+ break;
13018
+ }
13019
+ case 102: {
13020
+ message.documentationUri = reader.string();
13021
+ break;
13022
+ }
13023
+ case 103: {
13024
+ message.apiShortName = reader.string();
13025
+ break;
13026
+ }
13027
+ case 104: {
13028
+ message.githubLabel = reader.string();
13029
+ break;
13030
+ }
13031
+ case 105: {
13032
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
13033
+ message.codeownerGithubTeams = [];
13034
+ message.codeownerGithubTeams.push(reader.string());
13035
+ break;
13036
+ }
13037
+ case 106: {
13038
+ message.docTagPrefix = reader.string();
13039
+ break;
13040
+ }
13041
+ case 107: {
13042
+ message.organization = reader.int32();
13043
+ break;
13044
+ }
13045
+ case 109: {
13046
+ if (!(message.librarySettings && message.librarySettings.length))
13047
+ message.librarySettings = [];
13048
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
13049
+ break;
13050
+ }
13051
+ default:
13052
+ reader.skipType(tag & 7);
13053
+ break;
13054
+ }
13055
+ }
13056
+ return message;
13057
+ };
13058
+
13059
+ /**
13060
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
13061
+ * @function decodeDelimited
13062
+ * @memberof google.api.Publishing
13063
+ * @static
13064
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13065
+ * @returns {google.api.Publishing} Publishing
13066
+ * @throws {Error} If the payload is not a reader or valid buffer
13067
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13068
+ */
13069
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
13070
+ if (!(reader instanceof $Reader))
13071
+ reader = new $Reader(reader);
13072
+ return this.decode(reader, reader.uint32());
13073
+ };
13074
+
13075
+ /**
13076
+ * Verifies a Publishing message.
13077
+ * @function verify
13078
+ * @memberof google.api.Publishing
13079
+ * @static
13080
+ * @param {Object.<string,*>} message Plain object to verify
13081
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13082
+ */
13083
+ Publishing.verify = function verify(message) {
13084
+ if (typeof message !== "object" || message === null)
13085
+ return "object expected";
13086
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
13087
+ if (!Array.isArray(message.methodSettings))
13088
+ return "methodSettings: array expected";
13089
+ for (var i = 0; i < message.methodSettings.length; ++i) {
13090
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
13091
+ if (error)
13092
+ return "methodSettings." + error;
13093
+ }
13094
+ }
13095
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
13096
+ if (!$util.isString(message.newIssueUri))
13097
+ return "newIssueUri: string expected";
13098
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
13099
+ if (!$util.isString(message.documentationUri))
13100
+ return "documentationUri: string expected";
13101
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
13102
+ if (!$util.isString(message.apiShortName))
13103
+ return "apiShortName: string expected";
13104
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
13105
+ if (!$util.isString(message.githubLabel))
13106
+ return "githubLabel: string expected";
13107
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
13108
+ if (!Array.isArray(message.codeownerGithubTeams))
13109
+ return "codeownerGithubTeams: array expected";
13110
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
13111
+ if (!$util.isString(message.codeownerGithubTeams[i]))
13112
+ return "codeownerGithubTeams: string[] expected";
13113
+ }
13114
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
13115
+ if (!$util.isString(message.docTagPrefix))
13116
+ return "docTagPrefix: string expected";
13117
+ if (message.organization != null && message.hasOwnProperty("organization"))
13118
+ switch (message.organization) {
13119
+ default:
13120
+ return "organization: enum value expected";
13121
+ case 0:
13122
+ case 1:
13123
+ case 2:
13124
+ case 3:
13125
+ case 4:
13126
+ break;
13127
+ }
13128
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
13129
+ if (!Array.isArray(message.librarySettings))
13130
+ return "librarySettings: array expected";
13131
+ for (var i = 0; i < message.librarySettings.length; ++i) {
13132
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
13133
+ if (error)
13134
+ return "librarySettings." + error;
13135
+ }
13136
+ }
13137
+ return null;
13138
+ };
13139
+
13140
+ /**
13141
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
13142
+ * @function fromObject
13143
+ * @memberof google.api.Publishing
13144
+ * @static
13145
+ * @param {Object.<string,*>} object Plain object
13146
+ * @returns {google.api.Publishing} Publishing
13147
+ */
13148
+ Publishing.fromObject = function fromObject(object) {
13149
+ if (object instanceof $root.google.api.Publishing)
13150
+ return object;
13151
+ var message = new $root.google.api.Publishing();
13152
+ if (object.methodSettings) {
13153
+ if (!Array.isArray(object.methodSettings))
13154
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
13155
+ message.methodSettings = [];
13156
+ for (var i = 0; i < object.methodSettings.length; ++i) {
13157
+ if (typeof object.methodSettings[i] !== "object")
13158
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
13159
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
13160
+ }
13161
+ }
13162
+ if (object.newIssueUri != null)
13163
+ message.newIssueUri = String(object.newIssueUri);
13164
+ if (object.documentationUri != null)
13165
+ message.documentationUri = String(object.documentationUri);
13166
+ if (object.apiShortName != null)
13167
+ message.apiShortName = String(object.apiShortName);
13168
+ if (object.githubLabel != null)
13169
+ message.githubLabel = String(object.githubLabel);
13170
+ if (object.codeownerGithubTeams) {
13171
+ if (!Array.isArray(object.codeownerGithubTeams))
13172
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
13173
+ message.codeownerGithubTeams = [];
13174
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
13175
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
13176
+ }
13177
+ if (object.docTagPrefix != null)
13178
+ message.docTagPrefix = String(object.docTagPrefix);
13179
+ switch (object.organization) {
13180
+ default:
13181
+ if (typeof object.organization === "number") {
13182
+ message.organization = object.organization;
13183
+ break;
13184
+ }
13185
+ break;
13186
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
13187
+ case 0:
13188
+ message.organization = 0;
13189
+ break;
13190
+ case "CLOUD":
13191
+ case 1:
13192
+ message.organization = 1;
13193
+ break;
13194
+ case "ADS":
13195
+ case 2:
13196
+ message.organization = 2;
13197
+ break;
13198
+ case "PHOTOS":
13199
+ case 3:
13200
+ message.organization = 3;
13201
+ break;
13202
+ case "STREET_VIEW":
13203
+ case 4:
13204
+ message.organization = 4;
13205
+ break;
13206
+ }
13207
+ if (object.librarySettings) {
13208
+ if (!Array.isArray(object.librarySettings))
13209
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
13210
+ message.librarySettings = [];
13211
+ for (var i = 0; i < object.librarySettings.length; ++i) {
13212
+ if (typeof object.librarySettings[i] !== "object")
13213
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
13214
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
13215
+ }
13216
+ }
13217
+ return message;
13218
+ };
13219
+
13220
+ /**
13221
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
13222
+ * @function toObject
13223
+ * @memberof google.api.Publishing
13224
+ * @static
13225
+ * @param {google.api.Publishing} message Publishing
13226
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13227
+ * @returns {Object.<string,*>} Plain object
13228
+ */
13229
+ Publishing.toObject = function toObject(message, options) {
13230
+ if (!options)
13231
+ options = {};
13232
+ var object = {};
13233
+ if (options.arrays || options.defaults) {
13234
+ object.methodSettings = [];
13235
+ object.codeownerGithubTeams = [];
13236
+ object.librarySettings = [];
13237
+ }
13238
+ if (options.defaults) {
13239
+ object.newIssueUri = "";
13240
+ object.documentationUri = "";
13241
+ object.apiShortName = "";
13242
+ object.githubLabel = "";
13243
+ object.docTagPrefix = "";
13244
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
13245
+ }
13246
+ if (message.methodSettings && message.methodSettings.length) {
13247
+ object.methodSettings = [];
13248
+ for (var j = 0; j < message.methodSettings.length; ++j)
13249
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
13250
+ }
13251
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
13252
+ object.newIssueUri = message.newIssueUri;
13253
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
13254
+ object.documentationUri = message.documentationUri;
13255
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
13256
+ object.apiShortName = message.apiShortName;
13257
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
13258
+ object.githubLabel = message.githubLabel;
13259
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
13260
+ object.codeownerGithubTeams = [];
13261
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
13262
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
13263
+ }
13264
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
13265
+ object.docTagPrefix = message.docTagPrefix;
13266
+ if (message.organization != null && message.hasOwnProperty("organization"))
13267
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
13268
+ if (message.librarySettings && message.librarySettings.length) {
13269
+ object.librarySettings = [];
13270
+ for (var j = 0; j < message.librarySettings.length; ++j)
13271
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
13272
+ }
13273
+ return object;
13274
+ };
13275
+
13276
+ /**
13277
+ * Converts this Publishing to JSON.
13278
+ * @function toJSON
13279
+ * @memberof google.api.Publishing
13280
+ * @instance
13281
+ * @returns {Object.<string,*>} JSON object
13282
+ */
13283
+ Publishing.prototype.toJSON = function toJSON() {
13284
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13285
+ };
13286
+
13287
+ /**
13288
+ * Gets the default type url for Publishing
13289
+ * @function getTypeUrl
13290
+ * @memberof google.api.Publishing
13291
+ * @static
13292
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13293
+ * @returns {string} The default type url
13294
+ */
13295
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13296
+ if (typeUrlPrefix === undefined) {
13297
+ typeUrlPrefix = "type.googleapis.com";
13298
+ }
13299
+ return typeUrlPrefix + "/google.api.Publishing";
13300
+ };
13301
+
13302
+ return Publishing;
13303
+ })();
13304
+
13305
+ api.JavaSettings = (function() {
13306
+
13307
+ /**
13308
+ * Properties of a JavaSettings.
13309
+ * @memberof google.api
13310
+ * @interface IJavaSettings
13311
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
13312
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
13313
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
13314
+ */
13315
+
13316
+ /**
13317
+ * Constructs a new JavaSettings.
13318
+ * @memberof google.api
13319
+ * @classdesc Represents a JavaSettings.
13320
+ * @implements IJavaSettings
13321
+ * @constructor
13322
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
13323
+ */
13324
+ function JavaSettings(properties) {
13325
+ this.serviceClassNames = {};
13326
+ if (properties)
13327
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13328
+ if (properties[keys[i]] != null)
13329
+ this[keys[i]] = properties[keys[i]];
13330
+ }
13331
+
13332
+ /**
13333
+ * JavaSettings libraryPackage.
13334
+ * @member {string} libraryPackage
13335
+ * @memberof google.api.JavaSettings
13336
+ * @instance
13337
+ */
13338
+ JavaSettings.prototype.libraryPackage = "";
13339
+
13340
+ /**
13341
+ * JavaSettings serviceClassNames.
13342
+ * @member {Object.<string,string>} serviceClassNames
13343
+ * @memberof google.api.JavaSettings
13344
+ * @instance
13345
+ */
13346
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
13347
+
13348
+ /**
13349
+ * JavaSettings common.
13350
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
13351
+ * @memberof google.api.JavaSettings
13352
+ * @instance
13353
+ */
13354
+ JavaSettings.prototype.common = null;
13355
+
13356
+ /**
13357
+ * Creates a new JavaSettings instance using the specified properties.
13358
+ * @function create
13359
+ * @memberof google.api.JavaSettings
13360
+ * @static
13361
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
13362
+ * @returns {google.api.JavaSettings} JavaSettings instance
13363
+ */
13364
+ JavaSettings.create = function create(properties) {
13365
+ return new JavaSettings(properties);
13366
+ };
13367
+
13368
+ /**
13369
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
13370
+ * @function encode
13371
+ * @memberof google.api.JavaSettings
13372
+ * @static
13373
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
13374
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13375
+ * @returns {$protobuf.Writer} Writer
13376
+ */
13377
+ JavaSettings.encode = function encode(message, writer) {
13378
+ if (!writer)
13379
+ writer = $Writer.create();
13380
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
13381
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
13382
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
13383
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
13384
+ 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();
13385
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
13386
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
13387
+ return writer;
13388
+ };
13389
+
13390
+ /**
13391
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
13392
+ * @function encodeDelimited
13393
+ * @memberof google.api.JavaSettings
13394
+ * @static
13395
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
13396
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13397
+ * @returns {$protobuf.Writer} Writer
13398
+ */
13399
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
13400
+ return this.encode(message, writer).ldelim();
13401
+ };
13402
+
13403
+ /**
13404
+ * Decodes a JavaSettings message from the specified reader or buffer.
13405
+ * @function decode
13406
+ * @memberof google.api.JavaSettings
13407
+ * @static
13408
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13409
+ * @param {number} [length] Message length if known beforehand
13410
+ * @returns {google.api.JavaSettings} JavaSettings
13411
+ * @throws {Error} If the payload is not a reader or valid buffer
13412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13413
+ */
13414
+ JavaSettings.decode = function decode(reader, length) {
13415
+ if (!(reader instanceof $Reader))
13416
+ reader = $Reader.create(reader);
13417
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
13418
+ while (reader.pos < end) {
13419
+ var tag = reader.uint32();
13420
+ switch (tag >>> 3) {
13421
+ case 1: {
13422
+ message.libraryPackage = reader.string();
13423
+ break;
13424
+ }
13425
+ case 2: {
13426
+ if (message.serviceClassNames === $util.emptyObject)
13427
+ message.serviceClassNames = {};
13428
+ var end2 = reader.uint32() + reader.pos;
13429
+ key = "";
13430
+ value = "";
13431
+ while (reader.pos < end2) {
13432
+ var tag2 = reader.uint32();
13433
+ switch (tag2 >>> 3) {
13434
+ case 1:
13435
+ key = reader.string();
13436
+ break;
13437
+ case 2:
13438
+ value = reader.string();
13439
+ break;
13440
+ default:
13441
+ reader.skipType(tag2 & 7);
13442
+ break;
13443
+ }
13444
+ }
13445
+ message.serviceClassNames[key] = value;
13446
+ break;
13447
+ }
13448
+ case 3: {
13449
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
13450
+ break;
13451
+ }
13452
+ default:
13453
+ reader.skipType(tag & 7);
13454
+ break;
13455
+ }
13456
+ }
13457
+ return message;
13458
+ };
13459
+
13460
+ /**
13461
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
13462
+ * @function decodeDelimited
13463
+ * @memberof google.api.JavaSettings
13464
+ * @static
13465
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13466
+ * @returns {google.api.JavaSettings} JavaSettings
13467
+ * @throws {Error} If the payload is not a reader or valid buffer
13468
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13469
+ */
13470
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
13471
+ if (!(reader instanceof $Reader))
13472
+ reader = new $Reader(reader);
13473
+ return this.decode(reader, reader.uint32());
13474
+ };
13475
+
13476
+ /**
13477
+ * Verifies a JavaSettings message.
13478
+ * @function verify
13479
+ * @memberof google.api.JavaSettings
13480
+ * @static
13481
+ * @param {Object.<string,*>} message Plain object to verify
13482
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13483
+ */
13484
+ JavaSettings.verify = function verify(message) {
13485
+ if (typeof message !== "object" || message === null)
13486
+ return "object expected";
13487
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
13488
+ if (!$util.isString(message.libraryPackage))
13489
+ return "libraryPackage: string expected";
13490
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
13491
+ if (!$util.isObject(message.serviceClassNames))
13492
+ return "serviceClassNames: object expected";
13493
+ var key = Object.keys(message.serviceClassNames);
13494
+ for (var i = 0; i < key.length; ++i)
13495
+ if (!$util.isString(message.serviceClassNames[key[i]]))
13496
+ return "serviceClassNames: string{k:string} expected";
13497
+ }
13498
+ if (message.common != null && message.hasOwnProperty("common")) {
13499
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
13500
+ if (error)
13501
+ return "common." + error;
13502
+ }
13503
+ return null;
13504
+ };
13505
+
13506
+ /**
13507
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
13508
+ * @function fromObject
13509
+ * @memberof google.api.JavaSettings
13510
+ * @static
13511
+ * @param {Object.<string,*>} object Plain object
13512
+ * @returns {google.api.JavaSettings} JavaSettings
13513
+ */
13514
+ JavaSettings.fromObject = function fromObject(object) {
13515
+ if (object instanceof $root.google.api.JavaSettings)
13516
+ return object;
13517
+ var message = new $root.google.api.JavaSettings();
13518
+ if (object.libraryPackage != null)
13519
+ message.libraryPackage = String(object.libraryPackage);
13520
+ if (object.serviceClassNames) {
13521
+ if (typeof object.serviceClassNames !== "object")
13522
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
13523
+ message.serviceClassNames = {};
13524
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
13525
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
13526
+ }
13527
+ if (object.common != null) {
13528
+ if (typeof object.common !== "object")
13529
+ throw TypeError(".google.api.JavaSettings.common: object expected");
13530
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
13531
+ }
13532
+ return message;
13533
+ };
13534
+
13535
+ /**
13536
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
13537
+ * @function toObject
13538
+ * @memberof google.api.JavaSettings
13539
+ * @static
13540
+ * @param {google.api.JavaSettings} message JavaSettings
13541
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13542
+ * @returns {Object.<string,*>} Plain object
13543
+ */
13544
+ JavaSettings.toObject = function toObject(message, options) {
13545
+ if (!options)
13546
+ options = {};
13547
+ var object = {};
13548
+ if (options.objects || options.defaults)
13549
+ object.serviceClassNames = {};
13550
+ if (options.defaults) {
13551
+ object.libraryPackage = "";
13552
+ object.common = null;
13553
+ }
13554
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
13555
+ object.libraryPackage = message.libraryPackage;
13556
+ var keys2;
13557
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
13558
+ object.serviceClassNames = {};
13559
+ for (var j = 0; j < keys2.length; ++j)
13560
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
13561
+ }
13562
+ if (message.common != null && message.hasOwnProperty("common"))
13563
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
13564
+ return object;
13565
+ };
13566
+
13567
+ /**
13568
+ * Converts this JavaSettings to JSON.
13569
+ * @function toJSON
13570
+ * @memberof google.api.JavaSettings
13571
+ * @instance
13572
+ * @returns {Object.<string,*>} JSON object
13573
+ */
13574
+ JavaSettings.prototype.toJSON = function toJSON() {
13575
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13576
+ };
13577
+
13578
+ /**
13579
+ * Gets the default type url for JavaSettings
13580
+ * @function getTypeUrl
13581
+ * @memberof google.api.JavaSettings
13582
+ * @static
13583
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13584
+ * @returns {string} The default type url
13585
+ */
13586
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13587
+ if (typeUrlPrefix === undefined) {
13588
+ typeUrlPrefix = "type.googleapis.com";
13589
+ }
13590
+ return typeUrlPrefix + "/google.api.JavaSettings";
13591
+ };
13592
+
13593
+ return JavaSettings;
13594
+ })();
13595
+
13596
+ api.CppSettings = (function() {
13597
+
13598
+ /**
13599
+ * Properties of a CppSettings.
13600
+ * @memberof google.api
13601
+ * @interface ICppSettings
13602
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
13603
+ */
13604
+
13605
+ /**
13606
+ * Constructs a new CppSettings.
13607
+ * @memberof google.api
13608
+ * @classdesc Represents a CppSettings.
13609
+ * @implements ICppSettings
13610
+ * @constructor
13611
+ * @param {google.api.ICppSettings=} [properties] Properties to set
13612
+ */
13613
+ function CppSettings(properties) {
13614
+ if (properties)
13615
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13616
+ if (properties[keys[i]] != null)
13617
+ this[keys[i]] = properties[keys[i]];
13618
+ }
13619
+
13620
+ /**
13621
+ * CppSettings common.
13622
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
13623
+ * @memberof google.api.CppSettings
13624
+ * @instance
13625
+ */
13626
+ CppSettings.prototype.common = null;
13627
+
13628
+ /**
13629
+ * Creates a new CppSettings instance using the specified properties.
13630
+ * @function create
13631
+ * @memberof google.api.CppSettings
13632
+ * @static
13633
+ * @param {google.api.ICppSettings=} [properties] Properties to set
13634
+ * @returns {google.api.CppSettings} CppSettings instance
13635
+ */
13636
+ CppSettings.create = function create(properties) {
13637
+ return new CppSettings(properties);
13638
+ };
13639
+
13640
+ /**
13641
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
13642
+ * @function encode
13643
+ * @memberof google.api.CppSettings
13644
+ * @static
13645
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
13646
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13647
+ * @returns {$protobuf.Writer} Writer
13648
+ */
13649
+ CppSettings.encode = function encode(message, writer) {
13650
+ if (!writer)
13651
+ writer = $Writer.create();
13652
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
13653
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13654
+ return writer;
13655
+ };
13656
+
13657
+ /**
13658
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
13659
+ * @function encodeDelimited
13660
+ * @memberof google.api.CppSettings
13661
+ * @static
13662
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
13663
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13664
+ * @returns {$protobuf.Writer} Writer
13665
+ */
13666
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
13667
+ return this.encode(message, writer).ldelim();
13668
+ };
13669
+
13670
+ /**
13671
+ * Decodes a CppSettings message from the specified reader or buffer.
13672
+ * @function decode
13673
+ * @memberof google.api.CppSettings
13674
+ * @static
13675
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13676
+ * @param {number} [length] Message length if known beforehand
13677
+ * @returns {google.api.CppSettings} CppSettings
13678
+ * @throws {Error} If the payload is not a reader or valid buffer
13679
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13680
+ */
13681
+ CppSettings.decode = function decode(reader, length) {
13682
+ if (!(reader instanceof $Reader))
13683
+ reader = $Reader.create(reader);
13684
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
13685
+ while (reader.pos < end) {
13686
+ var tag = reader.uint32();
13687
+ switch (tag >>> 3) {
13688
+ case 1: {
13689
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
13690
+ break;
13691
+ }
13692
+ default:
13693
+ reader.skipType(tag & 7);
13694
+ break;
13695
+ }
13696
+ }
13697
+ return message;
13698
+ };
13699
+
13700
+ /**
13701
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
13702
+ * @function decodeDelimited
13703
+ * @memberof google.api.CppSettings
13704
+ * @static
13705
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13706
+ * @returns {google.api.CppSettings} CppSettings
13707
+ * @throws {Error} If the payload is not a reader or valid buffer
13708
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13709
+ */
13710
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
13711
+ if (!(reader instanceof $Reader))
13712
+ reader = new $Reader(reader);
13713
+ return this.decode(reader, reader.uint32());
13714
+ };
13715
+
13716
+ /**
13717
+ * Verifies a CppSettings message.
13718
+ * @function verify
13719
+ * @memberof google.api.CppSettings
13720
+ * @static
13721
+ * @param {Object.<string,*>} message Plain object to verify
13722
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13723
+ */
13724
+ CppSettings.verify = function verify(message) {
13725
+ if (typeof message !== "object" || message === null)
13726
+ return "object expected";
13727
+ if (message.common != null && message.hasOwnProperty("common")) {
13728
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
13729
+ if (error)
13730
+ return "common." + error;
13731
+ }
13732
+ return null;
13733
+ };
13734
+
13735
+ /**
13736
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
13737
+ * @function fromObject
13738
+ * @memberof google.api.CppSettings
13739
+ * @static
13740
+ * @param {Object.<string,*>} object Plain object
13741
+ * @returns {google.api.CppSettings} CppSettings
13742
+ */
13743
+ CppSettings.fromObject = function fromObject(object) {
13744
+ if (object instanceof $root.google.api.CppSettings)
13745
+ return object;
13746
+ var message = new $root.google.api.CppSettings();
13747
+ if (object.common != null) {
13748
+ if (typeof object.common !== "object")
13749
+ throw TypeError(".google.api.CppSettings.common: object expected");
13750
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
13751
+ }
13752
+ return message;
13753
+ };
13754
+
13755
+ /**
13756
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
13757
+ * @function toObject
13758
+ * @memberof google.api.CppSettings
13759
+ * @static
13760
+ * @param {google.api.CppSettings} message CppSettings
13761
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13762
+ * @returns {Object.<string,*>} Plain object
13763
+ */
13764
+ CppSettings.toObject = function toObject(message, options) {
13765
+ if (!options)
13766
+ options = {};
13767
+ var object = {};
13768
+ if (options.defaults)
13769
+ object.common = null;
13770
+ if (message.common != null && message.hasOwnProperty("common"))
13771
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
13772
+ return object;
13773
+ };
13774
+
13775
+ /**
13776
+ * Converts this CppSettings to JSON.
13777
+ * @function toJSON
13778
+ * @memberof google.api.CppSettings
13779
+ * @instance
13780
+ * @returns {Object.<string,*>} JSON object
13781
+ */
13782
+ CppSettings.prototype.toJSON = function toJSON() {
13783
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13784
+ };
13785
+
13786
+ /**
13787
+ * Gets the default type url for CppSettings
13788
+ * @function getTypeUrl
13789
+ * @memberof google.api.CppSettings
13790
+ * @static
13791
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13792
+ * @returns {string} The default type url
13793
+ */
13794
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13795
+ if (typeUrlPrefix === undefined) {
13796
+ typeUrlPrefix = "type.googleapis.com";
13797
+ }
13798
+ return typeUrlPrefix + "/google.api.CppSettings";
13799
+ };
13800
+
13801
+ return CppSettings;
13802
+ })();
13803
+
13804
+ api.PhpSettings = (function() {
13805
+
13806
+ /**
13807
+ * Properties of a PhpSettings.
13808
+ * @memberof google.api
13809
+ * @interface IPhpSettings
13810
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
13811
+ */
13812
+
13813
+ /**
13814
+ * Constructs a new PhpSettings.
13815
+ * @memberof google.api
13816
+ * @classdesc Represents a PhpSettings.
13817
+ * @implements IPhpSettings
13818
+ * @constructor
13819
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
13820
+ */
13821
+ function PhpSettings(properties) {
13822
+ if (properties)
13823
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13824
+ if (properties[keys[i]] != null)
13825
+ this[keys[i]] = properties[keys[i]];
13826
+ }
13827
+
13828
+ /**
13829
+ * PhpSettings common.
13830
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
13831
+ * @memberof google.api.PhpSettings
13832
+ * @instance
13833
+ */
13834
+ PhpSettings.prototype.common = null;
13835
+
13836
+ /**
13837
+ * Creates a new PhpSettings instance using the specified properties.
13838
+ * @function create
13839
+ * @memberof google.api.PhpSettings
13840
+ * @static
13841
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
13842
+ * @returns {google.api.PhpSettings} PhpSettings instance
13843
+ */
13844
+ PhpSettings.create = function create(properties) {
13845
+ return new PhpSettings(properties);
13846
+ };
13847
+
13848
+ /**
13849
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
13850
+ * @function encode
13851
+ * @memberof google.api.PhpSettings
13852
+ * @static
13853
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
13854
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13855
+ * @returns {$protobuf.Writer} Writer
13856
+ */
13857
+ PhpSettings.encode = function encode(message, writer) {
13858
+ if (!writer)
13859
+ writer = $Writer.create();
13860
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
13861
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13862
+ return writer;
13863
+ };
13864
+
13865
+ /**
13866
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
13867
+ * @function encodeDelimited
13868
+ * @memberof google.api.PhpSettings
13869
+ * @static
13870
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
13871
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13872
+ * @returns {$protobuf.Writer} Writer
13873
+ */
13874
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
13875
+ return this.encode(message, writer).ldelim();
13876
+ };
13877
+
13878
+ /**
13879
+ * Decodes a PhpSettings message from the specified reader or buffer.
13880
+ * @function decode
13881
+ * @memberof google.api.PhpSettings
13882
+ * @static
13883
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13884
+ * @param {number} [length] Message length if known beforehand
13885
+ * @returns {google.api.PhpSettings} PhpSettings
13886
+ * @throws {Error} If the payload is not a reader or valid buffer
13887
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13888
+ */
13889
+ PhpSettings.decode = function decode(reader, length) {
13890
+ if (!(reader instanceof $Reader))
13891
+ reader = $Reader.create(reader);
13892
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
13893
+ while (reader.pos < end) {
13894
+ var tag = reader.uint32();
13895
+ switch (tag >>> 3) {
13896
+ case 1: {
13897
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
13898
+ break;
13899
+ }
13900
+ default:
13901
+ reader.skipType(tag & 7);
13902
+ break;
13903
+ }
13904
+ }
13905
+ return message;
13906
+ };
13907
+
13908
+ /**
13909
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
13910
+ * @function decodeDelimited
13911
+ * @memberof google.api.PhpSettings
13912
+ * @static
13913
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13914
+ * @returns {google.api.PhpSettings} PhpSettings
13915
+ * @throws {Error} If the payload is not a reader or valid buffer
13916
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13917
+ */
13918
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
13919
+ if (!(reader instanceof $Reader))
13920
+ reader = new $Reader(reader);
13921
+ return this.decode(reader, reader.uint32());
13922
+ };
13923
+
13924
+ /**
13925
+ * Verifies a PhpSettings message.
13926
+ * @function verify
13927
+ * @memberof google.api.PhpSettings
13928
+ * @static
13929
+ * @param {Object.<string,*>} message Plain object to verify
13930
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13931
+ */
13932
+ PhpSettings.verify = function verify(message) {
13933
+ if (typeof message !== "object" || message === null)
13934
+ return "object expected";
13935
+ if (message.common != null && message.hasOwnProperty("common")) {
13936
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
13937
+ if (error)
13938
+ return "common." + error;
13939
+ }
13940
+ return null;
13941
+ };
13942
+
13943
+ /**
13944
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
13945
+ * @function fromObject
13946
+ * @memberof google.api.PhpSettings
13947
+ * @static
13948
+ * @param {Object.<string,*>} object Plain object
13949
+ * @returns {google.api.PhpSettings} PhpSettings
13950
+ */
13951
+ PhpSettings.fromObject = function fromObject(object) {
13952
+ if (object instanceof $root.google.api.PhpSettings)
13953
+ return object;
13954
+ var message = new $root.google.api.PhpSettings();
13955
+ if (object.common != null) {
13956
+ if (typeof object.common !== "object")
13957
+ throw TypeError(".google.api.PhpSettings.common: object expected");
13958
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
13959
+ }
13960
+ return message;
13961
+ };
13962
+
13963
+ /**
13964
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
13965
+ * @function toObject
13966
+ * @memberof google.api.PhpSettings
13967
+ * @static
13968
+ * @param {google.api.PhpSettings} message PhpSettings
13969
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13970
+ * @returns {Object.<string,*>} Plain object
13971
+ */
13972
+ PhpSettings.toObject = function toObject(message, options) {
13973
+ if (!options)
13974
+ options = {};
13975
+ var object = {};
13976
+ if (options.defaults)
13977
+ object.common = null;
13978
+ if (message.common != null && message.hasOwnProperty("common"))
13979
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
13980
+ return object;
13981
+ };
13982
+
13983
+ /**
13984
+ * Converts this PhpSettings to JSON.
13985
+ * @function toJSON
13986
+ * @memberof google.api.PhpSettings
13987
+ * @instance
13988
+ * @returns {Object.<string,*>} JSON object
13989
+ */
13990
+ PhpSettings.prototype.toJSON = function toJSON() {
13991
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13992
+ };
13993
+
13994
+ /**
13995
+ * Gets the default type url for PhpSettings
13996
+ * @function getTypeUrl
13997
+ * @memberof google.api.PhpSettings
13998
+ * @static
13999
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14000
+ * @returns {string} The default type url
14001
+ */
14002
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14003
+ if (typeUrlPrefix === undefined) {
14004
+ typeUrlPrefix = "type.googleapis.com";
14005
+ }
14006
+ return typeUrlPrefix + "/google.api.PhpSettings";
14007
+ };
14008
+
14009
+ return PhpSettings;
14010
+ })();
14011
+
14012
+ api.PythonSettings = (function() {
14013
+
14014
+ /**
14015
+ * Properties of a PythonSettings.
14016
+ * @memberof google.api
14017
+ * @interface IPythonSettings
14018
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
14019
+ */
14020
+
14021
+ /**
14022
+ * Constructs a new PythonSettings.
14023
+ * @memberof google.api
14024
+ * @classdesc Represents a PythonSettings.
14025
+ * @implements IPythonSettings
14026
+ * @constructor
14027
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
14028
+ */
14029
+ function PythonSettings(properties) {
14030
+ if (properties)
14031
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14032
+ if (properties[keys[i]] != null)
14033
+ this[keys[i]] = properties[keys[i]];
14034
+ }
14035
+
14036
+ /**
14037
+ * PythonSettings common.
14038
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14039
+ * @memberof google.api.PythonSettings
14040
+ * @instance
14041
+ */
14042
+ PythonSettings.prototype.common = null;
14043
+
14044
+ /**
14045
+ * Creates a new PythonSettings instance using the specified properties.
14046
+ * @function create
14047
+ * @memberof google.api.PythonSettings
14048
+ * @static
14049
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
14050
+ * @returns {google.api.PythonSettings} PythonSettings instance
14051
+ */
14052
+ PythonSettings.create = function create(properties) {
14053
+ return new PythonSettings(properties);
14054
+ };
14055
+
14056
+ /**
14057
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
14058
+ * @function encode
14059
+ * @memberof google.api.PythonSettings
14060
+ * @static
14061
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
14062
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14063
+ * @returns {$protobuf.Writer} Writer
14064
+ */
14065
+ PythonSettings.encode = function encode(message, writer) {
14066
+ if (!writer)
14067
+ writer = $Writer.create();
14068
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14069
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14070
+ return writer;
14071
+ };
14072
+
14073
+ /**
14074
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
14075
+ * @function encodeDelimited
14076
+ * @memberof google.api.PythonSettings
14077
+ * @static
14078
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
14079
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14080
+ * @returns {$protobuf.Writer} Writer
14081
+ */
14082
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
14083
+ return this.encode(message, writer).ldelim();
14084
+ };
14085
+
14086
+ /**
14087
+ * Decodes a PythonSettings message from the specified reader or buffer.
14088
+ * @function decode
14089
+ * @memberof google.api.PythonSettings
14090
+ * @static
14091
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14092
+ * @param {number} [length] Message length if known beforehand
14093
+ * @returns {google.api.PythonSettings} PythonSettings
14094
+ * @throws {Error} If the payload is not a reader or valid buffer
14095
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14096
+ */
14097
+ PythonSettings.decode = function decode(reader, length) {
14098
+ if (!(reader instanceof $Reader))
14099
+ reader = $Reader.create(reader);
14100
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
14101
+ while (reader.pos < end) {
14102
+ var tag = reader.uint32();
14103
+ switch (tag >>> 3) {
14104
+ case 1: {
14105
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14106
+ break;
14107
+ }
14108
+ default:
14109
+ reader.skipType(tag & 7);
14110
+ break;
14111
+ }
14112
+ }
14113
+ return message;
14114
+ };
14115
+
14116
+ /**
14117
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
14118
+ * @function decodeDelimited
14119
+ * @memberof google.api.PythonSettings
14120
+ * @static
14121
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14122
+ * @returns {google.api.PythonSettings} PythonSettings
14123
+ * @throws {Error} If the payload is not a reader or valid buffer
14124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14125
+ */
14126
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
14127
+ if (!(reader instanceof $Reader))
14128
+ reader = new $Reader(reader);
14129
+ return this.decode(reader, reader.uint32());
14130
+ };
14131
+
14132
+ /**
14133
+ * Verifies a PythonSettings message.
14134
+ * @function verify
14135
+ * @memberof google.api.PythonSettings
14136
+ * @static
14137
+ * @param {Object.<string,*>} message Plain object to verify
14138
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14139
+ */
14140
+ PythonSettings.verify = function verify(message) {
14141
+ if (typeof message !== "object" || message === null)
14142
+ return "object expected";
14143
+ if (message.common != null && message.hasOwnProperty("common")) {
14144
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14145
+ if (error)
14146
+ return "common." + error;
14147
+ }
14148
+ return null;
14149
+ };
14150
+
14151
+ /**
14152
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
14153
+ * @function fromObject
14154
+ * @memberof google.api.PythonSettings
14155
+ * @static
14156
+ * @param {Object.<string,*>} object Plain object
14157
+ * @returns {google.api.PythonSettings} PythonSettings
14158
+ */
14159
+ PythonSettings.fromObject = function fromObject(object) {
14160
+ if (object instanceof $root.google.api.PythonSettings)
14161
+ return object;
14162
+ var message = new $root.google.api.PythonSettings();
14163
+ if (object.common != null) {
14164
+ if (typeof object.common !== "object")
14165
+ throw TypeError(".google.api.PythonSettings.common: object expected");
14166
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14167
+ }
14168
+ return message;
14169
+ };
14170
+
14171
+ /**
14172
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
14173
+ * @function toObject
14174
+ * @memberof google.api.PythonSettings
14175
+ * @static
14176
+ * @param {google.api.PythonSettings} message PythonSettings
14177
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14178
+ * @returns {Object.<string,*>} Plain object
14179
+ */
14180
+ PythonSettings.toObject = function toObject(message, options) {
14181
+ if (!options)
14182
+ options = {};
14183
+ var object = {};
14184
+ if (options.defaults)
14185
+ object.common = null;
14186
+ if (message.common != null && message.hasOwnProperty("common"))
14187
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14188
+ return object;
14189
+ };
14190
+
14191
+ /**
14192
+ * Converts this PythonSettings to JSON.
14193
+ * @function toJSON
14194
+ * @memberof google.api.PythonSettings
14195
+ * @instance
14196
+ * @returns {Object.<string,*>} JSON object
14197
+ */
14198
+ PythonSettings.prototype.toJSON = function toJSON() {
14199
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14200
+ };
14201
+
14202
+ /**
14203
+ * Gets the default type url for PythonSettings
14204
+ * @function getTypeUrl
14205
+ * @memberof google.api.PythonSettings
14206
+ * @static
14207
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14208
+ * @returns {string} The default type url
14209
+ */
14210
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14211
+ if (typeUrlPrefix === undefined) {
14212
+ typeUrlPrefix = "type.googleapis.com";
14213
+ }
14214
+ return typeUrlPrefix + "/google.api.PythonSettings";
14215
+ };
14216
+
14217
+ return PythonSettings;
14218
+ })();
14219
+
14220
+ api.NodeSettings = (function() {
14221
+
14222
+ /**
14223
+ * Properties of a NodeSettings.
14224
+ * @memberof google.api
14225
+ * @interface INodeSettings
14226
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
14227
+ */
14228
+
14229
+ /**
14230
+ * Constructs a new NodeSettings.
14231
+ * @memberof google.api
14232
+ * @classdesc Represents a NodeSettings.
14233
+ * @implements INodeSettings
14234
+ * @constructor
14235
+ * @param {google.api.INodeSettings=} [properties] Properties to set
14236
+ */
14237
+ function NodeSettings(properties) {
14238
+ if (properties)
14239
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14240
+ if (properties[keys[i]] != null)
14241
+ this[keys[i]] = properties[keys[i]];
14242
+ }
14243
+
14244
+ /**
14245
+ * NodeSettings common.
14246
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14247
+ * @memberof google.api.NodeSettings
14248
+ * @instance
14249
+ */
14250
+ NodeSettings.prototype.common = null;
14251
+
14252
+ /**
14253
+ * Creates a new NodeSettings instance using the specified properties.
14254
+ * @function create
14255
+ * @memberof google.api.NodeSettings
14256
+ * @static
14257
+ * @param {google.api.INodeSettings=} [properties] Properties to set
14258
+ * @returns {google.api.NodeSettings} NodeSettings instance
14259
+ */
14260
+ NodeSettings.create = function create(properties) {
14261
+ return new NodeSettings(properties);
14262
+ };
14263
+
14264
+ /**
14265
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
14266
+ * @function encode
14267
+ * @memberof google.api.NodeSettings
14268
+ * @static
14269
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
14270
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14271
+ * @returns {$protobuf.Writer} Writer
14272
+ */
14273
+ NodeSettings.encode = function encode(message, writer) {
14274
+ if (!writer)
14275
+ writer = $Writer.create();
14276
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14277
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14278
+ return writer;
14279
+ };
14280
+
14281
+ /**
14282
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
14283
+ * @function encodeDelimited
14284
+ * @memberof google.api.NodeSettings
14285
+ * @static
14286
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
14287
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14288
+ * @returns {$protobuf.Writer} Writer
14289
+ */
14290
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
14291
+ return this.encode(message, writer).ldelim();
14292
+ };
14293
+
14294
+ /**
14295
+ * Decodes a NodeSettings message from the specified reader or buffer.
14296
+ * @function decode
14297
+ * @memberof google.api.NodeSettings
14298
+ * @static
14299
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14300
+ * @param {number} [length] Message length if known beforehand
14301
+ * @returns {google.api.NodeSettings} NodeSettings
14302
+ * @throws {Error} If the payload is not a reader or valid buffer
14303
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14304
+ */
14305
+ NodeSettings.decode = function decode(reader, length) {
14306
+ if (!(reader instanceof $Reader))
14307
+ reader = $Reader.create(reader);
14308
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
14309
+ while (reader.pos < end) {
14310
+ var tag = reader.uint32();
14311
+ switch (tag >>> 3) {
14312
+ case 1: {
14313
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14314
+ break;
14315
+ }
14316
+ default:
14317
+ reader.skipType(tag & 7);
14318
+ break;
14319
+ }
14320
+ }
14321
+ return message;
14322
+ };
14323
+
14324
+ /**
14325
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
14326
+ * @function decodeDelimited
14327
+ * @memberof google.api.NodeSettings
14328
+ * @static
14329
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14330
+ * @returns {google.api.NodeSettings} NodeSettings
14331
+ * @throws {Error} If the payload is not a reader or valid buffer
14332
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14333
+ */
14334
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
14335
+ if (!(reader instanceof $Reader))
14336
+ reader = new $Reader(reader);
14337
+ return this.decode(reader, reader.uint32());
14338
+ };
14339
+
14340
+ /**
14341
+ * Verifies a NodeSettings message.
14342
+ * @function verify
14343
+ * @memberof google.api.NodeSettings
14344
+ * @static
14345
+ * @param {Object.<string,*>} message Plain object to verify
14346
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14347
+ */
14348
+ NodeSettings.verify = function verify(message) {
14349
+ if (typeof message !== "object" || message === null)
14350
+ return "object expected";
14351
+ if (message.common != null && message.hasOwnProperty("common")) {
14352
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14353
+ if (error)
14354
+ return "common." + error;
14355
+ }
14356
+ return null;
14357
+ };
14358
+
14359
+ /**
14360
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
14361
+ * @function fromObject
14362
+ * @memberof google.api.NodeSettings
14363
+ * @static
14364
+ * @param {Object.<string,*>} object Plain object
14365
+ * @returns {google.api.NodeSettings} NodeSettings
14366
+ */
14367
+ NodeSettings.fromObject = function fromObject(object) {
14368
+ if (object instanceof $root.google.api.NodeSettings)
14369
+ return object;
14370
+ var message = new $root.google.api.NodeSettings();
14371
+ if (object.common != null) {
14372
+ if (typeof object.common !== "object")
14373
+ throw TypeError(".google.api.NodeSettings.common: object expected");
14374
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14375
+ }
14376
+ return message;
14377
+ };
14378
+
14379
+ /**
14380
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
14381
+ * @function toObject
14382
+ * @memberof google.api.NodeSettings
14383
+ * @static
14384
+ * @param {google.api.NodeSettings} message NodeSettings
14385
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14386
+ * @returns {Object.<string,*>} Plain object
14387
+ */
14388
+ NodeSettings.toObject = function toObject(message, options) {
14389
+ if (!options)
14390
+ options = {};
14391
+ var object = {};
14392
+ if (options.defaults)
14393
+ object.common = null;
14394
+ if (message.common != null && message.hasOwnProperty("common"))
14395
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14396
+ return object;
14397
+ };
14398
+
14399
+ /**
14400
+ * Converts this NodeSettings to JSON.
14401
+ * @function toJSON
14402
+ * @memberof google.api.NodeSettings
14403
+ * @instance
14404
+ * @returns {Object.<string,*>} JSON object
14405
+ */
14406
+ NodeSettings.prototype.toJSON = function toJSON() {
14407
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14408
+ };
14409
+
14410
+ /**
14411
+ * Gets the default type url for NodeSettings
14412
+ * @function getTypeUrl
14413
+ * @memberof google.api.NodeSettings
14414
+ * @static
14415
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14416
+ * @returns {string} The default type url
14417
+ */
14418
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14419
+ if (typeUrlPrefix === undefined) {
14420
+ typeUrlPrefix = "type.googleapis.com";
14421
+ }
14422
+ return typeUrlPrefix + "/google.api.NodeSettings";
14423
+ };
14424
+
14425
+ return NodeSettings;
14426
+ })();
14427
+
14428
+ api.DotnetSettings = (function() {
14429
+
14430
+ /**
14431
+ * Properties of a DotnetSettings.
14432
+ * @memberof google.api
14433
+ * @interface IDotnetSettings
14434
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
14435
+ */
14436
+
14437
+ /**
14438
+ * Constructs a new DotnetSettings.
14439
+ * @memberof google.api
14440
+ * @classdesc Represents a DotnetSettings.
14441
+ * @implements IDotnetSettings
14442
+ * @constructor
14443
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
14444
+ */
14445
+ function DotnetSettings(properties) {
14446
+ if (properties)
14447
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14448
+ if (properties[keys[i]] != null)
14449
+ this[keys[i]] = properties[keys[i]];
14450
+ }
14451
+
14452
+ /**
14453
+ * DotnetSettings common.
14454
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14455
+ * @memberof google.api.DotnetSettings
14456
+ * @instance
14457
+ */
14458
+ DotnetSettings.prototype.common = null;
14459
+
14460
+ /**
14461
+ * Creates a new DotnetSettings instance using the specified properties.
14462
+ * @function create
14463
+ * @memberof google.api.DotnetSettings
14464
+ * @static
14465
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
14466
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
14467
+ */
14468
+ DotnetSettings.create = function create(properties) {
14469
+ return new DotnetSettings(properties);
14470
+ };
14471
+
14472
+ /**
14473
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
14474
+ * @function encode
14475
+ * @memberof google.api.DotnetSettings
14476
+ * @static
14477
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
14478
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14479
+ * @returns {$protobuf.Writer} Writer
14480
+ */
14481
+ DotnetSettings.encode = function encode(message, writer) {
14482
+ if (!writer)
14483
+ writer = $Writer.create();
14484
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14485
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14486
+ return writer;
14487
+ };
14488
+
14489
+ /**
14490
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
14491
+ * @function encodeDelimited
14492
+ * @memberof google.api.DotnetSettings
14493
+ * @static
14494
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
14495
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14496
+ * @returns {$protobuf.Writer} Writer
14497
+ */
14498
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
14499
+ return this.encode(message, writer).ldelim();
14500
+ };
14501
+
14502
+ /**
14503
+ * Decodes a DotnetSettings message from the specified reader or buffer.
14504
+ * @function decode
14505
+ * @memberof google.api.DotnetSettings
14506
+ * @static
14507
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14508
+ * @param {number} [length] Message length if known beforehand
14509
+ * @returns {google.api.DotnetSettings} DotnetSettings
14510
+ * @throws {Error} If the payload is not a reader or valid buffer
14511
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14512
+ */
14513
+ DotnetSettings.decode = function decode(reader, length) {
14514
+ if (!(reader instanceof $Reader))
14515
+ reader = $Reader.create(reader);
14516
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
14517
+ while (reader.pos < end) {
14518
+ var tag = reader.uint32();
14519
+ switch (tag >>> 3) {
14520
+ case 1: {
14521
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14522
+ break;
14523
+ }
14524
+ default:
14525
+ reader.skipType(tag & 7);
14526
+ break;
14527
+ }
14528
+ }
14529
+ return message;
14530
+ };
14531
+
14532
+ /**
14533
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
14534
+ * @function decodeDelimited
14535
+ * @memberof google.api.DotnetSettings
14536
+ * @static
14537
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14538
+ * @returns {google.api.DotnetSettings} DotnetSettings
14539
+ * @throws {Error} If the payload is not a reader or valid buffer
14540
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14541
+ */
14542
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
14543
+ if (!(reader instanceof $Reader))
14544
+ reader = new $Reader(reader);
14545
+ return this.decode(reader, reader.uint32());
14546
+ };
14547
+
14548
+ /**
14549
+ * Verifies a DotnetSettings message.
14550
+ * @function verify
14551
+ * @memberof google.api.DotnetSettings
14552
+ * @static
14553
+ * @param {Object.<string,*>} message Plain object to verify
14554
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14555
+ */
14556
+ DotnetSettings.verify = function verify(message) {
14557
+ if (typeof message !== "object" || message === null)
14558
+ return "object expected";
14559
+ if (message.common != null && message.hasOwnProperty("common")) {
14560
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14561
+ if (error)
14562
+ return "common." + error;
14563
+ }
14564
+ return null;
14565
+ };
14566
+
14567
+ /**
14568
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
14569
+ * @function fromObject
14570
+ * @memberof google.api.DotnetSettings
14571
+ * @static
14572
+ * @param {Object.<string,*>} object Plain object
14573
+ * @returns {google.api.DotnetSettings} DotnetSettings
14574
+ */
14575
+ DotnetSettings.fromObject = function fromObject(object) {
14576
+ if (object instanceof $root.google.api.DotnetSettings)
14577
+ return object;
14578
+ var message = new $root.google.api.DotnetSettings();
14579
+ if (object.common != null) {
14580
+ if (typeof object.common !== "object")
14581
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
14582
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14583
+ }
14584
+ return message;
14585
+ };
14586
+
14587
+ /**
14588
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
14589
+ * @function toObject
14590
+ * @memberof google.api.DotnetSettings
14591
+ * @static
14592
+ * @param {google.api.DotnetSettings} message DotnetSettings
14593
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14594
+ * @returns {Object.<string,*>} Plain object
14595
+ */
14596
+ DotnetSettings.toObject = function toObject(message, options) {
14597
+ if (!options)
14598
+ options = {};
14599
+ var object = {};
14600
+ if (options.defaults)
14601
+ object.common = null;
14602
+ if (message.common != null && message.hasOwnProperty("common"))
14603
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14604
+ return object;
14605
+ };
14606
+
14607
+ /**
14608
+ * Converts this DotnetSettings to JSON.
14609
+ * @function toJSON
14610
+ * @memberof google.api.DotnetSettings
14611
+ * @instance
14612
+ * @returns {Object.<string,*>} JSON object
14613
+ */
14614
+ DotnetSettings.prototype.toJSON = function toJSON() {
14615
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14616
+ };
14617
+
14618
+ /**
14619
+ * Gets the default type url for DotnetSettings
14620
+ * @function getTypeUrl
14621
+ * @memberof google.api.DotnetSettings
14622
+ * @static
14623
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14624
+ * @returns {string} The default type url
14625
+ */
14626
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14627
+ if (typeUrlPrefix === undefined) {
14628
+ typeUrlPrefix = "type.googleapis.com";
14629
+ }
14630
+ return typeUrlPrefix + "/google.api.DotnetSettings";
14631
+ };
14632
+
14633
+ return DotnetSettings;
14634
+ })();
14635
+
14636
+ api.RubySettings = (function() {
14637
+
14638
+ /**
14639
+ * Properties of a RubySettings.
14640
+ * @memberof google.api
14641
+ * @interface IRubySettings
14642
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
14643
+ */
14644
+
14645
+ /**
14646
+ * Constructs a new RubySettings.
14647
+ * @memberof google.api
14648
+ * @classdesc Represents a RubySettings.
14649
+ * @implements IRubySettings
14650
+ * @constructor
14651
+ * @param {google.api.IRubySettings=} [properties] Properties to set
14652
+ */
14653
+ function RubySettings(properties) {
14654
+ if (properties)
14655
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14656
+ if (properties[keys[i]] != null)
14657
+ this[keys[i]] = properties[keys[i]];
14658
+ }
14659
+
14660
+ /**
14661
+ * RubySettings common.
14662
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14663
+ * @memberof google.api.RubySettings
14664
+ * @instance
14665
+ */
14666
+ RubySettings.prototype.common = null;
14667
+
14668
+ /**
14669
+ * Creates a new RubySettings instance using the specified properties.
14670
+ * @function create
14671
+ * @memberof google.api.RubySettings
14672
+ * @static
14673
+ * @param {google.api.IRubySettings=} [properties] Properties to set
14674
+ * @returns {google.api.RubySettings} RubySettings instance
14675
+ */
14676
+ RubySettings.create = function create(properties) {
14677
+ return new RubySettings(properties);
14678
+ };
14679
+
14680
+ /**
14681
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
14682
+ * @function encode
14683
+ * @memberof google.api.RubySettings
14684
+ * @static
14685
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
14686
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14687
+ * @returns {$protobuf.Writer} Writer
14688
+ */
14689
+ RubySettings.encode = function encode(message, writer) {
14690
+ if (!writer)
14691
+ writer = $Writer.create();
14692
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14693
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14694
+ return writer;
14695
+ };
14696
+
14697
+ /**
14698
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
14699
+ * @function encodeDelimited
14700
+ * @memberof google.api.RubySettings
14701
+ * @static
14702
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
14703
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14704
+ * @returns {$protobuf.Writer} Writer
14705
+ */
14706
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
14707
+ return this.encode(message, writer).ldelim();
14708
+ };
14709
+
14710
+ /**
14711
+ * Decodes a RubySettings message from the specified reader or buffer.
14712
+ * @function decode
14713
+ * @memberof google.api.RubySettings
14714
+ * @static
14715
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14716
+ * @param {number} [length] Message length if known beforehand
14717
+ * @returns {google.api.RubySettings} RubySettings
14718
+ * @throws {Error} If the payload is not a reader or valid buffer
14719
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14720
+ */
14721
+ RubySettings.decode = function decode(reader, length) {
14722
+ if (!(reader instanceof $Reader))
14723
+ reader = $Reader.create(reader);
14724
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
14725
+ while (reader.pos < end) {
14726
+ var tag = reader.uint32();
14727
+ switch (tag >>> 3) {
14728
+ case 1: {
14729
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14730
+ break;
14731
+ }
14732
+ default:
14733
+ reader.skipType(tag & 7);
14734
+ break;
14735
+ }
14736
+ }
14737
+ return message;
14738
+ };
14739
+
14740
+ /**
14741
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
14742
+ * @function decodeDelimited
14743
+ * @memberof google.api.RubySettings
14744
+ * @static
14745
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14746
+ * @returns {google.api.RubySettings} RubySettings
14747
+ * @throws {Error} If the payload is not a reader or valid buffer
14748
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14749
+ */
14750
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
14751
+ if (!(reader instanceof $Reader))
14752
+ reader = new $Reader(reader);
14753
+ return this.decode(reader, reader.uint32());
14754
+ };
14755
+
14756
+ /**
14757
+ * Verifies a RubySettings message.
14758
+ * @function verify
14759
+ * @memberof google.api.RubySettings
14760
+ * @static
14761
+ * @param {Object.<string,*>} message Plain object to verify
14762
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14763
+ */
14764
+ RubySettings.verify = function verify(message) {
14765
+ if (typeof message !== "object" || message === null)
14766
+ return "object expected";
14767
+ if (message.common != null && message.hasOwnProperty("common")) {
14768
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14769
+ if (error)
14770
+ return "common." + error;
14771
+ }
14772
+ return null;
14773
+ };
14774
+
14775
+ /**
14776
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
14777
+ * @function fromObject
14778
+ * @memberof google.api.RubySettings
14779
+ * @static
14780
+ * @param {Object.<string,*>} object Plain object
14781
+ * @returns {google.api.RubySettings} RubySettings
14782
+ */
14783
+ RubySettings.fromObject = function fromObject(object) {
14784
+ if (object instanceof $root.google.api.RubySettings)
14785
+ return object;
14786
+ var message = new $root.google.api.RubySettings();
14787
+ if (object.common != null) {
14788
+ if (typeof object.common !== "object")
14789
+ throw TypeError(".google.api.RubySettings.common: object expected");
14790
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14791
+ }
14792
+ return message;
14793
+ };
14794
+
14795
+ /**
14796
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
14797
+ * @function toObject
14798
+ * @memberof google.api.RubySettings
14799
+ * @static
14800
+ * @param {google.api.RubySettings} message RubySettings
14801
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14802
+ * @returns {Object.<string,*>} Plain object
14803
+ */
14804
+ RubySettings.toObject = function toObject(message, options) {
14805
+ if (!options)
14806
+ options = {};
14807
+ var object = {};
14808
+ if (options.defaults)
14809
+ object.common = null;
14810
+ if (message.common != null && message.hasOwnProperty("common"))
14811
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
14812
+ return object;
14813
+ };
14814
+
14815
+ /**
14816
+ * Converts this RubySettings to JSON.
14817
+ * @function toJSON
14818
+ * @memberof google.api.RubySettings
14819
+ * @instance
14820
+ * @returns {Object.<string,*>} JSON object
14821
+ */
14822
+ RubySettings.prototype.toJSON = function toJSON() {
14823
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14824
+ };
14825
+
14826
+ /**
14827
+ * Gets the default type url for RubySettings
14828
+ * @function getTypeUrl
14829
+ * @memberof google.api.RubySettings
14830
+ * @static
14831
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14832
+ * @returns {string} The default type url
14833
+ */
14834
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14835
+ if (typeUrlPrefix === undefined) {
14836
+ typeUrlPrefix = "type.googleapis.com";
14837
+ }
14838
+ return typeUrlPrefix + "/google.api.RubySettings";
14839
+ };
14840
+
14841
+ return RubySettings;
14842
+ })();
14843
+
14844
+ api.GoSettings = (function() {
14845
+
14846
+ /**
14847
+ * Properties of a GoSettings.
14848
+ * @memberof google.api
14849
+ * @interface IGoSettings
14850
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
14851
+ */
14852
+
14853
+ /**
14854
+ * Constructs a new GoSettings.
14855
+ * @memberof google.api
14856
+ * @classdesc Represents a GoSettings.
14857
+ * @implements IGoSettings
14858
+ * @constructor
14859
+ * @param {google.api.IGoSettings=} [properties] Properties to set
14860
+ */
14861
+ function GoSettings(properties) {
14862
+ if (properties)
14863
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14864
+ if (properties[keys[i]] != null)
14865
+ this[keys[i]] = properties[keys[i]];
14866
+ }
14867
+
14868
+ /**
14869
+ * GoSettings common.
14870
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
14871
+ * @memberof google.api.GoSettings
14872
+ * @instance
14873
+ */
14874
+ GoSettings.prototype.common = null;
14875
+
14876
+ /**
14877
+ * Creates a new GoSettings instance using the specified properties.
14878
+ * @function create
14879
+ * @memberof google.api.GoSettings
14880
+ * @static
14881
+ * @param {google.api.IGoSettings=} [properties] Properties to set
14882
+ * @returns {google.api.GoSettings} GoSettings instance
14883
+ */
14884
+ GoSettings.create = function create(properties) {
14885
+ return new GoSettings(properties);
14886
+ };
14887
+
14888
+ /**
14889
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
14890
+ * @function encode
14891
+ * @memberof google.api.GoSettings
14892
+ * @static
14893
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
14894
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14895
+ * @returns {$protobuf.Writer} Writer
14896
+ */
14897
+ GoSettings.encode = function encode(message, writer) {
14898
+ if (!writer)
14899
+ writer = $Writer.create();
14900
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
14901
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14902
+ return writer;
14903
+ };
14904
+
14905
+ /**
14906
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
14907
+ * @function encodeDelimited
14908
+ * @memberof google.api.GoSettings
14909
+ * @static
14910
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
14911
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14912
+ * @returns {$protobuf.Writer} Writer
14913
+ */
14914
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
14915
+ return this.encode(message, writer).ldelim();
14916
+ };
14917
+
14918
+ /**
14919
+ * Decodes a GoSettings message from the specified reader or buffer.
14920
+ * @function decode
14921
+ * @memberof google.api.GoSettings
14922
+ * @static
14923
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14924
+ * @param {number} [length] Message length if known beforehand
14925
+ * @returns {google.api.GoSettings} GoSettings
14926
+ * @throws {Error} If the payload is not a reader or valid buffer
14927
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14928
+ */
14929
+ GoSettings.decode = function decode(reader, length) {
14930
+ if (!(reader instanceof $Reader))
14931
+ reader = $Reader.create(reader);
14932
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
14933
+ while (reader.pos < end) {
14934
+ var tag = reader.uint32();
14935
+ switch (tag >>> 3) {
14936
+ case 1: {
14937
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
14938
+ break;
14939
+ }
14940
+ default:
14941
+ reader.skipType(tag & 7);
14942
+ break;
14943
+ }
14944
+ }
14945
+ return message;
14946
+ };
14947
+
14948
+ /**
14949
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
14950
+ * @function decodeDelimited
14951
+ * @memberof google.api.GoSettings
14952
+ * @static
14953
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14954
+ * @returns {google.api.GoSettings} GoSettings
14955
+ * @throws {Error} If the payload is not a reader or valid buffer
14956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14957
+ */
14958
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
14959
+ if (!(reader instanceof $Reader))
14960
+ reader = new $Reader(reader);
14961
+ return this.decode(reader, reader.uint32());
14962
+ };
14963
+
14964
+ /**
14965
+ * Verifies a GoSettings message.
14966
+ * @function verify
14967
+ * @memberof google.api.GoSettings
14968
+ * @static
14969
+ * @param {Object.<string,*>} message Plain object to verify
14970
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14971
+ */
14972
+ GoSettings.verify = function verify(message) {
14973
+ if (typeof message !== "object" || message === null)
14974
+ return "object expected";
14975
+ if (message.common != null && message.hasOwnProperty("common")) {
14976
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
14977
+ if (error)
14978
+ return "common." + error;
14979
+ }
14980
+ return null;
14981
+ };
14982
+
14983
+ /**
14984
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
14985
+ * @function fromObject
14986
+ * @memberof google.api.GoSettings
14987
+ * @static
14988
+ * @param {Object.<string,*>} object Plain object
14989
+ * @returns {google.api.GoSettings} GoSettings
14990
+ */
14991
+ GoSettings.fromObject = function fromObject(object) {
14992
+ if (object instanceof $root.google.api.GoSettings)
14993
+ return object;
14994
+ var message = new $root.google.api.GoSettings();
14995
+ if (object.common != null) {
14996
+ if (typeof object.common !== "object")
14997
+ throw TypeError(".google.api.GoSettings.common: object expected");
14998
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
14999
+ }
15000
+ return message;
15001
+ };
15002
+
15003
+ /**
15004
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
15005
+ * @function toObject
15006
+ * @memberof google.api.GoSettings
15007
+ * @static
15008
+ * @param {google.api.GoSettings} message GoSettings
15009
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15010
+ * @returns {Object.<string,*>} Plain object
15011
+ */
15012
+ GoSettings.toObject = function toObject(message, options) {
15013
+ if (!options)
15014
+ options = {};
15015
+ var object = {};
15016
+ if (options.defaults)
15017
+ object.common = null;
15018
+ if (message.common != null && message.hasOwnProperty("common"))
15019
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15020
+ return object;
15021
+ };
15022
+
15023
+ /**
15024
+ * Converts this GoSettings to JSON.
15025
+ * @function toJSON
15026
+ * @memberof google.api.GoSettings
15027
+ * @instance
15028
+ * @returns {Object.<string,*>} JSON object
15029
+ */
15030
+ GoSettings.prototype.toJSON = function toJSON() {
15031
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15032
+ };
15033
+
15034
+ /**
15035
+ * Gets the default type url for GoSettings
15036
+ * @function getTypeUrl
15037
+ * @memberof google.api.GoSettings
15038
+ * @static
15039
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15040
+ * @returns {string} The default type url
15041
+ */
15042
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15043
+ if (typeUrlPrefix === undefined) {
15044
+ typeUrlPrefix = "type.googleapis.com";
15045
+ }
15046
+ return typeUrlPrefix + "/google.api.GoSettings";
15047
+ };
15048
+
15049
+ return GoSettings;
15050
+ })();
15051
+
15052
+ api.MethodSettings = (function() {
15053
+
15054
+ /**
15055
+ * Properties of a MethodSettings.
15056
+ * @memberof google.api
15057
+ * @interface IMethodSettings
15058
+ * @property {string|null} [selector] MethodSettings selector
15059
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
15060
+ */
15061
+
15062
+ /**
15063
+ * Constructs a new MethodSettings.
15064
+ * @memberof google.api
15065
+ * @classdesc Represents a MethodSettings.
15066
+ * @implements IMethodSettings
15067
+ * @constructor
15068
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
15069
+ */
15070
+ function MethodSettings(properties) {
15071
+ if (properties)
15072
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15073
+ if (properties[keys[i]] != null)
15074
+ this[keys[i]] = properties[keys[i]];
15075
+ }
15076
+
15077
+ /**
15078
+ * MethodSettings selector.
15079
+ * @member {string} selector
15080
+ * @memberof google.api.MethodSettings
15081
+ * @instance
15082
+ */
15083
+ MethodSettings.prototype.selector = "";
15084
+
15085
+ /**
15086
+ * MethodSettings longRunning.
15087
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
15088
+ * @memberof google.api.MethodSettings
15089
+ * @instance
15090
+ */
15091
+ MethodSettings.prototype.longRunning = null;
15092
+
15093
+ /**
15094
+ * Creates a new MethodSettings instance using the specified properties.
15095
+ * @function create
15096
+ * @memberof google.api.MethodSettings
15097
+ * @static
15098
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
15099
+ * @returns {google.api.MethodSettings} MethodSettings instance
15100
+ */
15101
+ MethodSettings.create = function create(properties) {
15102
+ return new MethodSettings(properties);
15103
+ };
15104
+
15105
+ /**
15106
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
15107
+ * @function encode
15108
+ * @memberof google.api.MethodSettings
15109
+ * @static
15110
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
15111
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15112
+ * @returns {$protobuf.Writer} Writer
15113
+ */
15114
+ MethodSettings.encode = function encode(message, writer) {
15115
+ if (!writer)
15116
+ writer = $Writer.create();
15117
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
15118
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
15119
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
15120
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
15121
+ return writer;
15122
+ };
15123
+
15124
+ /**
15125
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
15126
+ * @function encodeDelimited
15127
+ * @memberof google.api.MethodSettings
15128
+ * @static
15129
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
15130
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15131
+ * @returns {$protobuf.Writer} Writer
15132
+ */
15133
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
15134
+ return this.encode(message, writer).ldelim();
15135
+ };
15136
+
15137
+ /**
15138
+ * Decodes a MethodSettings message from the specified reader or buffer.
15139
+ * @function decode
15140
+ * @memberof google.api.MethodSettings
15141
+ * @static
15142
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15143
+ * @param {number} [length] Message length if known beforehand
15144
+ * @returns {google.api.MethodSettings} MethodSettings
15145
+ * @throws {Error} If the payload is not a reader or valid buffer
15146
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15147
+ */
15148
+ MethodSettings.decode = function decode(reader, length) {
15149
+ if (!(reader instanceof $Reader))
15150
+ reader = $Reader.create(reader);
15151
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
15152
+ while (reader.pos < end) {
15153
+ var tag = reader.uint32();
15154
+ switch (tag >>> 3) {
15155
+ case 1: {
15156
+ message.selector = reader.string();
15157
+ break;
15158
+ }
15159
+ case 2: {
15160
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
15161
+ break;
15162
+ }
15163
+ default:
15164
+ reader.skipType(tag & 7);
15165
+ break;
15166
+ }
15167
+ }
15168
+ return message;
15169
+ };
15170
+
15171
+ /**
15172
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
15173
+ * @function decodeDelimited
15174
+ * @memberof google.api.MethodSettings
15175
+ * @static
15176
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15177
+ * @returns {google.api.MethodSettings} MethodSettings
15178
+ * @throws {Error} If the payload is not a reader or valid buffer
15179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15180
+ */
15181
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
15182
+ if (!(reader instanceof $Reader))
15183
+ reader = new $Reader(reader);
15184
+ return this.decode(reader, reader.uint32());
15185
+ };
15186
+
15187
+ /**
15188
+ * Verifies a MethodSettings message.
15189
+ * @function verify
15190
+ * @memberof google.api.MethodSettings
15191
+ * @static
15192
+ * @param {Object.<string,*>} message Plain object to verify
15193
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15194
+ */
15195
+ MethodSettings.verify = function verify(message) {
15196
+ if (typeof message !== "object" || message === null)
15197
+ return "object expected";
15198
+ if (message.selector != null && message.hasOwnProperty("selector"))
15199
+ if (!$util.isString(message.selector))
15200
+ return "selector: string expected";
15201
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
15202
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
15203
+ if (error)
15204
+ return "longRunning." + error;
15205
+ }
15206
+ return null;
15207
+ };
15208
+
15209
+ /**
15210
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
15211
+ * @function fromObject
15212
+ * @memberof google.api.MethodSettings
15213
+ * @static
15214
+ * @param {Object.<string,*>} object Plain object
15215
+ * @returns {google.api.MethodSettings} MethodSettings
15216
+ */
15217
+ MethodSettings.fromObject = function fromObject(object) {
15218
+ if (object instanceof $root.google.api.MethodSettings)
15219
+ return object;
15220
+ var message = new $root.google.api.MethodSettings();
15221
+ if (object.selector != null)
15222
+ message.selector = String(object.selector);
15223
+ if (object.longRunning != null) {
15224
+ if (typeof object.longRunning !== "object")
15225
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
15226
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
15227
+ }
15228
+ return message;
15229
+ };
15230
+
15231
+ /**
15232
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
15233
+ * @function toObject
15234
+ * @memberof google.api.MethodSettings
15235
+ * @static
15236
+ * @param {google.api.MethodSettings} message MethodSettings
15237
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15238
+ * @returns {Object.<string,*>} Plain object
15239
+ */
15240
+ MethodSettings.toObject = function toObject(message, options) {
15241
+ if (!options)
15242
+ options = {};
15243
+ var object = {};
15244
+ if (options.defaults) {
15245
+ object.selector = "";
15246
+ object.longRunning = null;
15247
+ }
15248
+ if (message.selector != null && message.hasOwnProperty("selector"))
15249
+ object.selector = message.selector;
15250
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
15251
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
15252
+ return object;
15253
+ };
15254
+
15255
+ /**
15256
+ * Converts this MethodSettings to JSON.
15257
+ * @function toJSON
15258
+ * @memberof google.api.MethodSettings
15259
+ * @instance
15260
+ * @returns {Object.<string,*>} JSON object
15261
+ */
15262
+ MethodSettings.prototype.toJSON = function toJSON() {
15263
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15264
+ };
15265
+
15266
+ /**
15267
+ * Gets the default type url for MethodSettings
15268
+ * @function getTypeUrl
15269
+ * @memberof google.api.MethodSettings
15270
+ * @static
15271
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15272
+ * @returns {string} The default type url
15273
+ */
15274
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15275
+ if (typeUrlPrefix === undefined) {
15276
+ typeUrlPrefix = "type.googleapis.com";
15277
+ }
15278
+ return typeUrlPrefix + "/google.api.MethodSettings";
15279
+ };
15280
+
15281
+ MethodSettings.LongRunning = (function() {
15282
+
15283
+ /**
15284
+ * Properties of a LongRunning.
15285
+ * @memberof google.api.MethodSettings
15286
+ * @interface ILongRunning
15287
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
15288
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
15289
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
15290
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
15291
+ */
15292
+
15293
+ /**
15294
+ * Constructs a new LongRunning.
15295
+ * @memberof google.api.MethodSettings
15296
+ * @classdesc Represents a LongRunning.
15297
+ * @implements ILongRunning
15298
+ * @constructor
15299
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
15300
+ */
15301
+ function LongRunning(properties) {
15302
+ if (properties)
15303
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15304
+ if (properties[keys[i]] != null)
15305
+ this[keys[i]] = properties[keys[i]];
15306
+ }
15307
+
15308
+ /**
15309
+ * LongRunning initialPollDelay.
15310
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
15311
+ * @memberof google.api.MethodSettings.LongRunning
15312
+ * @instance
15313
+ */
15314
+ LongRunning.prototype.initialPollDelay = null;
15315
+
15316
+ /**
15317
+ * LongRunning pollDelayMultiplier.
15318
+ * @member {number} pollDelayMultiplier
15319
+ * @memberof google.api.MethodSettings.LongRunning
15320
+ * @instance
15321
+ */
15322
+ LongRunning.prototype.pollDelayMultiplier = 0;
15323
+
15324
+ /**
15325
+ * LongRunning maxPollDelay.
15326
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
15327
+ * @memberof google.api.MethodSettings.LongRunning
15328
+ * @instance
15329
+ */
15330
+ LongRunning.prototype.maxPollDelay = null;
15331
+
15332
+ /**
15333
+ * LongRunning totalPollTimeout.
15334
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
15335
+ * @memberof google.api.MethodSettings.LongRunning
15336
+ * @instance
15337
+ */
15338
+ LongRunning.prototype.totalPollTimeout = null;
15339
+
15340
+ /**
15341
+ * Creates a new LongRunning instance using the specified properties.
15342
+ * @function create
15343
+ * @memberof google.api.MethodSettings.LongRunning
15344
+ * @static
15345
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
15346
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
15347
+ */
15348
+ LongRunning.create = function create(properties) {
15349
+ return new LongRunning(properties);
15350
+ };
15351
+
15352
+ /**
15353
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
15354
+ * @function encode
15355
+ * @memberof google.api.MethodSettings.LongRunning
15356
+ * @static
15357
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
15358
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15359
+ * @returns {$protobuf.Writer} Writer
15360
+ */
15361
+ LongRunning.encode = function encode(message, writer) {
15362
+ if (!writer)
15363
+ writer = $Writer.create();
15364
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
15365
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15366
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
15367
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
15368
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
15369
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
15370
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
15371
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
15372
+ return writer;
15373
+ };
15374
+
15375
+ /**
15376
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
15377
+ * @function encodeDelimited
15378
+ * @memberof google.api.MethodSettings.LongRunning
15379
+ * @static
15380
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
15381
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15382
+ * @returns {$protobuf.Writer} Writer
15383
+ */
15384
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
15385
+ return this.encode(message, writer).ldelim();
15386
+ };
15387
+
15388
+ /**
15389
+ * Decodes a LongRunning message from the specified reader or buffer.
15390
+ * @function decode
15391
+ * @memberof google.api.MethodSettings.LongRunning
15392
+ * @static
15393
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15394
+ * @param {number} [length] Message length if known beforehand
15395
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
15396
+ * @throws {Error} If the payload is not a reader or valid buffer
15397
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15398
+ */
15399
+ LongRunning.decode = function decode(reader, length) {
15400
+ if (!(reader instanceof $Reader))
15401
+ reader = $Reader.create(reader);
15402
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
15403
+ while (reader.pos < end) {
15404
+ var tag = reader.uint32();
15405
+ switch (tag >>> 3) {
15406
+ case 1: {
15407
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
15408
+ break;
15409
+ }
15410
+ case 2: {
15411
+ message.pollDelayMultiplier = reader.float();
15412
+ break;
15413
+ }
15414
+ case 3: {
15415
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
15416
+ break;
15417
+ }
15418
+ case 4: {
15419
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
15420
+ break;
15421
+ }
15422
+ default:
15423
+ reader.skipType(tag & 7);
15424
+ break;
15425
+ }
15426
+ }
15427
+ return message;
15428
+ };
15429
+
15430
+ /**
15431
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
15432
+ * @function decodeDelimited
15433
+ * @memberof google.api.MethodSettings.LongRunning
15434
+ * @static
15435
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15436
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
15437
+ * @throws {Error} If the payload is not a reader or valid buffer
15438
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15439
+ */
15440
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
15441
+ if (!(reader instanceof $Reader))
15442
+ reader = new $Reader(reader);
15443
+ return this.decode(reader, reader.uint32());
15444
+ };
15445
+
15446
+ /**
15447
+ * Verifies a LongRunning message.
15448
+ * @function verify
15449
+ * @memberof google.api.MethodSettings.LongRunning
15450
+ * @static
15451
+ * @param {Object.<string,*>} message Plain object to verify
15452
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15453
+ */
15454
+ LongRunning.verify = function verify(message) {
15455
+ if (typeof message !== "object" || message === null)
15456
+ return "object expected";
15457
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
15458
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
15459
+ if (error)
15460
+ return "initialPollDelay." + error;
15461
+ }
15462
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
15463
+ if (typeof message.pollDelayMultiplier !== "number")
15464
+ return "pollDelayMultiplier: number expected";
15465
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
15466
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
15467
+ if (error)
15468
+ return "maxPollDelay." + error;
15469
+ }
15470
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
15471
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
15472
+ if (error)
15473
+ return "totalPollTimeout." + error;
15474
+ }
15475
+ return null;
15476
+ };
15477
+
15478
+ /**
15479
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
15480
+ * @function fromObject
15481
+ * @memberof google.api.MethodSettings.LongRunning
15482
+ * @static
15483
+ * @param {Object.<string,*>} object Plain object
15484
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
15485
+ */
15486
+ LongRunning.fromObject = function fromObject(object) {
15487
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
15488
+ return object;
15489
+ var message = new $root.google.api.MethodSettings.LongRunning();
15490
+ if (object.initialPollDelay != null) {
15491
+ if (typeof object.initialPollDelay !== "object")
15492
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
15493
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
15494
+ }
15495
+ if (object.pollDelayMultiplier != null)
15496
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
15497
+ if (object.maxPollDelay != null) {
15498
+ if (typeof object.maxPollDelay !== "object")
15499
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
15500
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
15501
+ }
15502
+ if (object.totalPollTimeout != null) {
15503
+ if (typeof object.totalPollTimeout !== "object")
15504
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
15505
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
15506
+ }
15507
+ return message;
15508
+ };
15509
+
15510
+ /**
15511
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
15512
+ * @function toObject
15513
+ * @memberof google.api.MethodSettings.LongRunning
15514
+ * @static
15515
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
15516
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
15517
+ * @returns {Object.<string,*>} Plain object
15518
+ */
15519
+ LongRunning.toObject = function toObject(message, options) {
15520
+ if (!options)
15521
+ options = {};
15522
+ var object = {};
15523
+ if (options.defaults) {
15524
+ object.initialPollDelay = null;
15525
+ object.pollDelayMultiplier = 0;
15526
+ object.maxPollDelay = null;
15527
+ object.totalPollTimeout = null;
15528
+ }
15529
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
15530
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
15531
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
15532
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
15533
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
15534
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
15535
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
15536
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
15537
+ return object;
15538
+ };
15539
+
15540
+ /**
15541
+ * Converts this LongRunning to JSON.
15542
+ * @function toJSON
15543
+ * @memberof google.api.MethodSettings.LongRunning
15544
+ * @instance
15545
+ * @returns {Object.<string,*>} JSON object
15546
+ */
15547
+ LongRunning.prototype.toJSON = function toJSON() {
15548
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15549
+ };
15550
+
15551
+ /**
15552
+ * Gets the default type url for LongRunning
15553
+ * @function getTypeUrl
15554
+ * @memberof google.api.MethodSettings.LongRunning
15555
+ * @static
15556
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15557
+ * @returns {string} The default type url
15558
+ */
15559
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15560
+ if (typeUrlPrefix === undefined) {
15561
+ typeUrlPrefix = "type.googleapis.com";
15562
+ }
15563
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
15564
+ };
15565
+
15566
+ return LongRunning;
15567
+ })();
15568
+
15569
+ return MethodSettings;
15570
+ })();
15571
+
15572
+ /**
15573
+ * ClientLibraryOrganization enum.
15574
+ * @name google.api.ClientLibraryOrganization
15575
+ * @enum {number}
15576
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
15577
+ * @property {number} CLOUD=1 CLOUD value
15578
+ * @property {number} ADS=2 ADS value
15579
+ * @property {number} PHOTOS=3 PHOTOS value
15580
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
15581
+ */
15582
+ api.ClientLibraryOrganization = (function() {
15583
+ var valuesById = {}, values = Object.create(valuesById);
15584
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
15585
+ values[valuesById[1] = "CLOUD"] = 1;
15586
+ values[valuesById[2] = "ADS"] = 2;
15587
+ values[valuesById[3] = "PHOTOS"] = 3;
15588
+ values[valuesById[4] = "STREET_VIEW"] = 4;
15589
+ return values;
15590
+ })();
15591
+
15592
+ /**
15593
+ * ClientLibraryDestination enum.
15594
+ * @name google.api.ClientLibraryDestination
15595
+ * @enum {number}
15596
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
15597
+ * @property {number} GITHUB=10 GITHUB value
15598
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
15599
+ */
15600
+ api.ClientLibraryDestination = (function() {
15601
+ var valuesById = {}, values = Object.create(valuesById);
15602
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
15603
+ values[valuesById[10] = "GITHUB"] = 10;
15604
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
15605
+ return values;
15606
+ })();
15607
+
15608
+ /**
15609
+ * LaunchStage enum.
15610
+ * @name google.api.LaunchStage
15611
+ * @enum {number}
15612
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
15613
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
15614
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
15615
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
15616
+ * @property {number} ALPHA=2 ALPHA value
15617
+ * @property {number} BETA=3 BETA value
15618
+ * @property {number} GA=4 GA value
15619
+ * @property {number} DEPRECATED=5 DEPRECATED value
15620
+ */
15621
+ api.LaunchStage = (function() {
15622
+ var valuesById = {}, values = Object.create(valuesById);
15623
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
15624
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
15625
+ values[valuesById[7] = "PRELAUNCH"] = 7;
15626
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
15627
+ values[valuesById[2] = "ALPHA"] = 2;
15628
+ values[valuesById[3] = "BETA"] = 3;
15629
+ values[valuesById[4] = "GA"] = 4;
15630
+ values[valuesById[5] = "DEPRECATED"] = 5;
15631
+ return values;
15632
+ })();
15633
+
12025
15634
  api.HttpBody = (function() {
12026
15635
 
12027
15636
  /**
@@ -17541,6 +21150,7 @@
17541
21150
  * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
17542
21151
  * @property {boolean|null} [deprecated] MessageOptions deprecated
17543
21152
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
21153
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
17544
21154
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
17545
21155
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
17546
21156
  */
@@ -17593,6 +21203,14 @@
17593
21203
  */
17594
21204
  MessageOptions.prototype.mapEntry = false;
17595
21205
 
21206
+ /**
21207
+ * MessageOptions deprecatedLegacyJsonFieldConflicts.
21208
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
21209
+ * @memberof google.protobuf.MessageOptions
21210
+ * @instance
21211
+ */
21212
+ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
21213
+
17596
21214
  /**
17597
21215
  * MessageOptions uninterpretedOption.
17598
21216
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -17641,6 +21259,8 @@
17641
21259
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
17642
21260
  if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
17643
21261
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
21262
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
21263
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
17644
21264
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
17645
21265
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
17646
21266
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -17696,6 +21316,10 @@
17696
21316
  message.mapEntry = reader.bool();
17697
21317
  break;
17698
21318
  }
21319
+ case 11: {
21320
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
21321
+ break;
21322
+ }
17699
21323
  case 999: {
17700
21324
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
17701
21325
  message.uninterpretedOption = [];
@@ -17753,6 +21377,9 @@
17753
21377
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
17754
21378
  if (typeof message.mapEntry !== "boolean")
17755
21379
  return "mapEntry: boolean expected";
21380
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
21381
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
21382
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
17756
21383
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
17757
21384
  if (!Array.isArray(message.uninterpretedOption))
17758
21385
  return "uninterpretedOption: array expected";
@@ -17790,6 +21417,8 @@
17790
21417
  message.deprecated = Boolean(object.deprecated);
17791
21418
  if (object.mapEntry != null)
17792
21419
  message.mapEntry = Boolean(object.mapEntry);
21420
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
21421
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
17793
21422
  if (object.uninterpretedOption) {
17794
21423
  if (!Array.isArray(object.uninterpretedOption))
17795
21424
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -17828,6 +21457,7 @@
17828
21457
  object.noStandardDescriptorAccessor = false;
17829
21458
  object.deprecated = false;
17830
21459
  object.mapEntry = false;
21460
+ object.deprecatedLegacyJsonFieldConflicts = false;
17831
21461
  object[".google.api.resource"] = null;
17832
21462
  }
17833
21463
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -17838,6 +21468,8 @@
17838
21468
  object.deprecated = message.deprecated;
17839
21469
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
17840
21470
  object.mapEntry = message.mapEntry;
21471
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
21472
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
17841
21473
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
17842
21474
  object.uninterpretedOption = [];
17843
21475
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -17890,6 +21522,9 @@
17890
21522
  * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
17891
21523
  * @property {boolean|null} [deprecated] FieldOptions deprecated
17892
21524
  * @property {boolean|null} [weak] FieldOptions weak
21525
+ * @property {boolean|null} [debugRedact] FieldOptions debugRedact
21526
+ * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
21527
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
17893
21528
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
17894
21529
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
17895
21530
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
@@ -17968,6 +21603,30 @@
17968
21603
  */
17969
21604
  FieldOptions.prototype.weak = false;
17970
21605
 
21606
+ /**
21607
+ * FieldOptions debugRedact.
21608
+ * @member {boolean} debugRedact
21609
+ * @memberof google.protobuf.FieldOptions
21610
+ * @instance
21611
+ */
21612
+ FieldOptions.prototype.debugRedact = false;
21613
+
21614
+ /**
21615
+ * FieldOptions retention.
21616
+ * @member {google.protobuf.FieldOptions.OptionRetention} retention
21617
+ * @memberof google.protobuf.FieldOptions
21618
+ * @instance
21619
+ */
21620
+ FieldOptions.prototype.retention = 0;
21621
+
21622
+ /**
21623
+ * FieldOptions target.
21624
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
21625
+ * @memberof google.protobuf.FieldOptions
21626
+ * @instance
21627
+ */
21628
+ FieldOptions.prototype.target = 0;
21629
+
17971
21630
  /**
17972
21631
  * FieldOptions uninterpretedOption.
17973
21632
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -18030,6 +21689,12 @@
18030
21689
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
18031
21690
  if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
18032
21691
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
21692
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
21693
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
21694
+ if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
21695
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
21696
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
21697
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
18033
21698
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
18034
21699
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
18035
21700
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -18103,6 +21768,18 @@
18103
21768
  message.weak = reader.bool();
18104
21769
  break;
18105
21770
  }
21771
+ case 16: {
21772
+ message.debugRedact = reader.bool();
21773
+ break;
21774
+ }
21775
+ case 17: {
21776
+ message.retention = reader.int32();
21777
+ break;
21778
+ }
21779
+ case 18: {
21780
+ message.target = reader.int32();
21781
+ break;
21782
+ }
18106
21783
  case 999: {
18107
21784
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
18108
21785
  message.uninterpretedOption = [];
@@ -18192,6 +21869,34 @@
18192
21869
  if (message.weak != null && message.hasOwnProperty("weak"))
18193
21870
  if (typeof message.weak !== "boolean")
18194
21871
  return "weak: boolean expected";
21872
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
21873
+ if (typeof message.debugRedact !== "boolean")
21874
+ return "debugRedact: boolean expected";
21875
+ if (message.retention != null && message.hasOwnProperty("retention"))
21876
+ switch (message.retention) {
21877
+ default:
21878
+ return "retention: enum value expected";
21879
+ case 0:
21880
+ case 1:
21881
+ case 2:
21882
+ break;
21883
+ }
21884
+ if (message.target != null && message.hasOwnProperty("target"))
21885
+ switch (message.target) {
21886
+ default:
21887
+ return "target: enum value expected";
21888
+ case 0:
21889
+ case 1:
21890
+ case 2:
21891
+ case 3:
21892
+ case 4:
21893
+ case 5:
21894
+ case 6:
21895
+ case 7:
21896
+ case 8:
21897
+ case 9:
21898
+ break;
21899
+ }
18195
21900
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
18196
21901
  if (!Array.isArray(message.uninterpretedOption))
18197
21902
  return "uninterpretedOption: array expected";
@@ -18289,6 +21994,76 @@
18289
21994
  message.deprecated = Boolean(object.deprecated);
18290
21995
  if (object.weak != null)
18291
21996
  message.weak = Boolean(object.weak);
21997
+ if (object.debugRedact != null)
21998
+ message.debugRedact = Boolean(object.debugRedact);
21999
+ switch (object.retention) {
22000
+ default:
22001
+ if (typeof object.retention === "number") {
22002
+ message.retention = object.retention;
22003
+ break;
22004
+ }
22005
+ break;
22006
+ case "RETENTION_UNKNOWN":
22007
+ case 0:
22008
+ message.retention = 0;
22009
+ break;
22010
+ case "RETENTION_RUNTIME":
22011
+ case 1:
22012
+ message.retention = 1;
22013
+ break;
22014
+ case "RETENTION_SOURCE":
22015
+ case 2:
22016
+ message.retention = 2;
22017
+ break;
22018
+ }
22019
+ switch (object.target) {
22020
+ default:
22021
+ if (typeof object.target === "number") {
22022
+ message.target = object.target;
22023
+ break;
22024
+ }
22025
+ break;
22026
+ case "TARGET_TYPE_UNKNOWN":
22027
+ case 0:
22028
+ message.target = 0;
22029
+ break;
22030
+ case "TARGET_TYPE_FILE":
22031
+ case 1:
22032
+ message.target = 1;
22033
+ break;
22034
+ case "TARGET_TYPE_EXTENSION_RANGE":
22035
+ case 2:
22036
+ message.target = 2;
22037
+ break;
22038
+ case "TARGET_TYPE_MESSAGE":
22039
+ case 3:
22040
+ message.target = 3;
22041
+ break;
22042
+ case "TARGET_TYPE_FIELD":
22043
+ case 4:
22044
+ message.target = 4;
22045
+ break;
22046
+ case "TARGET_TYPE_ONEOF":
22047
+ case 5:
22048
+ message.target = 5;
22049
+ break;
22050
+ case "TARGET_TYPE_ENUM":
22051
+ case 6:
22052
+ message.target = 6;
22053
+ break;
22054
+ case "TARGET_TYPE_ENUM_ENTRY":
22055
+ case 7:
22056
+ message.target = 7;
22057
+ break;
22058
+ case "TARGET_TYPE_SERVICE":
22059
+ case 8:
22060
+ message.target = 8;
22061
+ break;
22062
+ case "TARGET_TYPE_METHOD":
22063
+ case 9:
22064
+ message.target = 9;
22065
+ break;
22066
+ }
18292
22067
  if (object.uninterpretedOption) {
18293
22068
  if (!Array.isArray(object.uninterpretedOption))
18294
22069
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -18377,6 +22152,9 @@
18377
22152
  object.jstype = options.enums === String ? "JS_NORMAL" : 0;
18378
22153
  object.weak = false;
18379
22154
  object.unverifiedLazy = false;
22155
+ object.debugRedact = false;
22156
+ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
22157
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
18380
22158
  object[".google.api.resourceReference"] = null;
18381
22159
  }
18382
22160
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -18393,6 +22171,12 @@
18393
22171
  object.weak = message.weak;
18394
22172
  if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
18395
22173
  object.unverifiedLazy = message.unverifiedLazy;
22174
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
22175
+ object.debugRedact = message.debugRedact;
22176
+ if (message.retention != null && message.hasOwnProperty("retention"))
22177
+ object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
22178
+ if (message.target != null && message.hasOwnProperty("target"))
22179
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
18396
22180
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
18397
22181
  object.uninterpretedOption = [];
18398
22182
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -18466,6 +22250,52 @@
18466
22250
  return values;
18467
22251
  })();
18468
22252
 
22253
+ /**
22254
+ * OptionRetention enum.
22255
+ * @name google.protobuf.FieldOptions.OptionRetention
22256
+ * @enum {number}
22257
+ * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
22258
+ * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
22259
+ * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
22260
+ */
22261
+ FieldOptions.OptionRetention = (function() {
22262
+ var valuesById = {}, values = Object.create(valuesById);
22263
+ values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
22264
+ values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
22265
+ values[valuesById[2] = "RETENTION_SOURCE"] = 2;
22266
+ return values;
22267
+ })();
22268
+
22269
+ /**
22270
+ * OptionTargetType enum.
22271
+ * @name google.protobuf.FieldOptions.OptionTargetType
22272
+ * @enum {number}
22273
+ * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
22274
+ * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
22275
+ * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
22276
+ * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
22277
+ * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
22278
+ * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
22279
+ * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
22280
+ * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
22281
+ * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
22282
+ * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
22283
+ */
22284
+ FieldOptions.OptionTargetType = (function() {
22285
+ var valuesById = {}, values = Object.create(valuesById);
22286
+ values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
22287
+ values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
22288
+ values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
22289
+ values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
22290
+ values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
22291
+ values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
22292
+ values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
22293
+ values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
22294
+ values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
22295
+ values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
22296
+ return values;
22297
+ })();
22298
+
18469
22299
  return FieldOptions;
18470
22300
  })();
18471
22301
 
@@ -18701,6 +22531,7 @@
18701
22531
  * @interface IEnumOptions
18702
22532
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
18703
22533
  * @property {boolean|null} [deprecated] EnumOptions deprecated
22534
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
18704
22535
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
18705
22536
  */
18706
22537
 
@@ -18736,6 +22567,14 @@
18736
22567
  */
18737
22568
  EnumOptions.prototype.deprecated = false;
18738
22569
 
22570
+ /**
22571
+ * EnumOptions deprecatedLegacyJsonFieldConflicts.
22572
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
22573
+ * @memberof google.protobuf.EnumOptions
22574
+ * @instance
22575
+ */
22576
+ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
22577
+
18739
22578
  /**
18740
22579
  * EnumOptions uninterpretedOption.
18741
22580
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -18772,6 +22611,8 @@
18772
22611
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
18773
22612
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
18774
22613
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
22614
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
22615
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
18775
22616
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
18776
22617
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
18777
22618
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -18817,6 +22658,10 @@
18817
22658
  message.deprecated = reader.bool();
18818
22659
  break;
18819
22660
  }
22661
+ case 6: {
22662
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
22663
+ break;
22664
+ }
18820
22665
  case 999: {
18821
22666
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
18822
22667
  message.uninterpretedOption = [];
@@ -18864,6 +22709,9 @@
18864
22709
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
18865
22710
  if (typeof message.deprecated !== "boolean")
18866
22711
  return "deprecated: boolean expected";
22712
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
22713
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
22714
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
18867
22715
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
18868
22716
  if (!Array.isArray(message.uninterpretedOption))
18869
22717
  return "uninterpretedOption: array expected";
@@ -18892,6 +22740,8 @@
18892
22740
  message.allowAlias = Boolean(object.allowAlias);
18893
22741
  if (object.deprecated != null)
18894
22742
  message.deprecated = Boolean(object.deprecated);
22743
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
22744
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
18895
22745
  if (object.uninterpretedOption) {
18896
22746
  if (!Array.isArray(object.uninterpretedOption))
18897
22747
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -18923,11 +22773,14 @@
18923
22773
  if (options.defaults) {
18924
22774
  object.allowAlias = false;
18925
22775
  object.deprecated = false;
22776
+ object.deprecatedLegacyJsonFieldConflicts = false;
18926
22777
  }
18927
22778
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
18928
22779
  object.allowAlias = message.allowAlias;
18929
22780
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
18930
22781
  object.deprecated = message.deprecated;
22782
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
22783
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
18931
22784
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
18932
22785
  object.uninterpretedOption = [];
18933
22786
  for (var j = 0; j < message.uninterpretedOption.length; ++j)