@google-analytics/data 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5515,6 +5515,7 @@
5515
5515
  * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
5516
5516
  * @property {boolean|null} [deprecated] MessageOptions deprecated
5517
5517
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
5518
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
5518
5519
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
5519
5520
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
5520
5521
  */
@@ -5567,6 +5568,14 @@
5567
5568
  */
5568
5569
  MessageOptions.prototype.mapEntry = false;
5569
5570
 
5571
+ /**
5572
+ * MessageOptions deprecatedLegacyJsonFieldConflicts.
5573
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
5574
+ * @memberof google.protobuf.MessageOptions
5575
+ * @instance
5576
+ */
5577
+ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
5578
+
5570
5579
  /**
5571
5580
  * MessageOptions uninterpretedOption.
5572
5581
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -5615,6 +5624,8 @@
5615
5624
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
5616
5625
  if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
5617
5626
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
5627
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
5628
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
5618
5629
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
5619
5630
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
5620
5631
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -5670,6 +5681,10 @@
5670
5681
  message.mapEntry = reader.bool();
5671
5682
  break;
5672
5683
  }
5684
+ case 11: {
5685
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
5686
+ break;
5687
+ }
5673
5688
  case 999: {
5674
5689
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
5675
5690
  message.uninterpretedOption = [];
@@ -5727,6 +5742,9 @@
5727
5742
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
5728
5743
  if (typeof message.mapEntry !== "boolean")
5729
5744
  return "mapEntry: boolean expected";
5745
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
5746
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
5747
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
5730
5748
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
5731
5749
  if (!Array.isArray(message.uninterpretedOption))
5732
5750
  return "uninterpretedOption: array expected";
@@ -5764,6 +5782,8 @@
5764
5782
  message.deprecated = Boolean(object.deprecated);
5765
5783
  if (object.mapEntry != null)
5766
5784
  message.mapEntry = Boolean(object.mapEntry);
5785
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
5786
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
5767
5787
  if (object.uninterpretedOption) {
5768
5788
  if (!Array.isArray(object.uninterpretedOption))
5769
5789
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -5802,6 +5822,7 @@
5802
5822
  object.noStandardDescriptorAccessor = false;
5803
5823
  object.deprecated = false;
5804
5824
  object.mapEntry = false;
5825
+ object.deprecatedLegacyJsonFieldConflicts = false;
5805
5826
  object[".google.api.resource"] = null;
5806
5827
  }
5807
5828
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -5812,6 +5833,8 @@
5812
5833
  object.deprecated = message.deprecated;
5813
5834
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
5814
5835
  object.mapEntry = message.mapEntry;
5836
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
5837
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
5815
5838
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
5816
5839
  object.uninterpretedOption = [];
5817
5840
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -5864,6 +5887,9 @@
5864
5887
  * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
5865
5888
  * @property {boolean|null} [deprecated] FieldOptions deprecated
5866
5889
  * @property {boolean|null} [weak] FieldOptions weak
5890
+ * @property {boolean|null} [debugRedact] FieldOptions debugRedact
5891
+ * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
5892
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
5867
5893
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
5868
5894
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
5869
5895
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -5942,6 +5968,30 @@
5942
5968
  */
5943
5969
  FieldOptions.prototype.weak = false;
5944
5970
 
5971
+ /**
5972
+ * FieldOptions debugRedact.
5973
+ * @member {boolean} debugRedact
5974
+ * @memberof google.protobuf.FieldOptions
5975
+ * @instance
5976
+ */
5977
+ FieldOptions.prototype.debugRedact = false;
5978
+
5979
+ /**
5980
+ * FieldOptions retention.
5981
+ * @member {google.protobuf.FieldOptions.OptionRetention} retention
5982
+ * @memberof google.protobuf.FieldOptions
5983
+ * @instance
5984
+ */
5985
+ FieldOptions.prototype.retention = 0;
5986
+
5987
+ /**
5988
+ * FieldOptions target.
5989
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
5990
+ * @memberof google.protobuf.FieldOptions
5991
+ * @instance
5992
+ */
5993
+ FieldOptions.prototype.target = 0;
5994
+
5945
5995
  /**
5946
5996
  * FieldOptions uninterpretedOption.
5947
5997
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -6004,6 +6054,12 @@
6004
6054
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
6005
6055
  if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
6006
6056
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
6057
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
6058
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
6059
+ if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
6060
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
6061
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
6062
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
6007
6063
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6008
6064
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6009
6065
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -6077,6 +6133,18 @@
6077
6133
  message.weak = reader.bool();
6078
6134
  break;
6079
6135
  }
6136
+ case 16: {
6137
+ message.debugRedact = reader.bool();
6138
+ break;
6139
+ }
6140
+ case 17: {
6141
+ message.retention = reader.int32();
6142
+ break;
6143
+ }
6144
+ case 18: {
6145
+ message.target = reader.int32();
6146
+ break;
6147
+ }
6080
6148
  case 999: {
6081
6149
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
6082
6150
  message.uninterpretedOption = [];
@@ -6166,6 +6234,34 @@
6166
6234
  if (message.weak != null && message.hasOwnProperty("weak"))
6167
6235
  if (typeof message.weak !== "boolean")
6168
6236
  return "weak: boolean expected";
6237
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
6238
+ if (typeof message.debugRedact !== "boolean")
6239
+ return "debugRedact: boolean expected";
6240
+ if (message.retention != null && message.hasOwnProperty("retention"))
6241
+ switch (message.retention) {
6242
+ default:
6243
+ return "retention: enum value expected";
6244
+ case 0:
6245
+ case 1:
6246
+ case 2:
6247
+ break;
6248
+ }
6249
+ if (message.target != null && message.hasOwnProperty("target"))
6250
+ switch (message.target) {
6251
+ default:
6252
+ return "target: enum value expected";
6253
+ case 0:
6254
+ case 1:
6255
+ case 2:
6256
+ case 3:
6257
+ case 4:
6258
+ case 5:
6259
+ case 6:
6260
+ case 7:
6261
+ case 8:
6262
+ case 9:
6263
+ break;
6264
+ }
6169
6265
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
6170
6266
  if (!Array.isArray(message.uninterpretedOption))
6171
6267
  return "uninterpretedOption: array expected";
@@ -6263,6 +6359,76 @@
6263
6359
  message.deprecated = Boolean(object.deprecated);
6264
6360
  if (object.weak != null)
6265
6361
  message.weak = Boolean(object.weak);
6362
+ if (object.debugRedact != null)
6363
+ message.debugRedact = Boolean(object.debugRedact);
6364
+ switch (object.retention) {
6365
+ default:
6366
+ if (typeof object.retention === "number") {
6367
+ message.retention = object.retention;
6368
+ break;
6369
+ }
6370
+ break;
6371
+ case "RETENTION_UNKNOWN":
6372
+ case 0:
6373
+ message.retention = 0;
6374
+ break;
6375
+ case "RETENTION_RUNTIME":
6376
+ case 1:
6377
+ message.retention = 1;
6378
+ break;
6379
+ case "RETENTION_SOURCE":
6380
+ case 2:
6381
+ message.retention = 2;
6382
+ break;
6383
+ }
6384
+ switch (object.target) {
6385
+ default:
6386
+ if (typeof object.target === "number") {
6387
+ message.target = object.target;
6388
+ break;
6389
+ }
6390
+ break;
6391
+ case "TARGET_TYPE_UNKNOWN":
6392
+ case 0:
6393
+ message.target = 0;
6394
+ break;
6395
+ case "TARGET_TYPE_FILE":
6396
+ case 1:
6397
+ message.target = 1;
6398
+ break;
6399
+ case "TARGET_TYPE_EXTENSION_RANGE":
6400
+ case 2:
6401
+ message.target = 2;
6402
+ break;
6403
+ case "TARGET_TYPE_MESSAGE":
6404
+ case 3:
6405
+ message.target = 3;
6406
+ break;
6407
+ case "TARGET_TYPE_FIELD":
6408
+ case 4:
6409
+ message.target = 4;
6410
+ break;
6411
+ case "TARGET_TYPE_ONEOF":
6412
+ case 5:
6413
+ message.target = 5;
6414
+ break;
6415
+ case "TARGET_TYPE_ENUM":
6416
+ case 6:
6417
+ message.target = 6;
6418
+ break;
6419
+ case "TARGET_TYPE_ENUM_ENTRY":
6420
+ case 7:
6421
+ message.target = 7;
6422
+ break;
6423
+ case "TARGET_TYPE_SERVICE":
6424
+ case 8:
6425
+ message.target = 8;
6426
+ break;
6427
+ case "TARGET_TYPE_METHOD":
6428
+ case 9:
6429
+ message.target = 9;
6430
+ break;
6431
+ }
6266
6432
  if (object.uninterpretedOption) {
6267
6433
  if (!Array.isArray(object.uninterpretedOption))
6268
6434
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -6351,6 +6517,9 @@
6351
6517
  object.jstype = options.enums === String ? "JS_NORMAL" : 0;
6352
6518
  object.weak = false;
6353
6519
  object.unverifiedLazy = false;
6520
+ object.debugRedact = false;
6521
+ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
6522
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
6354
6523
  object[".google.api.resourceReference"] = null;
6355
6524
  }
6356
6525
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -6367,6 +6536,12 @@
6367
6536
  object.weak = message.weak;
6368
6537
  if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
6369
6538
  object.unverifiedLazy = message.unverifiedLazy;
6539
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
6540
+ object.debugRedact = message.debugRedact;
6541
+ if (message.retention != null && message.hasOwnProperty("retention"))
6542
+ object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
6543
+ if (message.target != null && message.hasOwnProperty("target"))
6544
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
6370
6545
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
6371
6546
  object.uninterpretedOption = [];
6372
6547
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -6440,6 +6615,52 @@
6440
6615
  return values;
6441
6616
  })();
6442
6617
 
6618
+ /**
6619
+ * OptionRetention enum.
6620
+ * @name google.protobuf.FieldOptions.OptionRetention
6621
+ * @enum {number}
6622
+ * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
6623
+ * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
6624
+ * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
6625
+ */
6626
+ FieldOptions.OptionRetention = (function() {
6627
+ var valuesById = {}, values = Object.create(valuesById);
6628
+ values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
6629
+ values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
6630
+ values[valuesById[2] = "RETENTION_SOURCE"] = 2;
6631
+ return values;
6632
+ })();
6633
+
6634
+ /**
6635
+ * OptionTargetType enum.
6636
+ * @name google.protobuf.FieldOptions.OptionTargetType
6637
+ * @enum {number}
6638
+ * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
6639
+ * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
6640
+ * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
6641
+ * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
6642
+ * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
6643
+ * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
6644
+ * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
6645
+ * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
6646
+ * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
6647
+ * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
6648
+ */
6649
+ FieldOptions.OptionTargetType = (function() {
6650
+ var valuesById = {}, values = Object.create(valuesById);
6651
+ values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
6652
+ values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
6653
+ values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
6654
+ values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
6655
+ values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
6656
+ values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
6657
+ values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
6658
+ values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
6659
+ values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
6660
+ values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
6661
+ return values;
6662
+ })();
6663
+
6443
6664
  return FieldOptions;
6444
6665
  })();
6445
6666
 
@@ -6675,6 +6896,7 @@
6675
6896
  * @interface IEnumOptions
6676
6897
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
6677
6898
  * @property {boolean|null} [deprecated] EnumOptions deprecated
6899
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
6678
6900
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
6679
6901
  */
6680
6902
 
@@ -6710,6 +6932,14 @@
6710
6932
  */
6711
6933
  EnumOptions.prototype.deprecated = false;
6712
6934
 
6935
+ /**
6936
+ * EnumOptions deprecatedLegacyJsonFieldConflicts.
6937
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
6938
+ * @memberof google.protobuf.EnumOptions
6939
+ * @instance
6940
+ */
6941
+ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
6942
+
6713
6943
  /**
6714
6944
  * EnumOptions uninterpretedOption.
6715
6945
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -6746,6 +6976,8 @@
6746
6976
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
6747
6977
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
6748
6978
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
6979
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
6980
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
6749
6981
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6750
6982
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6751
6983
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -6791,6 +7023,10 @@
6791
7023
  message.deprecated = reader.bool();
6792
7024
  break;
6793
7025
  }
7026
+ case 6: {
7027
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
7028
+ break;
7029
+ }
6794
7030
  case 999: {
6795
7031
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
6796
7032
  message.uninterpretedOption = [];
@@ -6838,6 +7074,9 @@
6838
7074
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
6839
7075
  if (typeof message.deprecated !== "boolean")
6840
7076
  return "deprecated: boolean expected";
7077
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
7078
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
7079
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
6841
7080
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
6842
7081
  if (!Array.isArray(message.uninterpretedOption))
6843
7082
  return "uninterpretedOption: array expected";
@@ -6866,6 +7105,8 @@
6866
7105
  message.allowAlias = Boolean(object.allowAlias);
6867
7106
  if (object.deprecated != null)
6868
7107
  message.deprecated = Boolean(object.deprecated);
7108
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
7109
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
6869
7110
  if (object.uninterpretedOption) {
6870
7111
  if (!Array.isArray(object.uninterpretedOption))
6871
7112
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -6897,11 +7138,14 @@
6897
7138
  if (options.defaults) {
6898
7139
  object.allowAlias = false;
6899
7140
  object.deprecated = false;
7141
+ object.deprecatedLegacyJsonFieldConflicts = false;
6900
7142
  }
6901
7143
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
6902
7144
  object.allowAlias = message.allowAlias;
6903
7145
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
6904
7146
  object.deprecated = message.deprecated;
7147
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
7148
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
6905
7149
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
6906
7150
  object.uninterpretedOption = [];
6907
7151
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -44813,6 +45057,3615 @@
44813
45057
  return CustomHttpPattern;
44814
45058
  })();
44815
45059
 
45060
+ api.CommonLanguageSettings = (function() {
45061
+
45062
+ /**
45063
+ * Properties of a CommonLanguageSettings.
45064
+ * @memberof google.api
45065
+ * @interface ICommonLanguageSettings
45066
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
45067
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
45068
+ */
45069
+
45070
+ /**
45071
+ * Constructs a new CommonLanguageSettings.
45072
+ * @memberof google.api
45073
+ * @classdesc Represents a CommonLanguageSettings.
45074
+ * @implements ICommonLanguageSettings
45075
+ * @constructor
45076
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
45077
+ */
45078
+ function CommonLanguageSettings(properties) {
45079
+ this.destinations = [];
45080
+ if (properties)
45081
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
45082
+ if (properties[keys[i]] != null)
45083
+ this[keys[i]] = properties[keys[i]];
45084
+ }
45085
+
45086
+ /**
45087
+ * CommonLanguageSettings referenceDocsUri.
45088
+ * @member {string} referenceDocsUri
45089
+ * @memberof google.api.CommonLanguageSettings
45090
+ * @instance
45091
+ */
45092
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
45093
+
45094
+ /**
45095
+ * CommonLanguageSettings destinations.
45096
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
45097
+ * @memberof google.api.CommonLanguageSettings
45098
+ * @instance
45099
+ */
45100
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
45101
+
45102
+ /**
45103
+ * Creates a new CommonLanguageSettings instance using the specified properties.
45104
+ * @function create
45105
+ * @memberof google.api.CommonLanguageSettings
45106
+ * @static
45107
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
45108
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
45109
+ */
45110
+ CommonLanguageSettings.create = function create(properties) {
45111
+ return new CommonLanguageSettings(properties);
45112
+ };
45113
+
45114
+ /**
45115
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
45116
+ * @function encode
45117
+ * @memberof google.api.CommonLanguageSettings
45118
+ * @static
45119
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
45120
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45121
+ * @returns {$protobuf.Writer} Writer
45122
+ */
45123
+ CommonLanguageSettings.encode = function encode(message, writer) {
45124
+ if (!writer)
45125
+ writer = $Writer.create();
45126
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
45127
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
45128
+ if (message.destinations != null && message.destinations.length) {
45129
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
45130
+ for (var i = 0; i < message.destinations.length; ++i)
45131
+ writer.int32(message.destinations[i]);
45132
+ writer.ldelim();
45133
+ }
45134
+ return writer;
45135
+ };
45136
+
45137
+ /**
45138
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
45139
+ * @function encodeDelimited
45140
+ * @memberof google.api.CommonLanguageSettings
45141
+ * @static
45142
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
45143
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45144
+ * @returns {$protobuf.Writer} Writer
45145
+ */
45146
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
45147
+ return this.encode(message, writer).ldelim();
45148
+ };
45149
+
45150
+ /**
45151
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
45152
+ * @function decode
45153
+ * @memberof google.api.CommonLanguageSettings
45154
+ * @static
45155
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45156
+ * @param {number} [length] Message length if known beforehand
45157
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
45158
+ * @throws {Error} If the payload is not a reader or valid buffer
45159
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45160
+ */
45161
+ CommonLanguageSettings.decode = function decode(reader, length) {
45162
+ if (!(reader instanceof $Reader))
45163
+ reader = $Reader.create(reader);
45164
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
45165
+ while (reader.pos < end) {
45166
+ var tag = reader.uint32();
45167
+ switch (tag >>> 3) {
45168
+ case 1: {
45169
+ message.referenceDocsUri = reader.string();
45170
+ break;
45171
+ }
45172
+ case 2: {
45173
+ if (!(message.destinations && message.destinations.length))
45174
+ message.destinations = [];
45175
+ if ((tag & 7) === 2) {
45176
+ var end2 = reader.uint32() + reader.pos;
45177
+ while (reader.pos < end2)
45178
+ message.destinations.push(reader.int32());
45179
+ } else
45180
+ message.destinations.push(reader.int32());
45181
+ break;
45182
+ }
45183
+ default:
45184
+ reader.skipType(tag & 7);
45185
+ break;
45186
+ }
45187
+ }
45188
+ return message;
45189
+ };
45190
+
45191
+ /**
45192
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
45193
+ * @function decodeDelimited
45194
+ * @memberof google.api.CommonLanguageSettings
45195
+ * @static
45196
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45197
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
45198
+ * @throws {Error} If the payload is not a reader or valid buffer
45199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45200
+ */
45201
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
45202
+ if (!(reader instanceof $Reader))
45203
+ reader = new $Reader(reader);
45204
+ return this.decode(reader, reader.uint32());
45205
+ };
45206
+
45207
+ /**
45208
+ * Verifies a CommonLanguageSettings message.
45209
+ * @function verify
45210
+ * @memberof google.api.CommonLanguageSettings
45211
+ * @static
45212
+ * @param {Object.<string,*>} message Plain object to verify
45213
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
45214
+ */
45215
+ CommonLanguageSettings.verify = function verify(message) {
45216
+ if (typeof message !== "object" || message === null)
45217
+ return "object expected";
45218
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
45219
+ if (!$util.isString(message.referenceDocsUri))
45220
+ return "referenceDocsUri: string expected";
45221
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
45222
+ if (!Array.isArray(message.destinations))
45223
+ return "destinations: array expected";
45224
+ for (var i = 0; i < message.destinations.length; ++i)
45225
+ switch (message.destinations[i]) {
45226
+ default:
45227
+ return "destinations: enum value[] expected";
45228
+ case 0:
45229
+ case 10:
45230
+ case 20:
45231
+ break;
45232
+ }
45233
+ }
45234
+ return null;
45235
+ };
45236
+
45237
+ /**
45238
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
45239
+ * @function fromObject
45240
+ * @memberof google.api.CommonLanguageSettings
45241
+ * @static
45242
+ * @param {Object.<string,*>} object Plain object
45243
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
45244
+ */
45245
+ CommonLanguageSettings.fromObject = function fromObject(object) {
45246
+ if (object instanceof $root.google.api.CommonLanguageSettings)
45247
+ return object;
45248
+ var message = new $root.google.api.CommonLanguageSettings();
45249
+ if (object.referenceDocsUri != null)
45250
+ message.referenceDocsUri = String(object.referenceDocsUri);
45251
+ if (object.destinations) {
45252
+ if (!Array.isArray(object.destinations))
45253
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
45254
+ message.destinations = [];
45255
+ for (var i = 0; i < object.destinations.length; ++i)
45256
+ switch (object.destinations[i]) {
45257
+ default:
45258
+ if (typeof object.destinations[i] === "number") {
45259
+ message.destinations[i] = object.destinations[i];
45260
+ break;
45261
+ }
45262
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
45263
+ case 0:
45264
+ message.destinations[i] = 0;
45265
+ break;
45266
+ case "GITHUB":
45267
+ case 10:
45268
+ message.destinations[i] = 10;
45269
+ break;
45270
+ case "PACKAGE_MANAGER":
45271
+ case 20:
45272
+ message.destinations[i] = 20;
45273
+ break;
45274
+ }
45275
+ }
45276
+ return message;
45277
+ };
45278
+
45279
+ /**
45280
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
45281
+ * @function toObject
45282
+ * @memberof google.api.CommonLanguageSettings
45283
+ * @static
45284
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
45285
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
45286
+ * @returns {Object.<string,*>} Plain object
45287
+ */
45288
+ CommonLanguageSettings.toObject = function toObject(message, options) {
45289
+ if (!options)
45290
+ options = {};
45291
+ var object = {};
45292
+ if (options.arrays || options.defaults)
45293
+ object.destinations = [];
45294
+ if (options.defaults)
45295
+ object.referenceDocsUri = "";
45296
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
45297
+ object.referenceDocsUri = message.referenceDocsUri;
45298
+ if (message.destinations && message.destinations.length) {
45299
+ object.destinations = [];
45300
+ for (var j = 0; j < message.destinations.length; ++j)
45301
+ 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];
45302
+ }
45303
+ return object;
45304
+ };
45305
+
45306
+ /**
45307
+ * Converts this CommonLanguageSettings to JSON.
45308
+ * @function toJSON
45309
+ * @memberof google.api.CommonLanguageSettings
45310
+ * @instance
45311
+ * @returns {Object.<string,*>} JSON object
45312
+ */
45313
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
45314
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
45315
+ };
45316
+
45317
+ /**
45318
+ * Gets the default type url for CommonLanguageSettings
45319
+ * @function getTypeUrl
45320
+ * @memberof google.api.CommonLanguageSettings
45321
+ * @static
45322
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
45323
+ * @returns {string} The default type url
45324
+ */
45325
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
45326
+ if (typeUrlPrefix === undefined) {
45327
+ typeUrlPrefix = "type.googleapis.com";
45328
+ }
45329
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
45330
+ };
45331
+
45332
+ return CommonLanguageSettings;
45333
+ })();
45334
+
45335
+ api.ClientLibrarySettings = (function() {
45336
+
45337
+ /**
45338
+ * Properties of a ClientLibrarySettings.
45339
+ * @memberof google.api
45340
+ * @interface IClientLibrarySettings
45341
+ * @property {string|null} [version] ClientLibrarySettings version
45342
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
45343
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
45344
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
45345
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
45346
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
45347
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
45348
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
45349
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
45350
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
45351
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
45352
+ */
45353
+
45354
+ /**
45355
+ * Constructs a new ClientLibrarySettings.
45356
+ * @memberof google.api
45357
+ * @classdesc Represents a ClientLibrarySettings.
45358
+ * @implements IClientLibrarySettings
45359
+ * @constructor
45360
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
45361
+ */
45362
+ function ClientLibrarySettings(properties) {
45363
+ if (properties)
45364
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
45365
+ if (properties[keys[i]] != null)
45366
+ this[keys[i]] = properties[keys[i]];
45367
+ }
45368
+
45369
+ /**
45370
+ * ClientLibrarySettings version.
45371
+ * @member {string} version
45372
+ * @memberof google.api.ClientLibrarySettings
45373
+ * @instance
45374
+ */
45375
+ ClientLibrarySettings.prototype.version = "";
45376
+
45377
+ /**
45378
+ * ClientLibrarySettings launchStage.
45379
+ * @member {google.api.LaunchStage} launchStage
45380
+ * @memberof google.api.ClientLibrarySettings
45381
+ * @instance
45382
+ */
45383
+ ClientLibrarySettings.prototype.launchStage = 0;
45384
+
45385
+ /**
45386
+ * ClientLibrarySettings restNumericEnums.
45387
+ * @member {boolean} restNumericEnums
45388
+ * @memberof google.api.ClientLibrarySettings
45389
+ * @instance
45390
+ */
45391
+ ClientLibrarySettings.prototype.restNumericEnums = false;
45392
+
45393
+ /**
45394
+ * ClientLibrarySettings javaSettings.
45395
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
45396
+ * @memberof google.api.ClientLibrarySettings
45397
+ * @instance
45398
+ */
45399
+ ClientLibrarySettings.prototype.javaSettings = null;
45400
+
45401
+ /**
45402
+ * ClientLibrarySettings cppSettings.
45403
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
45404
+ * @memberof google.api.ClientLibrarySettings
45405
+ * @instance
45406
+ */
45407
+ ClientLibrarySettings.prototype.cppSettings = null;
45408
+
45409
+ /**
45410
+ * ClientLibrarySettings phpSettings.
45411
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
45412
+ * @memberof google.api.ClientLibrarySettings
45413
+ * @instance
45414
+ */
45415
+ ClientLibrarySettings.prototype.phpSettings = null;
45416
+
45417
+ /**
45418
+ * ClientLibrarySettings pythonSettings.
45419
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
45420
+ * @memberof google.api.ClientLibrarySettings
45421
+ * @instance
45422
+ */
45423
+ ClientLibrarySettings.prototype.pythonSettings = null;
45424
+
45425
+ /**
45426
+ * ClientLibrarySettings nodeSettings.
45427
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
45428
+ * @memberof google.api.ClientLibrarySettings
45429
+ * @instance
45430
+ */
45431
+ ClientLibrarySettings.prototype.nodeSettings = null;
45432
+
45433
+ /**
45434
+ * ClientLibrarySettings dotnetSettings.
45435
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
45436
+ * @memberof google.api.ClientLibrarySettings
45437
+ * @instance
45438
+ */
45439
+ ClientLibrarySettings.prototype.dotnetSettings = null;
45440
+
45441
+ /**
45442
+ * ClientLibrarySettings rubySettings.
45443
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
45444
+ * @memberof google.api.ClientLibrarySettings
45445
+ * @instance
45446
+ */
45447
+ ClientLibrarySettings.prototype.rubySettings = null;
45448
+
45449
+ /**
45450
+ * ClientLibrarySettings goSettings.
45451
+ * @member {google.api.IGoSettings|null|undefined} goSettings
45452
+ * @memberof google.api.ClientLibrarySettings
45453
+ * @instance
45454
+ */
45455
+ ClientLibrarySettings.prototype.goSettings = null;
45456
+
45457
+ /**
45458
+ * Creates a new ClientLibrarySettings instance using the specified properties.
45459
+ * @function create
45460
+ * @memberof google.api.ClientLibrarySettings
45461
+ * @static
45462
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
45463
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
45464
+ */
45465
+ ClientLibrarySettings.create = function create(properties) {
45466
+ return new ClientLibrarySettings(properties);
45467
+ };
45468
+
45469
+ /**
45470
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
45471
+ * @function encode
45472
+ * @memberof google.api.ClientLibrarySettings
45473
+ * @static
45474
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
45475
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45476
+ * @returns {$protobuf.Writer} Writer
45477
+ */
45478
+ ClientLibrarySettings.encode = function encode(message, writer) {
45479
+ if (!writer)
45480
+ writer = $Writer.create();
45481
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
45482
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
45483
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
45484
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
45485
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
45486
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
45487
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
45488
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
45489
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
45490
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
45491
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
45492
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
45493
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
45494
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
45495
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
45496
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
45497
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
45498
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
45499
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
45500
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
45501
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
45502
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
45503
+ return writer;
45504
+ };
45505
+
45506
+ /**
45507
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
45508
+ * @function encodeDelimited
45509
+ * @memberof google.api.ClientLibrarySettings
45510
+ * @static
45511
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
45512
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45513
+ * @returns {$protobuf.Writer} Writer
45514
+ */
45515
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
45516
+ return this.encode(message, writer).ldelim();
45517
+ };
45518
+
45519
+ /**
45520
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
45521
+ * @function decode
45522
+ * @memberof google.api.ClientLibrarySettings
45523
+ * @static
45524
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45525
+ * @param {number} [length] Message length if known beforehand
45526
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
45527
+ * @throws {Error} If the payload is not a reader or valid buffer
45528
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45529
+ */
45530
+ ClientLibrarySettings.decode = function decode(reader, length) {
45531
+ if (!(reader instanceof $Reader))
45532
+ reader = $Reader.create(reader);
45533
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
45534
+ while (reader.pos < end) {
45535
+ var tag = reader.uint32();
45536
+ switch (tag >>> 3) {
45537
+ case 1: {
45538
+ message.version = reader.string();
45539
+ break;
45540
+ }
45541
+ case 2: {
45542
+ message.launchStage = reader.int32();
45543
+ break;
45544
+ }
45545
+ case 3: {
45546
+ message.restNumericEnums = reader.bool();
45547
+ break;
45548
+ }
45549
+ case 21: {
45550
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
45551
+ break;
45552
+ }
45553
+ case 22: {
45554
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
45555
+ break;
45556
+ }
45557
+ case 23: {
45558
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
45559
+ break;
45560
+ }
45561
+ case 24: {
45562
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
45563
+ break;
45564
+ }
45565
+ case 25: {
45566
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
45567
+ break;
45568
+ }
45569
+ case 26: {
45570
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
45571
+ break;
45572
+ }
45573
+ case 27: {
45574
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
45575
+ break;
45576
+ }
45577
+ case 28: {
45578
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
45579
+ break;
45580
+ }
45581
+ default:
45582
+ reader.skipType(tag & 7);
45583
+ break;
45584
+ }
45585
+ }
45586
+ return message;
45587
+ };
45588
+
45589
+ /**
45590
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
45591
+ * @function decodeDelimited
45592
+ * @memberof google.api.ClientLibrarySettings
45593
+ * @static
45594
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45595
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
45596
+ * @throws {Error} If the payload is not a reader or valid buffer
45597
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45598
+ */
45599
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
45600
+ if (!(reader instanceof $Reader))
45601
+ reader = new $Reader(reader);
45602
+ return this.decode(reader, reader.uint32());
45603
+ };
45604
+
45605
+ /**
45606
+ * Verifies a ClientLibrarySettings message.
45607
+ * @function verify
45608
+ * @memberof google.api.ClientLibrarySettings
45609
+ * @static
45610
+ * @param {Object.<string,*>} message Plain object to verify
45611
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
45612
+ */
45613
+ ClientLibrarySettings.verify = function verify(message) {
45614
+ if (typeof message !== "object" || message === null)
45615
+ return "object expected";
45616
+ if (message.version != null && message.hasOwnProperty("version"))
45617
+ if (!$util.isString(message.version))
45618
+ return "version: string expected";
45619
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
45620
+ switch (message.launchStage) {
45621
+ default:
45622
+ return "launchStage: enum value expected";
45623
+ case 0:
45624
+ case 6:
45625
+ case 7:
45626
+ case 1:
45627
+ case 2:
45628
+ case 3:
45629
+ case 4:
45630
+ case 5:
45631
+ break;
45632
+ }
45633
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
45634
+ if (typeof message.restNumericEnums !== "boolean")
45635
+ return "restNumericEnums: boolean expected";
45636
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
45637
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
45638
+ if (error)
45639
+ return "javaSettings." + error;
45640
+ }
45641
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
45642
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
45643
+ if (error)
45644
+ return "cppSettings." + error;
45645
+ }
45646
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
45647
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
45648
+ if (error)
45649
+ return "phpSettings." + error;
45650
+ }
45651
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
45652
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
45653
+ if (error)
45654
+ return "pythonSettings." + error;
45655
+ }
45656
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
45657
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
45658
+ if (error)
45659
+ return "nodeSettings." + error;
45660
+ }
45661
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
45662
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
45663
+ if (error)
45664
+ return "dotnetSettings." + error;
45665
+ }
45666
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
45667
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
45668
+ if (error)
45669
+ return "rubySettings." + error;
45670
+ }
45671
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
45672
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
45673
+ if (error)
45674
+ return "goSettings." + error;
45675
+ }
45676
+ return null;
45677
+ };
45678
+
45679
+ /**
45680
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
45681
+ * @function fromObject
45682
+ * @memberof google.api.ClientLibrarySettings
45683
+ * @static
45684
+ * @param {Object.<string,*>} object Plain object
45685
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
45686
+ */
45687
+ ClientLibrarySettings.fromObject = function fromObject(object) {
45688
+ if (object instanceof $root.google.api.ClientLibrarySettings)
45689
+ return object;
45690
+ var message = new $root.google.api.ClientLibrarySettings();
45691
+ if (object.version != null)
45692
+ message.version = String(object.version);
45693
+ switch (object.launchStage) {
45694
+ default:
45695
+ if (typeof object.launchStage === "number") {
45696
+ message.launchStage = object.launchStage;
45697
+ break;
45698
+ }
45699
+ break;
45700
+ case "LAUNCH_STAGE_UNSPECIFIED":
45701
+ case 0:
45702
+ message.launchStage = 0;
45703
+ break;
45704
+ case "UNIMPLEMENTED":
45705
+ case 6:
45706
+ message.launchStage = 6;
45707
+ break;
45708
+ case "PRELAUNCH":
45709
+ case 7:
45710
+ message.launchStage = 7;
45711
+ break;
45712
+ case "EARLY_ACCESS":
45713
+ case 1:
45714
+ message.launchStage = 1;
45715
+ break;
45716
+ case "ALPHA":
45717
+ case 2:
45718
+ message.launchStage = 2;
45719
+ break;
45720
+ case "BETA":
45721
+ case 3:
45722
+ message.launchStage = 3;
45723
+ break;
45724
+ case "GA":
45725
+ case 4:
45726
+ message.launchStage = 4;
45727
+ break;
45728
+ case "DEPRECATED":
45729
+ case 5:
45730
+ message.launchStage = 5;
45731
+ break;
45732
+ }
45733
+ if (object.restNumericEnums != null)
45734
+ message.restNumericEnums = Boolean(object.restNumericEnums);
45735
+ if (object.javaSettings != null) {
45736
+ if (typeof object.javaSettings !== "object")
45737
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
45738
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
45739
+ }
45740
+ if (object.cppSettings != null) {
45741
+ if (typeof object.cppSettings !== "object")
45742
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
45743
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
45744
+ }
45745
+ if (object.phpSettings != null) {
45746
+ if (typeof object.phpSettings !== "object")
45747
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
45748
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
45749
+ }
45750
+ if (object.pythonSettings != null) {
45751
+ if (typeof object.pythonSettings !== "object")
45752
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
45753
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
45754
+ }
45755
+ if (object.nodeSettings != null) {
45756
+ if (typeof object.nodeSettings !== "object")
45757
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
45758
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
45759
+ }
45760
+ if (object.dotnetSettings != null) {
45761
+ if (typeof object.dotnetSettings !== "object")
45762
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
45763
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
45764
+ }
45765
+ if (object.rubySettings != null) {
45766
+ if (typeof object.rubySettings !== "object")
45767
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
45768
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
45769
+ }
45770
+ if (object.goSettings != null) {
45771
+ if (typeof object.goSettings !== "object")
45772
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
45773
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
45774
+ }
45775
+ return message;
45776
+ };
45777
+
45778
+ /**
45779
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
45780
+ * @function toObject
45781
+ * @memberof google.api.ClientLibrarySettings
45782
+ * @static
45783
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
45784
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
45785
+ * @returns {Object.<string,*>} Plain object
45786
+ */
45787
+ ClientLibrarySettings.toObject = function toObject(message, options) {
45788
+ if (!options)
45789
+ options = {};
45790
+ var object = {};
45791
+ if (options.defaults) {
45792
+ object.version = "";
45793
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
45794
+ object.restNumericEnums = false;
45795
+ object.javaSettings = null;
45796
+ object.cppSettings = null;
45797
+ object.phpSettings = null;
45798
+ object.pythonSettings = null;
45799
+ object.nodeSettings = null;
45800
+ object.dotnetSettings = null;
45801
+ object.rubySettings = null;
45802
+ object.goSettings = null;
45803
+ }
45804
+ if (message.version != null && message.hasOwnProperty("version"))
45805
+ object.version = message.version;
45806
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
45807
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
45808
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
45809
+ object.restNumericEnums = message.restNumericEnums;
45810
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
45811
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
45812
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
45813
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
45814
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
45815
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
45816
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
45817
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
45818
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
45819
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
45820
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
45821
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
45822
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
45823
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
45824
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
45825
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
45826
+ return object;
45827
+ };
45828
+
45829
+ /**
45830
+ * Converts this ClientLibrarySettings to JSON.
45831
+ * @function toJSON
45832
+ * @memberof google.api.ClientLibrarySettings
45833
+ * @instance
45834
+ * @returns {Object.<string,*>} JSON object
45835
+ */
45836
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
45837
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
45838
+ };
45839
+
45840
+ /**
45841
+ * Gets the default type url for ClientLibrarySettings
45842
+ * @function getTypeUrl
45843
+ * @memberof google.api.ClientLibrarySettings
45844
+ * @static
45845
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
45846
+ * @returns {string} The default type url
45847
+ */
45848
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
45849
+ if (typeUrlPrefix === undefined) {
45850
+ typeUrlPrefix = "type.googleapis.com";
45851
+ }
45852
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
45853
+ };
45854
+
45855
+ return ClientLibrarySettings;
45856
+ })();
45857
+
45858
+ api.Publishing = (function() {
45859
+
45860
+ /**
45861
+ * Properties of a Publishing.
45862
+ * @memberof google.api
45863
+ * @interface IPublishing
45864
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
45865
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
45866
+ * @property {string|null} [documentationUri] Publishing documentationUri
45867
+ * @property {string|null} [apiShortName] Publishing apiShortName
45868
+ * @property {string|null} [githubLabel] Publishing githubLabel
45869
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
45870
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
45871
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
45872
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
45873
+ */
45874
+
45875
+ /**
45876
+ * Constructs a new Publishing.
45877
+ * @memberof google.api
45878
+ * @classdesc Represents a Publishing.
45879
+ * @implements IPublishing
45880
+ * @constructor
45881
+ * @param {google.api.IPublishing=} [properties] Properties to set
45882
+ */
45883
+ function Publishing(properties) {
45884
+ this.methodSettings = [];
45885
+ this.codeownerGithubTeams = [];
45886
+ this.librarySettings = [];
45887
+ if (properties)
45888
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
45889
+ if (properties[keys[i]] != null)
45890
+ this[keys[i]] = properties[keys[i]];
45891
+ }
45892
+
45893
+ /**
45894
+ * Publishing methodSettings.
45895
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
45896
+ * @memberof google.api.Publishing
45897
+ * @instance
45898
+ */
45899
+ Publishing.prototype.methodSettings = $util.emptyArray;
45900
+
45901
+ /**
45902
+ * Publishing newIssueUri.
45903
+ * @member {string} newIssueUri
45904
+ * @memberof google.api.Publishing
45905
+ * @instance
45906
+ */
45907
+ Publishing.prototype.newIssueUri = "";
45908
+
45909
+ /**
45910
+ * Publishing documentationUri.
45911
+ * @member {string} documentationUri
45912
+ * @memberof google.api.Publishing
45913
+ * @instance
45914
+ */
45915
+ Publishing.prototype.documentationUri = "";
45916
+
45917
+ /**
45918
+ * Publishing apiShortName.
45919
+ * @member {string} apiShortName
45920
+ * @memberof google.api.Publishing
45921
+ * @instance
45922
+ */
45923
+ Publishing.prototype.apiShortName = "";
45924
+
45925
+ /**
45926
+ * Publishing githubLabel.
45927
+ * @member {string} githubLabel
45928
+ * @memberof google.api.Publishing
45929
+ * @instance
45930
+ */
45931
+ Publishing.prototype.githubLabel = "";
45932
+
45933
+ /**
45934
+ * Publishing codeownerGithubTeams.
45935
+ * @member {Array.<string>} codeownerGithubTeams
45936
+ * @memberof google.api.Publishing
45937
+ * @instance
45938
+ */
45939
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
45940
+
45941
+ /**
45942
+ * Publishing docTagPrefix.
45943
+ * @member {string} docTagPrefix
45944
+ * @memberof google.api.Publishing
45945
+ * @instance
45946
+ */
45947
+ Publishing.prototype.docTagPrefix = "";
45948
+
45949
+ /**
45950
+ * Publishing organization.
45951
+ * @member {google.api.ClientLibraryOrganization} organization
45952
+ * @memberof google.api.Publishing
45953
+ * @instance
45954
+ */
45955
+ Publishing.prototype.organization = 0;
45956
+
45957
+ /**
45958
+ * Publishing librarySettings.
45959
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
45960
+ * @memberof google.api.Publishing
45961
+ * @instance
45962
+ */
45963
+ Publishing.prototype.librarySettings = $util.emptyArray;
45964
+
45965
+ /**
45966
+ * Creates a new Publishing instance using the specified properties.
45967
+ * @function create
45968
+ * @memberof google.api.Publishing
45969
+ * @static
45970
+ * @param {google.api.IPublishing=} [properties] Properties to set
45971
+ * @returns {google.api.Publishing} Publishing instance
45972
+ */
45973
+ Publishing.create = function create(properties) {
45974
+ return new Publishing(properties);
45975
+ };
45976
+
45977
+ /**
45978
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
45979
+ * @function encode
45980
+ * @memberof google.api.Publishing
45981
+ * @static
45982
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
45983
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45984
+ * @returns {$protobuf.Writer} Writer
45985
+ */
45986
+ Publishing.encode = function encode(message, writer) {
45987
+ if (!writer)
45988
+ writer = $Writer.create();
45989
+ if (message.methodSettings != null && message.methodSettings.length)
45990
+ for (var i = 0; i < message.methodSettings.length; ++i)
45991
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
45992
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
45993
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
45994
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
45995
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
45996
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
45997
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
45998
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
45999
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
46000
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
46001
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
46002
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
46003
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
46004
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
46005
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
46006
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
46007
+ if (message.librarySettings != null && message.librarySettings.length)
46008
+ for (var i = 0; i < message.librarySettings.length; ++i)
46009
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
46010
+ return writer;
46011
+ };
46012
+
46013
+ /**
46014
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
46015
+ * @function encodeDelimited
46016
+ * @memberof google.api.Publishing
46017
+ * @static
46018
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
46019
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46020
+ * @returns {$protobuf.Writer} Writer
46021
+ */
46022
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
46023
+ return this.encode(message, writer).ldelim();
46024
+ };
46025
+
46026
+ /**
46027
+ * Decodes a Publishing message from the specified reader or buffer.
46028
+ * @function decode
46029
+ * @memberof google.api.Publishing
46030
+ * @static
46031
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46032
+ * @param {number} [length] Message length if known beforehand
46033
+ * @returns {google.api.Publishing} Publishing
46034
+ * @throws {Error} If the payload is not a reader or valid buffer
46035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46036
+ */
46037
+ Publishing.decode = function decode(reader, length) {
46038
+ if (!(reader instanceof $Reader))
46039
+ reader = $Reader.create(reader);
46040
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
46041
+ while (reader.pos < end) {
46042
+ var tag = reader.uint32();
46043
+ switch (tag >>> 3) {
46044
+ case 2: {
46045
+ if (!(message.methodSettings && message.methodSettings.length))
46046
+ message.methodSettings = [];
46047
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
46048
+ break;
46049
+ }
46050
+ case 101: {
46051
+ message.newIssueUri = reader.string();
46052
+ break;
46053
+ }
46054
+ case 102: {
46055
+ message.documentationUri = reader.string();
46056
+ break;
46057
+ }
46058
+ case 103: {
46059
+ message.apiShortName = reader.string();
46060
+ break;
46061
+ }
46062
+ case 104: {
46063
+ message.githubLabel = reader.string();
46064
+ break;
46065
+ }
46066
+ case 105: {
46067
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
46068
+ message.codeownerGithubTeams = [];
46069
+ message.codeownerGithubTeams.push(reader.string());
46070
+ break;
46071
+ }
46072
+ case 106: {
46073
+ message.docTagPrefix = reader.string();
46074
+ break;
46075
+ }
46076
+ case 107: {
46077
+ message.organization = reader.int32();
46078
+ break;
46079
+ }
46080
+ case 109: {
46081
+ if (!(message.librarySettings && message.librarySettings.length))
46082
+ message.librarySettings = [];
46083
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
46084
+ break;
46085
+ }
46086
+ default:
46087
+ reader.skipType(tag & 7);
46088
+ break;
46089
+ }
46090
+ }
46091
+ return message;
46092
+ };
46093
+
46094
+ /**
46095
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
46096
+ * @function decodeDelimited
46097
+ * @memberof google.api.Publishing
46098
+ * @static
46099
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46100
+ * @returns {google.api.Publishing} Publishing
46101
+ * @throws {Error} If the payload is not a reader or valid buffer
46102
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46103
+ */
46104
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
46105
+ if (!(reader instanceof $Reader))
46106
+ reader = new $Reader(reader);
46107
+ return this.decode(reader, reader.uint32());
46108
+ };
46109
+
46110
+ /**
46111
+ * Verifies a Publishing message.
46112
+ * @function verify
46113
+ * @memberof google.api.Publishing
46114
+ * @static
46115
+ * @param {Object.<string,*>} message Plain object to verify
46116
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46117
+ */
46118
+ Publishing.verify = function verify(message) {
46119
+ if (typeof message !== "object" || message === null)
46120
+ return "object expected";
46121
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
46122
+ if (!Array.isArray(message.methodSettings))
46123
+ return "methodSettings: array expected";
46124
+ for (var i = 0; i < message.methodSettings.length; ++i) {
46125
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
46126
+ if (error)
46127
+ return "methodSettings." + error;
46128
+ }
46129
+ }
46130
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
46131
+ if (!$util.isString(message.newIssueUri))
46132
+ return "newIssueUri: string expected";
46133
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
46134
+ if (!$util.isString(message.documentationUri))
46135
+ return "documentationUri: string expected";
46136
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
46137
+ if (!$util.isString(message.apiShortName))
46138
+ return "apiShortName: string expected";
46139
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
46140
+ if (!$util.isString(message.githubLabel))
46141
+ return "githubLabel: string expected";
46142
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
46143
+ if (!Array.isArray(message.codeownerGithubTeams))
46144
+ return "codeownerGithubTeams: array expected";
46145
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
46146
+ if (!$util.isString(message.codeownerGithubTeams[i]))
46147
+ return "codeownerGithubTeams: string[] expected";
46148
+ }
46149
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
46150
+ if (!$util.isString(message.docTagPrefix))
46151
+ return "docTagPrefix: string expected";
46152
+ if (message.organization != null && message.hasOwnProperty("organization"))
46153
+ switch (message.organization) {
46154
+ default:
46155
+ return "organization: enum value expected";
46156
+ case 0:
46157
+ case 1:
46158
+ case 2:
46159
+ case 3:
46160
+ case 4:
46161
+ break;
46162
+ }
46163
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
46164
+ if (!Array.isArray(message.librarySettings))
46165
+ return "librarySettings: array expected";
46166
+ for (var i = 0; i < message.librarySettings.length; ++i) {
46167
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
46168
+ if (error)
46169
+ return "librarySettings." + error;
46170
+ }
46171
+ }
46172
+ return null;
46173
+ };
46174
+
46175
+ /**
46176
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
46177
+ * @function fromObject
46178
+ * @memberof google.api.Publishing
46179
+ * @static
46180
+ * @param {Object.<string,*>} object Plain object
46181
+ * @returns {google.api.Publishing} Publishing
46182
+ */
46183
+ Publishing.fromObject = function fromObject(object) {
46184
+ if (object instanceof $root.google.api.Publishing)
46185
+ return object;
46186
+ var message = new $root.google.api.Publishing();
46187
+ if (object.methodSettings) {
46188
+ if (!Array.isArray(object.methodSettings))
46189
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
46190
+ message.methodSettings = [];
46191
+ for (var i = 0; i < object.methodSettings.length; ++i) {
46192
+ if (typeof object.methodSettings[i] !== "object")
46193
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
46194
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
46195
+ }
46196
+ }
46197
+ if (object.newIssueUri != null)
46198
+ message.newIssueUri = String(object.newIssueUri);
46199
+ if (object.documentationUri != null)
46200
+ message.documentationUri = String(object.documentationUri);
46201
+ if (object.apiShortName != null)
46202
+ message.apiShortName = String(object.apiShortName);
46203
+ if (object.githubLabel != null)
46204
+ message.githubLabel = String(object.githubLabel);
46205
+ if (object.codeownerGithubTeams) {
46206
+ if (!Array.isArray(object.codeownerGithubTeams))
46207
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
46208
+ message.codeownerGithubTeams = [];
46209
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
46210
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
46211
+ }
46212
+ if (object.docTagPrefix != null)
46213
+ message.docTagPrefix = String(object.docTagPrefix);
46214
+ switch (object.organization) {
46215
+ default:
46216
+ if (typeof object.organization === "number") {
46217
+ message.organization = object.organization;
46218
+ break;
46219
+ }
46220
+ break;
46221
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
46222
+ case 0:
46223
+ message.organization = 0;
46224
+ break;
46225
+ case "CLOUD":
46226
+ case 1:
46227
+ message.organization = 1;
46228
+ break;
46229
+ case "ADS":
46230
+ case 2:
46231
+ message.organization = 2;
46232
+ break;
46233
+ case "PHOTOS":
46234
+ case 3:
46235
+ message.organization = 3;
46236
+ break;
46237
+ case "STREET_VIEW":
46238
+ case 4:
46239
+ message.organization = 4;
46240
+ break;
46241
+ }
46242
+ if (object.librarySettings) {
46243
+ if (!Array.isArray(object.librarySettings))
46244
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
46245
+ message.librarySettings = [];
46246
+ for (var i = 0; i < object.librarySettings.length; ++i) {
46247
+ if (typeof object.librarySettings[i] !== "object")
46248
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
46249
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
46250
+ }
46251
+ }
46252
+ return message;
46253
+ };
46254
+
46255
+ /**
46256
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
46257
+ * @function toObject
46258
+ * @memberof google.api.Publishing
46259
+ * @static
46260
+ * @param {google.api.Publishing} message Publishing
46261
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46262
+ * @returns {Object.<string,*>} Plain object
46263
+ */
46264
+ Publishing.toObject = function toObject(message, options) {
46265
+ if (!options)
46266
+ options = {};
46267
+ var object = {};
46268
+ if (options.arrays || options.defaults) {
46269
+ object.methodSettings = [];
46270
+ object.codeownerGithubTeams = [];
46271
+ object.librarySettings = [];
46272
+ }
46273
+ if (options.defaults) {
46274
+ object.newIssueUri = "";
46275
+ object.documentationUri = "";
46276
+ object.apiShortName = "";
46277
+ object.githubLabel = "";
46278
+ object.docTagPrefix = "";
46279
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
46280
+ }
46281
+ if (message.methodSettings && message.methodSettings.length) {
46282
+ object.methodSettings = [];
46283
+ for (var j = 0; j < message.methodSettings.length; ++j)
46284
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
46285
+ }
46286
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
46287
+ object.newIssueUri = message.newIssueUri;
46288
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
46289
+ object.documentationUri = message.documentationUri;
46290
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
46291
+ object.apiShortName = message.apiShortName;
46292
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
46293
+ object.githubLabel = message.githubLabel;
46294
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
46295
+ object.codeownerGithubTeams = [];
46296
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
46297
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
46298
+ }
46299
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
46300
+ object.docTagPrefix = message.docTagPrefix;
46301
+ if (message.organization != null && message.hasOwnProperty("organization"))
46302
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
46303
+ if (message.librarySettings && message.librarySettings.length) {
46304
+ object.librarySettings = [];
46305
+ for (var j = 0; j < message.librarySettings.length; ++j)
46306
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
46307
+ }
46308
+ return object;
46309
+ };
46310
+
46311
+ /**
46312
+ * Converts this Publishing to JSON.
46313
+ * @function toJSON
46314
+ * @memberof google.api.Publishing
46315
+ * @instance
46316
+ * @returns {Object.<string,*>} JSON object
46317
+ */
46318
+ Publishing.prototype.toJSON = function toJSON() {
46319
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46320
+ };
46321
+
46322
+ /**
46323
+ * Gets the default type url for Publishing
46324
+ * @function getTypeUrl
46325
+ * @memberof google.api.Publishing
46326
+ * @static
46327
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
46328
+ * @returns {string} The default type url
46329
+ */
46330
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
46331
+ if (typeUrlPrefix === undefined) {
46332
+ typeUrlPrefix = "type.googleapis.com";
46333
+ }
46334
+ return typeUrlPrefix + "/google.api.Publishing";
46335
+ };
46336
+
46337
+ return Publishing;
46338
+ })();
46339
+
46340
+ api.JavaSettings = (function() {
46341
+
46342
+ /**
46343
+ * Properties of a JavaSettings.
46344
+ * @memberof google.api
46345
+ * @interface IJavaSettings
46346
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
46347
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
46348
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
46349
+ */
46350
+
46351
+ /**
46352
+ * Constructs a new JavaSettings.
46353
+ * @memberof google.api
46354
+ * @classdesc Represents a JavaSettings.
46355
+ * @implements IJavaSettings
46356
+ * @constructor
46357
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
46358
+ */
46359
+ function JavaSettings(properties) {
46360
+ this.serviceClassNames = {};
46361
+ if (properties)
46362
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46363
+ if (properties[keys[i]] != null)
46364
+ this[keys[i]] = properties[keys[i]];
46365
+ }
46366
+
46367
+ /**
46368
+ * JavaSettings libraryPackage.
46369
+ * @member {string} libraryPackage
46370
+ * @memberof google.api.JavaSettings
46371
+ * @instance
46372
+ */
46373
+ JavaSettings.prototype.libraryPackage = "";
46374
+
46375
+ /**
46376
+ * JavaSettings serviceClassNames.
46377
+ * @member {Object.<string,string>} serviceClassNames
46378
+ * @memberof google.api.JavaSettings
46379
+ * @instance
46380
+ */
46381
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
46382
+
46383
+ /**
46384
+ * JavaSettings common.
46385
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
46386
+ * @memberof google.api.JavaSettings
46387
+ * @instance
46388
+ */
46389
+ JavaSettings.prototype.common = null;
46390
+
46391
+ /**
46392
+ * Creates a new JavaSettings instance using the specified properties.
46393
+ * @function create
46394
+ * @memberof google.api.JavaSettings
46395
+ * @static
46396
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
46397
+ * @returns {google.api.JavaSettings} JavaSettings instance
46398
+ */
46399
+ JavaSettings.create = function create(properties) {
46400
+ return new JavaSettings(properties);
46401
+ };
46402
+
46403
+ /**
46404
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
46405
+ * @function encode
46406
+ * @memberof google.api.JavaSettings
46407
+ * @static
46408
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
46409
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46410
+ * @returns {$protobuf.Writer} Writer
46411
+ */
46412
+ JavaSettings.encode = function encode(message, writer) {
46413
+ if (!writer)
46414
+ writer = $Writer.create();
46415
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
46416
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
46417
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
46418
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
46419
+ 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();
46420
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
46421
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
46422
+ return writer;
46423
+ };
46424
+
46425
+ /**
46426
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
46427
+ * @function encodeDelimited
46428
+ * @memberof google.api.JavaSettings
46429
+ * @static
46430
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
46431
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46432
+ * @returns {$protobuf.Writer} Writer
46433
+ */
46434
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
46435
+ return this.encode(message, writer).ldelim();
46436
+ };
46437
+
46438
+ /**
46439
+ * Decodes a JavaSettings message from the specified reader or buffer.
46440
+ * @function decode
46441
+ * @memberof google.api.JavaSettings
46442
+ * @static
46443
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46444
+ * @param {number} [length] Message length if known beforehand
46445
+ * @returns {google.api.JavaSettings} JavaSettings
46446
+ * @throws {Error} If the payload is not a reader or valid buffer
46447
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46448
+ */
46449
+ JavaSettings.decode = function decode(reader, length) {
46450
+ if (!(reader instanceof $Reader))
46451
+ reader = $Reader.create(reader);
46452
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
46453
+ while (reader.pos < end) {
46454
+ var tag = reader.uint32();
46455
+ switch (tag >>> 3) {
46456
+ case 1: {
46457
+ message.libraryPackage = reader.string();
46458
+ break;
46459
+ }
46460
+ case 2: {
46461
+ if (message.serviceClassNames === $util.emptyObject)
46462
+ message.serviceClassNames = {};
46463
+ var end2 = reader.uint32() + reader.pos;
46464
+ key = "";
46465
+ value = "";
46466
+ while (reader.pos < end2) {
46467
+ var tag2 = reader.uint32();
46468
+ switch (tag2 >>> 3) {
46469
+ case 1:
46470
+ key = reader.string();
46471
+ break;
46472
+ case 2:
46473
+ value = reader.string();
46474
+ break;
46475
+ default:
46476
+ reader.skipType(tag2 & 7);
46477
+ break;
46478
+ }
46479
+ }
46480
+ message.serviceClassNames[key] = value;
46481
+ break;
46482
+ }
46483
+ case 3: {
46484
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
46485
+ break;
46486
+ }
46487
+ default:
46488
+ reader.skipType(tag & 7);
46489
+ break;
46490
+ }
46491
+ }
46492
+ return message;
46493
+ };
46494
+
46495
+ /**
46496
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
46497
+ * @function decodeDelimited
46498
+ * @memberof google.api.JavaSettings
46499
+ * @static
46500
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46501
+ * @returns {google.api.JavaSettings} JavaSettings
46502
+ * @throws {Error} If the payload is not a reader or valid buffer
46503
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46504
+ */
46505
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
46506
+ if (!(reader instanceof $Reader))
46507
+ reader = new $Reader(reader);
46508
+ return this.decode(reader, reader.uint32());
46509
+ };
46510
+
46511
+ /**
46512
+ * Verifies a JavaSettings message.
46513
+ * @function verify
46514
+ * @memberof google.api.JavaSettings
46515
+ * @static
46516
+ * @param {Object.<string,*>} message Plain object to verify
46517
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46518
+ */
46519
+ JavaSettings.verify = function verify(message) {
46520
+ if (typeof message !== "object" || message === null)
46521
+ return "object expected";
46522
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
46523
+ if (!$util.isString(message.libraryPackage))
46524
+ return "libraryPackage: string expected";
46525
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
46526
+ if (!$util.isObject(message.serviceClassNames))
46527
+ return "serviceClassNames: object expected";
46528
+ var key = Object.keys(message.serviceClassNames);
46529
+ for (var i = 0; i < key.length; ++i)
46530
+ if (!$util.isString(message.serviceClassNames[key[i]]))
46531
+ return "serviceClassNames: string{k:string} expected";
46532
+ }
46533
+ if (message.common != null && message.hasOwnProperty("common")) {
46534
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
46535
+ if (error)
46536
+ return "common." + error;
46537
+ }
46538
+ return null;
46539
+ };
46540
+
46541
+ /**
46542
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
46543
+ * @function fromObject
46544
+ * @memberof google.api.JavaSettings
46545
+ * @static
46546
+ * @param {Object.<string,*>} object Plain object
46547
+ * @returns {google.api.JavaSettings} JavaSettings
46548
+ */
46549
+ JavaSettings.fromObject = function fromObject(object) {
46550
+ if (object instanceof $root.google.api.JavaSettings)
46551
+ return object;
46552
+ var message = new $root.google.api.JavaSettings();
46553
+ if (object.libraryPackage != null)
46554
+ message.libraryPackage = String(object.libraryPackage);
46555
+ if (object.serviceClassNames) {
46556
+ if (typeof object.serviceClassNames !== "object")
46557
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
46558
+ message.serviceClassNames = {};
46559
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
46560
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
46561
+ }
46562
+ if (object.common != null) {
46563
+ if (typeof object.common !== "object")
46564
+ throw TypeError(".google.api.JavaSettings.common: object expected");
46565
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
46566
+ }
46567
+ return message;
46568
+ };
46569
+
46570
+ /**
46571
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
46572
+ * @function toObject
46573
+ * @memberof google.api.JavaSettings
46574
+ * @static
46575
+ * @param {google.api.JavaSettings} message JavaSettings
46576
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46577
+ * @returns {Object.<string,*>} Plain object
46578
+ */
46579
+ JavaSettings.toObject = function toObject(message, options) {
46580
+ if (!options)
46581
+ options = {};
46582
+ var object = {};
46583
+ if (options.objects || options.defaults)
46584
+ object.serviceClassNames = {};
46585
+ if (options.defaults) {
46586
+ object.libraryPackage = "";
46587
+ object.common = null;
46588
+ }
46589
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
46590
+ object.libraryPackage = message.libraryPackage;
46591
+ var keys2;
46592
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
46593
+ object.serviceClassNames = {};
46594
+ for (var j = 0; j < keys2.length; ++j)
46595
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
46596
+ }
46597
+ if (message.common != null && message.hasOwnProperty("common"))
46598
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
46599
+ return object;
46600
+ };
46601
+
46602
+ /**
46603
+ * Converts this JavaSettings to JSON.
46604
+ * @function toJSON
46605
+ * @memberof google.api.JavaSettings
46606
+ * @instance
46607
+ * @returns {Object.<string,*>} JSON object
46608
+ */
46609
+ JavaSettings.prototype.toJSON = function toJSON() {
46610
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46611
+ };
46612
+
46613
+ /**
46614
+ * Gets the default type url for JavaSettings
46615
+ * @function getTypeUrl
46616
+ * @memberof google.api.JavaSettings
46617
+ * @static
46618
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
46619
+ * @returns {string} The default type url
46620
+ */
46621
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
46622
+ if (typeUrlPrefix === undefined) {
46623
+ typeUrlPrefix = "type.googleapis.com";
46624
+ }
46625
+ return typeUrlPrefix + "/google.api.JavaSettings";
46626
+ };
46627
+
46628
+ return JavaSettings;
46629
+ })();
46630
+
46631
+ api.CppSettings = (function() {
46632
+
46633
+ /**
46634
+ * Properties of a CppSettings.
46635
+ * @memberof google.api
46636
+ * @interface ICppSettings
46637
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
46638
+ */
46639
+
46640
+ /**
46641
+ * Constructs a new CppSettings.
46642
+ * @memberof google.api
46643
+ * @classdesc Represents a CppSettings.
46644
+ * @implements ICppSettings
46645
+ * @constructor
46646
+ * @param {google.api.ICppSettings=} [properties] Properties to set
46647
+ */
46648
+ function CppSettings(properties) {
46649
+ if (properties)
46650
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46651
+ if (properties[keys[i]] != null)
46652
+ this[keys[i]] = properties[keys[i]];
46653
+ }
46654
+
46655
+ /**
46656
+ * CppSettings common.
46657
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
46658
+ * @memberof google.api.CppSettings
46659
+ * @instance
46660
+ */
46661
+ CppSettings.prototype.common = null;
46662
+
46663
+ /**
46664
+ * Creates a new CppSettings instance using the specified properties.
46665
+ * @function create
46666
+ * @memberof google.api.CppSettings
46667
+ * @static
46668
+ * @param {google.api.ICppSettings=} [properties] Properties to set
46669
+ * @returns {google.api.CppSettings} CppSettings instance
46670
+ */
46671
+ CppSettings.create = function create(properties) {
46672
+ return new CppSettings(properties);
46673
+ };
46674
+
46675
+ /**
46676
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
46677
+ * @function encode
46678
+ * @memberof google.api.CppSettings
46679
+ * @static
46680
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
46681
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46682
+ * @returns {$protobuf.Writer} Writer
46683
+ */
46684
+ CppSettings.encode = function encode(message, writer) {
46685
+ if (!writer)
46686
+ writer = $Writer.create();
46687
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
46688
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
46689
+ return writer;
46690
+ };
46691
+
46692
+ /**
46693
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
46694
+ * @function encodeDelimited
46695
+ * @memberof google.api.CppSettings
46696
+ * @static
46697
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
46698
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46699
+ * @returns {$protobuf.Writer} Writer
46700
+ */
46701
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
46702
+ return this.encode(message, writer).ldelim();
46703
+ };
46704
+
46705
+ /**
46706
+ * Decodes a CppSettings message from the specified reader or buffer.
46707
+ * @function decode
46708
+ * @memberof google.api.CppSettings
46709
+ * @static
46710
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46711
+ * @param {number} [length] Message length if known beforehand
46712
+ * @returns {google.api.CppSettings} CppSettings
46713
+ * @throws {Error} If the payload is not a reader or valid buffer
46714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46715
+ */
46716
+ CppSettings.decode = function decode(reader, length) {
46717
+ if (!(reader instanceof $Reader))
46718
+ reader = $Reader.create(reader);
46719
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
46720
+ while (reader.pos < end) {
46721
+ var tag = reader.uint32();
46722
+ switch (tag >>> 3) {
46723
+ case 1: {
46724
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
46725
+ break;
46726
+ }
46727
+ default:
46728
+ reader.skipType(tag & 7);
46729
+ break;
46730
+ }
46731
+ }
46732
+ return message;
46733
+ };
46734
+
46735
+ /**
46736
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
46737
+ * @function decodeDelimited
46738
+ * @memberof google.api.CppSettings
46739
+ * @static
46740
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46741
+ * @returns {google.api.CppSettings} CppSettings
46742
+ * @throws {Error} If the payload is not a reader or valid buffer
46743
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46744
+ */
46745
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
46746
+ if (!(reader instanceof $Reader))
46747
+ reader = new $Reader(reader);
46748
+ return this.decode(reader, reader.uint32());
46749
+ };
46750
+
46751
+ /**
46752
+ * Verifies a CppSettings message.
46753
+ * @function verify
46754
+ * @memberof google.api.CppSettings
46755
+ * @static
46756
+ * @param {Object.<string,*>} message Plain object to verify
46757
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46758
+ */
46759
+ CppSettings.verify = function verify(message) {
46760
+ if (typeof message !== "object" || message === null)
46761
+ return "object expected";
46762
+ if (message.common != null && message.hasOwnProperty("common")) {
46763
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
46764
+ if (error)
46765
+ return "common." + error;
46766
+ }
46767
+ return null;
46768
+ };
46769
+
46770
+ /**
46771
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
46772
+ * @function fromObject
46773
+ * @memberof google.api.CppSettings
46774
+ * @static
46775
+ * @param {Object.<string,*>} object Plain object
46776
+ * @returns {google.api.CppSettings} CppSettings
46777
+ */
46778
+ CppSettings.fromObject = function fromObject(object) {
46779
+ if (object instanceof $root.google.api.CppSettings)
46780
+ return object;
46781
+ var message = new $root.google.api.CppSettings();
46782
+ if (object.common != null) {
46783
+ if (typeof object.common !== "object")
46784
+ throw TypeError(".google.api.CppSettings.common: object expected");
46785
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
46786
+ }
46787
+ return message;
46788
+ };
46789
+
46790
+ /**
46791
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
46792
+ * @function toObject
46793
+ * @memberof google.api.CppSettings
46794
+ * @static
46795
+ * @param {google.api.CppSettings} message CppSettings
46796
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46797
+ * @returns {Object.<string,*>} Plain object
46798
+ */
46799
+ CppSettings.toObject = function toObject(message, options) {
46800
+ if (!options)
46801
+ options = {};
46802
+ var object = {};
46803
+ if (options.defaults)
46804
+ object.common = null;
46805
+ if (message.common != null && message.hasOwnProperty("common"))
46806
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
46807
+ return object;
46808
+ };
46809
+
46810
+ /**
46811
+ * Converts this CppSettings to JSON.
46812
+ * @function toJSON
46813
+ * @memberof google.api.CppSettings
46814
+ * @instance
46815
+ * @returns {Object.<string,*>} JSON object
46816
+ */
46817
+ CppSettings.prototype.toJSON = function toJSON() {
46818
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46819
+ };
46820
+
46821
+ /**
46822
+ * Gets the default type url for CppSettings
46823
+ * @function getTypeUrl
46824
+ * @memberof google.api.CppSettings
46825
+ * @static
46826
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
46827
+ * @returns {string} The default type url
46828
+ */
46829
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
46830
+ if (typeUrlPrefix === undefined) {
46831
+ typeUrlPrefix = "type.googleapis.com";
46832
+ }
46833
+ return typeUrlPrefix + "/google.api.CppSettings";
46834
+ };
46835
+
46836
+ return CppSettings;
46837
+ })();
46838
+
46839
+ api.PhpSettings = (function() {
46840
+
46841
+ /**
46842
+ * Properties of a PhpSettings.
46843
+ * @memberof google.api
46844
+ * @interface IPhpSettings
46845
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
46846
+ */
46847
+
46848
+ /**
46849
+ * Constructs a new PhpSettings.
46850
+ * @memberof google.api
46851
+ * @classdesc Represents a PhpSettings.
46852
+ * @implements IPhpSettings
46853
+ * @constructor
46854
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
46855
+ */
46856
+ function PhpSettings(properties) {
46857
+ if (properties)
46858
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46859
+ if (properties[keys[i]] != null)
46860
+ this[keys[i]] = properties[keys[i]];
46861
+ }
46862
+
46863
+ /**
46864
+ * PhpSettings common.
46865
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
46866
+ * @memberof google.api.PhpSettings
46867
+ * @instance
46868
+ */
46869
+ PhpSettings.prototype.common = null;
46870
+
46871
+ /**
46872
+ * Creates a new PhpSettings instance using the specified properties.
46873
+ * @function create
46874
+ * @memberof google.api.PhpSettings
46875
+ * @static
46876
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
46877
+ * @returns {google.api.PhpSettings} PhpSettings instance
46878
+ */
46879
+ PhpSettings.create = function create(properties) {
46880
+ return new PhpSettings(properties);
46881
+ };
46882
+
46883
+ /**
46884
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
46885
+ * @function encode
46886
+ * @memberof google.api.PhpSettings
46887
+ * @static
46888
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
46889
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46890
+ * @returns {$protobuf.Writer} Writer
46891
+ */
46892
+ PhpSettings.encode = function encode(message, writer) {
46893
+ if (!writer)
46894
+ writer = $Writer.create();
46895
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
46896
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
46897
+ return writer;
46898
+ };
46899
+
46900
+ /**
46901
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
46902
+ * @function encodeDelimited
46903
+ * @memberof google.api.PhpSettings
46904
+ * @static
46905
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
46906
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46907
+ * @returns {$protobuf.Writer} Writer
46908
+ */
46909
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
46910
+ return this.encode(message, writer).ldelim();
46911
+ };
46912
+
46913
+ /**
46914
+ * Decodes a PhpSettings message from the specified reader or buffer.
46915
+ * @function decode
46916
+ * @memberof google.api.PhpSettings
46917
+ * @static
46918
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46919
+ * @param {number} [length] Message length if known beforehand
46920
+ * @returns {google.api.PhpSettings} PhpSettings
46921
+ * @throws {Error} If the payload is not a reader or valid buffer
46922
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46923
+ */
46924
+ PhpSettings.decode = function decode(reader, length) {
46925
+ if (!(reader instanceof $Reader))
46926
+ reader = $Reader.create(reader);
46927
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
46928
+ while (reader.pos < end) {
46929
+ var tag = reader.uint32();
46930
+ switch (tag >>> 3) {
46931
+ case 1: {
46932
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
46933
+ break;
46934
+ }
46935
+ default:
46936
+ reader.skipType(tag & 7);
46937
+ break;
46938
+ }
46939
+ }
46940
+ return message;
46941
+ };
46942
+
46943
+ /**
46944
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
46945
+ * @function decodeDelimited
46946
+ * @memberof google.api.PhpSettings
46947
+ * @static
46948
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46949
+ * @returns {google.api.PhpSettings} PhpSettings
46950
+ * @throws {Error} If the payload is not a reader or valid buffer
46951
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46952
+ */
46953
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
46954
+ if (!(reader instanceof $Reader))
46955
+ reader = new $Reader(reader);
46956
+ return this.decode(reader, reader.uint32());
46957
+ };
46958
+
46959
+ /**
46960
+ * Verifies a PhpSettings message.
46961
+ * @function verify
46962
+ * @memberof google.api.PhpSettings
46963
+ * @static
46964
+ * @param {Object.<string,*>} message Plain object to verify
46965
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46966
+ */
46967
+ PhpSettings.verify = function verify(message) {
46968
+ if (typeof message !== "object" || message === null)
46969
+ return "object expected";
46970
+ if (message.common != null && message.hasOwnProperty("common")) {
46971
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
46972
+ if (error)
46973
+ return "common." + error;
46974
+ }
46975
+ return null;
46976
+ };
46977
+
46978
+ /**
46979
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
46980
+ * @function fromObject
46981
+ * @memberof google.api.PhpSettings
46982
+ * @static
46983
+ * @param {Object.<string,*>} object Plain object
46984
+ * @returns {google.api.PhpSettings} PhpSettings
46985
+ */
46986
+ PhpSettings.fromObject = function fromObject(object) {
46987
+ if (object instanceof $root.google.api.PhpSettings)
46988
+ return object;
46989
+ var message = new $root.google.api.PhpSettings();
46990
+ if (object.common != null) {
46991
+ if (typeof object.common !== "object")
46992
+ throw TypeError(".google.api.PhpSettings.common: object expected");
46993
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
46994
+ }
46995
+ return message;
46996
+ };
46997
+
46998
+ /**
46999
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
47000
+ * @function toObject
47001
+ * @memberof google.api.PhpSettings
47002
+ * @static
47003
+ * @param {google.api.PhpSettings} message PhpSettings
47004
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47005
+ * @returns {Object.<string,*>} Plain object
47006
+ */
47007
+ PhpSettings.toObject = function toObject(message, options) {
47008
+ if (!options)
47009
+ options = {};
47010
+ var object = {};
47011
+ if (options.defaults)
47012
+ object.common = null;
47013
+ if (message.common != null && message.hasOwnProperty("common"))
47014
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47015
+ return object;
47016
+ };
47017
+
47018
+ /**
47019
+ * Converts this PhpSettings to JSON.
47020
+ * @function toJSON
47021
+ * @memberof google.api.PhpSettings
47022
+ * @instance
47023
+ * @returns {Object.<string,*>} JSON object
47024
+ */
47025
+ PhpSettings.prototype.toJSON = function toJSON() {
47026
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47027
+ };
47028
+
47029
+ /**
47030
+ * Gets the default type url for PhpSettings
47031
+ * @function getTypeUrl
47032
+ * @memberof google.api.PhpSettings
47033
+ * @static
47034
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47035
+ * @returns {string} The default type url
47036
+ */
47037
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47038
+ if (typeUrlPrefix === undefined) {
47039
+ typeUrlPrefix = "type.googleapis.com";
47040
+ }
47041
+ return typeUrlPrefix + "/google.api.PhpSettings";
47042
+ };
47043
+
47044
+ return PhpSettings;
47045
+ })();
47046
+
47047
+ api.PythonSettings = (function() {
47048
+
47049
+ /**
47050
+ * Properties of a PythonSettings.
47051
+ * @memberof google.api
47052
+ * @interface IPythonSettings
47053
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
47054
+ */
47055
+
47056
+ /**
47057
+ * Constructs a new PythonSettings.
47058
+ * @memberof google.api
47059
+ * @classdesc Represents a PythonSettings.
47060
+ * @implements IPythonSettings
47061
+ * @constructor
47062
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
47063
+ */
47064
+ function PythonSettings(properties) {
47065
+ if (properties)
47066
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47067
+ if (properties[keys[i]] != null)
47068
+ this[keys[i]] = properties[keys[i]];
47069
+ }
47070
+
47071
+ /**
47072
+ * PythonSettings common.
47073
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
47074
+ * @memberof google.api.PythonSettings
47075
+ * @instance
47076
+ */
47077
+ PythonSettings.prototype.common = null;
47078
+
47079
+ /**
47080
+ * Creates a new PythonSettings instance using the specified properties.
47081
+ * @function create
47082
+ * @memberof google.api.PythonSettings
47083
+ * @static
47084
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
47085
+ * @returns {google.api.PythonSettings} PythonSettings instance
47086
+ */
47087
+ PythonSettings.create = function create(properties) {
47088
+ return new PythonSettings(properties);
47089
+ };
47090
+
47091
+ /**
47092
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
47093
+ * @function encode
47094
+ * @memberof google.api.PythonSettings
47095
+ * @static
47096
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
47097
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47098
+ * @returns {$protobuf.Writer} Writer
47099
+ */
47100
+ PythonSettings.encode = function encode(message, writer) {
47101
+ if (!writer)
47102
+ writer = $Writer.create();
47103
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47104
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47105
+ return writer;
47106
+ };
47107
+
47108
+ /**
47109
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
47110
+ * @function encodeDelimited
47111
+ * @memberof google.api.PythonSettings
47112
+ * @static
47113
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
47114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47115
+ * @returns {$protobuf.Writer} Writer
47116
+ */
47117
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
47118
+ return this.encode(message, writer).ldelim();
47119
+ };
47120
+
47121
+ /**
47122
+ * Decodes a PythonSettings message from the specified reader or buffer.
47123
+ * @function decode
47124
+ * @memberof google.api.PythonSettings
47125
+ * @static
47126
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47127
+ * @param {number} [length] Message length if known beforehand
47128
+ * @returns {google.api.PythonSettings} PythonSettings
47129
+ * @throws {Error} If the payload is not a reader or valid buffer
47130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47131
+ */
47132
+ PythonSettings.decode = function decode(reader, length) {
47133
+ if (!(reader instanceof $Reader))
47134
+ reader = $Reader.create(reader);
47135
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
47136
+ while (reader.pos < end) {
47137
+ var tag = reader.uint32();
47138
+ switch (tag >>> 3) {
47139
+ case 1: {
47140
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47141
+ break;
47142
+ }
47143
+ default:
47144
+ reader.skipType(tag & 7);
47145
+ break;
47146
+ }
47147
+ }
47148
+ return message;
47149
+ };
47150
+
47151
+ /**
47152
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
47153
+ * @function decodeDelimited
47154
+ * @memberof google.api.PythonSettings
47155
+ * @static
47156
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47157
+ * @returns {google.api.PythonSettings} PythonSettings
47158
+ * @throws {Error} If the payload is not a reader or valid buffer
47159
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47160
+ */
47161
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
47162
+ if (!(reader instanceof $Reader))
47163
+ reader = new $Reader(reader);
47164
+ return this.decode(reader, reader.uint32());
47165
+ };
47166
+
47167
+ /**
47168
+ * Verifies a PythonSettings message.
47169
+ * @function verify
47170
+ * @memberof google.api.PythonSettings
47171
+ * @static
47172
+ * @param {Object.<string,*>} message Plain object to verify
47173
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47174
+ */
47175
+ PythonSettings.verify = function verify(message) {
47176
+ if (typeof message !== "object" || message === null)
47177
+ return "object expected";
47178
+ if (message.common != null && message.hasOwnProperty("common")) {
47179
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
47180
+ if (error)
47181
+ return "common." + error;
47182
+ }
47183
+ return null;
47184
+ };
47185
+
47186
+ /**
47187
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
47188
+ * @function fromObject
47189
+ * @memberof google.api.PythonSettings
47190
+ * @static
47191
+ * @param {Object.<string,*>} object Plain object
47192
+ * @returns {google.api.PythonSettings} PythonSettings
47193
+ */
47194
+ PythonSettings.fromObject = function fromObject(object) {
47195
+ if (object instanceof $root.google.api.PythonSettings)
47196
+ return object;
47197
+ var message = new $root.google.api.PythonSettings();
47198
+ if (object.common != null) {
47199
+ if (typeof object.common !== "object")
47200
+ throw TypeError(".google.api.PythonSettings.common: object expected");
47201
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
47202
+ }
47203
+ return message;
47204
+ };
47205
+
47206
+ /**
47207
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
47208
+ * @function toObject
47209
+ * @memberof google.api.PythonSettings
47210
+ * @static
47211
+ * @param {google.api.PythonSettings} message PythonSettings
47212
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47213
+ * @returns {Object.<string,*>} Plain object
47214
+ */
47215
+ PythonSettings.toObject = function toObject(message, options) {
47216
+ if (!options)
47217
+ options = {};
47218
+ var object = {};
47219
+ if (options.defaults)
47220
+ object.common = null;
47221
+ if (message.common != null && message.hasOwnProperty("common"))
47222
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47223
+ return object;
47224
+ };
47225
+
47226
+ /**
47227
+ * Converts this PythonSettings to JSON.
47228
+ * @function toJSON
47229
+ * @memberof google.api.PythonSettings
47230
+ * @instance
47231
+ * @returns {Object.<string,*>} JSON object
47232
+ */
47233
+ PythonSettings.prototype.toJSON = function toJSON() {
47234
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47235
+ };
47236
+
47237
+ /**
47238
+ * Gets the default type url for PythonSettings
47239
+ * @function getTypeUrl
47240
+ * @memberof google.api.PythonSettings
47241
+ * @static
47242
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47243
+ * @returns {string} The default type url
47244
+ */
47245
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47246
+ if (typeUrlPrefix === undefined) {
47247
+ typeUrlPrefix = "type.googleapis.com";
47248
+ }
47249
+ return typeUrlPrefix + "/google.api.PythonSettings";
47250
+ };
47251
+
47252
+ return PythonSettings;
47253
+ })();
47254
+
47255
+ api.NodeSettings = (function() {
47256
+
47257
+ /**
47258
+ * Properties of a NodeSettings.
47259
+ * @memberof google.api
47260
+ * @interface INodeSettings
47261
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
47262
+ */
47263
+
47264
+ /**
47265
+ * Constructs a new NodeSettings.
47266
+ * @memberof google.api
47267
+ * @classdesc Represents a NodeSettings.
47268
+ * @implements INodeSettings
47269
+ * @constructor
47270
+ * @param {google.api.INodeSettings=} [properties] Properties to set
47271
+ */
47272
+ function NodeSettings(properties) {
47273
+ if (properties)
47274
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47275
+ if (properties[keys[i]] != null)
47276
+ this[keys[i]] = properties[keys[i]];
47277
+ }
47278
+
47279
+ /**
47280
+ * NodeSettings common.
47281
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
47282
+ * @memberof google.api.NodeSettings
47283
+ * @instance
47284
+ */
47285
+ NodeSettings.prototype.common = null;
47286
+
47287
+ /**
47288
+ * Creates a new NodeSettings instance using the specified properties.
47289
+ * @function create
47290
+ * @memberof google.api.NodeSettings
47291
+ * @static
47292
+ * @param {google.api.INodeSettings=} [properties] Properties to set
47293
+ * @returns {google.api.NodeSettings} NodeSettings instance
47294
+ */
47295
+ NodeSettings.create = function create(properties) {
47296
+ return new NodeSettings(properties);
47297
+ };
47298
+
47299
+ /**
47300
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
47301
+ * @function encode
47302
+ * @memberof google.api.NodeSettings
47303
+ * @static
47304
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
47305
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47306
+ * @returns {$protobuf.Writer} Writer
47307
+ */
47308
+ NodeSettings.encode = function encode(message, writer) {
47309
+ if (!writer)
47310
+ writer = $Writer.create();
47311
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47312
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47313
+ return writer;
47314
+ };
47315
+
47316
+ /**
47317
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
47318
+ * @function encodeDelimited
47319
+ * @memberof google.api.NodeSettings
47320
+ * @static
47321
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
47322
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47323
+ * @returns {$protobuf.Writer} Writer
47324
+ */
47325
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
47326
+ return this.encode(message, writer).ldelim();
47327
+ };
47328
+
47329
+ /**
47330
+ * Decodes a NodeSettings message from the specified reader or buffer.
47331
+ * @function decode
47332
+ * @memberof google.api.NodeSettings
47333
+ * @static
47334
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47335
+ * @param {number} [length] Message length if known beforehand
47336
+ * @returns {google.api.NodeSettings} NodeSettings
47337
+ * @throws {Error} If the payload is not a reader or valid buffer
47338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47339
+ */
47340
+ NodeSettings.decode = function decode(reader, length) {
47341
+ if (!(reader instanceof $Reader))
47342
+ reader = $Reader.create(reader);
47343
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
47344
+ while (reader.pos < end) {
47345
+ var tag = reader.uint32();
47346
+ switch (tag >>> 3) {
47347
+ case 1: {
47348
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47349
+ break;
47350
+ }
47351
+ default:
47352
+ reader.skipType(tag & 7);
47353
+ break;
47354
+ }
47355
+ }
47356
+ return message;
47357
+ };
47358
+
47359
+ /**
47360
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
47361
+ * @function decodeDelimited
47362
+ * @memberof google.api.NodeSettings
47363
+ * @static
47364
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47365
+ * @returns {google.api.NodeSettings} NodeSettings
47366
+ * @throws {Error} If the payload is not a reader or valid buffer
47367
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47368
+ */
47369
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
47370
+ if (!(reader instanceof $Reader))
47371
+ reader = new $Reader(reader);
47372
+ return this.decode(reader, reader.uint32());
47373
+ };
47374
+
47375
+ /**
47376
+ * Verifies a NodeSettings message.
47377
+ * @function verify
47378
+ * @memberof google.api.NodeSettings
47379
+ * @static
47380
+ * @param {Object.<string,*>} message Plain object to verify
47381
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47382
+ */
47383
+ NodeSettings.verify = function verify(message) {
47384
+ if (typeof message !== "object" || message === null)
47385
+ return "object expected";
47386
+ if (message.common != null && message.hasOwnProperty("common")) {
47387
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
47388
+ if (error)
47389
+ return "common." + error;
47390
+ }
47391
+ return null;
47392
+ };
47393
+
47394
+ /**
47395
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
47396
+ * @function fromObject
47397
+ * @memberof google.api.NodeSettings
47398
+ * @static
47399
+ * @param {Object.<string,*>} object Plain object
47400
+ * @returns {google.api.NodeSettings} NodeSettings
47401
+ */
47402
+ NodeSettings.fromObject = function fromObject(object) {
47403
+ if (object instanceof $root.google.api.NodeSettings)
47404
+ return object;
47405
+ var message = new $root.google.api.NodeSettings();
47406
+ if (object.common != null) {
47407
+ if (typeof object.common !== "object")
47408
+ throw TypeError(".google.api.NodeSettings.common: object expected");
47409
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
47410
+ }
47411
+ return message;
47412
+ };
47413
+
47414
+ /**
47415
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
47416
+ * @function toObject
47417
+ * @memberof google.api.NodeSettings
47418
+ * @static
47419
+ * @param {google.api.NodeSettings} message NodeSettings
47420
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47421
+ * @returns {Object.<string,*>} Plain object
47422
+ */
47423
+ NodeSettings.toObject = function toObject(message, options) {
47424
+ if (!options)
47425
+ options = {};
47426
+ var object = {};
47427
+ if (options.defaults)
47428
+ object.common = null;
47429
+ if (message.common != null && message.hasOwnProperty("common"))
47430
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47431
+ return object;
47432
+ };
47433
+
47434
+ /**
47435
+ * Converts this NodeSettings to JSON.
47436
+ * @function toJSON
47437
+ * @memberof google.api.NodeSettings
47438
+ * @instance
47439
+ * @returns {Object.<string,*>} JSON object
47440
+ */
47441
+ NodeSettings.prototype.toJSON = function toJSON() {
47442
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47443
+ };
47444
+
47445
+ /**
47446
+ * Gets the default type url for NodeSettings
47447
+ * @function getTypeUrl
47448
+ * @memberof google.api.NodeSettings
47449
+ * @static
47450
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47451
+ * @returns {string} The default type url
47452
+ */
47453
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47454
+ if (typeUrlPrefix === undefined) {
47455
+ typeUrlPrefix = "type.googleapis.com";
47456
+ }
47457
+ return typeUrlPrefix + "/google.api.NodeSettings";
47458
+ };
47459
+
47460
+ return NodeSettings;
47461
+ })();
47462
+
47463
+ api.DotnetSettings = (function() {
47464
+
47465
+ /**
47466
+ * Properties of a DotnetSettings.
47467
+ * @memberof google.api
47468
+ * @interface IDotnetSettings
47469
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
47470
+ */
47471
+
47472
+ /**
47473
+ * Constructs a new DotnetSettings.
47474
+ * @memberof google.api
47475
+ * @classdesc Represents a DotnetSettings.
47476
+ * @implements IDotnetSettings
47477
+ * @constructor
47478
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
47479
+ */
47480
+ function DotnetSettings(properties) {
47481
+ if (properties)
47482
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47483
+ if (properties[keys[i]] != null)
47484
+ this[keys[i]] = properties[keys[i]];
47485
+ }
47486
+
47487
+ /**
47488
+ * DotnetSettings common.
47489
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
47490
+ * @memberof google.api.DotnetSettings
47491
+ * @instance
47492
+ */
47493
+ DotnetSettings.prototype.common = null;
47494
+
47495
+ /**
47496
+ * Creates a new DotnetSettings instance using the specified properties.
47497
+ * @function create
47498
+ * @memberof google.api.DotnetSettings
47499
+ * @static
47500
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
47501
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
47502
+ */
47503
+ DotnetSettings.create = function create(properties) {
47504
+ return new DotnetSettings(properties);
47505
+ };
47506
+
47507
+ /**
47508
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
47509
+ * @function encode
47510
+ * @memberof google.api.DotnetSettings
47511
+ * @static
47512
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
47513
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47514
+ * @returns {$protobuf.Writer} Writer
47515
+ */
47516
+ DotnetSettings.encode = function encode(message, writer) {
47517
+ if (!writer)
47518
+ writer = $Writer.create();
47519
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47520
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47521
+ return writer;
47522
+ };
47523
+
47524
+ /**
47525
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
47526
+ * @function encodeDelimited
47527
+ * @memberof google.api.DotnetSettings
47528
+ * @static
47529
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
47530
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47531
+ * @returns {$protobuf.Writer} Writer
47532
+ */
47533
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
47534
+ return this.encode(message, writer).ldelim();
47535
+ };
47536
+
47537
+ /**
47538
+ * Decodes a DotnetSettings message from the specified reader or buffer.
47539
+ * @function decode
47540
+ * @memberof google.api.DotnetSettings
47541
+ * @static
47542
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47543
+ * @param {number} [length] Message length if known beforehand
47544
+ * @returns {google.api.DotnetSettings} DotnetSettings
47545
+ * @throws {Error} If the payload is not a reader or valid buffer
47546
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47547
+ */
47548
+ DotnetSettings.decode = function decode(reader, length) {
47549
+ if (!(reader instanceof $Reader))
47550
+ reader = $Reader.create(reader);
47551
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
47552
+ while (reader.pos < end) {
47553
+ var tag = reader.uint32();
47554
+ switch (tag >>> 3) {
47555
+ case 1: {
47556
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47557
+ break;
47558
+ }
47559
+ default:
47560
+ reader.skipType(tag & 7);
47561
+ break;
47562
+ }
47563
+ }
47564
+ return message;
47565
+ };
47566
+
47567
+ /**
47568
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
47569
+ * @function decodeDelimited
47570
+ * @memberof google.api.DotnetSettings
47571
+ * @static
47572
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47573
+ * @returns {google.api.DotnetSettings} DotnetSettings
47574
+ * @throws {Error} If the payload is not a reader or valid buffer
47575
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47576
+ */
47577
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
47578
+ if (!(reader instanceof $Reader))
47579
+ reader = new $Reader(reader);
47580
+ return this.decode(reader, reader.uint32());
47581
+ };
47582
+
47583
+ /**
47584
+ * Verifies a DotnetSettings message.
47585
+ * @function verify
47586
+ * @memberof google.api.DotnetSettings
47587
+ * @static
47588
+ * @param {Object.<string,*>} message Plain object to verify
47589
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47590
+ */
47591
+ DotnetSettings.verify = function verify(message) {
47592
+ if (typeof message !== "object" || message === null)
47593
+ return "object expected";
47594
+ if (message.common != null && message.hasOwnProperty("common")) {
47595
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
47596
+ if (error)
47597
+ return "common." + error;
47598
+ }
47599
+ return null;
47600
+ };
47601
+
47602
+ /**
47603
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
47604
+ * @function fromObject
47605
+ * @memberof google.api.DotnetSettings
47606
+ * @static
47607
+ * @param {Object.<string,*>} object Plain object
47608
+ * @returns {google.api.DotnetSettings} DotnetSettings
47609
+ */
47610
+ DotnetSettings.fromObject = function fromObject(object) {
47611
+ if (object instanceof $root.google.api.DotnetSettings)
47612
+ return object;
47613
+ var message = new $root.google.api.DotnetSettings();
47614
+ if (object.common != null) {
47615
+ if (typeof object.common !== "object")
47616
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
47617
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
47618
+ }
47619
+ return message;
47620
+ };
47621
+
47622
+ /**
47623
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
47624
+ * @function toObject
47625
+ * @memberof google.api.DotnetSettings
47626
+ * @static
47627
+ * @param {google.api.DotnetSettings} message DotnetSettings
47628
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47629
+ * @returns {Object.<string,*>} Plain object
47630
+ */
47631
+ DotnetSettings.toObject = function toObject(message, options) {
47632
+ if (!options)
47633
+ options = {};
47634
+ var object = {};
47635
+ if (options.defaults)
47636
+ object.common = null;
47637
+ if (message.common != null && message.hasOwnProperty("common"))
47638
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47639
+ return object;
47640
+ };
47641
+
47642
+ /**
47643
+ * Converts this DotnetSettings to JSON.
47644
+ * @function toJSON
47645
+ * @memberof google.api.DotnetSettings
47646
+ * @instance
47647
+ * @returns {Object.<string,*>} JSON object
47648
+ */
47649
+ DotnetSettings.prototype.toJSON = function toJSON() {
47650
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47651
+ };
47652
+
47653
+ /**
47654
+ * Gets the default type url for DotnetSettings
47655
+ * @function getTypeUrl
47656
+ * @memberof google.api.DotnetSettings
47657
+ * @static
47658
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47659
+ * @returns {string} The default type url
47660
+ */
47661
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47662
+ if (typeUrlPrefix === undefined) {
47663
+ typeUrlPrefix = "type.googleapis.com";
47664
+ }
47665
+ return typeUrlPrefix + "/google.api.DotnetSettings";
47666
+ };
47667
+
47668
+ return DotnetSettings;
47669
+ })();
47670
+
47671
+ api.RubySettings = (function() {
47672
+
47673
+ /**
47674
+ * Properties of a RubySettings.
47675
+ * @memberof google.api
47676
+ * @interface IRubySettings
47677
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
47678
+ */
47679
+
47680
+ /**
47681
+ * Constructs a new RubySettings.
47682
+ * @memberof google.api
47683
+ * @classdesc Represents a RubySettings.
47684
+ * @implements IRubySettings
47685
+ * @constructor
47686
+ * @param {google.api.IRubySettings=} [properties] Properties to set
47687
+ */
47688
+ function RubySettings(properties) {
47689
+ if (properties)
47690
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47691
+ if (properties[keys[i]] != null)
47692
+ this[keys[i]] = properties[keys[i]];
47693
+ }
47694
+
47695
+ /**
47696
+ * RubySettings common.
47697
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
47698
+ * @memberof google.api.RubySettings
47699
+ * @instance
47700
+ */
47701
+ RubySettings.prototype.common = null;
47702
+
47703
+ /**
47704
+ * Creates a new RubySettings instance using the specified properties.
47705
+ * @function create
47706
+ * @memberof google.api.RubySettings
47707
+ * @static
47708
+ * @param {google.api.IRubySettings=} [properties] Properties to set
47709
+ * @returns {google.api.RubySettings} RubySettings instance
47710
+ */
47711
+ RubySettings.create = function create(properties) {
47712
+ return new RubySettings(properties);
47713
+ };
47714
+
47715
+ /**
47716
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
47717
+ * @function encode
47718
+ * @memberof google.api.RubySettings
47719
+ * @static
47720
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
47721
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47722
+ * @returns {$protobuf.Writer} Writer
47723
+ */
47724
+ RubySettings.encode = function encode(message, writer) {
47725
+ if (!writer)
47726
+ writer = $Writer.create();
47727
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47728
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47729
+ return writer;
47730
+ };
47731
+
47732
+ /**
47733
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
47734
+ * @function encodeDelimited
47735
+ * @memberof google.api.RubySettings
47736
+ * @static
47737
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
47738
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47739
+ * @returns {$protobuf.Writer} Writer
47740
+ */
47741
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
47742
+ return this.encode(message, writer).ldelim();
47743
+ };
47744
+
47745
+ /**
47746
+ * Decodes a RubySettings message from the specified reader or buffer.
47747
+ * @function decode
47748
+ * @memberof google.api.RubySettings
47749
+ * @static
47750
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47751
+ * @param {number} [length] Message length if known beforehand
47752
+ * @returns {google.api.RubySettings} RubySettings
47753
+ * @throws {Error} If the payload is not a reader or valid buffer
47754
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47755
+ */
47756
+ RubySettings.decode = function decode(reader, length) {
47757
+ if (!(reader instanceof $Reader))
47758
+ reader = $Reader.create(reader);
47759
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
47760
+ while (reader.pos < end) {
47761
+ var tag = reader.uint32();
47762
+ switch (tag >>> 3) {
47763
+ case 1: {
47764
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47765
+ break;
47766
+ }
47767
+ default:
47768
+ reader.skipType(tag & 7);
47769
+ break;
47770
+ }
47771
+ }
47772
+ return message;
47773
+ };
47774
+
47775
+ /**
47776
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
47777
+ * @function decodeDelimited
47778
+ * @memberof google.api.RubySettings
47779
+ * @static
47780
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47781
+ * @returns {google.api.RubySettings} RubySettings
47782
+ * @throws {Error} If the payload is not a reader or valid buffer
47783
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47784
+ */
47785
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
47786
+ if (!(reader instanceof $Reader))
47787
+ reader = new $Reader(reader);
47788
+ return this.decode(reader, reader.uint32());
47789
+ };
47790
+
47791
+ /**
47792
+ * Verifies a RubySettings message.
47793
+ * @function verify
47794
+ * @memberof google.api.RubySettings
47795
+ * @static
47796
+ * @param {Object.<string,*>} message Plain object to verify
47797
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47798
+ */
47799
+ RubySettings.verify = function verify(message) {
47800
+ if (typeof message !== "object" || message === null)
47801
+ return "object expected";
47802
+ if (message.common != null && message.hasOwnProperty("common")) {
47803
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
47804
+ if (error)
47805
+ return "common." + error;
47806
+ }
47807
+ return null;
47808
+ };
47809
+
47810
+ /**
47811
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
47812
+ * @function fromObject
47813
+ * @memberof google.api.RubySettings
47814
+ * @static
47815
+ * @param {Object.<string,*>} object Plain object
47816
+ * @returns {google.api.RubySettings} RubySettings
47817
+ */
47818
+ RubySettings.fromObject = function fromObject(object) {
47819
+ if (object instanceof $root.google.api.RubySettings)
47820
+ return object;
47821
+ var message = new $root.google.api.RubySettings();
47822
+ if (object.common != null) {
47823
+ if (typeof object.common !== "object")
47824
+ throw TypeError(".google.api.RubySettings.common: object expected");
47825
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
47826
+ }
47827
+ return message;
47828
+ };
47829
+
47830
+ /**
47831
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
47832
+ * @function toObject
47833
+ * @memberof google.api.RubySettings
47834
+ * @static
47835
+ * @param {google.api.RubySettings} message RubySettings
47836
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47837
+ * @returns {Object.<string,*>} Plain object
47838
+ */
47839
+ RubySettings.toObject = function toObject(message, options) {
47840
+ if (!options)
47841
+ options = {};
47842
+ var object = {};
47843
+ if (options.defaults)
47844
+ object.common = null;
47845
+ if (message.common != null && message.hasOwnProperty("common"))
47846
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47847
+ return object;
47848
+ };
47849
+
47850
+ /**
47851
+ * Converts this RubySettings to JSON.
47852
+ * @function toJSON
47853
+ * @memberof google.api.RubySettings
47854
+ * @instance
47855
+ * @returns {Object.<string,*>} JSON object
47856
+ */
47857
+ RubySettings.prototype.toJSON = function toJSON() {
47858
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47859
+ };
47860
+
47861
+ /**
47862
+ * Gets the default type url for RubySettings
47863
+ * @function getTypeUrl
47864
+ * @memberof google.api.RubySettings
47865
+ * @static
47866
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47867
+ * @returns {string} The default type url
47868
+ */
47869
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47870
+ if (typeUrlPrefix === undefined) {
47871
+ typeUrlPrefix = "type.googleapis.com";
47872
+ }
47873
+ return typeUrlPrefix + "/google.api.RubySettings";
47874
+ };
47875
+
47876
+ return RubySettings;
47877
+ })();
47878
+
47879
+ api.GoSettings = (function() {
47880
+
47881
+ /**
47882
+ * Properties of a GoSettings.
47883
+ * @memberof google.api
47884
+ * @interface IGoSettings
47885
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
47886
+ */
47887
+
47888
+ /**
47889
+ * Constructs a new GoSettings.
47890
+ * @memberof google.api
47891
+ * @classdesc Represents a GoSettings.
47892
+ * @implements IGoSettings
47893
+ * @constructor
47894
+ * @param {google.api.IGoSettings=} [properties] Properties to set
47895
+ */
47896
+ function GoSettings(properties) {
47897
+ if (properties)
47898
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47899
+ if (properties[keys[i]] != null)
47900
+ this[keys[i]] = properties[keys[i]];
47901
+ }
47902
+
47903
+ /**
47904
+ * GoSettings common.
47905
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
47906
+ * @memberof google.api.GoSettings
47907
+ * @instance
47908
+ */
47909
+ GoSettings.prototype.common = null;
47910
+
47911
+ /**
47912
+ * Creates a new GoSettings instance using the specified properties.
47913
+ * @function create
47914
+ * @memberof google.api.GoSettings
47915
+ * @static
47916
+ * @param {google.api.IGoSettings=} [properties] Properties to set
47917
+ * @returns {google.api.GoSettings} GoSettings instance
47918
+ */
47919
+ GoSettings.create = function create(properties) {
47920
+ return new GoSettings(properties);
47921
+ };
47922
+
47923
+ /**
47924
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
47925
+ * @function encode
47926
+ * @memberof google.api.GoSettings
47927
+ * @static
47928
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
47929
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47930
+ * @returns {$protobuf.Writer} Writer
47931
+ */
47932
+ GoSettings.encode = function encode(message, writer) {
47933
+ if (!writer)
47934
+ writer = $Writer.create();
47935
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47936
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47937
+ return writer;
47938
+ };
47939
+
47940
+ /**
47941
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
47942
+ * @function encodeDelimited
47943
+ * @memberof google.api.GoSettings
47944
+ * @static
47945
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
47946
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47947
+ * @returns {$protobuf.Writer} Writer
47948
+ */
47949
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
47950
+ return this.encode(message, writer).ldelim();
47951
+ };
47952
+
47953
+ /**
47954
+ * Decodes a GoSettings message from the specified reader or buffer.
47955
+ * @function decode
47956
+ * @memberof google.api.GoSettings
47957
+ * @static
47958
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47959
+ * @param {number} [length] Message length if known beforehand
47960
+ * @returns {google.api.GoSettings} GoSettings
47961
+ * @throws {Error} If the payload is not a reader or valid buffer
47962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47963
+ */
47964
+ GoSettings.decode = function decode(reader, length) {
47965
+ if (!(reader instanceof $Reader))
47966
+ reader = $Reader.create(reader);
47967
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
47968
+ while (reader.pos < end) {
47969
+ var tag = reader.uint32();
47970
+ switch (tag >>> 3) {
47971
+ case 1: {
47972
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47973
+ break;
47974
+ }
47975
+ default:
47976
+ reader.skipType(tag & 7);
47977
+ break;
47978
+ }
47979
+ }
47980
+ return message;
47981
+ };
47982
+
47983
+ /**
47984
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
47985
+ * @function decodeDelimited
47986
+ * @memberof google.api.GoSettings
47987
+ * @static
47988
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47989
+ * @returns {google.api.GoSettings} GoSettings
47990
+ * @throws {Error} If the payload is not a reader or valid buffer
47991
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47992
+ */
47993
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
47994
+ if (!(reader instanceof $Reader))
47995
+ reader = new $Reader(reader);
47996
+ return this.decode(reader, reader.uint32());
47997
+ };
47998
+
47999
+ /**
48000
+ * Verifies a GoSettings message.
48001
+ * @function verify
48002
+ * @memberof google.api.GoSettings
48003
+ * @static
48004
+ * @param {Object.<string,*>} message Plain object to verify
48005
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48006
+ */
48007
+ GoSettings.verify = function verify(message) {
48008
+ if (typeof message !== "object" || message === null)
48009
+ return "object expected";
48010
+ if (message.common != null && message.hasOwnProperty("common")) {
48011
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
48012
+ if (error)
48013
+ return "common." + error;
48014
+ }
48015
+ return null;
48016
+ };
48017
+
48018
+ /**
48019
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
48020
+ * @function fromObject
48021
+ * @memberof google.api.GoSettings
48022
+ * @static
48023
+ * @param {Object.<string,*>} object Plain object
48024
+ * @returns {google.api.GoSettings} GoSettings
48025
+ */
48026
+ GoSettings.fromObject = function fromObject(object) {
48027
+ if (object instanceof $root.google.api.GoSettings)
48028
+ return object;
48029
+ var message = new $root.google.api.GoSettings();
48030
+ if (object.common != null) {
48031
+ if (typeof object.common !== "object")
48032
+ throw TypeError(".google.api.GoSettings.common: object expected");
48033
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
48034
+ }
48035
+ return message;
48036
+ };
48037
+
48038
+ /**
48039
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
48040
+ * @function toObject
48041
+ * @memberof google.api.GoSettings
48042
+ * @static
48043
+ * @param {google.api.GoSettings} message GoSettings
48044
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48045
+ * @returns {Object.<string,*>} Plain object
48046
+ */
48047
+ GoSettings.toObject = function toObject(message, options) {
48048
+ if (!options)
48049
+ options = {};
48050
+ var object = {};
48051
+ if (options.defaults)
48052
+ object.common = null;
48053
+ if (message.common != null && message.hasOwnProperty("common"))
48054
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
48055
+ return object;
48056
+ };
48057
+
48058
+ /**
48059
+ * Converts this GoSettings to JSON.
48060
+ * @function toJSON
48061
+ * @memberof google.api.GoSettings
48062
+ * @instance
48063
+ * @returns {Object.<string,*>} JSON object
48064
+ */
48065
+ GoSettings.prototype.toJSON = function toJSON() {
48066
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48067
+ };
48068
+
48069
+ /**
48070
+ * Gets the default type url for GoSettings
48071
+ * @function getTypeUrl
48072
+ * @memberof google.api.GoSettings
48073
+ * @static
48074
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48075
+ * @returns {string} The default type url
48076
+ */
48077
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48078
+ if (typeUrlPrefix === undefined) {
48079
+ typeUrlPrefix = "type.googleapis.com";
48080
+ }
48081
+ return typeUrlPrefix + "/google.api.GoSettings";
48082
+ };
48083
+
48084
+ return GoSettings;
48085
+ })();
48086
+
48087
+ api.MethodSettings = (function() {
48088
+
48089
+ /**
48090
+ * Properties of a MethodSettings.
48091
+ * @memberof google.api
48092
+ * @interface IMethodSettings
48093
+ * @property {string|null} [selector] MethodSettings selector
48094
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
48095
+ */
48096
+
48097
+ /**
48098
+ * Constructs a new MethodSettings.
48099
+ * @memberof google.api
48100
+ * @classdesc Represents a MethodSettings.
48101
+ * @implements IMethodSettings
48102
+ * @constructor
48103
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
48104
+ */
48105
+ function MethodSettings(properties) {
48106
+ if (properties)
48107
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48108
+ if (properties[keys[i]] != null)
48109
+ this[keys[i]] = properties[keys[i]];
48110
+ }
48111
+
48112
+ /**
48113
+ * MethodSettings selector.
48114
+ * @member {string} selector
48115
+ * @memberof google.api.MethodSettings
48116
+ * @instance
48117
+ */
48118
+ MethodSettings.prototype.selector = "";
48119
+
48120
+ /**
48121
+ * MethodSettings longRunning.
48122
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
48123
+ * @memberof google.api.MethodSettings
48124
+ * @instance
48125
+ */
48126
+ MethodSettings.prototype.longRunning = null;
48127
+
48128
+ /**
48129
+ * Creates a new MethodSettings instance using the specified properties.
48130
+ * @function create
48131
+ * @memberof google.api.MethodSettings
48132
+ * @static
48133
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
48134
+ * @returns {google.api.MethodSettings} MethodSettings instance
48135
+ */
48136
+ MethodSettings.create = function create(properties) {
48137
+ return new MethodSettings(properties);
48138
+ };
48139
+
48140
+ /**
48141
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
48142
+ * @function encode
48143
+ * @memberof google.api.MethodSettings
48144
+ * @static
48145
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
48146
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48147
+ * @returns {$protobuf.Writer} Writer
48148
+ */
48149
+ MethodSettings.encode = function encode(message, writer) {
48150
+ if (!writer)
48151
+ writer = $Writer.create();
48152
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
48153
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
48154
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
48155
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
48156
+ return writer;
48157
+ };
48158
+
48159
+ /**
48160
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
48161
+ * @function encodeDelimited
48162
+ * @memberof google.api.MethodSettings
48163
+ * @static
48164
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
48165
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48166
+ * @returns {$protobuf.Writer} Writer
48167
+ */
48168
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
48169
+ return this.encode(message, writer).ldelim();
48170
+ };
48171
+
48172
+ /**
48173
+ * Decodes a MethodSettings message from the specified reader or buffer.
48174
+ * @function decode
48175
+ * @memberof google.api.MethodSettings
48176
+ * @static
48177
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48178
+ * @param {number} [length] Message length if known beforehand
48179
+ * @returns {google.api.MethodSettings} MethodSettings
48180
+ * @throws {Error} If the payload is not a reader or valid buffer
48181
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48182
+ */
48183
+ MethodSettings.decode = function decode(reader, length) {
48184
+ if (!(reader instanceof $Reader))
48185
+ reader = $Reader.create(reader);
48186
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
48187
+ while (reader.pos < end) {
48188
+ var tag = reader.uint32();
48189
+ switch (tag >>> 3) {
48190
+ case 1: {
48191
+ message.selector = reader.string();
48192
+ break;
48193
+ }
48194
+ case 2: {
48195
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
48196
+ break;
48197
+ }
48198
+ default:
48199
+ reader.skipType(tag & 7);
48200
+ break;
48201
+ }
48202
+ }
48203
+ return message;
48204
+ };
48205
+
48206
+ /**
48207
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
48208
+ * @function decodeDelimited
48209
+ * @memberof google.api.MethodSettings
48210
+ * @static
48211
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48212
+ * @returns {google.api.MethodSettings} MethodSettings
48213
+ * @throws {Error} If the payload is not a reader or valid buffer
48214
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48215
+ */
48216
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
48217
+ if (!(reader instanceof $Reader))
48218
+ reader = new $Reader(reader);
48219
+ return this.decode(reader, reader.uint32());
48220
+ };
48221
+
48222
+ /**
48223
+ * Verifies a MethodSettings message.
48224
+ * @function verify
48225
+ * @memberof google.api.MethodSettings
48226
+ * @static
48227
+ * @param {Object.<string,*>} message Plain object to verify
48228
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48229
+ */
48230
+ MethodSettings.verify = function verify(message) {
48231
+ if (typeof message !== "object" || message === null)
48232
+ return "object expected";
48233
+ if (message.selector != null && message.hasOwnProperty("selector"))
48234
+ if (!$util.isString(message.selector))
48235
+ return "selector: string expected";
48236
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
48237
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
48238
+ if (error)
48239
+ return "longRunning." + error;
48240
+ }
48241
+ return null;
48242
+ };
48243
+
48244
+ /**
48245
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
48246
+ * @function fromObject
48247
+ * @memberof google.api.MethodSettings
48248
+ * @static
48249
+ * @param {Object.<string,*>} object Plain object
48250
+ * @returns {google.api.MethodSettings} MethodSettings
48251
+ */
48252
+ MethodSettings.fromObject = function fromObject(object) {
48253
+ if (object instanceof $root.google.api.MethodSettings)
48254
+ return object;
48255
+ var message = new $root.google.api.MethodSettings();
48256
+ if (object.selector != null)
48257
+ message.selector = String(object.selector);
48258
+ if (object.longRunning != null) {
48259
+ if (typeof object.longRunning !== "object")
48260
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
48261
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
48262
+ }
48263
+ return message;
48264
+ };
48265
+
48266
+ /**
48267
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
48268
+ * @function toObject
48269
+ * @memberof google.api.MethodSettings
48270
+ * @static
48271
+ * @param {google.api.MethodSettings} message MethodSettings
48272
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48273
+ * @returns {Object.<string,*>} Plain object
48274
+ */
48275
+ MethodSettings.toObject = function toObject(message, options) {
48276
+ if (!options)
48277
+ options = {};
48278
+ var object = {};
48279
+ if (options.defaults) {
48280
+ object.selector = "";
48281
+ object.longRunning = null;
48282
+ }
48283
+ if (message.selector != null && message.hasOwnProperty("selector"))
48284
+ object.selector = message.selector;
48285
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
48286
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
48287
+ return object;
48288
+ };
48289
+
48290
+ /**
48291
+ * Converts this MethodSettings to JSON.
48292
+ * @function toJSON
48293
+ * @memberof google.api.MethodSettings
48294
+ * @instance
48295
+ * @returns {Object.<string,*>} JSON object
48296
+ */
48297
+ MethodSettings.prototype.toJSON = function toJSON() {
48298
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48299
+ };
48300
+
48301
+ /**
48302
+ * Gets the default type url for MethodSettings
48303
+ * @function getTypeUrl
48304
+ * @memberof google.api.MethodSettings
48305
+ * @static
48306
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48307
+ * @returns {string} The default type url
48308
+ */
48309
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48310
+ if (typeUrlPrefix === undefined) {
48311
+ typeUrlPrefix = "type.googleapis.com";
48312
+ }
48313
+ return typeUrlPrefix + "/google.api.MethodSettings";
48314
+ };
48315
+
48316
+ MethodSettings.LongRunning = (function() {
48317
+
48318
+ /**
48319
+ * Properties of a LongRunning.
48320
+ * @memberof google.api.MethodSettings
48321
+ * @interface ILongRunning
48322
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
48323
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
48324
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
48325
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
48326
+ */
48327
+
48328
+ /**
48329
+ * Constructs a new LongRunning.
48330
+ * @memberof google.api.MethodSettings
48331
+ * @classdesc Represents a LongRunning.
48332
+ * @implements ILongRunning
48333
+ * @constructor
48334
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
48335
+ */
48336
+ function LongRunning(properties) {
48337
+ if (properties)
48338
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48339
+ if (properties[keys[i]] != null)
48340
+ this[keys[i]] = properties[keys[i]];
48341
+ }
48342
+
48343
+ /**
48344
+ * LongRunning initialPollDelay.
48345
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
48346
+ * @memberof google.api.MethodSettings.LongRunning
48347
+ * @instance
48348
+ */
48349
+ LongRunning.prototype.initialPollDelay = null;
48350
+
48351
+ /**
48352
+ * LongRunning pollDelayMultiplier.
48353
+ * @member {number} pollDelayMultiplier
48354
+ * @memberof google.api.MethodSettings.LongRunning
48355
+ * @instance
48356
+ */
48357
+ LongRunning.prototype.pollDelayMultiplier = 0;
48358
+
48359
+ /**
48360
+ * LongRunning maxPollDelay.
48361
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
48362
+ * @memberof google.api.MethodSettings.LongRunning
48363
+ * @instance
48364
+ */
48365
+ LongRunning.prototype.maxPollDelay = null;
48366
+
48367
+ /**
48368
+ * LongRunning totalPollTimeout.
48369
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
48370
+ * @memberof google.api.MethodSettings.LongRunning
48371
+ * @instance
48372
+ */
48373
+ LongRunning.prototype.totalPollTimeout = null;
48374
+
48375
+ /**
48376
+ * Creates a new LongRunning instance using the specified properties.
48377
+ * @function create
48378
+ * @memberof google.api.MethodSettings.LongRunning
48379
+ * @static
48380
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
48381
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
48382
+ */
48383
+ LongRunning.create = function create(properties) {
48384
+ return new LongRunning(properties);
48385
+ };
48386
+
48387
+ /**
48388
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
48389
+ * @function encode
48390
+ * @memberof google.api.MethodSettings.LongRunning
48391
+ * @static
48392
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
48393
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48394
+ * @returns {$protobuf.Writer} Writer
48395
+ */
48396
+ LongRunning.encode = function encode(message, writer) {
48397
+ if (!writer)
48398
+ writer = $Writer.create();
48399
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
48400
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
48401
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
48402
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
48403
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
48404
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
48405
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
48406
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
48407
+ return writer;
48408
+ };
48409
+
48410
+ /**
48411
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
48412
+ * @function encodeDelimited
48413
+ * @memberof google.api.MethodSettings.LongRunning
48414
+ * @static
48415
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
48416
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48417
+ * @returns {$protobuf.Writer} Writer
48418
+ */
48419
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
48420
+ return this.encode(message, writer).ldelim();
48421
+ };
48422
+
48423
+ /**
48424
+ * Decodes a LongRunning message from the specified reader or buffer.
48425
+ * @function decode
48426
+ * @memberof google.api.MethodSettings.LongRunning
48427
+ * @static
48428
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48429
+ * @param {number} [length] Message length if known beforehand
48430
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
48431
+ * @throws {Error} If the payload is not a reader or valid buffer
48432
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48433
+ */
48434
+ LongRunning.decode = function decode(reader, length) {
48435
+ if (!(reader instanceof $Reader))
48436
+ reader = $Reader.create(reader);
48437
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
48438
+ while (reader.pos < end) {
48439
+ var tag = reader.uint32();
48440
+ switch (tag >>> 3) {
48441
+ case 1: {
48442
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
48443
+ break;
48444
+ }
48445
+ case 2: {
48446
+ message.pollDelayMultiplier = reader.float();
48447
+ break;
48448
+ }
48449
+ case 3: {
48450
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
48451
+ break;
48452
+ }
48453
+ case 4: {
48454
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
48455
+ break;
48456
+ }
48457
+ default:
48458
+ reader.skipType(tag & 7);
48459
+ break;
48460
+ }
48461
+ }
48462
+ return message;
48463
+ };
48464
+
48465
+ /**
48466
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
48467
+ * @function decodeDelimited
48468
+ * @memberof google.api.MethodSettings.LongRunning
48469
+ * @static
48470
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48471
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
48472
+ * @throws {Error} If the payload is not a reader or valid buffer
48473
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48474
+ */
48475
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
48476
+ if (!(reader instanceof $Reader))
48477
+ reader = new $Reader(reader);
48478
+ return this.decode(reader, reader.uint32());
48479
+ };
48480
+
48481
+ /**
48482
+ * Verifies a LongRunning message.
48483
+ * @function verify
48484
+ * @memberof google.api.MethodSettings.LongRunning
48485
+ * @static
48486
+ * @param {Object.<string,*>} message Plain object to verify
48487
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48488
+ */
48489
+ LongRunning.verify = function verify(message) {
48490
+ if (typeof message !== "object" || message === null)
48491
+ return "object expected";
48492
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
48493
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
48494
+ if (error)
48495
+ return "initialPollDelay." + error;
48496
+ }
48497
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
48498
+ if (typeof message.pollDelayMultiplier !== "number")
48499
+ return "pollDelayMultiplier: number expected";
48500
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
48501
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
48502
+ if (error)
48503
+ return "maxPollDelay." + error;
48504
+ }
48505
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
48506
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
48507
+ if (error)
48508
+ return "totalPollTimeout." + error;
48509
+ }
48510
+ return null;
48511
+ };
48512
+
48513
+ /**
48514
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
48515
+ * @function fromObject
48516
+ * @memberof google.api.MethodSettings.LongRunning
48517
+ * @static
48518
+ * @param {Object.<string,*>} object Plain object
48519
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
48520
+ */
48521
+ LongRunning.fromObject = function fromObject(object) {
48522
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
48523
+ return object;
48524
+ var message = new $root.google.api.MethodSettings.LongRunning();
48525
+ if (object.initialPollDelay != null) {
48526
+ if (typeof object.initialPollDelay !== "object")
48527
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
48528
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
48529
+ }
48530
+ if (object.pollDelayMultiplier != null)
48531
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
48532
+ if (object.maxPollDelay != null) {
48533
+ if (typeof object.maxPollDelay !== "object")
48534
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
48535
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
48536
+ }
48537
+ if (object.totalPollTimeout != null) {
48538
+ if (typeof object.totalPollTimeout !== "object")
48539
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
48540
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
48541
+ }
48542
+ return message;
48543
+ };
48544
+
48545
+ /**
48546
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
48547
+ * @function toObject
48548
+ * @memberof google.api.MethodSettings.LongRunning
48549
+ * @static
48550
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
48551
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48552
+ * @returns {Object.<string,*>} Plain object
48553
+ */
48554
+ LongRunning.toObject = function toObject(message, options) {
48555
+ if (!options)
48556
+ options = {};
48557
+ var object = {};
48558
+ if (options.defaults) {
48559
+ object.initialPollDelay = null;
48560
+ object.pollDelayMultiplier = 0;
48561
+ object.maxPollDelay = null;
48562
+ object.totalPollTimeout = null;
48563
+ }
48564
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
48565
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
48566
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
48567
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
48568
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
48569
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
48570
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
48571
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
48572
+ return object;
48573
+ };
48574
+
48575
+ /**
48576
+ * Converts this LongRunning to JSON.
48577
+ * @function toJSON
48578
+ * @memberof google.api.MethodSettings.LongRunning
48579
+ * @instance
48580
+ * @returns {Object.<string,*>} JSON object
48581
+ */
48582
+ LongRunning.prototype.toJSON = function toJSON() {
48583
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48584
+ };
48585
+
48586
+ /**
48587
+ * Gets the default type url for LongRunning
48588
+ * @function getTypeUrl
48589
+ * @memberof google.api.MethodSettings.LongRunning
48590
+ * @static
48591
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48592
+ * @returns {string} The default type url
48593
+ */
48594
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48595
+ if (typeUrlPrefix === undefined) {
48596
+ typeUrlPrefix = "type.googleapis.com";
48597
+ }
48598
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
48599
+ };
48600
+
48601
+ return LongRunning;
48602
+ })();
48603
+
48604
+ return MethodSettings;
48605
+ })();
48606
+
48607
+ /**
48608
+ * ClientLibraryOrganization enum.
48609
+ * @name google.api.ClientLibraryOrganization
48610
+ * @enum {number}
48611
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
48612
+ * @property {number} CLOUD=1 CLOUD value
48613
+ * @property {number} ADS=2 ADS value
48614
+ * @property {number} PHOTOS=3 PHOTOS value
48615
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
48616
+ */
48617
+ api.ClientLibraryOrganization = (function() {
48618
+ var valuesById = {}, values = Object.create(valuesById);
48619
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
48620
+ values[valuesById[1] = "CLOUD"] = 1;
48621
+ values[valuesById[2] = "ADS"] = 2;
48622
+ values[valuesById[3] = "PHOTOS"] = 3;
48623
+ values[valuesById[4] = "STREET_VIEW"] = 4;
48624
+ return values;
48625
+ })();
48626
+
48627
+ /**
48628
+ * ClientLibraryDestination enum.
48629
+ * @name google.api.ClientLibraryDestination
48630
+ * @enum {number}
48631
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
48632
+ * @property {number} GITHUB=10 GITHUB value
48633
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
48634
+ */
48635
+ api.ClientLibraryDestination = (function() {
48636
+ var valuesById = {}, values = Object.create(valuesById);
48637
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
48638
+ values[valuesById[10] = "GITHUB"] = 10;
48639
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
48640
+ return values;
48641
+ })();
48642
+
48643
+ /**
48644
+ * LaunchStage enum.
48645
+ * @name google.api.LaunchStage
48646
+ * @enum {number}
48647
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
48648
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
48649
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
48650
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
48651
+ * @property {number} ALPHA=2 ALPHA value
48652
+ * @property {number} BETA=3 BETA value
48653
+ * @property {number} GA=4 GA value
48654
+ * @property {number} DEPRECATED=5 DEPRECATED value
48655
+ */
48656
+ api.LaunchStage = (function() {
48657
+ var valuesById = {}, values = Object.create(valuesById);
48658
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
48659
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
48660
+ values[valuesById[7] = "PRELAUNCH"] = 7;
48661
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
48662
+ values[valuesById[2] = "ALPHA"] = 2;
48663
+ values[valuesById[3] = "BETA"] = 3;
48664
+ values[valuesById[4] = "GA"] = 4;
48665
+ values[valuesById[5] = "DEPRECATED"] = 5;
48666
+ return values;
48667
+ })();
48668
+
44816
48669
  /**
44817
48670
  * FieldBehavior enum.
44818
48671
  * @name google.api.FieldBehavior