@googlemaps/routing 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8207,6 +8207,7 @@
8207
8207
  * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
8208
8208
  * @property {boolean|null} [deprecated] MessageOptions deprecated
8209
8209
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
8210
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
8210
8211
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
8211
8212
  */
8212
8213
 
@@ -8258,6 +8259,14 @@
8258
8259
  */
8259
8260
  MessageOptions.prototype.mapEntry = false;
8260
8261
 
8262
+ /**
8263
+ * MessageOptions deprecatedLegacyJsonFieldConflicts.
8264
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
8265
+ * @memberof google.protobuf.MessageOptions
8266
+ * @instance
8267
+ */
8268
+ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
8269
+
8261
8270
  /**
8262
8271
  * MessageOptions uninterpretedOption.
8263
8272
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -8298,6 +8307,8 @@
8298
8307
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
8299
8308
  if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
8300
8309
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
8310
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
8311
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
8301
8312
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
8302
8313
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
8303
8314
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -8351,6 +8362,10 @@
8351
8362
  message.mapEntry = reader.bool();
8352
8363
  break;
8353
8364
  }
8365
+ case 11: {
8366
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
8367
+ break;
8368
+ }
8354
8369
  case 999: {
8355
8370
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
8356
8371
  message.uninterpretedOption = [];
@@ -8404,6 +8419,9 @@
8404
8419
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
8405
8420
  if (typeof message.mapEntry !== "boolean")
8406
8421
  return "mapEntry: boolean expected";
8422
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
8423
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
8424
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
8407
8425
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
8408
8426
  if (!Array.isArray(message.uninterpretedOption))
8409
8427
  return "uninterpretedOption: array expected";
@@ -8436,6 +8454,8 @@
8436
8454
  message.deprecated = Boolean(object.deprecated);
8437
8455
  if (object.mapEntry != null)
8438
8456
  message.mapEntry = Boolean(object.mapEntry);
8457
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
8458
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
8439
8459
  if (object.uninterpretedOption) {
8440
8460
  if (!Array.isArray(object.uninterpretedOption))
8441
8461
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -8469,6 +8489,7 @@
8469
8489
  object.noStandardDescriptorAccessor = false;
8470
8490
  object.deprecated = false;
8471
8491
  object.mapEntry = false;
8492
+ object.deprecatedLegacyJsonFieldConflicts = false;
8472
8493
  }
8473
8494
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
8474
8495
  object.messageSetWireFormat = message.messageSetWireFormat;
@@ -8478,6 +8499,8 @@
8478
8499
  object.deprecated = message.deprecated;
8479
8500
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
8480
8501
  object.mapEntry = message.mapEntry;
8502
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
8503
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
8481
8504
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
8482
8505
  object.uninterpretedOption = [];
8483
8506
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -8528,6 +8551,9 @@
8528
8551
  * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
8529
8552
  * @property {boolean|null} [deprecated] FieldOptions deprecated
8530
8553
  * @property {boolean|null} [weak] FieldOptions weak
8554
+ * @property {boolean|null} [debugRedact] FieldOptions debugRedact
8555
+ * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
8556
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
8531
8557
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
8532
8558
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
8533
8559
  */
@@ -8605,6 +8631,30 @@
8605
8631
  */
8606
8632
  FieldOptions.prototype.weak = false;
8607
8633
 
8634
+ /**
8635
+ * FieldOptions debugRedact.
8636
+ * @member {boolean} debugRedact
8637
+ * @memberof google.protobuf.FieldOptions
8638
+ * @instance
8639
+ */
8640
+ FieldOptions.prototype.debugRedact = false;
8641
+
8642
+ /**
8643
+ * FieldOptions retention.
8644
+ * @member {google.protobuf.FieldOptions.OptionRetention} retention
8645
+ * @memberof google.protobuf.FieldOptions
8646
+ * @instance
8647
+ */
8648
+ FieldOptions.prototype.retention = 0;
8649
+
8650
+ /**
8651
+ * FieldOptions target.
8652
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
8653
+ * @memberof google.protobuf.FieldOptions
8654
+ * @instance
8655
+ */
8656
+ FieldOptions.prototype.target = 0;
8657
+
8608
8658
  /**
8609
8659
  * FieldOptions uninterpretedOption.
8610
8660
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -8659,6 +8709,12 @@
8659
8709
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
8660
8710
  if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
8661
8711
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
8712
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
8713
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
8714
+ if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
8715
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
8716
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
8717
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
8662
8718
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
8663
8719
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
8664
8720
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -8730,6 +8786,18 @@
8730
8786
  message.weak = reader.bool();
8731
8787
  break;
8732
8788
  }
8789
+ case 16: {
8790
+ message.debugRedact = reader.bool();
8791
+ break;
8792
+ }
8793
+ case 17: {
8794
+ message.retention = reader.int32();
8795
+ break;
8796
+ }
8797
+ case 18: {
8798
+ message.target = reader.int32();
8799
+ break;
8800
+ }
8733
8801
  case 999: {
8734
8802
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
8735
8803
  message.uninterpretedOption = [];
@@ -8815,6 +8883,34 @@
8815
8883
  if (message.weak != null && message.hasOwnProperty("weak"))
8816
8884
  if (typeof message.weak !== "boolean")
8817
8885
  return "weak: boolean expected";
8886
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
8887
+ if (typeof message.debugRedact !== "boolean")
8888
+ return "debugRedact: boolean expected";
8889
+ if (message.retention != null && message.hasOwnProperty("retention"))
8890
+ switch (message.retention) {
8891
+ default:
8892
+ return "retention: enum value expected";
8893
+ case 0:
8894
+ case 1:
8895
+ case 2:
8896
+ break;
8897
+ }
8898
+ if (message.target != null && message.hasOwnProperty("target"))
8899
+ switch (message.target) {
8900
+ default:
8901
+ return "target: enum value expected";
8902
+ case 0:
8903
+ case 1:
8904
+ case 2:
8905
+ case 3:
8906
+ case 4:
8907
+ case 5:
8908
+ case 6:
8909
+ case 7:
8910
+ case 8:
8911
+ case 9:
8912
+ break;
8913
+ }
8818
8914
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
8819
8915
  if (!Array.isArray(message.uninterpretedOption))
8820
8916
  return "uninterpretedOption: array expected";
@@ -8907,6 +9003,76 @@
8907
9003
  message.deprecated = Boolean(object.deprecated);
8908
9004
  if (object.weak != null)
8909
9005
  message.weak = Boolean(object.weak);
9006
+ if (object.debugRedact != null)
9007
+ message.debugRedact = Boolean(object.debugRedact);
9008
+ switch (object.retention) {
9009
+ default:
9010
+ if (typeof object.retention === "number") {
9011
+ message.retention = object.retention;
9012
+ break;
9013
+ }
9014
+ break;
9015
+ case "RETENTION_UNKNOWN":
9016
+ case 0:
9017
+ message.retention = 0;
9018
+ break;
9019
+ case "RETENTION_RUNTIME":
9020
+ case 1:
9021
+ message.retention = 1;
9022
+ break;
9023
+ case "RETENTION_SOURCE":
9024
+ case 2:
9025
+ message.retention = 2;
9026
+ break;
9027
+ }
9028
+ switch (object.target) {
9029
+ default:
9030
+ if (typeof object.target === "number") {
9031
+ message.target = object.target;
9032
+ break;
9033
+ }
9034
+ break;
9035
+ case "TARGET_TYPE_UNKNOWN":
9036
+ case 0:
9037
+ message.target = 0;
9038
+ break;
9039
+ case "TARGET_TYPE_FILE":
9040
+ case 1:
9041
+ message.target = 1;
9042
+ break;
9043
+ case "TARGET_TYPE_EXTENSION_RANGE":
9044
+ case 2:
9045
+ message.target = 2;
9046
+ break;
9047
+ case "TARGET_TYPE_MESSAGE":
9048
+ case 3:
9049
+ message.target = 3;
9050
+ break;
9051
+ case "TARGET_TYPE_FIELD":
9052
+ case 4:
9053
+ message.target = 4;
9054
+ break;
9055
+ case "TARGET_TYPE_ONEOF":
9056
+ case 5:
9057
+ message.target = 5;
9058
+ break;
9059
+ case "TARGET_TYPE_ENUM":
9060
+ case 6:
9061
+ message.target = 6;
9062
+ break;
9063
+ case "TARGET_TYPE_ENUM_ENTRY":
9064
+ case 7:
9065
+ message.target = 7;
9066
+ break;
9067
+ case "TARGET_TYPE_SERVICE":
9068
+ case 8:
9069
+ message.target = 8;
9070
+ break;
9071
+ case "TARGET_TYPE_METHOD":
9072
+ case 9:
9073
+ message.target = 9;
9074
+ break;
9075
+ }
8910
9076
  if (object.uninterpretedOption) {
8911
9077
  if (!Array.isArray(object.uninterpretedOption))
8912
9078
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -8990,6 +9156,9 @@
8990
9156
  object.jstype = options.enums === String ? "JS_NORMAL" : 0;
8991
9157
  object.weak = false;
8992
9158
  object.unverifiedLazy = false;
9159
+ object.debugRedact = false;
9160
+ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
9161
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
8993
9162
  }
8994
9163
  if (message.ctype != null && message.hasOwnProperty("ctype"))
8995
9164
  object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype;
@@ -9005,6 +9174,12 @@
9005
9174
  object.weak = message.weak;
9006
9175
  if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
9007
9176
  object.unverifiedLazy = message.unverifiedLazy;
9177
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
9178
+ object.debugRedact = message.debugRedact;
9179
+ if (message.retention != null && message.hasOwnProperty("retention"))
9180
+ object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
9181
+ if (message.target != null && message.hasOwnProperty("target"))
9182
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
9008
9183
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
9009
9184
  object.uninterpretedOption = [];
9010
9185
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -9076,6 +9251,52 @@
9076
9251
  return values;
9077
9252
  })();
9078
9253
 
9254
+ /**
9255
+ * OptionRetention enum.
9256
+ * @name google.protobuf.FieldOptions.OptionRetention
9257
+ * @enum {number}
9258
+ * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
9259
+ * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
9260
+ * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
9261
+ */
9262
+ FieldOptions.OptionRetention = (function() {
9263
+ var valuesById = {}, values = Object.create(valuesById);
9264
+ values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
9265
+ values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
9266
+ values[valuesById[2] = "RETENTION_SOURCE"] = 2;
9267
+ return values;
9268
+ })();
9269
+
9270
+ /**
9271
+ * OptionTargetType enum.
9272
+ * @name google.protobuf.FieldOptions.OptionTargetType
9273
+ * @enum {number}
9274
+ * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
9275
+ * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
9276
+ * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
9277
+ * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
9278
+ * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
9279
+ * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
9280
+ * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
9281
+ * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
9282
+ * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
9283
+ * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
9284
+ */
9285
+ FieldOptions.OptionTargetType = (function() {
9286
+ var valuesById = {}, values = Object.create(valuesById);
9287
+ values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
9288
+ values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
9289
+ values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
9290
+ values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
9291
+ values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
9292
+ values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
9293
+ values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
9294
+ values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
9295
+ values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
9296
+ values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
9297
+ return values;
9298
+ })();
9299
+
9079
9300
  return FieldOptions;
9080
9301
  })();
9081
9302
 
@@ -9311,6 +9532,7 @@
9311
9532
  * @interface IEnumOptions
9312
9533
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
9313
9534
  * @property {boolean|null} [deprecated] EnumOptions deprecated
9535
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
9314
9536
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
9315
9537
  */
9316
9538
 
@@ -9346,6 +9568,14 @@
9346
9568
  */
9347
9569
  EnumOptions.prototype.deprecated = false;
9348
9570
 
9571
+ /**
9572
+ * EnumOptions deprecatedLegacyJsonFieldConflicts.
9573
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
9574
+ * @memberof google.protobuf.EnumOptions
9575
+ * @instance
9576
+ */
9577
+ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
9578
+
9349
9579
  /**
9350
9580
  * EnumOptions uninterpretedOption.
9351
9581
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -9382,6 +9612,8 @@
9382
9612
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
9383
9613
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
9384
9614
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
9615
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
9616
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
9385
9617
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
9386
9618
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
9387
9619
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -9427,6 +9659,10 @@
9427
9659
  message.deprecated = reader.bool();
9428
9660
  break;
9429
9661
  }
9662
+ case 6: {
9663
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
9664
+ break;
9665
+ }
9430
9666
  case 999: {
9431
9667
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
9432
9668
  message.uninterpretedOption = [];
@@ -9474,6 +9710,9 @@
9474
9710
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
9475
9711
  if (typeof message.deprecated !== "boolean")
9476
9712
  return "deprecated: boolean expected";
9713
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
9714
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
9715
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
9477
9716
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
9478
9717
  if (!Array.isArray(message.uninterpretedOption))
9479
9718
  return "uninterpretedOption: array expected";
@@ -9502,6 +9741,8 @@
9502
9741
  message.allowAlias = Boolean(object.allowAlias);
9503
9742
  if (object.deprecated != null)
9504
9743
  message.deprecated = Boolean(object.deprecated);
9744
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
9745
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
9505
9746
  if (object.uninterpretedOption) {
9506
9747
  if (!Array.isArray(object.uninterpretedOption))
9507
9748
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -9533,11 +9774,14 @@
9533
9774
  if (options.defaults) {
9534
9775
  object.allowAlias = false;
9535
9776
  object.deprecated = false;
9777
+ object.deprecatedLegacyJsonFieldConflicts = false;
9536
9778
  }
9537
9779
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
9538
9780
  object.allowAlias = message.allowAlias;
9539
9781
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
9540
9782
  object.deprecated = message.deprecated;
9783
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
9784
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
9541
9785
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
9542
9786
  object.uninterpretedOption = [];
9543
9787
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -22673,6 +22917,3615 @@
22673
22917
  return CustomHttpPattern;
22674
22918
  })();
22675
22919
 
22920
+ api.CommonLanguageSettings = (function() {
22921
+
22922
+ /**
22923
+ * Properties of a CommonLanguageSettings.
22924
+ * @memberof google.api
22925
+ * @interface ICommonLanguageSettings
22926
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
22927
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
22928
+ */
22929
+
22930
+ /**
22931
+ * Constructs a new CommonLanguageSettings.
22932
+ * @memberof google.api
22933
+ * @classdesc Represents a CommonLanguageSettings.
22934
+ * @implements ICommonLanguageSettings
22935
+ * @constructor
22936
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
22937
+ */
22938
+ function CommonLanguageSettings(properties) {
22939
+ this.destinations = [];
22940
+ if (properties)
22941
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22942
+ if (properties[keys[i]] != null)
22943
+ this[keys[i]] = properties[keys[i]];
22944
+ }
22945
+
22946
+ /**
22947
+ * CommonLanguageSettings referenceDocsUri.
22948
+ * @member {string} referenceDocsUri
22949
+ * @memberof google.api.CommonLanguageSettings
22950
+ * @instance
22951
+ */
22952
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
22953
+
22954
+ /**
22955
+ * CommonLanguageSettings destinations.
22956
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
22957
+ * @memberof google.api.CommonLanguageSettings
22958
+ * @instance
22959
+ */
22960
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
22961
+
22962
+ /**
22963
+ * Creates a new CommonLanguageSettings instance using the specified properties.
22964
+ * @function create
22965
+ * @memberof google.api.CommonLanguageSettings
22966
+ * @static
22967
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
22968
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
22969
+ */
22970
+ CommonLanguageSettings.create = function create(properties) {
22971
+ return new CommonLanguageSettings(properties);
22972
+ };
22973
+
22974
+ /**
22975
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
22976
+ * @function encode
22977
+ * @memberof google.api.CommonLanguageSettings
22978
+ * @static
22979
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
22980
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22981
+ * @returns {$protobuf.Writer} Writer
22982
+ */
22983
+ CommonLanguageSettings.encode = function encode(message, writer) {
22984
+ if (!writer)
22985
+ writer = $Writer.create();
22986
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
22987
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
22988
+ if (message.destinations != null && message.destinations.length) {
22989
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
22990
+ for (var i = 0; i < message.destinations.length; ++i)
22991
+ writer.int32(message.destinations[i]);
22992
+ writer.ldelim();
22993
+ }
22994
+ return writer;
22995
+ };
22996
+
22997
+ /**
22998
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
22999
+ * @function encodeDelimited
23000
+ * @memberof google.api.CommonLanguageSettings
23001
+ * @static
23002
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
23003
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23004
+ * @returns {$protobuf.Writer} Writer
23005
+ */
23006
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
23007
+ return this.encode(message, writer).ldelim();
23008
+ };
23009
+
23010
+ /**
23011
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
23012
+ * @function decode
23013
+ * @memberof google.api.CommonLanguageSettings
23014
+ * @static
23015
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23016
+ * @param {number} [length] Message length if known beforehand
23017
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
23018
+ * @throws {Error} If the payload is not a reader or valid buffer
23019
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23020
+ */
23021
+ CommonLanguageSettings.decode = function decode(reader, length) {
23022
+ if (!(reader instanceof $Reader))
23023
+ reader = $Reader.create(reader);
23024
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
23025
+ while (reader.pos < end) {
23026
+ var tag = reader.uint32();
23027
+ switch (tag >>> 3) {
23028
+ case 1: {
23029
+ message.referenceDocsUri = reader.string();
23030
+ break;
23031
+ }
23032
+ case 2: {
23033
+ if (!(message.destinations && message.destinations.length))
23034
+ message.destinations = [];
23035
+ if ((tag & 7) === 2) {
23036
+ var end2 = reader.uint32() + reader.pos;
23037
+ while (reader.pos < end2)
23038
+ message.destinations.push(reader.int32());
23039
+ } else
23040
+ message.destinations.push(reader.int32());
23041
+ break;
23042
+ }
23043
+ default:
23044
+ reader.skipType(tag & 7);
23045
+ break;
23046
+ }
23047
+ }
23048
+ return message;
23049
+ };
23050
+
23051
+ /**
23052
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
23053
+ * @function decodeDelimited
23054
+ * @memberof google.api.CommonLanguageSettings
23055
+ * @static
23056
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23057
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
23058
+ * @throws {Error} If the payload is not a reader or valid buffer
23059
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23060
+ */
23061
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
23062
+ if (!(reader instanceof $Reader))
23063
+ reader = new $Reader(reader);
23064
+ return this.decode(reader, reader.uint32());
23065
+ };
23066
+
23067
+ /**
23068
+ * Verifies a CommonLanguageSettings message.
23069
+ * @function verify
23070
+ * @memberof google.api.CommonLanguageSettings
23071
+ * @static
23072
+ * @param {Object.<string,*>} message Plain object to verify
23073
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23074
+ */
23075
+ CommonLanguageSettings.verify = function verify(message) {
23076
+ if (typeof message !== "object" || message === null)
23077
+ return "object expected";
23078
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
23079
+ if (!$util.isString(message.referenceDocsUri))
23080
+ return "referenceDocsUri: string expected";
23081
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
23082
+ if (!Array.isArray(message.destinations))
23083
+ return "destinations: array expected";
23084
+ for (var i = 0; i < message.destinations.length; ++i)
23085
+ switch (message.destinations[i]) {
23086
+ default:
23087
+ return "destinations: enum value[] expected";
23088
+ case 0:
23089
+ case 10:
23090
+ case 20:
23091
+ break;
23092
+ }
23093
+ }
23094
+ return null;
23095
+ };
23096
+
23097
+ /**
23098
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
23099
+ * @function fromObject
23100
+ * @memberof google.api.CommonLanguageSettings
23101
+ * @static
23102
+ * @param {Object.<string,*>} object Plain object
23103
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
23104
+ */
23105
+ CommonLanguageSettings.fromObject = function fromObject(object) {
23106
+ if (object instanceof $root.google.api.CommonLanguageSettings)
23107
+ return object;
23108
+ var message = new $root.google.api.CommonLanguageSettings();
23109
+ if (object.referenceDocsUri != null)
23110
+ message.referenceDocsUri = String(object.referenceDocsUri);
23111
+ if (object.destinations) {
23112
+ if (!Array.isArray(object.destinations))
23113
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
23114
+ message.destinations = [];
23115
+ for (var i = 0; i < object.destinations.length; ++i)
23116
+ switch (object.destinations[i]) {
23117
+ default:
23118
+ if (typeof object.destinations[i] === "number") {
23119
+ message.destinations[i] = object.destinations[i];
23120
+ break;
23121
+ }
23122
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
23123
+ case 0:
23124
+ message.destinations[i] = 0;
23125
+ break;
23126
+ case "GITHUB":
23127
+ case 10:
23128
+ message.destinations[i] = 10;
23129
+ break;
23130
+ case "PACKAGE_MANAGER":
23131
+ case 20:
23132
+ message.destinations[i] = 20;
23133
+ break;
23134
+ }
23135
+ }
23136
+ return message;
23137
+ };
23138
+
23139
+ /**
23140
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
23141
+ * @function toObject
23142
+ * @memberof google.api.CommonLanguageSettings
23143
+ * @static
23144
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
23145
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23146
+ * @returns {Object.<string,*>} Plain object
23147
+ */
23148
+ CommonLanguageSettings.toObject = function toObject(message, options) {
23149
+ if (!options)
23150
+ options = {};
23151
+ var object = {};
23152
+ if (options.arrays || options.defaults)
23153
+ object.destinations = [];
23154
+ if (options.defaults)
23155
+ object.referenceDocsUri = "";
23156
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
23157
+ object.referenceDocsUri = message.referenceDocsUri;
23158
+ if (message.destinations && message.destinations.length) {
23159
+ object.destinations = [];
23160
+ for (var j = 0; j < message.destinations.length; ++j)
23161
+ 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];
23162
+ }
23163
+ return object;
23164
+ };
23165
+
23166
+ /**
23167
+ * Converts this CommonLanguageSettings to JSON.
23168
+ * @function toJSON
23169
+ * @memberof google.api.CommonLanguageSettings
23170
+ * @instance
23171
+ * @returns {Object.<string,*>} JSON object
23172
+ */
23173
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
23174
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23175
+ };
23176
+
23177
+ /**
23178
+ * Gets the default type url for CommonLanguageSettings
23179
+ * @function getTypeUrl
23180
+ * @memberof google.api.CommonLanguageSettings
23181
+ * @static
23182
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23183
+ * @returns {string} The default type url
23184
+ */
23185
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23186
+ if (typeUrlPrefix === undefined) {
23187
+ typeUrlPrefix = "type.googleapis.com";
23188
+ }
23189
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
23190
+ };
23191
+
23192
+ return CommonLanguageSettings;
23193
+ })();
23194
+
23195
+ api.ClientLibrarySettings = (function() {
23196
+
23197
+ /**
23198
+ * Properties of a ClientLibrarySettings.
23199
+ * @memberof google.api
23200
+ * @interface IClientLibrarySettings
23201
+ * @property {string|null} [version] ClientLibrarySettings version
23202
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
23203
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
23204
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
23205
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
23206
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
23207
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
23208
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
23209
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
23210
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
23211
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
23212
+ */
23213
+
23214
+ /**
23215
+ * Constructs a new ClientLibrarySettings.
23216
+ * @memberof google.api
23217
+ * @classdesc Represents a ClientLibrarySettings.
23218
+ * @implements IClientLibrarySettings
23219
+ * @constructor
23220
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
23221
+ */
23222
+ function ClientLibrarySettings(properties) {
23223
+ if (properties)
23224
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23225
+ if (properties[keys[i]] != null)
23226
+ this[keys[i]] = properties[keys[i]];
23227
+ }
23228
+
23229
+ /**
23230
+ * ClientLibrarySettings version.
23231
+ * @member {string} version
23232
+ * @memberof google.api.ClientLibrarySettings
23233
+ * @instance
23234
+ */
23235
+ ClientLibrarySettings.prototype.version = "";
23236
+
23237
+ /**
23238
+ * ClientLibrarySettings launchStage.
23239
+ * @member {google.api.LaunchStage} launchStage
23240
+ * @memberof google.api.ClientLibrarySettings
23241
+ * @instance
23242
+ */
23243
+ ClientLibrarySettings.prototype.launchStage = 0;
23244
+
23245
+ /**
23246
+ * ClientLibrarySettings restNumericEnums.
23247
+ * @member {boolean} restNumericEnums
23248
+ * @memberof google.api.ClientLibrarySettings
23249
+ * @instance
23250
+ */
23251
+ ClientLibrarySettings.prototype.restNumericEnums = false;
23252
+
23253
+ /**
23254
+ * ClientLibrarySettings javaSettings.
23255
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
23256
+ * @memberof google.api.ClientLibrarySettings
23257
+ * @instance
23258
+ */
23259
+ ClientLibrarySettings.prototype.javaSettings = null;
23260
+
23261
+ /**
23262
+ * ClientLibrarySettings cppSettings.
23263
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
23264
+ * @memberof google.api.ClientLibrarySettings
23265
+ * @instance
23266
+ */
23267
+ ClientLibrarySettings.prototype.cppSettings = null;
23268
+
23269
+ /**
23270
+ * ClientLibrarySettings phpSettings.
23271
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
23272
+ * @memberof google.api.ClientLibrarySettings
23273
+ * @instance
23274
+ */
23275
+ ClientLibrarySettings.prototype.phpSettings = null;
23276
+
23277
+ /**
23278
+ * ClientLibrarySettings pythonSettings.
23279
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
23280
+ * @memberof google.api.ClientLibrarySettings
23281
+ * @instance
23282
+ */
23283
+ ClientLibrarySettings.prototype.pythonSettings = null;
23284
+
23285
+ /**
23286
+ * ClientLibrarySettings nodeSettings.
23287
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
23288
+ * @memberof google.api.ClientLibrarySettings
23289
+ * @instance
23290
+ */
23291
+ ClientLibrarySettings.prototype.nodeSettings = null;
23292
+
23293
+ /**
23294
+ * ClientLibrarySettings dotnetSettings.
23295
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
23296
+ * @memberof google.api.ClientLibrarySettings
23297
+ * @instance
23298
+ */
23299
+ ClientLibrarySettings.prototype.dotnetSettings = null;
23300
+
23301
+ /**
23302
+ * ClientLibrarySettings rubySettings.
23303
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
23304
+ * @memberof google.api.ClientLibrarySettings
23305
+ * @instance
23306
+ */
23307
+ ClientLibrarySettings.prototype.rubySettings = null;
23308
+
23309
+ /**
23310
+ * ClientLibrarySettings goSettings.
23311
+ * @member {google.api.IGoSettings|null|undefined} goSettings
23312
+ * @memberof google.api.ClientLibrarySettings
23313
+ * @instance
23314
+ */
23315
+ ClientLibrarySettings.prototype.goSettings = null;
23316
+
23317
+ /**
23318
+ * Creates a new ClientLibrarySettings instance using the specified properties.
23319
+ * @function create
23320
+ * @memberof google.api.ClientLibrarySettings
23321
+ * @static
23322
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
23323
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
23324
+ */
23325
+ ClientLibrarySettings.create = function create(properties) {
23326
+ return new ClientLibrarySettings(properties);
23327
+ };
23328
+
23329
+ /**
23330
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
23331
+ * @function encode
23332
+ * @memberof google.api.ClientLibrarySettings
23333
+ * @static
23334
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
23335
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23336
+ * @returns {$protobuf.Writer} Writer
23337
+ */
23338
+ ClientLibrarySettings.encode = function encode(message, writer) {
23339
+ if (!writer)
23340
+ writer = $Writer.create();
23341
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
23342
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
23343
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
23344
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
23345
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
23346
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
23347
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
23348
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
23349
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
23350
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
23351
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
23352
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
23353
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
23354
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
23355
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
23356
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
23357
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
23358
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
23359
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
23360
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
23361
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
23362
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
23363
+ return writer;
23364
+ };
23365
+
23366
+ /**
23367
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
23368
+ * @function encodeDelimited
23369
+ * @memberof google.api.ClientLibrarySettings
23370
+ * @static
23371
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
23372
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23373
+ * @returns {$protobuf.Writer} Writer
23374
+ */
23375
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
23376
+ return this.encode(message, writer).ldelim();
23377
+ };
23378
+
23379
+ /**
23380
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
23381
+ * @function decode
23382
+ * @memberof google.api.ClientLibrarySettings
23383
+ * @static
23384
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23385
+ * @param {number} [length] Message length if known beforehand
23386
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
23387
+ * @throws {Error} If the payload is not a reader or valid buffer
23388
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23389
+ */
23390
+ ClientLibrarySettings.decode = function decode(reader, length) {
23391
+ if (!(reader instanceof $Reader))
23392
+ reader = $Reader.create(reader);
23393
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
23394
+ while (reader.pos < end) {
23395
+ var tag = reader.uint32();
23396
+ switch (tag >>> 3) {
23397
+ case 1: {
23398
+ message.version = reader.string();
23399
+ break;
23400
+ }
23401
+ case 2: {
23402
+ message.launchStage = reader.int32();
23403
+ break;
23404
+ }
23405
+ case 3: {
23406
+ message.restNumericEnums = reader.bool();
23407
+ break;
23408
+ }
23409
+ case 21: {
23410
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
23411
+ break;
23412
+ }
23413
+ case 22: {
23414
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
23415
+ break;
23416
+ }
23417
+ case 23: {
23418
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
23419
+ break;
23420
+ }
23421
+ case 24: {
23422
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
23423
+ break;
23424
+ }
23425
+ case 25: {
23426
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
23427
+ break;
23428
+ }
23429
+ case 26: {
23430
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
23431
+ break;
23432
+ }
23433
+ case 27: {
23434
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
23435
+ break;
23436
+ }
23437
+ case 28: {
23438
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
23439
+ break;
23440
+ }
23441
+ default:
23442
+ reader.skipType(tag & 7);
23443
+ break;
23444
+ }
23445
+ }
23446
+ return message;
23447
+ };
23448
+
23449
+ /**
23450
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
23451
+ * @function decodeDelimited
23452
+ * @memberof google.api.ClientLibrarySettings
23453
+ * @static
23454
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23455
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
23456
+ * @throws {Error} If the payload is not a reader or valid buffer
23457
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23458
+ */
23459
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
23460
+ if (!(reader instanceof $Reader))
23461
+ reader = new $Reader(reader);
23462
+ return this.decode(reader, reader.uint32());
23463
+ };
23464
+
23465
+ /**
23466
+ * Verifies a ClientLibrarySettings message.
23467
+ * @function verify
23468
+ * @memberof google.api.ClientLibrarySettings
23469
+ * @static
23470
+ * @param {Object.<string,*>} message Plain object to verify
23471
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23472
+ */
23473
+ ClientLibrarySettings.verify = function verify(message) {
23474
+ if (typeof message !== "object" || message === null)
23475
+ return "object expected";
23476
+ if (message.version != null && message.hasOwnProperty("version"))
23477
+ if (!$util.isString(message.version))
23478
+ return "version: string expected";
23479
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
23480
+ switch (message.launchStage) {
23481
+ default:
23482
+ return "launchStage: enum value expected";
23483
+ case 0:
23484
+ case 6:
23485
+ case 7:
23486
+ case 1:
23487
+ case 2:
23488
+ case 3:
23489
+ case 4:
23490
+ case 5:
23491
+ break;
23492
+ }
23493
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
23494
+ if (typeof message.restNumericEnums !== "boolean")
23495
+ return "restNumericEnums: boolean expected";
23496
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
23497
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
23498
+ if (error)
23499
+ return "javaSettings." + error;
23500
+ }
23501
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
23502
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
23503
+ if (error)
23504
+ return "cppSettings." + error;
23505
+ }
23506
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
23507
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
23508
+ if (error)
23509
+ return "phpSettings." + error;
23510
+ }
23511
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
23512
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
23513
+ if (error)
23514
+ return "pythonSettings." + error;
23515
+ }
23516
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
23517
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
23518
+ if (error)
23519
+ return "nodeSettings." + error;
23520
+ }
23521
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
23522
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
23523
+ if (error)
23524
+ return "dotnetSettings." + error;
23525
+ }
23526
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
23527
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
23528
+ if (error)
23529
+ return "rubySettings." + error;
23530
+ }
23531
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
23532
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
23533
+ if (error)
23534
+ return "goSettings." + error;
23535
+ }
23536
+ return null;
23537
+ };
23538
+
23539
+ /**
23540
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
23541
+ * @function fromObject
23542
+ * @memberof google.api.ClientLibrarySettings
23543
+ * @static
23544
+ * @param {Object.<string,*>} object Plain object
23545
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
23546
+ */
23547
+ ClientLibrarySettings.fromObject = function fromObject(object) {
23548
+ if (object instanceof $root.google.api.ClientLibrarySettings)
23549
+ return object;
23550
+ var message = new $root.google.api.ClientLibrarySettings();
23551
+ if (object.version != null)
23552
+ message.version = String(object.version);
23553
+ switch (object.launchStage) {
23554
+ default:
23555
+ if (typeof object.launchStage === "number") {
23556
+ message.launchStage = object.launchStage;
23557
+ break;
23558
+ }
23559
+ break;
23560
+ case "LAUNCH_STAGE_UNSPECIFIED":
23561
+ case 0:
23562
+ message.launchStage = 0;
23563
+ break;
23564
+ case "UNIMPLEMENTED":
23565
+ case 6:
23566
+ message.launchStage = 6;
23567
+ break;
23568
+ case "PRELAUNCH":
23569
+ case 7:
23570
+ message.launchStage = 7;
23571
+ break;
23572
+ case "EARLY_ACCESS":
23573
+ case 1:
23574
+ message.launchStage = 1;
23575
+ break;
23576
+ case "ALPHA":
23577
+ case 2:
23578
+ message.launchStage = 2;
23579
+ break;
23580
+ case "BETA":
23581
+ case 3:
23582
+ message.launchStage = 3;
23583
+ break;
23584
+ case "GA":
23585
+ case 4:
23586
+ message.launchStage = 4;
23587
+ break;
23588
+ case "DEPRECATED":
23589
+ case 5:
23590
+ message.launchStage = 5;
23591
+ break;
23592
+ }
23593
+ if (object.restNumericEnums != null)
23594
+ message.restNumericEnums = Boolean(object.restNumericEnums);
23595
+ if (object.javaSettings != null) {
23596
+ if (typeof object.javaSettings !== "object")
23597
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
23598
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
23599
+ }
23600
+ if (object.cppSettings != null) {
23601
+ if (typeof object.cppSettings !== "object")
23602
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
23603
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
23604
+ }
23605
+ if (object.phpSettings != null) {
23606
+ if (typeof object.phpSettings !== "object")
23607
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
23608
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
23609
+ }
23610
+ if (object.pythonSettings != null) {
23611
+ if (typeof object.pythonSettings !== "object")
23612
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
23613
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
23614
+ }
23615
+ if (object.nodeSettings != null) {
23616
+ if (typeof object.nodeSettings !== "object")
23617
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
23618
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
23619
+ }
23620
+ if (object.dotnetSettings != null) {
23621
+ if (typeof object.dotnetSettings !== "object")
23622
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
23623
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
23624
+ }
23625
+ if (object.rubySettings != null) {
23626
+ if (typeof object.rubySettings !== "object")
23627
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
23628
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
23629
+ }
23630
+ if (object.goSettings != null) {
23631
+ if (typeof object.goSettings !== "object")
23632
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
23633
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
23634
+ }
23635
+ return message;
23636
+ };
23637
+
23638
+ /**
23639
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
23640
+ * @function toObject
23641
+ * @memberof google.api.ClientLibrarySettings
23642
+ * @static
23643
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
23644
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23645
+ * @returns {Object.<string,*>} Plain object
23646
+ */
23647
+ ClientLibrarySettings.toObject = function toObject(message, options) {
23648
+ if (!options)
23649
+ options = {};
23650
+ var object = {};
23651
+ if (options.defaults) {
23652
+ object.version = "";
23653
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
23654
+ object.restNumericEnums = false;
23655
+ object.javaSettings = null;
23656
+ object.cppSettings = null;
23657
+ object.phpSettings = null;
23658
+ object.pythonSettings = null;
23659
+ object.nodeSettings = null;
23660
+ object.dotnetSettings = null;
23661
+ object.rubySettings = null;
23662
+ object.goSettings = null;
23663
+ }
23664
+ if (message.version != null && message.hasOwnProperty("version"))
23665
+ object.version = message.version;
23666
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
23667
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
23668
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
23669
+ object.restNumericEnums = message.restNumericEnums;
23670
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
23671
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
23672
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
23673
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
23674
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
23675
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
23676
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
23677
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
23678
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
23679
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
23680
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
23681
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
23682
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
23683
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
23684
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
23685
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
23686
+ return object;
23687
+ };
23688
+
23689
+ /**
23690
+ * Converts this ClientLibrarySettings to JSON.
23691
+ * @function toJSON
23692
+ * @memberof google.api.ClientLibrarySettings
23693
+ * @instance
23694
+ * @returns {Object.<string,*>} JSON object
23695
+ */
23696
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
23697
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23698
+ };
23699
+
23700
+ /**
23701
+ * Gets the default type url for ClientLibrarySettings
23702
+ * @function getTypeUrl
23703
+ * @memberof google.api.ClientLibrarySettings
23704
+ * @static
23705
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23706
+ * @returns {string} The default type url
23707
+ */
23708
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23709
+ if (typeUrlPrefix === undefined) {
23710
+ typeUrlPrefix = "type.googleapis.com";
23711
+ }
23712
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
23713
+ };
23714
+
23715
+ return ClientLibrarySettings;
23716
+ })();
23717
+
23718
+ api.Publishing = (function() {
23719
+
23720
+ /**
23721
+ * Properties of a Publishing.
23722
+ * @memberof google.api
23723
+ * @interface IPublishing
23724
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
23725
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
23726
+ * @property {string|null} [documentationUri] Publishing documentationUri
23727
+ * @property {string|null} [apiShortName] Publishing apiShortName
23728
+ * @property {string|null} [githubLabel] Publishing githubLabel
23729
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
23730
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
23731
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
23732
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
23733
+ */
23734
+
23735
+ /**
23736
+ * Constructs a new Publishing.
23737
+ * @memberof google.api
23738
+ * @classdesc Represents a Publishing.
23739
+ * @implements IPublishing
23740
+ * @constructor
23741
+ * @param {google.api.IPublishing=} [properties] Properties to set
23742
+ */
23743
+ function Publishing(properties) {
23744
+ this.methodSettings = [];
23745
+ this.codeownerGithubTeams = [];
23746
+ this.librarySettings = [];
23747
+ if (properties)
23748
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23749
+ if (properties[keys[i]] != null)
23750
+ this[keys[i]] = properties[keys[i]];
23751
+ }
23752
+
23753
+ /**
23754
+ * Publishing methodSettings.
23755
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
23756
+ * @memberof google.api.Publishing
23757
+ * @instance
23758
+ */
23759
+ Publishing.prototype.methodSettings = $util.emptyArray;
23760
+
23761
+ /**
23762
+ * Publishing newIssueUri.
23763
+ * @member {string} newIssueUri
23764
+ * @memberof google.api.Publishing
23765
+ * @instance
23766
+ */
23767
+ Publishing.prototype.newIssueUri = "";
23768
+
23769
+ /**
23770
+ * Publishing documentationUri.
23771
+ * @member {string} documentationUri
23772
+ * @memberof google.api.Publishing
23773
+ * @instance
23774
+ */
23775
+ Publishing.prototype.documentationUri = "";
23776
+
23777
+ /**
23778
+ * Publishing apiShortName.
23779
+ * @member {string} apiShortName
23780
+ * @memberof google.api.Publishing
23781
+ * @instance
23782
+ */
23783
+ Publishing.prototype.apiShortName = "";
23784
+
23785
+ /**
23786
+ * Publishing githubLabel.
23787
+ * @member {string} githubLabel
23788
+ * @memberof google.api.Publishing
23789
+ * @instance
23790
+ */
23791
+ Publishing.prototype.githubLabel = "";
23792
+
23793
+ /**
23794
+ * Publishing codeownerGithubTeams.
23795
+ * @member {Array.<string>} codeownerGithubTeams
23796
+ * @memberof google.api.Publishing
23797
+ * @instance
23798
+ */
23799
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
23800
+
23801
+ /**
23802
+ * Publishing docTagPrefix.
23803
+ * @member {string} docTagPrefix
23804
+ * @memberof google.api.Publishing
23805
+ * @instance
23806
+ */
23807
+ Publishing.prototype.docTagPrefix = "";
23808
+
23809
+ /**
23810
+ * Publishing organization.
23811
+ * @member {google.api.ClientLibraryOrganization} organization
23812
+ * @memberof google.api.Publishing
23813
+ * @instance
23814
+ */
23815
+ Publishing.prototype.organization = 0;
23816
+
23817
+ /**
23818
+ * Publishing librarySettings.
23819
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
23820
+ * @memberof google.api.Publishing
23821
+ * @instance
23822
+ */
23823
+ Publishing.prototype.librarySettings = $util.emptyArray;
23824
+
23825
+ /**
23826
+ * Creates a new Publishing instance using the specified properties.
23827
+ * @function create
23828
+ * @memberof google.api.Publishing
23829
+ * @static
23830
+ * @param {google.api.IPublishing=} [properties] Properties to set
23831
+ * @returns {google.api.Publishing} Publishing instance
23832
+ */
23833
+ Publishing.create = function create(properties) {
23834
+ return new Publishing(properties);
23835
+ };
23836
+
23837
+ /**
23838
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
23839
+ * @function encode
23840
+ * @memberof google.api.Publishing
23841
+ * @static
23842
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
23843
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23844
+ * @returns {$protobuf.Writer} Writer
23845
+ */
23846
+ Publishing.encode = function encode(message, writer) {
23847
+ if (!writer)
23848
+ writer = $Writer.create();
23849
+ if (message.methodSettings != null && message.methodSettings.length)
23850
+ for (var i = 0; i < message.methodSettings.length; ++i)
23851
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
23852
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
23853
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
23854
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
23855
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
23856
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
23857
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
23858
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
23859
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
23860
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
23861
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
23862
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
23863
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
23864
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
23865
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
23866
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
23867
+ if (message.librarySettings != null && message.librarySettings.length)
23868
+ for (var i = 0; i < message.librarySettings.length; ++i)
23869
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
23870
+ return writer;
23871
+ };
23872
+
23873
+ /**
23874
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
23875
+ * @function encodeDelimited
23876
+ * @memberof google.api.Publishing
23877
+ * @static
23878
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
23879
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23880
+ * @returns {$protobuf.Writer} Writer
23881
+ */
23882
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
23883
+ return this.encode(message, writer).ldelim();
23884
+ };
23885
+
23886
+ /**
23887
+ * Decodes a Publishing message from the specified reader or buffer.
23888
+ * @function decode
23889
+ * @memberof google.api.Publishing
23890
+ * @static
23891
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23892
+ * @param {number} [length] Message length if known beforehand
23893
+ * @returns {google.api.Publishing} Publishing
23894
+ * @throws {Error} If the payload is not a reader or valid buffer
23895
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23896
+ */
23897
+ Publishing.decode = function decode(reader, length) {
23898
+ if (!(reader instanceof $Reader))
23899
+ reader = $Reader.create(reader);
23900
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
23901
+ while (reader.pos < end) {
23902
+ var tag = reader.uint32();
23903
+ switch (tag >>> 3) {
23904
+ case 2: {
23905
+ if (!(message.methodSettings && message.methodSettings.length))
23906
+ message.methodSettings = [];
23907
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
23908
+ break;
23909
+ }
23910
+ case 101: {
23911
+ message.newIssueUri = reader.string();
23912
+ break;
23913
+ }
23914
+ case 102: {
23915
+ message.documentationUri = reader.string();
23916
+ break;
23917
+ }
23918
+ case 103: {
23919
+ message.apiShortName = reader.string();
23920
+ break;
23921
+ }
23922
+ case 104: {
23923
+ message.githubLabel = reader.string();
23924
+ break;
23925
+ }
23926
+ case 105: {
23927
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
23928
+ message.codeownerGithubTeams = [];
23929
+ message.codeownerGithubTeams.push(reader.string());
23930
+ break;
23931
+ }
23932
+ case 106: {
23933
+ message.docTagPrefix = reader.string();
23934
+ break;
23935
+ }
23936
+ case 107: {
23937
+ message.organization = reader.int32();
23938
+ break;
23939
+ }
23940
+ case 109: {
23941
+ if (!(message.librarySettings && message.librarySettings.length))
23942
+ message.librarySettings = [];
23943
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
23944
+ break;
23945
+ }
23946
+ default:
23947
+ reader.skipType(tag & 7);
23948
+ break;
23949
+ }
23950
+ }
23951
+ return message;
23952
+ };
23953
+
23954
+ /**
23955
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
23956
+ * @function decodeDelimited
23957
+ * @memberof google.api.Publishing
23958
+ * @static
23959
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23960
+ * @returns {google.api.Publishing} Publishing
23961
+ * @throws {Error} If the payload is not a reader or valid buffer
23962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23963
+ */
23964
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
23965
+ if (!(reader instanceof $Reader))
23966
+ reader = new $Reader(reader);
23967
+ return this.decode(reader, reader.uint32());
23968
+ };
23969
+
23970
+ /**
23971
+ * Verifies a Publishing message.
23972
+ * @function verify
23973
+ * @memberof google.api.Publishing
23974
+ * @static
23975
+ * @param {Object.<string,*>} message Plain object to verify
23976
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23977
+ */
23978
+ Publishing.verify = function verify(message) {
23979
+ if (typeof message !== "object" || message === null)
23980
+ return "object expected";
23981
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
23982
+ if (!Array.isArray(message.methodSettings))
23983
+ return "methodSettings: array expected";
23984
+ for (var i = 0; i < message.methodSettings.length; ++i) {
23985
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
23986
+ if (error)
23987
+ return "methodSettings." + error;
23988
+ }
23989
+ }
23990
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
23991
+ if (!$util.isString(message.newIssueUri))
23992
+ return "newIssueUri: string expected";
23993
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
23994
+ if (!$util.isString(message.documentationUri))
23995
+ return "documentationUri: string expected";
23996
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
23997
+ if (!$util.isString(message.apiShortName))
23998
+ return "apiShortName: string expected";
23999
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
24000
+ if (!$util.isString(message.githubLabel))
24001
+ return "githubLabel: string expected";
24002
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
24003
+ if (!Array.isArray(message.codeownerGithubTeams))
24004
+ return "codeownerGithubTeams: array expected";
24005
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
24006
+ if (!$util.isString(message.codeownerGithubTeams[i]))
24007
+ return "codeownerGithubTeams: string[] expected";
24008
+ }
24009
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
24010
+ if (!$util.isString(message.docTagPrefix))
24011
+ return "docTagPrefix: string expected";
24012
+ if (message.organization != null && message.hasOwnProperty("organization"))
24013
+ switch (message.organization) {
24014
+ default:
24015
+ return "organization: enum value expected";
24016
+ case 0:
24017
+ case 1:
24018
+ case 2:
24019
+ case 3:
24020
+ case 4:
24021
+ break;
24022
+ }
24023
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
24024
+ if (!Array.isArray(message.librarySettings))
24025
+ return "librarySettings: array expected";
24026
+ for (var i = 0; i < message.librarySettings.length; ++i) {
24027
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
24028
+ if (error)
24029
+ return "librarySettings." + error;
24030
+ }
24031
+ }
24032
+ return null;
24033
+ };
24034
+
24035
+ /**
24036
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
24037
+ * @function fromObject
24038
+ * @memberof google.api.Publishing
24039
+ * @static
24040
+ * @param {Object.<string,*>} object Plain object
24041
+ * @returns {google.api.Publishing} Publishing
24042
+ */
24043
+ Publishing.fromObject = function fromObject(object) {
24044
+ if (object instanceof $root.google.api.Publishing)
24045
+ return object;
24046
+ var message = new $root.google.api.Publishing();
24047
+ if (object.methodSettings) {
24048
+ if (!Array.isArray(object.methodSettings))
24049
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
24050
+ message.methodSettings = [];
24051
+ for (var i = 0; i < object.methodSettings.length; ++i) {
24052
+ if (typeof object.methodSettings[i] !== "object")
24053
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
24054
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
24055
+ }
24056
+ }
24057
+ if (object.newIssueUri != null)
24058
+ message.newIssueUri = String(object.newIssueUri);
24059
+ if (object.documentationUri != null)
24060
+ message.documentationUri = String(object.documentationUri);
24061
+ if (object.apiShortName != null)
24062
+ message.apiShortName = String(object.apiShortName);
24063
+ if (object.githubLabel != null)
24064
+ message.githubLabel = String(object.githubLabel);
24065
+ if (object.codeownerGithubTeams) {
24066
+ if (!Array.isArray(object.codeownerGithubTeams))
24067
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
24068
+ message.codeownerGithubTeams = [];
24069
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
24070
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
24071
+ }
24072
+ if (object.docTagPrefix != null)
24073
+ message.docTagPrefix = String(object.docTagPrefix);
24074
+ switch (object.organization) {
24075
+ default:
24076
+ if (typeof object.organization === "number") {
24077
+ message.organization = object.organization;
24078
+ break;
24079
+ }
24080
+ break;
24081
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
24082
+ case 0:
24083
+ message.organization = 0;
24084
+ break;
24085
+ case "CLOUD":
24086
+ case 1:
24087
+ message.organization = 1;
24088
+ break;
24089
+ case "ADS":
24090
+ case 2:
24091
+ message.organization = 2;
24092
+ break;
24093
+ case "PHOTOS":
24094
+ case 3:
24095
+ message.organization = 3;
24096
+ break;
24097
+ case "STREET_VIEW":
24098
+ case 4:
24099
+ message.organization = 4;
24100
+ break;
24101
+ }
24102
+ if (object.librarySettings) {
24103
+ if (!Array.isArray(object.librarySettings))
24104
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
24105
+ message.librarySettings = [];
24106
+ for (var i = 0; i < object.librarySettings.length; ++i) {
24107
+ if (typeof object.librarySettings[i] !== "object")
24108
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
24109
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
24110
+ }
24111
+ }
24112
+ return message;
24113
+ };
24114
+
24115
+ /**
24116
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
24117
+ * @function toObject
24118
+ * @memberof google.api.Publishing
24119
+ * @static
24120
+ * @param {google.api.Publishing} message Publishing
24121
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24122
+ * @returns {Object.<string,*>} Plain object
24123
+ */
24124
+ Publishing.toObject = function toObject(message, options) {
24125
+ if (!options)
24126
+ options = {};
24127
+ var object = {};
24128
+ if (options.arrays || options.defaults) {
24129
+ object.methodSettings = [];
24130
+ object.codeownerGithubTeams = [];
24131
+ object.librarySettings = [];
24132
+ }
24133
+ if (options.defaults) {
24134
+ object.newIssueUri = "";
24135
+ object.documentationUri = "";
24136
+ object.apiShortName = "";
24137
+ object.githubLabel = "";
24138
+ object.docTagPrefix = "";
24139
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
24140
+ }
24141
+ if (message.methodSettings && message.methodSettings.length) {
24142
+ object.methodSettings = [];
24143
+ for (var j = 0; j < message.methodSettings.length; ++j)
24144
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
24145
+ }
24146
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
24147
+ object.newIssueUri = message.newIssueUri;
24148
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
24149
+ object.documentationUri = message.documentationUri;
24150
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
24151
+ object.apiShortName = message.apiShortName;
24152
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
24153
+ object.githubLabel = message.githubLabel;
24154
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
24155
+ object.codeownerGithubTeams = [];
24156
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
24157
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
24158
+ }
24159
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
24160
+ object.docTagPrefix = message.docTagPrefix;
24161
+ if (message.organization != null && message.hasOwnProperty("organization"))
24162
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
24163
+ if (message.librarySettings && message.librarySettings.length) {
24164
+ object.librarySettings = [];
24165
+ for (var j = 0; j < message.librarySettings.length; ++j)
24166
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
24167
+ }
24168
+ return object;
24169
+ };
24170
+
24171
+ /**
24172
+ * Converts this Publishing to JSON.
24173
+ * @function toJSON
24174
+ * @memberof google.api.Publishing
24175
+ * @instance
24176
+ * @returns {Object.<string,*>} JSON object
24177
+ */
24178
+ Publishing.prototype.toJSON = function toJSON() {
24179
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24180
+ };
24181
+
24182
+ /**
24183
+ * Gets the default type url for Publishing
24184
+ * @function getTypeUrl
24185
+ * @memberof google.api.Publishing
24186
+ * @static
24187
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24188
+ * @returns {string} The default type url
24189
+ */
24190
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24191
+ if (typeUrlPrefix === undefined) {
24192
+ typeUrlPrefix = "type.googleapis.com";
24193
+ }
24194
+ return typeUrlPrefix + "/google.api.Publishing";
24195
+ };
24196
+
24197
+ return Publishing;
24198
+ })();
24199
+
24200
+ api.JavaSettings = (function() {
24201
+
24202
+ /**
24203
+ * Properties of a JavaSettings.
24204
+ * @memberof google.api
24205
+ * @interface IJavaSettings
24206
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
24207
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
24208
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
24209
+ */
24210
+
24211
+ /**
24212
+ * Constructs a new JavaSettings.
24213
+ * @memberof google.api
24214
+ * @classdesc Represents a JavaSettings.
24215
+ * @implements IJavaSettings
24216
+ * @constructor
24217
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
24218
+ */
24219
+ function JavaSettings(properties) {
24220
+ this.serviceClassNames = {};
24221
+ if (properties)
24222
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24223
+ if (properties[keys[i]] != null)
24224
+ this[keys[i]] = properties[keys[i]];
24225
+ }
24226
+
24227
+ /**
24228
+ * JavaSettings libraryPackage.
24229
+ * @member {string} libraryPackage
24230
+ * @memberof google.api.JavaSettings
24231
+ * @instance
24232
+ */
24233
+ JavaSettings.prototype.libraryPackage = "";
24234
+
24235
+ /**
24236
+ * JavaSettings serviceClassNames.
24237
+ * @member {Object.<string,string>} serviceClassNames
24238
+ * @memberof google.api.JavaSettings
24239
+ * @instance
24240
+ */
24241
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
24242
+
24243
+ /**
24244
+ * JavaSettings common.
24245
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
24246
+ * @memberof google.api.JavaSettings
24247
+ * @instance
24248
+ */
24249
+ JavaSettings.prototype.common = null;
24250
+
24251
+ /**
24252
+ * Creates a new JavaSettings instance using the specified properties.
24253
+ * @function create
24254
+ * @memberof google.api.JavaSettings
24255
+ * @static
24256
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
24257
+ * @returns {google.api.JavaSettings} JavaSettings instance
24258
+ */
24259
+ JavaSettings.create = function create(properties) {
24260
+ return new JavaSettings(properties);
24261
+ };
24262
+
24263
+ /**
24264
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
24265
+ * @function encode
24266
+ * @memberof google.api.JavaSettings
24267
+ * @static
24268
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
24269
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24270
+ * @returns {$protobuf.Writer} Writer
24271
+ */
24272
+ JavaSettings.encode = function encode(message, writer) {
24273
+ if (!writer)
24274
+ writer = $Writer.create();
24275
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
24276
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
24277
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
24278
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
24279
+ 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();
24280
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
24281
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
24282
+ return writer;
24283
+ };
24284
+
24285
+ /**
24286
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
24287
+ * @function encodeDelimited
24288
+ * @memberof google.api.JavaSettings
24289
+ * @static
24290
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
24291
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24292
+ * @returns {$protobuf.Writer} Writer
24293
+ */
24294
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
24295
+ return this.encode(message, writer).ldelim();
24296
+ };
24297
+
24298
+ /**
24299
+ * Decodes a JavaSettings message from the specified reader or buffer.
24300
+ * @function decode
24301
+ * @memberof google.api.JavaSettings
24302
+ * @static
24303
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24304
+ * @param {number} [length] Message length if known beforehand
24305
+ * @returns {google.api.JavaSettings} JavaSettings
24306
+ * @throws {Error} If the payload is not a reader or valid buffer
24307
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24308
+ */
24309
+ JavaSettings.decode = function decode(reader, length) {
24310
+ if (!(reader instanceof $Reader))
24311
+ reader = $Reader.create(reader);
24312
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
24313
+ while (reader.pos < end) {
24314
+ var tag = reader.uint32();
24315
+ switch (tag >>> 3) {
24316
+ case 1: {
24317
+ message.libraryPackage = reader.string();
24318
+ break;
24319
+ }
24320
+ case 2: {
24321
+ if (message.serviceClassNames === $util.emptyObject)
24322
+ message.serviceClassNames = {};
24323
+ var end2 = reader.uint32() + reader.pos;
24324
+ key = "";
24325
+ value = "";
24326
+ while (reader.pos < end2) {
24327
+ var tag2 = reader.uint32();
24328
+ switch (tag2 >>> 3) {
24329
+ case 1:
24330
+ key = reader.string();
24331
+ break;
24332
+ case 2:
24333
+ value = reader.string();
24334
+ break;
24335
+ default:
24336
+ reader.skipType(tag2 & 7);
24337
+ break;
24338
+ }
24339
+ }
24340
+ message.serviceClassNames[key] = value;
24341
+ break;
24342
+ }
24343
+ case 3: {
24344
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
24345
+ break;
24346
+ }
24347
+ default:
24348
+ reader.skipType(tag & 7);
24349
+ break;
24350
+ }
24351
+ }
24352
+ return message;
24353
+ };
24354
+
24355
+ /**
24356
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
24357
+ * @function decodeDelimited
24358
+ * @memberof google.api.JavaSettings
24359
+ * @static
24360
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24361
+ * @returns {google.api.JavaSettings} JavaSettings
24362
+ * @throws {Error} If the payload is not a reader or valid buffer
24363
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24364
+ */
24365
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
24366
+ if (!(reader instanceof $Reader))
24367
+ reader = new $Reader(reader);
24368
+ return this.decode(reader, reader.uint32());
24369
+ };
24370
+
24371
+ /**
24372
+ * Verifies a JavaSettings message.
24373
+ * @function verify
24374
+ * @memberof google.api.JavaSettings
24375
+ * @static
24376
+ * @param {Object.<string,*>} message Plain object to verify
24377
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24378
+ */
24379
+ JavaSettings.verify = function verify(message) {
24380
+ if (typeof message !== "object" || message === null)
24381
+ return "object expected";
24382
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
24383
+ if (!$util.isString(message.libraryPackage))
24384
+ return "libraryPackage: string expected";
24385
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
24386
+ if (!$util.isObject(message.serviceClassNames))
24387
+ return "serviceClassNames: object expected";
24388
+ var key = Object.keys(message.serviceClassNames);
24389
+ for (var i = 0; i < key.length; ++i)
24390
+ if (!$util.isString(message.serviceClassNames[key[i]]))
24391
+ return "serviceClassNames: string{k:string} expected";
24392
+ }
24393
+ if (message.common != null && message.hasOwnProperty("common")) {
24394
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
24395
+ if (error)
24396
+ return "common." + error;
24397
+ }
24398
+ return null;
24399
+ };
24400
+
24401
+ /**
24402
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
24403
+ * @function fromObject
24404
+ * @memberof google.api.JavaSettings
24405
+ * @static
24406
+ * @param {Object.<string,*>} object Plain object
24407
+ * @returns {google.api.JavaSettings} JavaSettings
24408
+ */
24409
+ JavaSettings.fromObject = function fromObject(object) {
24410
+ if (object instanceof $root.google.api.JavaSettings)
24411
+ return object;
24412
+ var message = new $root.google.api.JavaSettings();
24413
+ if (object.libraryPackage != null)
24414
+ message.libraryPackage = String(object.libraryPackage);
24415
+ if (object.serviceClassNames) {
24416
+ if (typeof object.serviceClassNames !== "object")
24417
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
24418
+ message.serviceClassNames = {};
24419
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
24420
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
24421
+ }
24422
+ if (object.common != null) {
24423
+ if (typeof object.common !== "object")
24424
+ throw TypeError(".google.api.JavaSettings.common: object expected");
24425
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
24426
+ }
24427
+ return message;
24428
+ };
24429
+
24430
+ /**
24431
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
24432
+ * @function toObject
24433
+ * @memberof google.api.JavaSettings
24434
+ * @static
24435
+ * @param {google.api.JavaSettings} message JavaSettings
24436
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24437
+ * @returns {Object.<string,*>} Plain object
24438
+ */
24439
+ JavaSettings.toObject = function toObject(message, options) {
24440
+ if (!options)
24441
+ options = {};
24442
+ var object = {};
24443
+ if (options.objects || options.defaults)
24444
+ object.serviceClassNames = {};
24445
+ if (options.defaults) {
24446
+ object.libraryPackage = "";
24447
+ object.common = null;
24448
+ }
24449
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
24450
+ object.libraryPackage = message.libraryPackage;
24451
+ var keys2;
24452
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
24453
+ object.serviceClassNames = {};
24454
+ for (var j = 0; j < keys2.length; ++j)
24455
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
24456
+ }
24457
+ if (message.common != null && message.hasOwnProperty("common"))
24458
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
24459
+ return object;
24460
+ };
24461
+
24462
+ /**
24463
+ * Converts this JavaSettings to JSON.
24464
+ * @function toJSON
24465
+ * @memberof google.api.JavaSettings
24466
+ * @instance
24467
+ * @returns {Object.<string,*>} JSON object
24468
+ */
24469
+ JavaSettings.prototype.toJSON = function toJSON() {
24470
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24471
+ };
24472
+
24473
+ /**
24474
+ * Gets the default type url for JavaSettings
24475
+ * @function getTypeUrl
24476
+ * @memberof google.api.JavaSettings
24477
+ * @static
24478
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24479
+ * @returns {string} The default type url
24480
+ */
24481
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24482
+ if (typeUrlPrefix === undefined) {
24483
+ typeUrlPrefix = "type.googleapis.com";
24484
+ }
24485
+ return typeUrlPrefix + "/google.api.JavaSettings";
24486
+ };
24487
+
24488
+ return JavaSettings;
24489
+ })();
24490
+
24491
+ api.CppSettings = (function() {
24492
+
24493
+ /**
24494
+ * Properties of a CppSettings.
24495
+ * @memberof google.api
24496
+ * @interface ICppSettings
24497
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
24498
+ */
24499
+
24500
+ /**
24501
+ * Constructs a new CppSettings.
24502
+ * @memberof google.api
24503
+ * @classdesc Represents a CppSettings.
24504
+ * @implements ICppSettings
24505
+ * @constructor
24506
+ * @param {google.api.ICppSettings=} [properties] Properties to set
24507
+ */
24508
+ function CppSettings(properties) {
24509
+ if (properties)
24510
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24511
+ if (properties[keys[i]] != null)
24512
+ this[keys[i]] = properties[keys[i]];
24513
+ }
24514
+
24515
+ /**
24516
+ * CppSettings common.
24517
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
24518
+ * @memberof google.api.CppSettings
24519
+ * @instance
24520
+ */
24521
+ CppSettings.prototype.common = null;
24522
+
24523
+ /**
24524
+ * Creates a new CppSettings instance using the specified properties.
24525
+ * @function create
24526
+ * @memberof google.api.CppSettings
24527
+ * @static
24528
+ * @param {google.api.ICppSettings=} [properties] Properties to set
24529
+ * @returns {google.api.CppSettings} CppSettings instance
24530
+ */
24531
+ CppSettings.create = function create(properties) {
24532
+ return new CppSettings(properties);
24533
+ };
24534
+
24535
+ /**
24536
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
24537
+ * @function encode
24538
+ * @memberof google.api.CppSettings
24539
+ * @static
24540
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
24541
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24542
+ * @returns {$protobuf.Writer} Writer
24543
+ */
24544
+ CppSettings.encode = function encode(message, writer) {
24545
+ if (!writer)
24546
+ writer = $Writer.create();
24547
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
24548
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
24549
+ return writer;
24550
+ };
24551
+
24552
+ /**
24553
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
24554
+ * @function encodeDelimited
24555
+ * @memberof google.api.CppSettings
24556
+ * @static
24557
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
24558
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24559
+ * @returns {$protobuf.Writer} Writer
24560
+ */
24561
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
24562
+ return this.encode(message, writer).ldelim();
24563
+ };
24564
+
24565
+ /**
24566
+ * Decodes a CppSettings message from the specified reader or buffer.
24567
+ * @function decode
24568
+ * @memberof google.api.CppSettings
24569
+ * @static
24570
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24571
+ * @param {number} [length] Message length if known beforehand
24572
+ * @returns {google.api.CppSettings} CppSettings
24573
+ * @throws {Error} If the payload is not a reader or valid buffer
24574
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24575
+ */
24576
+ CppSettings.decode = function decode(reader, length) {
24577
+ if (!(reader instanceof $Reader))
24578
+ reader = $Reader.create(reader);
24579
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
24580
+ while (reader.pos < end) {
24581
+ var tag = reader.uint32();
24582
+ switch (tag >>> 3) {
24583
+ case 1: {
24584
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
24585
+ break;
24586
+ }
24587
+ default:
24588
+ reader.skipType(tag & 7);
24589
+ break;
24590
+ }
24591
+ }
24592
+ return message;
24593
+ };
24594
+
24595
+ /**
24596
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
24597
+ * @function decodeDelimited
24598
+ * @memberof google.api.CppSettings
24599
+ * @static
24600
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24601
+ * @returns {google.api.CppSettings} CppSettings
24602
+ * @throws {Error} If the payload is not a reader or valid buffer
24603
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24604
+ */
24605
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
24606
+ if (!(reader instanceof $Reader))
24607
+ reader = new $Reader(reader);
24608
+ return this.decode(reader, reader.uint32());
24609
+ };
24610
+
24611
+ /**
24612
+ * Verifies a CppSettings message.
24613
+ * @function verify
24614
+ * @memberof google.api.CppSettings
24615
+ * @static
24616
+ * @param {Object.<string,*>} message Plain object to verify
24617
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24618
+ */
24619
+ CppSettings.verify = function verify(message) {
24620
+ if (typeof message !== "object" || message === null)
24621
+ return "object expected";
24622
+ if (message.common != null && message.hasOwnProperty("common")) {
24623
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
24624
+ if (error)
24625
+ return "common." + error;
24626
+ }
24627
+ return null;
24628
+ };
24629
+
24630
+ /**
24631
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
24632
+ * @function fromObject
24633
+ * @memberof google.api.CppSettings
24634
+ * @static
24635
+ * @param {Object.<string,*>} object Plain object
24636
+ * @returns {google.api.CppSettings} CppSettings
24637
+ */
24638
+ CppSettings.fromObject = function fromObject(object) {
24639
+ if (object instanceof $root.google.api.CppSettings)
24640
+ return object;
24641
+ var message = new $root.google.api.CppSettings();
24642
+ if (object.common != null) {
24643
+ if (typeof object.common !== "object")
24644
+ throw TypeError(".google.api.CppSettings.common: object expected");
24645
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
24646
+ }
24647
+ return message;
24648
+ };
24649
+
24650
+ /**
24651
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
24652
+ * @function toObject
24653
+ * @memberof google.api.CppSettings
24654
+ * @static
24655
+ * @param {google.api.CppSettings} message CppSettings
24656
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24657
+ * @returns {Object.<string,*>} Plain object
24658
+ */
24659
+ CppSettings.toObject = function toObject(message, options) {
24660
+ if (!options)
24661
+ options = {};
24662
+ var object = {};
24663
+ if (options.defaults)
24664
+ object.common = null;
24665
+ if (message.common != null && message.hasOwnProperty("common"))
24666
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
24667
+ return object;
24668
+ };
24669
+
24670
+ /**
24671
+ * Converts this CppSettings to JSON.
24672
+ * @function toJSON
24673
+ * @memberof google.api.CppSettings
24674
+ * @instance
24675
+ * @returns {Object.<string,*>} JSON object
24676
+ */
24677
+ CppSettings.prototype.toJSON = function toJSON() {
24678
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24679
+ };
24680
+
24681
+ /**
24682
+ * Gets the default type url for CppSettings
24683
+ * @function getTypeUrl
24684
+ * @memberof google.api.CppSettings
24685
+ * @static
24686
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24687
+ * @returns {string} The default type url
24688
+ */
24689
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24690
+ if (typeUrlPrefix === undefined) {
24691
+ typeUrlPrefix = "type.googleapis.com";
24692
+ }
24693
+ return typeUrlPrefix + "/google.api.CppSettings";
24694
+ };
24695
+
24696
+ return CppSettings;
24697
+ })();
24698
+
24699
+ api.PhpSettings = (function() {
24700
+
24701
+ /**
24702
+ * Properties of a PhpSettings.
24703
+ * @memberof google.api
24704
+ * @interface IPhpSettings
24705
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
24706
+ */
24707
+
24708
+ /**
24709
+ * Constructs a new PhpSettings.
24710
+ * @memberof google.api
24711
+ * @classdesc Represents a PhpSettings.
24712
+ * @implements IPhpSettings
24713
+ * @constructor
24714
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
24715
+ */
24716
+ function PhpSettings(properties) {
24717
+ if (properties)
24718
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24719
+ if (properties[keys[i]] != null)
24720
+ this[keys[i]] = properties[keys[i]];
24721
+ }
24722
+
24723
+ /**
24724
+ * PhpSettings common.
24725
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
24726
+ * @memberof google.api.PhpSettings
24727
+ * @instance
24728
+ */
24729
+ PhpSettings.prototype.common = null;
24730
+
24731
+ /**
24732
+ * Creates a new PhpSettings instance using the specified properties.
24733
+ * @function create
24734
+ * @memberof google.api.PhpSettings
24735
+ * @static
24736
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
24737
+ * @returns {google.api.PhpSettings} PhpSettings instance
24738
+ */
24739
+ PhpSettings.create = function create(properties) {
24740
+ return new PhpSettings(properties);
24741
+ };
24742
+
24743
+ /**
24744
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
24745
+ * @function encode
24746
+ * @memberof google.api.PhpSettings
24747
+ * @static
24748
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
24749
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24750
+ * @returns {$protobuf.Writer} Writer
24751
+ */
24752
+ PhpSettings.encode = function encode(message, writer) {
24753
+ if (!writer)
24754
+ writer = $Writer.create();
24755
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
24756
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
24757
+ return writer;
24758
+ };
24759
+
24760
+ /**
24761
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
24762
+ * @function encodeDelimited
24763
+ * @memberof google.api.PhpSettings
24764
+ * @static
24765
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
24766
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24767
+ * @returns {$protobuf.Writer} Writer
24768
+ */
24769
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
24770
+ return this.encode(message, writer).ldelim();
24771
+ };
24772
+
24773
+ /**
24774
+ * Decodes a PhpSettings message from the specified reader or buffer.
24775
+ * @function decode
24776
+ * @memberof google.api.PhpSettings
24777
+ * @static
24778
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24779
+ * @param {number} [length] Message length if known beforehand
24780
+ * @returns {google.api.PhpSettings} PhpSettings
24781
+ * @throws {Error} If the payload is not a reader or valid buffer
24782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24783
+ */
24784
+ PhpSettings.decode = function decode(reader, length) {
24785
+ if (!(reader instanceof $Reader))
24786
+ reader = $Reader.create(reader);
24787
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
24788
+ while (reader.pos < end) {
24789
+ var tag = reader.uint32();
24790
+ switch (tag >>> 3) {
24791
+ case 1: {
24792
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
24793
+ break;
24794
+ }
24795
+ default:
24796
+ reader.skipType(tag & 7);
24797
+ break;
24798
+ }
24799
+ }
24800
+ return message;
24801
+ };
24802
+
24803
+ /**
24804
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
24805
+ * @function decodeDelimited
24806
+ * @memberof google.api.PhpSettings
24807
+ * @static
24808
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24809
+ * @returns {google.api.PhpSettings} PhpSettings
24810
+ * @throws {Error} If the payload is not a reader or valid buffer
24811
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24812
+ */
24813
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
24814
+ if (!(reader instanceof $Reader))
24815
+ reader = new $Reader(reader);
24816
+ return this.decode(reader, reader.uint32());
24817
+ };
24818
+
24819
+ /**
24820
+ * Verifies a PhpSettings message.
24821
+ * @function verify
24822
+ * @memberof google.api.PhpSettings
24823
+ * @static
24824
+ * @param {Object.<string,*>} message Plain object to verify
24825
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24826
+ */
24827
+ PhpSettings.verify = function verify(message) {
24828
+ if (typeof message !== "object" || message === null)
24829
+ return "object expected";
24830
+ if (message.common != null && message.hasOwnProperty("common")) {
24831
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
24832
+ if (error)
24833
+ return "common." + error;
24834
+ }
24835
+ return null;
24836
+ };
24837
+
24838
+ /**
24839
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
24840
+ * @function fromObject
24841
+ * @memberof google.api.PhpSettings
24842
+ * @static
24843
+ * @param {Object.<string,*>} object Plain object
24844
+ * @returns {google.api.PhpSettings} PhpSettings
24845
+ */
24846
+ PhpSettings.fromObject = function fromObject(object) {
24847
+ if (object instanceof $root.google.api.PhpSettings)
24848
+ return object;
24849
+ var message = new $root.google.api.PhpSettings();
24850
+ if (object.common != null) {
24851
+ if (typeof object.common !== "object")
24852
+ throw TypeError(".google.api.PhpSettings.common: object expected");
24853
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
24854
+ }
24855
+ return message;
24856
+ };
24857
+
24858
+ /**
24859
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
24860
+ * @function toObject
24861
+ * @memberof google.api.PhpSettings
24862
+ * @static
24863
+ * @param {google.api.PhpSettings} message PhpSettings
24864
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24865
+ * @returns {Object.<string,*>} Plain object
24866
+ */
24867
+ PhpSettings.toObject = function toObject(message, options) {
24868
+ if (!options)
24869
+ options = {};
24870
+ var object = {};
24871
+ if (options.defaults)
24872
+ object.common = null;
24873
+ if (message.common != null && message.hasOwnProperty("common"))
24874
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
24875
+ return object;
24876
+ };
24877
+
24878
+ /**
24879
+ * Converts this PhpSettings to JSON.
24880
+ * @function toJSON
24881
+ * @memberof google.api.PhpSettings
24882
+ * @instance
24883
+ * @returns {Object.<string,*>} JSON object
24884
+ */
24885
+ PhpSettings.prototype.toJSON = function toJSON() {
24886
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24887
+ };
24888
+
24889
+ /**
24890
+ * Gets the default type url for PhpSettings
24891
+ * @function getTypeUrl
24892
+ * @memberof google.api.PhpSettings
24893
+ * @static
24894
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24895
+ * @returns {string} The default type url
24896
+ */
24897
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24898
+ if (typeUrlPrefix === undefined) {
24899
+ typeUrlPrefix = "type.googleapis.com";
24900
+ }
24901
+ return typeUrlPrefix + "/google.api.PhpSettings";
24902
+ };
24903
+
24904
+ return PhpSettings;
24905
+ })();
24906
+
24907
+ api.PythonSettings = (function() {
24908
+
24909
+ /**
24910
+ * Properties of a PythonSettings.
24911
+ * @memberof google.api
24912
+ * @interface IPythonSettings
24913
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
24914
+ */
24915
+
24916
+ /**
24917
+ * Constructs a new PythonSettings.
24918
+ * @memberof google.api
24919
+ * @classdesc Represents a PythonSettings.
24920
+ * @implements IPythonSettings
24921
+ * @constructor
24922
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
24923
+ */
24924
+ function PythonSettings(properties) {
24925
+ if (properties)
24926
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24927
+ if (properties[keys[i]] != null)
24928
+ this[keys[i]] = properties[keys[i]];
24929
+ }
24930
+
24931
+ /**
24932
+ * PythonSettings common.
24933
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
24934
+ * @memberof google.api.PythonSettings
24935
+ * @instance
24936
+ */
24937
+ PythonSettings.prototype.common = null;
24938
+
24939
+ /**
24940
+ * Creates a new PythonSettings instance using the specified properties.
24941
+ * @function create
24942
+ * @memberof google.api.PythonSettings
24943
+ * @static
24944
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
24945
+ * @returns {google.api.PythonSettings} PythonSettings instance
24946
+ */
24947
+ PythonSettings.create = function create(properties) {
24948
+ return new PythonSettings(properties);
24949
+ };
24950
+
24951
+ /**
24952
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
24953
+ * @function encode
24954
+ * @memberof google.api.PythonSettings
24955
+ * @static
24956
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
24957
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24958
+ * @returns {$protobuf.Writer} Writer
24959
+ */
24960
+ PythonSettings.encode = function encode(message, writer) {
24961
+ if (!writer)
24962
+ writer = $Writer.create();
24963
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
24964
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
24965
+ return writer;
24966
+ };
24967
+
24968
+ /**
24969
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
24970
+ * @function encodeDelimited
24971
+ * @memberof google.api.PythonSettings
24972
+ * @static
24973
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
24974
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24975
+ * @returns {$protobuf.Writer} Writer
24976
+ */
24977
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
24978
+ return this.encode(message, writer).ldelim();
24979
+ };
24980
+
24981
+ /**
24982
+ * Decodes a PythonSettings message from the specified reader or buffer.
24983
+ * @function decode
24984
+ * @memberof google.api.PythonSettings
24985
+ * @static
24986
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24987
+ * @param {number} [length] Message length if known beforehand
24988
+ * @returns {google.api.PythonSettings} PythonSettings
24989
+ * @throws {Error} If the payload is not a reader or valid buffer
24990
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24991
+ */
24992
+ PythonSettings.decode = function decode(reader, length) {
24993
+ if (!(reader instanceof $Reader))
24994
+ reader = $Reader.create(reader);
24995
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
24996
+ while (reader.pos < end) {
24997
+ var tag = reader.uint32();
24998
+ switch (tag >>> 3) {
24999
+ case 1: {
25000
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
25001
+ break;
25002
+ }
25003
+ default:
25004
+ reader.skipType(tag & 7);
25005
+ break;
25006
+ }
25007
+ }
25008
+ return message;
25009
+ };
25010
+
25011
+ /**
25012
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
25013
+ * @function decodeDelimited
25014
+ * @memberof google.api.PythonSettings
25015
+ * @static
25016
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25017
+ * @returns {google.api.PythonSettings} PythonSettings
25018
+ * @throws {Error} If the payload is not a reader or valid buffer
25019
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25020
+ */
25021
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
25022
+ if (!(reader instanceof $Reader))
25023
+ reader = new $Reader(reader);
25024
+ return this.decode(reader, reader.uint32());
25025
+ };
25026
+
25027
+ /**
25028
+ * Verifies a PythonSettings message.
25029
+ * @function verify
25030
+ * @memberof google.api.PythonSettings
25031
+ * @static
25032
+ * @param {Object.<string,*>} message Plain object to verify
25033
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25034
+ */
25035
+ PythonSettings.verify = function verify(message) {
25036
+ if (typeof message !== "object" || message === null)
25037
+ return "object expected";
25038
+ if (message.common != null && message.hasOwnProperty("common")) {
25039
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
25040
+ if (error)
25041
+ return "common." + error;
25042
+ }
25043
+ return null;
25044
+ };
25045
+
25046
+ /**
25047
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
25048
+ * @function fromObject
25049
+ * @memberof google.api.PythonSettings
25050
+ * @static
25051
+ * @param {Object.<string,*>} object Plain object
25052
+ * @returns {google.api.PythonSettings} PythonSettings
25053
+ */
25054
+ PythonSettings.fromObject = function fromObject(object) {
25055
+ if (object instanceof $root.google.api.PythonSettings)
25056
+ return object;
25057
+ var message = new $root.google.api.PythonSettings();
25058
+ if (object.common != null) {
25059
+ if (typeof object.common !== "object")
25060
+ throw TypeError(".google.api.PythonSettings.common: object expected");
25061
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
25062
+ }
25063
+ return message;
25064
+ };
25065
+
25066
+ /**
25067
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
25068
+ * @function toObject
25069
+ * @memberof google.api.PythonSettings
25070
+ * @static
25071
+ * @param {google.api.PythonSettings} message PythonSettings
25072
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25073
+ * @returns {Object.<string,*>} Plain object
25074
+ */
25075
+ PythonSettings.toObject = function toObject(message, options) {
25076
+ if (!options)
25077
+ options = {};
25078
+ var object = {};
25079
+ if (options.defaults)
25080
+ object.common = null;
25081
+ if (message.common != null && message.hasOwnProperty("common"))
25082
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
25083
+ return object;
25084
+ };
25085
+
25086
+ /**
25087
+ * Converts this PythonSettings to JSON.
25088
+ * @function toJSON
25089
+ * @memberof google.api.PythonSettings
25090
+ * @instance
25091
+ * @returns {Object.<string,*>} JSON object
25092
+ */
25093
+ PythonSettings.prototype.toJSON = function toJSON() {
25094
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25095
+ };
25096
+
25097
+ /**
25098
+ * Gets the default type url for PythonSettings
25099
+ * @function getTypeUrl
25100
+ * @memberof google.api.PythonSettings
25101
+ * @static
25102
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25103
+ * @returns {string} The default type url
25104
+ */
25105
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25106
+ if (typeUrlPrefix === undefined) {
25107
+ typeUrlPrefix = "type.googleapis.com";
25108
+ }
25109
+ return typeUrlPrefix + "/google.api.PythonSettings";
25110
+ };
25111
+
25112
+ return PythonSettings;
25113
+ })();
25114
+
25115
+ api.NodeSettings = (function() {
25116
+
25117
+ /**
25118
+ * Properties of a NodeSettings.
25119
+ * @memberof google.api
25120
+ * @interface INodeSettings
25121
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
25122
+ */
25123
+
25124
+ /**
25125
+ * Constructs a new NodeSettings.
25126
+ * @memberof google.api
25127
+ * @classdesc Represents a NodeSettings.
25128
+ * @implements INodeSettings
25129
+ * @constructor
25130
+ * @param {google.api.INodeSettings=} [properties] Properties to set
25131
+ */
25132
+ function NodeSettings(properties) {
25133
+ if (properties)
25134
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25135
+ if (properties[keys[i]] != null)
25136
+ this[keys[i]] = properties[keys[i]];
25137
+ }
25138
+
25139
+ /**
25140
+ * NodeSettings common.
25141
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
25142
+ * @memberof google.api.NodeSettings
25143
+ * @instance
25144
+ */
25145
+ NodeSettings.prototype.common = null;
25146
+
25147
+ /**
25148
+ * Creates a new NodeSettings instance using the specified properties.
25149
+ * @function create
25150
+ * @memberof google.api.NodeSettings
25151
+ * @static
25152
+ * @param {google.api.INodeSettings=} [properties] Properties to set
25153
+ * @returns {google.api.NodeSettings} NodeSettings instance
25154
+ */
25155
+ NodeSettings.create = function create(properties) {
25156
+ return new NodeSettings(properties);
25157
+ };
25158
+
25159
+ /**
25160
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
25161
+ * @function encode
25162
+ * @memberof google.api.NodeSettings
25163
+ * @static
25164
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
25165
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25166
+ * @returns {$protobuf.Writer} Writer
25167
+ */
25168
+ NodeSettings.encode = function encode(message, writer) {
25169
+ if (!writer)
25170
+ writer = $Writer.create();
25171
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
25172
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
25173
+ return writer;
25174
+ };
25175
+
25176
+ /**
25177
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
25178
+ * @function encodeDelimited
25179
+ * @memberof google.api.NodeSettings
25180
+ * @static
25181
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
25182
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25183
+ * @returns {$protobuf.Writer} Writer
25184
+ */
25185
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
25186
+ return this.encode(message, writer).ldelim();
25187
+ };
25188
+
25189
+ /**
25190
+ * Decodes a NodeSettings message from the specified reader or buffer.
25191
+ * @function decode
25192
+ * @memberof google.api.NodeSettings
25193
+ * @static
25194
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25195
+ * @param {number} [length] Message length if known beforehand
25196
+ * @returns {google.api.NodeSettings} NodeSettings
25197
+ * @throws {Error} If the payload is not a reader or valid buffer
25198
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25199
+ */
25200
+ NodeSettings.decode = function decode(reader, length) {
25201
+ if (!(reader instanceof $Reader))
25202
+ reader = $Reader.create(reader);
25203
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
25204
+ while (reader.pos < end) {
25205
+ var tag = reader.uint32();
25206
+ switch (tag >>> 3) {
25207
+ case 1: {
25208
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
25209
+ break;
25210
+ }
25211
+ default:
25212
+ reader.skipType(tag & 7);
25213
+ break;
25214
+ }
25215
+ }
25216
+ return message;
25217
+ };
25218
+
25219
+ /**
25220
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
25221
+ * @function decodeDelimited
25222
+ * @memberof google.api.NodeSettings
25223
+ * @static
25224
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25225
+ * @returns {google.api.NodeSettings} NodeSettings
25226
+ * @throws {Error} If the payload is not a reader or valid buffer
25227
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25228
+ */
25229
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
25230
+ if (!(reader instanceof $Reader))
25231
+ reader = new $Reader(reader);
25232
+ return this.decode(reader, reader.uint32());
25233
+ };
25234
+
25235
+ /**
25236
+ * Verifies a NodeSettings message.
25237
+ * @function verify
25238
+ * @memberof google.api.NodeSettings
25239
+ * @static
25240
+ * @param {Object.<string,*>} message Plain object to verify
25241
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25242
+ */
25243
+ NodeSettings.verify = function verify(message) {
25244
+ if (typeof message !== "object" || message === null)
25245
+ return "object expected";
25246
+ if (message.common != null && message.hasOwnProperty("common")) {
25247
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
25248
+ if (error)
25249
+ return "common." + error;
25250
+ }
25251
+ return null;
25252
+ };
25253
+
25254
+ /**
25255
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
25256
+ * @function fromObject
25257
+ * @memberof google.api.NodeSettings
25258
+ * @static
25259
+ * @param {Object.<string,*>} object Plain object
25260
+ * @returns {google.api.NodeSettings} NodeSettings
25261
+ */
25262
+ NodeSettings.fromObject = function fromObject(object) {
25263
+ if (object instanceof $root.google.api.NodeSettings)
25264
+ return object;
25265
+ var message = new $root.google.api.NodeSettings();
25266
+ if (object.common != null) {
25267
+ if (typeof object.common !== "object")
25268
+ throw TypeError(".google.api.NodeSettings.common: object expected");
25269
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
25270
+ }
25271
+ return message;
25272
+ };
25273
+
25274
+ /**
25275
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
25276
+ * @function toObject
25277
+ * @memberof google.api.NodeSettings
25278
+ * @static
25279
+ * @param {google.api.NodeSettings} message NodeSettings
25280
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25281
+ * @returns {Object.<string,*>} Plain object
25282
+ */
25283
+ NodeSettings.toObject = function toObject(message, options) {
25284
+ if (!options)
25285
+ options = {};
25286
+ var object = {};
25287
+ if (options.defaults)
25288
+ object.common = null;
25289
+ if (message.common != null && message.hasOwnProperty("common"))
25290
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
25291
+ return object;
25292
+ };
25293
+
25294
+ /**
25295
+ * Converts this NodeSettings to JSON.
25296
+ * @function toJSON
25297
+ * @memberof google.api.NodeSettings
25298
+ * @instance
25299
+ * @returns {Object.<string,*>} JSON object
25300
+ */
25301
+ NodeSettings.prototype.toJSON = function toJSON() {
25302
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25303
+ };
25304
+
25305
+ /**
25306
+ * Gets the default type url for NodeSettings
25307
+ * @function getTypeUrl
25308
+ * @memberof google.api.NodeSettings
25309
+ * @static
25310
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25311
+ * @returns {string} The default type url
25312
+ */
25313
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25314
+ if (typeUrlPrefix === undefined) {
25315
+ typeUrlPrefix = "type.googleapis.com";
25316
+ }
25317
+ return typeUrlPrefix + "/google.api.NodeSettings";
25318
+ };
25319
+
25320
+ return NodeSettings;
25321
+ })();
25322
+
25323
+ api.DotnetSettings = (function() {
25324
+
25325
+ /**
25326
+ * Properties of a DotnetSettings.
25327
+ * @memberof google.api
25328
+ * @interface IDotnetSettings
25329
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
25330
+ */
25331
+
25332
+ /**
25333
+ * Constructs a new DotnetSettings.
25334
+ * @memberof google.api
25335
+ * @classdesc Represents a DotnetSettings.
25336
+ * @implements IDotnetSettings
25337
+ * @constructor
25338
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
25339
+ */
25340
+ function DotnetSettings(properties) {
25341
+ if (properties)
25342
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25343
+ if (properties[keys[i]] != null)
25344
+ this[keys[i]] = properties[keys[i]];
25345
+ }
25346
+
25347
+ /**
25348
+ * DotnetSettings common.
25349
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
25350
+ * @memberof google.api.DotnetSettings
25351
+ * @instance
25352
+ */
25353
+ DotnetSettings.prototype.common = null;
25354
+
25355
+ /**
25356
+ * Creates a new DotnetSettings instance using the specified properties.
25357
+ * @function create
25358
+ * @memberof google.api.DotnetSettings
25359
+ * @static
25360
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
25361
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
25362
+ */
25363
+ DotnetSettings.create = function create(properties) {
25364
+ return new DotnetSettings(properties);
25365
+ };
25366
+
25367
+ /**
25368
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
25369
+ * @function encode
25370
+ * @memberof google.api.DotnetSettings
25371
+ * @static
25372
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
25373
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25374
+ * @returns {$protobuf.Writer} Writer
25375
+ */
25376
+ DotnetSettings.encode = function encode(message, writer) {
25377
+ if (!writer)
25378
+ writer = $Writer.create();
25379
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
25380
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
25381
+ return writer;
25382
+ };
25383
+
25384
+ /**
25385
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
25386
+ * @function encodeDelimited
25387
+ * @memberof google.api.DotnetSettings
25388
+ * @static
25389
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
25390
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25391
+ * @returns {$protobuf.Writer} Writer
25392
+ */
25393
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
25394
+ return this.encode(message, writer).ldelim();
25395
+ };
25396
+
25397
+ /**
25398
+ * Decodes a DotnetSettings message from the specified reader or buffer.
25399
+ * @function decode
25400
+ * @memberof google.api.DotnetSettings
25401
+ * @static
25402
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25403
+ * @param {number} [length] Message length if known beforehand
25404
+ * @returns {google.api.DotnetSettings} DotnetSettings
25405
+ * @throws {Error} If the payload is not a reader or valid buffer
25406
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25407
+ */
25408
+ DotnetSettings.decode = function decode(reader, length) {
25409
+ if (!(reader instanceof $Reader))
25410
+ reader = $Reader.create(reader);
25411
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
25412
+ while (reader.pos < end) {
25413
+ var tag = reader.uint32();
25414
+ switch (tag >>> 3) {
25415
+ case 1: {
25416
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
25417
+ break;
25418
+ }
25419
+ default:
25420
+ reader.skipType(tag & 7);
25421
+ break;
25422
+ }
25423
+ }
25424
+ return message;
25425
+ };
25426
+
25427
+ /**
25428
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
25429
+ * @function decodeDelimited
25430
+ * @memberof google.api.DotnetSettings
25431
+ * @static
25432
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25433
+ * @returns {google.api.DotnetSettings} DotnetSettings
25434
+ * @throws {Error} If the payload is not a reader or valid buffer
25435
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25436
+ */
25437
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
25438
+ if (!(reader instanceof $Reader))
25439
+ reader = new $Reader(reader);
25440
+ return this.decode(reader, reader.uint32());
25441
+ };
25442
+
25443
+ /**
25444
+ * Verifies a DotnetSettings message.
25445
+ * @function verify
25446
+ * @memberof google.api.DotnetSettings
25447
+ * @static
25448
+ * @param {Object.<string,*>} message Plain object to verify
25449
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25450
+ */
25451
+ DotnetSettings.verify = function verify(message) {
25452
+ if (typeof message !== "object" || message === null)
25453
+ return "object expected";
25454
+ if (message.common != null && message.hasOwnProperty("common")) {
25455
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
25456
+ if (error)
25457
+ return "common." + error;
25458
+ }
25459
+ return null;
25460
+ };
25461
+
25462
+ /**
25463
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
25464
+ * @function fromObject
25465
+ * @memberof google.api.DotnetSettings
25466
+ * @static
25467
+ * @param {Object.<string,*>} object Plain object
25468
+ * @returns {google.api.DotnetSettings} DotnetSettings
25469
+ */
25470
+ DotnetSettings.fromObject = function fromObject(object) {
25471
+ if (object instanceof $root.google.api.DotnetSettings)
25472
+ return object;
25473
+ var message = new $root.google.api.DotnetSettings();
25474
+ if (object.common != null) {
25475
+ if (typeof object.common !== "object")
25476
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
25477
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
25478
+ }
25479
+ return message;
25480
+ };
25481
+
25482
+ /**
25483
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
25484
+ * @function toObject
25485
+ * @memberof google.api.DotnetSettings
25486
+ * @static
25487
+ * @param {google.api.DotnetSettings} message DotnetSettings
25488
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25489
+ * @returns {Object.<string,*>} Plain object
25490
+ */
25491
+ DotnetSettings.toObject = function toObject(message, options) {
25492
+ if (!options)
25493
+ options = {};
25494
+ var object = {};
25495
+ if (options.defaults)
25496
+ object.common = null;
25497
+ if (message.common != null && message.hasOwnProperty("common"))
25498
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
25499
+ return object;
25500
+ };
25501
+
25502
+ /**
25503
+ * Converts this DotnetSettings to JSON.
25504
+ * @function toJSON
25505
+ * @memberof google.api.DotnetSettings
25506
+ * @instance
25507
+ * @returns {Object.<string,*>} JSON object
25508
+ */
25509
+ DotnetSettings.prototype.toJSON = function toJSON() {
25510
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25511
+ };
25512
+
25513
+ /**
25514
+ * Gets the default type url for DotnetSettings
25515
+ * @function getTypeUrl
25516
+ * @memberof google.api.DotnetSettings
25517
+ * @static
25518
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25519
+ * @returns {string} The default type url
25520
+ */
25521
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25522
+ if (typeUrlPrefix === undefined) {
25523
+ typeUrlPrefix = "type.googleapis.com";
25524
+ }
25525
+ return typeUrlPrefix + "/google.api.DotnetSettings";
25526
+ };
25527
+
25528
+ return DotnetSettings;
25529
+ })();
25530
+
25531
+ api.RubySettings = (function() {
25532
+
25533
+ /**
25534
+ * Properties of a RubySettings.
25535
+ * @memberof google.api
25536
+ * @interface IRubySettings
25537
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
25538
+ */
25539
+
25540
+ /**
25541
+ * Constructs a new RubySettings.
25542
+ * @memberof google.api
25543
+ * @classdesc Represents a RubySettings.
25544
+ * @implements IRubySettings
25545
+ * @constructor
25546
+ * @param {google.api.IRubySettings=} [properties] Properties to set
25547
+ */
25548
+ function RubySettings(properties) {
25549
+ if (properties)
25550
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25551
+ if (properties[keys[i]] != null)
25552
+ this[keys[i]] = properties[keys[i]];
25553
+ }
25554
+
25555
+ /**
25556
+ * RubySettings common.
25557
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
25558
+ * @memberof google.api.RubySettings
25559
+ * @instance
25560
+ */
25561
+ RubySettings.prototype.common = null;
25562
+
25563
+ /**
25564
+ * Creates a new RubySettings instance using the specified properties.
25565
+ * @function create
25566
+ * @memberof google.api.RubySettings
25567
+ * @static
25568
+ * @param {google.api.IRubySettings=} [properties] Properties to set
25569
+ * @returns {google.api.RubySettings} RubySettings instance
25570
+ */
25571
+ RubySettings.create = function create(properties) {
25572
+ return new RubySettings(properties);
25573
+ };
25574
+
25575
+ /**
25576
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
25577
+ * @function encode
25578
+ * @memberof google.api.RubySettings
25579
+ * @static
25580
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
25581
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25582
+ * @returns {$protobuf.Writer} Writer
25583
+ */
25584
+ RubySettings.encode = function encode(message, writer) {
25585
+ if (!writer)
25586
+ writer = $Writer.create();
25587
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
25588
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
25589
+ return writer;
25590
+ };
25591
+
25592
+ /**
25593
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
25594
+ * @function encodeDelimited
25595
+ * @memberof google.api.RubySettings
25596
+ * @static
25597
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
25598
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25599
+ * @returns {$protobuf.Writer} Writer
25600
+ */
25601
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
25602
+ return this.encode(message, writer).ldelim();
25603
+ };
25604
+
25605
+ /**
25606
+ * Decodes a RubySettings message from the specified reader or buffer.
25607
+ * @function decode
25608
+ * @memberof google.api.RubySettings
25609
+ * @static
25610
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25611
+ * @param {number} [length] Message length if known beforehand
25612
+ * @returns {google.api.RubySettings} RubySettings
25613
+ * @throws {Error} If the payload is not a reader or valid buffer
25614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25615
+ */
25616
+ RubySettings.decode = function decode(reader, length) {
25617
+ if (!(reader instanceof $Reader))
25618
+ reader = $Reader.create(reader);
25619
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
25620
+ while (reader.pos < end) {
25621
+ var tag = reader.uint32();
25622
+ switch (tag >>> 3) {
25623
+ case 1: {
25624
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
25625
+ break;
25626
+ }
25627
+ default:
25628
+ reader.skipType(tag & 7);
25629
+ break;
25630
+ }
25631
+ }
25632
+ return message;
25633
+ };
25634
+
25635
+ /**
25636
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
25637
+ * @function decodeDelimited
25638
+ * @memberof google.api.RubySettings
25639
+ * @static
25640
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25641
+ * @returns {google.api.RubySettings} RubySettings
25642
+ * @throws {Error} If the payload is not a reader or valid buffer
25643
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25644
+ */
25645
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
25646
+ if (!(reader instanceof $Reader))
25647
+ reader = new $Reader(reader);
25648
+ return this.decode(reader, reader.uint32());
25649
+ };
25650
+
25651
+ /**
25652
+ * Verifies a RubySettings message.
25653
+ * @function verify
25654
+ * @memberof google.api.RubySettings
25655
+ * @static
25656
+ * @param {Object.<string,*>} message Plain object to verify
25657
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25658
+ */
25659
+ RubySettings.verify = function verify(message) {
25660
+ if (typeof message !== "object" || message === null)
25661
+ return "object expected";
25662
+ if (message.common != null && message.hasOwnProperty("common")) {
25663
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
25664
+ if (error)
25665
+ return "common." + error;
25666
+ }
25667
+ return null;
25668
+ };
25669
+
25670
+ /**
25671
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
25672
+ * @function fromObject
25673
+ * @memberof google.api.RubySettings
25674
+ * @static
25675
+ * @param {Object.<string,*>} object Plain object
25676
+ * @returns {google.api.RubySettings} RubySettings
25677
+ */
25678
+ RubySettings.fromObject = function fromObject(object) {
25679
+ if (object instanceof $root.google.api.RubySettings)
25680
+ return object;
25681
+ var message = new $root.google.api.RubySettings();
25682
+ if (object.common != null) {
25683
+ if (typeof object.common !== "object")
25684
+ throw TypeError(".google.api.RubySettings.common: object expected");
25685
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
25686
+ }
25687
+ return message;
25688
+ };
25689
+
25690
+ /**
25691
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
25692
+ * @function toObject
25693
+ * @memberof google.api.RubySettings
25694
+ * @static
25695
+ * @param {google.api.RubySettings} message RubySettings
25696
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25697
+ * @returns {Object.<string,*>} Plain object
25698
+ */
25699
+ RubySettings.toObject = function toObject(message, options) {
25700
+ if (!options)
25701
+ options = {};
25702
+ var object = {};
25703
+ if (options.defaults)
25704
+ object.common = null;
25705
+ if (message.common != null && message.hasOwnProperty("common"))
25706
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
25707
+ return object;
25708
+ };
25709
+
25710
+ /**
25711
+ * Converts this RubySettings to JSON.
25712
+ * @function toJSON
25713
+ * @memberof google.api.RubySettings
25714
+ * @instance
25715
+ * @returns {Object.<string,*>} JSON object
25716
+ */
25717
+ RubySettings.prototype.toJSON = function toJSON() {
25718
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25719
+ };
25720
+
25721
+ /**
25722
+ * Gets the default type url for RubySettings
25723
+ * @function getTypeUrl
25724
+ * @memberof google.api.RubySettings
25725
+ * @static
25726
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25727
+ * @returns {string} The default type url
25728
+ */
25729
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25730
+ if (typeUrlPrefix === undefined) {
25731
+ typeUrlPrefix = "type.googleapis.com";
25732
+ }
25733
+ return typeUrlPrefix + "/google.api.RubySettings";
25734
+ };
25735
+
25736
+ return RubySettings;
25737
+ })();
25738
+
25739
+ api.GoSettings = (function() {
25740
+
25741
+ /**
25742
+ * Properties of a GoSettings.
25743
+ * @memberof google.api
25744
+ * @interface IGoSettings
25745
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
25746
+ */
25747
+
25748
+ /**
25749
+ * Constructs a new GoSettings.
25750
+ * @memberof google.api
25751
+ * @classdesc Represents a GoSettings.
25752
+ * @implements IGoSettings
25753
+ * @constructor
25754
+ * @param {google.api.IGoSettings=} [properties] Properties to set
25755
+ */
25756
+ function GoSettings(properties) {
25757
+ if (properties)
25758
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25759
+ if (properties[keys[i]] != null)
25760
+ this[keys[i]] = properties[keys[i]];
25761
+ }
25762
+
25763
+ /**
25764
+ * GoSettings common.
25765
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
25766
+ * @memberof google.api.GoSettings
25767
+ * @instance
25768
+ */
25769
+ GoSettings.prototype.common = null;
25770
+
25771
+ /**
25772
+ * Creates a new GoSettings instance using the specified properties.
25773
+ * @function create
25774
+ * @memberof google.api.GoSettings
25775
+ * @static
25776
+ * @param {google.api.IGoSettings=} [properties] Properties to set
25777
+ * @returns {google.api.GoSettings} GoSettings instance
25778
+ */
25779
+ GoSettings.create = function create(properties) {
25780
+ return new GoSettings(properties);
25781
+ };
25782
+
25783
+ /**
25784
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
25785
+ * @function encode
25786
+ * @memberof google.api.GoSettings
25787
+ * @static
25788
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
25789
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25790
+ * @returns {$protobuf.Writer} Writer
25791
+ */
25792
+ GoSettings.encode = function encode(message, writer) {
25793
+ if (!writer)
25794
+ writer = $Writer.create();
25795
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
25796
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
25797
+ return writer;
25798
+ };
25799
+
25800
+ /**
25801
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
25802
+ * @function encodeDelimited
25803
+ * @memberof google.api.GoSettings
25804
+ * @static
25805
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
25806
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25807
+ * @returns {$protobuf.Writer} Writer
25808
+ */
25809
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
25810
+ return this.encode(message, writer).ldelim();
25811
+ };
25812
+
25813
+ /**
25814
+ * Decodes a GoSettings message from the specified reader or buffer.
25815
+ * @function decode
25816
+ * @memberof google.api.GoSettings
25817
+ * @static
25818
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25819
+ * @param {number} [length] Message length if known beforehand
25820
+ * @returns {google.api.GoSettings} GoSettings
25821
+ * @throws {Error} If the payload is not a reader or valid buffer
25822
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25823
+ */
25824
+ GoSettings.decode = function decode(reader, length) {
25825
+ if (!(reader instanceof $Reader))
25826
+ reader = $Reader.create(reader);
25827
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
25828
+ while (reader.pos < end) {
25829
+ var tag = reader.uint32();
25830
+ switch (tag >>> 3) {
25831
+ case 1: {
25832
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
25833
+ break;
25834
+ }
25835
+ default:
25836
+ reader.skipType(tag & 7);
25837
+ break;
25838
+ }
25839
+ }
25840
+ return message;
25841
+ };
25842
+
25843
+ /**
25844
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
25845
+ * @function decodeDelimited
25846
+ * @memberof google.api.GoSettings
25847
+ * @static
25848
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25849
+ * @returns {google.api.GoSettings} GoSettings
25850
+ * @throws {Error} If the payload is not a reader or valid buffer
25851
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25852
+ */
25853
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
25854
+ if (!(reader instanceof $Reader))
25855
+ reader = new $Reader(reader);
25856
+ return this.decode(reader, reader.uint32());
25857
+ };
25858
+
25859
+ /**
25860
+ * Verifies a GoSettings message.
25861
+ * @function verify
25862
+ * @memberof google.api.GoSettings
25863
+ * @static
25864
+ * @param {Object.<string,*>} message Plain object to verify
25865
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25866
+ */
25867
+ GoSettings.verify = function verify(message) {
25868
+ if (typeof message !== "object" || message === null)
25869
+ return "object expected";
25870
+ if (message.common != null && message.hasOwnProperty("common")) {
25871
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
25872
+ if (error)
25873
+ return "common." + error;
25874
+ }
25875
+ return null;
25876
+ };
25877
+
25878
+ /**
25879
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
25880
+ * @function fromObject
25881
+ * @memberof google.api.GoSettings
25882
+ * @static
25883
+ * @param {Object.<string,*>} object Plain object
25884
+ * @returns {google.api.GoSettings} GoSettings
25885
+ */
25886
+ GoSettings.fromObject = function fromObject(object) {
25887
+ if (object instanceof $root.google.api.GoSettings)
25888
+ return object;
25889
+ var message = new $root.google.api.GoSettings();
25890
+ if (object.common != null) {
25891
+ if (typeof object.common !== "object")
25892
+ throw TypeError(".google.api.GoSettings.common: object expected");
25893
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
25894
+ }
25895
+ return message;
25896
+ };
25897
+
25898
+ /**
25899
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
25900
+ * @function toObject
25901
+ * @memberof google.api.GoSettings
25902
+ * @static
25903
+ * @param {google.api.GoSettings} message GoSettings
25904
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25905
+ * @returns {Object.<string,*>} Plain object
25906
+ */
25907
+ GoSettings.toObject = function toObject(message, options) {
25908
+ if (!options)
25909
+ options = {};
25910
+ var object = {};
25911
+ if (options.defaults)
25912
+ object.common = null;
25913
+ if (message.common != null && message.hasOwnProperty("common"))
25914
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
25915
+ return object;
25916
+ };
25917
+
25918
+ /**
25919
+ * Converts this GoSettings to JSON.
25920
+ * @function toJSON
25921
+ * @memberof google.api.GoSettings
25922
+ * @instance
25923
+ * @returns {Object.<string,*>} JSON object
25924
+ */
25925
+ GoSettings.prototype.toJSON = function toJSON() {
25926
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25927
+ };
25928
+
25929
+ /**
25930
+ * Gets the default type url for GoSettings
25931
+ * @function getTypeUrl
25932
+ * @memberof google.api.GoSettings
25933
+ * @static
25934
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25935
+ * @returns {string} The default type url
25936
+ */
25937
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25938
+ if (typeUrlPrefix === undefined) {
25939
+ typeUrlPrefix = "type.googleapis.com";
25940
+ }
25941
+ return typeUrlPrefix + "/google.api.GoSettings";
25942
+ };
25943
+
25944
+ return GoSettings;
25945
+ })();
25946
+
25947
+ api.MethodSettings = (function() {
25948
+
25949
+ /**
25950
+ * Properties of a MethodSettings.
25951
+ * @memberof google.api
25952
+ * @interface IMethodSettings
25953
+ * @property {string|null} [selector] MethodSettings selector
25954
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
25955
+ */
25956
+
25957
+ /**
25958
+ * Constructs a new MethodSettings.
25959
+ * @memberof google.api
25960
+ * @classdesc Represents a MethodSettings.
25961
+ * @implements IMethodSettings
25962
+ * @constructor
25963
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
25964
+ */
25965
+ function MethodSettings(properties) {
25966
+ if (properties)
25967
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25968
+ if (properties[keys[i]] != null)
25969
+ this[keys[i]] = properties[keys[i]];
25970
+ }
25971
+
25972
+ /**
25973
+ * MethodSettings selector.
25974
+ * @member {string} selector
25975
+ * @memberof google.api.MethodSettings
25976
+ * @instance
25977
+ */
25978
+ MethodSettings.prototype.selector = "";
25979
+
25980
+ /**
25981
+ * MethodSettings longRunning.
25982
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
25983
+ * @memberof google.api.MethodSettings
25984
+ * @instance
25985
+ */
25986
+ MethodSettings.prototype.longRunning = null;
25987
+
25988
+ /**
25989
+ * Creates a new MethodSettings instance using the specified properties.
25990
+ * @function create
25991
+ * @memberof google.api.MethodSettings
25992
+ * @static
25993
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
25994
+ * @returns {google.api.MethodSettings} MethodSettings instance
25995
+ */
25996
+ MethodSettings.create = function create(properties) {
25997
+ return new MethodSettings(properties);
25998
+ };
25999
+
26000
+ /**
26001
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
26002
+ * @function encode
26003
+ * @memberof google.api.MethodSettings
26004
+ * @static
26005
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
26006
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26007
+ * @returns {$protobuf.Writer} Writer
26008
+ */
26009
+ MethodSettings.encode = function encode(message, writer) {
26010
+ if (!writer)
26011
+ writer = $Writer.create();
26012
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
26013
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
26014
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
26015
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26016
+ return writer;
26017
+ };
26018
+
26019
+ /**
26020
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
26021
+ * @function encodeDelimited
26022
+ * @memberof google.api.MethodSettings
26023
+ * @static
26024
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
26025
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26026
+ * @returns {$protobuf.Writer} Writer
26027
+ */
26028
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
26029
+ return this.encode(message, writer).ldelim();
26030
+ };
26031
+
26032
+ /**
26033
+ * Decodes a MethodSettings message from the specified reader or buffer.
26034
+ * @function decode
26035
+ * @memberof google.api.MethodSettings
26036
+ * @static
26037
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26038
+ * @param {number} [length] Message length if known beforehand
26039
+ * @returns {google.api.MethodSettings} MethodSettings
26040
+ * @throws {Error} If the payload is not a reader or valid buffer
26041
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26042
+ */
26043
+ MethodSettings.decode = function decode(reader, length) {
26044
+ if (!(reader instanceof $Reader))
26045
+ reader = $Reader.create(reader);
26046
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
26047
+ while (reader.pos < end) {
26048
+ var tag = reader.uint32();
26049
+ switch (tag >>> 3) {
26050
+ case 1: {
26051
+ message.selector = reader.string();
26052
+ break;
26053
+ }
26054
+ case 2: {
26055
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
26056
+ break;
26057
+ }
26058
+ default:
26059
+ reader.skipType(tag & 7);
26060
+ break;
26061
+ }
26062
+ }
26063
+ return message;
26064
+ };
26065
+
26066
+ /**
26067
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
26068
+ * @function decodeDelimited
26069
+ * @memberof google.api.MethodSettings
26070
+ * @static
26071
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26072
+ * @returns {google.api.MethodSettings} MethodSettings
26073
+ * @throws {Error} If the payload is not a reader or valid buffer
26074
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26075
+ */
26076
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
26077
+ if (!(reader instanceof $Reader))
26078
+ reader = new $Reader(reader);
26079
+ return this.decode(reader, reader.uint32());
26080
+ };
26081
+
26082
+ /**
26083
+ * Verifies a MethodSettings message.
26084
+ * @function verify
26085
+ * @memberof google.api.MethodSettings
26086
+ * @static
26087
+ * @param {Object.<string,*>} message Plain object to verify
26088
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26089
+ */
26090
+ MethodSettings.verify = function verify(message) {
26091
+ if (typeof message !== "object" || message === null)
26092
+ return "object expected";
26093
+ if (message.selector != null && message.hasOwnProperty("selector"))
26094
+ if (!$util.isString(message.selector))
26095
+ return "selector: string expected";
26096
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
26097
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
26098
+ if (error)
26099
+ return "longRunning." + error;
26100
+ }
26101
+ return null;
26102
+ };
26103
+
26104
+ /**
26105
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
26106
+ * @function fromObject
26107
+ * @memberof google.api.MethodSettings
26108
+ * @static
26109
+ * @param {Object.<string,*>} object Plain object
26110
+ * @returns {google.api.MethodSettings} MethodSettings
26111
+ */
26112
+ MethodSettings.fromObject = function fromObject(object) {
26113
+ if (object instanceof $root.google.api.MethodSettings)
26114
+ return object;
26115
+ var message = new $root.google.api.MethodSettings();
26116
+ if (object.selector != null)
26117
+ message.selector = String(object.selector);
26118
+ if (object.longRunning != null) {
26119
+ if (typeof object.longRunning !== "object")
26120
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
26121
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
26122
+ }
26123
+ return message;
26124
+ };
26125
+
26126
+ /**
26127
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
26128
+ * @function toObject
26129
+ * @memberof google.api.MethodSettings
26130
+ * @static
26131
+ * @param {google.api.MethodSettings} message MethodSettings
26132
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26133
+ * @returns {Object.<string,*>} Plain object
26134
+ */
26135
+ MethodSettings.toObject = function toObject(message, options) {
26136
+ if (!options)
26137
+ options = {};
26138
+ var object = {};
26139
+ if (options.defaults) {
26140
+ object.selector = "";
26141
+ object.longRunning = null;
26142
+ }
26143
+ if (message.selector != null && message.hasOwnProperty("selector"))
26144
+ object.selector = message.selector;
26145
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
26146
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
26147
+ return object;
26148
+ };
26149
+
26150
+ /**
26151
+ * Converts this MethodSettings to JSON.
26152
+ * @function toJSON
26153
+ * @memberof google.api.MethodSettings
26154
+ * @instance
26155
+ * @returns {Object.<string,*>} JSON object
26156
+ */
26157
+ MethodSettings.prototype.toJSON = function toJSON() {
26158
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26159
+ };
26160
+
26161
+ /**
26162
+ * Gets the default type url for MethodSettings
26163
+ * @function getTypeUrl
26164
+ * @memberof google.api.MethodSettings
26165
+ * @static
26166
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26167
+ * @returns {string} The default type url
26168
+ */
26169
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26170
+ if (typeUrlPrefix === undefined) {
26171
+ typeUrlPrefix = "type.googleapis.com";
26172
+ }
26173
+ return typeUrlPrefix + "/google.api.MethodSettings";
26174
+ };
26175
+
26176
+ MethodSettings.LongRunning = (function() {
26177
+
26178
+ /**
26179
+ * Properties of a LongRunning.
26180
+ * @memberof google.api.MethodSettings
26181
+ * @interface ILongRunning
26182
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
26183
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
26184
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
26185
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
26186
+ */
26187
+
26188
+ /**
26189
+ * Constructs a new LongRunning.
26190
+ * @memberof google.api.MethodSettings
26191
+ * @classdesc Represents a LongRunning.
26192
+ * @implements ILongRunning
26193
+ * @constructor
26194
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
26195
+ */
26196
+ function LongRunning(properties) {
26197
+ if (properties)
26198
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26199
+ if (properties[keys[i]] != null)
26200
+ this[keys[i]] = properties[keys[i]];
26201
+ }
26202
+
26203
+ /**
26204
+ * LongRunning initialPollDelay.
26205
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
26206
+ * @memberof google.api.MethodSettings.LongRunning
26207
+ * @instance
26208
+ */
26209
+ LongRunning.prototype.initialPollDelay = null;
26210
+
26211
+ /**
26212
+ * LongRunning pollDelayMultiplier.
26213
+ * @member {number} pollDelayMultiplier
26214
+ * @memberof google.api.MethodSettings.LongRunning
26215
+ * @instance
26216
+ */
26217
+ LongRunning.prototype.pollDelayMultiplier = 0;
26218
+
26219
+ /**
26220
+ * LongRunning maxPollDelay.
26221
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
26222
+ * @memberof google.api.MethodSettings.LongRunning
26223
+ * @instance
26224
+ */
26225
+ LongRunning.prototype.maxPollDelay = null;
26226
+
26227
+ /**
26228
+ * LongRunning totalPollTimeout.
26229
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
26230
+ * @memberof google.api.MethodSettings.LongRunning
26231
+ * @instance
26232
+ */
26233
+ LongRunning.prototype.totalPollTimeout = null;
26234
+
26235
+ /**
26236
+ * Creates a new LongRunning instance using the specified properties.
26237
+ * @function create
26238
+ * @memberof google.api.MethodSettings.LongRunning
26239
+ * @static
26240
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
26241
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
26242
+ */
26243
+ LongRunning.create = function create(properties) {
26244
+ return new LongRunning(properties);
26245
+ };
26246
+
26247
+ /**
26248
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
26249
+ * @function encode
26250
+ * @memberof google.api.MethodSettings.LongRunning
26251
+ * @static
26252
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
26253
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26254
+ * @returns {$protobuf.Writer} Writer
26255
+ */
26256
+ LongRunning.encode = function encode(message, writer) {
26257
+ if (!writer)
26258
+ writer = $Writer.create();
26259
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
26260
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26261
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
26262
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
26263
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
26264
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
26265
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
26266
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26267
+ return writer;
26268
+ };
26269
+
26270
+ /**
26271
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
26272
+ * @function encodeDelimited
26273
+ * @memberof google.api.MethodSettings.LongRunning
26274
+ * @static
26275
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
26276
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26277
+ * @returns {$protobuf.Writer} Writer
26278
+ */
26279
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
26280
+ return this.encode(message, writer).ldelim();
26281
+ };
26282
+
26283
+ /**
26284
+ * Decodes a LongRunning message from the specified reader or buffer.
26285
+ * @function decode
26286
+ * @memberof google.api.MethodSettings.LongRunning
26287
+ * @static
26288
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26289
+ * @param {number} [length] Message length if known beforehand
26290
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
26291
+ * @throws {Error} If the payload is not a reader or valid buffer
26292
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26293
+ */
26294
+ LongRunning.decode = function decode(reader, length) {
26295
+ if (!(reader instanceof $Reader))
26296
+ reader = $Reader.create(reader);
26297
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
26298
+ while (reader.pos < end) {
26299
+ var tag = reader.uint32();
26300
+ switch (tag >>> 3) {
26301
+ case 1: {
26302
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
26303
+ break;
26304
+ }
26305
+ case 2: {
26306
+ message.pollDelayMultiplier = reader.float();
26307
+ break;
26308
+ }
26309
+ case 3: {
26310
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
26311
+ break;
26312
+ }
26313
+ case 4: {
26314
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
26315
+ break;
26316
+ }
26317
+ default:
26318
+ reader.skipType(tag & 7);
26319
+ break;
26320
+ }
26321
+ }
26322
+ return message;
26323
+ };
26324
+
26325
+ /**
26326
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
26327
+ * @function decodeDelimited
26328
+ * @memberof google.api.MethodSettings.LongRunning
26329
+ * @static
26330
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26331
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
26332
+ * @throws {Error} If the payload is not a reader or valid buffer
26333
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26334
+ */
26335
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
26336
+ if (!(reader instanceof $Reader))
26337
+ reader = new $Reader(reader);
26338
+ return this.decode(reader, reader.uint32());
26339
+ };
26340
+
26341
+ /**
26342
+ * Verifies a LongRunning message.
26343
+ * @function verify
26344
+ * @memberof google.api.MethodSettings.LongRunning
26345
+ * @static
26346
+ * @param {Object.<string,*>} message Plain object to verify
26347
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26348
+ */
26349
+ LongRunning.verify = function verify(message) {
26350
+ if (typeof message !== "object" || message === null)
26351
+ return "object expected";
26352
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
26353
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
26354
+ if (error)
26355
+ return "initialPollDelay." + error;
26356
+ }
26357
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
26358
+ if (typeof message.pollDelayMultiplier !== "number")
26359
+ return "pollDelayMultiplier: number expected";
26360
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
26361
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
26362
+ if (error)
26363
+ return "maxPollDelay." + error;
26364
+ }
26365
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
26366
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
26367
+ if (error)
26368
+ return "totalPollTimeout." + error;
26369
+ }
26370
+ return null;
26371
+ };
26372
+
26373
+ /**
26374
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
26375
+ * @function fromObject
26376
+ * @memberof google.api.MethodSettings.LongRunning
26377
+ * @static
26378
+ * @param {Object.<string,*>} object Plain object
26379
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
26380
+ */
26381
+ LongRunning.fromObject = function fromObject(object) {
26382
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
26383
+ return object;
26384
+ var message = new $root.google.api.MethodSettings.LongRunning();
26385
+ if (object.initialPollDelay != null) {
26386
+ if (typeof object.initialPollDelay !== "object")
26387
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
26388
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
26389
+ }
26390
+ if (object.pollDelayMultiplier != null)
26391
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
26392
+ if (object.maxPollDelay != null) {
26393
+ if (typeof object.maxPollDelay !== "object")
26394
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
26395
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
26396
+ }
26397
+ if (object.totalPollTimeout != null) {
26398
+ if (typeof object.totalPollTimeout !== "object")
26399
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
26400
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
26401
+ }
26402
+ return message;
26403
+ };
26404
+
26405
+ /**
26406
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
26407
+ * @function toObject
26408
+ * @memberof google.api.MethodSettings.LongRunning
26409
+ * @static
26410
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
26411
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26412
+ * @returns {Object.<string,*>} Plain object
26413
+ */
26414
+ LongRunning.toObject = function toObject(message, options) {
26415
+ if (!options)
26416
+ options = {};
26417
+ var object = {};
26418
+ if (options.defaults) {
26419
+ object.initialPollDelay = null;
26420
+ object.pollDelayMultiplier = 0;
26421
+ object.maxPollDelay = null;
26422
+ object.totalPollTimeout = null;
26423
+ }
26424
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
26425
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
26426
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
26427
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
26428
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
26429
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
26430
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
26431
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
26432
+ return object;
26433
+ };
26434
+
26435
+ /**
26436
+ * Converts this LongRunning to JSON.
26437
+ * @function toJSON
26438
+ * @memberof google.api.MethodSettings.LongRunning
26439
+ * @instance
26440
+ * @returns {Object.<string,*>} JSON object
26441
+ */
26442
+ LongRunning.prototype.toJSON = function toJSON() {
26443
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26444
+ };
26445
+
26446
+ /**
26447
+ * Gets the default type url for LongRunning
26448
+ * @function getTypeUrl
26449
+ * @memberof google.api.MethodSettings.LongRunning
26450
+ * @static
26451
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26452
+ * @returns {string} The default type url
26453
+ */
26454
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26455
+ if (typeUrlPrefix === undefined) {
26456
+ typeUrlPrefix = "type.googleapis.com";
26457
+ }
26458
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
26459
+ };
26460
+
26461
+ return LongRunning;
26462
+ })();
26463
+
26464
+ return MethodSettings;
26465
+ })();
26466
+
26467
+ /**
26468
+ * ClientLibraryOrganization enum.
26469
+ * @name google.api.ClientLibraryOrganization
26470
+ * @enum {number}
26471
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
26472
+ * @property {number} CLOUD=1 CLOUD value
26473
+ * @property {number} ADS=2 ADS value
26474
+ * @property {number} PHOTOS=3 PHOTOS value
26475
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
26476
+ */
26477
+ api.ClientLibraryOrganization = (function() {
26478
+ var valuesById = {}, values = Object.create(valuesById);
26479
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
26480
+ values[valuesById[1] = "CLOUD"] = 1;
26481
+ values[valuesById[2] = "ADS"] = 2;
26482
+ values[valuesById[3] = "PHOTOS"] = 3;
26483
+ values[valuesById[4] = "STREET_VIEW"] = 4;
26484
+ return values;
26485
+ })();
26486
+
26487
+ /**
26488
+ * ClientLibraryDestination enum.
26489
+ * @name google.api.ClientLibraryDestination
26490
+ * @enum {number}
26491
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
26492
+ * @property {number} GITHUB=10 GITHUB value
26493
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
26494
+ */
26495
+ api.ClientLibraryDestination = (function() {
26496
+ var valuesById = {}, values = Object.create(valuesById);
26497
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
26498
+ values[valuesById[10] = "GITHUB"] = 10;
26499
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
26500
+ return values;
26501
+ })();
26502
+
26503
+ /**
26504
+ * LaunchStage enum.
26505
+ * @name google.api.LaunchStage
26506
+ * @enum {number}
26507
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
26508
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
26509
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
26510
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
26511
+ * @property {number} ALPHA=2 ALPHA value
26512
+ * @property {number} BETA=3 BETA value
26513
+ * @property {number} GA=4 GA value
26514
+ * @property {number} DEPRECATED=5 DEPRECATED value
26515
+ */
26516
+ api.LaunchStage = (function() {
26517
+ var valuesById = {}, values = Object.create(valuesById);
26518
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
26519
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
26520
+ values[valuesById[7] = "PRELAUNCH"] = 7;
26521
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
26522
+ values[valuesById[2] = "ALPHA"] = 2;
26523
+ values[valuesById[3] = "BETA"] = 3;
26524
+ values[valuesById[4] = "GA"] = 4;
26525
+ values[valuesById[5] = "DEPRECATED"] = 5;
26526
+ return values;
26527
+ })();
26528
+
22676
26529
  /**
22677
26530
  * FieldBehavior enum.
22678
26531
  * @name google.api.FieldBehavior