@google-cloud/spanner 6.7.0 → 6.7.2

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)
@@ -11445,6 +11689,292 @@
11445
11689
  */
11446
11690
  var rpc = {};
11447
11691
 
11692
+ rpc.ErrorInfo = (function() {
11693
+
11694
+ /**
11695
+ * Properties of an ErrorInfo.
11696
+ * @memberof google.rpc
11697
+ * @interface IErrorInfo
11698
+ * @property {string|null} [reason] ErrorInfo reason
11699
+ * @property {string|null} [domain] ErrorInfo domain
11700
+ * @property {Object.<string,string>|null} [metadata] ErrorInfo metadata
11701
+ */
11702
+
11703
+ /**
11704
+ * Constructs a new ErrorInfo.
11705
+ * @memberof google.rpc
11706
+ * @classdesc Represents an ErrorInfo.
11707
+ * @implements IErrorInfo
11708
+ * @constructor
11709
+ * @param {google.rpc.IErrorInfo=} [properties] Properties to set
11710
+ */
11711
+ function ErrorInfo(properties) {
11712
+ this.metadata = {};
11713
+ if (properties)
11714
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11715
+ if (properties[keys[i]] != null)
11716
+ this[keys[i]] = properties[keys[i]];
11717
+ }
11718
+
11719
+ /**
11720
+ * ErrorInfo reason.
11721
+ * @member {string} reason
11722
+ * @memberof google.rpc.ErrorInfo
11723
+ * @instance
11724
+ */
11725
+ ErrorInfo.prototype.reason = "";
11726
+
11727
+ /**
11728
+ * ErrorInfo domain.
11729
+ * @member {string} domain
11730
+ * @memberof google.rpc.ErrorInfo
11731
+ * @instance
11732
+ */
11733
+ ErrorInfo.prototype.domain = "";
11734
+
11735
+ /**
11736
+ * ErrorInfo metadata.
11737
+ * @member {Object.<string,string>} metadata
11738
+ * @memberof google.rpc.ErrorInfo
11739
+ * @instance
11740
+ */
11741
+ ErrorInfo.prototype.metadata = $util.emptyObject;
11742
+
11743
+ /**
11744
+ * Creates a new ErrorInfo instance using the specified properties.
11745
+ * @function create
11746
+ * @memberof google.rpc.ErrorInfo
11747
+ * @static
11748
+ * @param {google.rpc.IErrorInfo=} [properties] Properties to set
11749
+ * @returns {google.rpc.ErrorInfo} ErrorInfo instance
11750
+ */
11751
+ ErrorInfo.create = function create(properties) {
11752
+ return new ErrorInfo(properties);
11753
+ };
11754
+
11755
+ /**
11756
+ * Encodes the specified ErrorInfo message. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
11757
+ * @function encode
11758
+ * @memberof google.rpc.ErrorInfo
11759
+ * @static
11760
+ * @param {google.rpc.IErrorInfo} message ErrorInfo message or plain object to encode
11761
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11762
+ * @returns {$protobuf.Writer} Writer
11763
+ */
11764
+ ErrorInfo.encode = function encode(message, writer) {
11765
+ if (!writer)
11766
+ writer = $Writer.create();
11767
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
11768
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
11769
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
11770
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain);
11771
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
11772
+ for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i)
11773
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim();
11774
+ return writer;
11775
+ };
11776
+
11777
+ /**
11778
+ * Encodes the specified ErrorInfo message, length delimited. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
11779
+ * @function encodeDelimited
11780
+ * @memberof google.rpc.ErrorInfo
11781
+ * @static
11782
+ * @param {google.rpc.IErrorInfo} message ErrorInfo message or plain object to encode
11783
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11784
+ * @returns {$protobuf.Writer} Writer
11785
+ */
11786
+ ErrorInfo.encodeDelimited = function encodeDelimited(message, writer) {
11787
+ return this.encode(message, writer).ldelim();
11788
+ };
11789
+
11790
+ /**
11791
+ * Decodes an ErrorInfo message from the specified reader or buffer.
11792
+ * @function decode
11793
+ * @memberof google.rpc.ErrorInfo
11794
+ * @static
11795
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11796
+ * @param {number} [length] Message length if known beforehand
11797
+ * @returns {google.rpc.ErrorInfo} ErrorInfo
11798
+ * @throws {Error} If the payload is not a reader or valid buffer
11799
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11800
+ */
11801
+ ErrorInfo.decode = function decode(reader, length) {
11802
+ if (!(reader instanceof $Reader))
11803
+ reader = $Reader.create(reader);
11804
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.ErrorInfo(), key, value;
11805
+ while (reader.pos < end) {
11806
+ var tag = reader.uint32();
11807
+ switch (tag >>> 3) {
11808
+ case 1: {
11809
+ message.reason = reader.string();
11810
+ break;
11811
+ }
11812
+ case 2: {
11813
+ message.domain = reader.string();
11814
+ break;
11815
+ }
11816
+ case 3: {
11817
+ if (message.metadata === $util.emptyObject)
11818
+ message.metadata = {};
11819
+ var end2 = reader.uint32() + reader.pos;
11820
+ key = "";
11821
+ value = "";
11822
+ while (reader.pos < end2) {
11823
+ var tag2 = reader.uint32();
11824
+ switch (tag2 >>> 3) {
11825
+ case 1:
11826
+ key = reader.string();
11827
+ break;
11828
+ case 2:
11829
+ value = reader.string();
11830
+ break;
11831
+ default:
11832
+ reader.skipType(tag2 & 7);
11833
+ break;
11834
+ }
11835
+ }
11836
+ message.metadata[key] = value;
11837
+ break;
11838
+ }
11839
+ default:
11840
+ reader.skipType(tag & 7);
11841
+ break;
11842
+ }
11843
+ }
11844
+ return message;
11845
+ };
11846
+
11847
+ /**
11848
+ * Decodes an ErrorInfo message from the specified reader or buffer, length delimited.
11849
+ * @function decodeDelimited
11850
+ * @memberof google.rpc.ErrorInfo
11851
+ * @static
11852
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11853
+ * @returns {google.rpc.ErrorInfo} ErrorInfo
11854
+ * @throws {Error} If the payload is not a reader or valid buffer
11855
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11856
+ */
11857
+ ErrorInfo.decodeDelimited = function decodeDelimited(reader) {
11858
+ if (!(reader instanceof $Reader))
11859
+ reader = new $Reader(reader);
11860
+ return this.decode(reader, reader.uint32());
11861
+ };
11862
+
11863
+ /**
11864
+ * Verifies an ErrorInfo message.
11865
+ * @function verify
11866
+ * @memberof google.rpc.ErrorInfo
11867
+ * @static
11868
+ * @param {Object.<string,*>} message Plain object to verify
11869
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11870
+ */
11871
+ ErrorInfo.verify = function verify(message) {
11872
+ if (typeof message !== "object" || message === null)
11873
+ return "object expected";
11874
+ if (message.reason != null && message.hasOwnProperty("reason"))
11875
+ if (!$util.isString(message.reason))
11876
+ return "reason: string expected";
11877
+ if (message.domain != null && message.hasOwnProperty("domain"))
11878
+ if (!$util.isString(message.domain))
11879
+ return "domain: string expected";
11880
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
11881
+ if (!$util.isObject(message.metadata))
11882
+ return "metadata: object expected";
11883
+ var key = Object.keys(message.metadata);
11884
+ for (var i = 0; i < key.length; ++i)
11885
+ if (!$util.isString(message.metadata[key[i]]))
11886
+ return "metadata: string{k:string} expected";
11887
+ }
11888
+ return null;
11889
+ };
11890
+
11891
+ /**
11892
+ * Creates an ErrorInfo message from a plain object. Also converts values to their respective internal types.
11893
+ * @function fromObject
11894
+ * @memberof google.rpc.ErrorInfo
11895
+ * @static
11896
+ * @param {Object.<string,*>} object Plain object
11897
+ * @returns {google.rpc.ErrorInfo} ErrorInfo
11898
+ */
11899
+ ErrorInfo.fromObject = function fromObject(object) {
11900
+ if (object instanceof $root.google.rpc.ErrorInfo)
11901
+ return object;
11902
+ var message = new $root.google.rpc.ErrorInfo();
11903
+ if (object.reason != null)
11904
+ message.reason = String(object.reason);
11905
+ if (object.domain != null)
11906
+ message.domain = String(object.domain);
11907
+ if (object.metadata) {
11908
+ if (typeof object.metadata !== "object")
11909
+ throw TypeError(".google.rpc.ErrorInfo.metadata: object expected");
11910
+ message.metadata = {};
11911
+ for (var keys = Object.keys(object.metadata), i = 0; i < keys.length; ++i)
11912
+ message.metadata[keys[i]] = String(object.metadata[keys[i]]);
11913
+ }
11914
+ return message;
11915
+ };
11916
+
11917
+ /**
11918
+ * Creates a plain object from an ErrorInfo message. Also converts values to other types if specified.
11919
+ * @function toObject
11920
+ * @memberof google.rpc.ErrorInfo
11921
+ * @static
11922
+ * @param {google.rpc.ErrorInfo} message ErrorInfo
11923
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11924
+ * @returns {Object.<string,*>} Plain object
11925
+ */
11926
+ ErrorInfo.toObject = function toObject(message, options) {
11927
+ if (!options)
11928
+ options = {};
11929
+ var object = {};
11930
+ if (options.objects || options.defaults)
11931
+ object.metadata = {};
11932
+ if (options.defaults) {
11933
+ object.reason = "";
11934
+ object.domain = "";
11935
+ }
11936
+ if (message.reason != null && message.hasOwnProperty("reason"))
11937
+ object.reason = message.reason;
11938
+ if (message.domain != null && message.hasOwnProperty("domain"))
11939
+ object.domain = message.domain;
11940
+ var keys2;
11941
+ if (message.metadata && (keys2 = Object.keys(message.metadata)).length) {
11942
+ object.metadata = {};
11943
+ for (var j = 0; j < keys2.length; ++j)
11944
+ object.metadata[keys2[j]] = message.metadata[keys2[j]];
11945
+ }
11946
+ return object;
11947
+ };
11948
+
11949
+ /**
11950
+ * Converts this ErrorInfo to JSON.
11951
+ * @function toJSON
11952
+ * @memberof google.rpc.ErrorInfo
11953
+ * @instance
11954
+ * @returns {Object.<string,*>} JSON object
11955
+ */
11956
+ ErrorInfo.prototype.toJSON = function toJSON() {
11957
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11958
+ };
11959
+
11960
+ /**
11961
+ * Gets the default type url for ErrorInfo
11962
+ * @function getTypeUrl
11963
+ * @memberof google.rpc.ErrorInfo
11964
+ * @static
11965
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11966
+ * @returns {string} The default type url
11967
+ */
11968
+ ErrorInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11969
+ if (typeUrlPrefix === undefined) {
11970
+ typeUrlPrefix = "type.googleapis.com";
11971
+ }
11972
+ return typeUrlPrefix + "/google.rpc.ErrorInfo";
11973
+ };
11974
+
11975
+ return ErrorInfo;
11976
+ })();
11977
+
11448
11978
  rpc.RetryInfo = (function() {
11449
11979
 
11450
11980
  /**
@@ -12347,292 +12877,6 @@
12347
12877
  return QuotaFailure;
12348
12878
  })();
12349
12879
 
12350
- rpc.ErrorInfo = (function() {
12351
-
12352
- /**
12353
- * Properties of an ErrorInfo.
12354
- * @memberof google.rpc
12355
- * @interface IErrorInfo
12356
- * @property {string|null} [reason] ErrorInfo reason
12357
- * @property {string|null} [domain] ErrorInfo domain
12358
- * @property {Object.<string,string>|null} [metadata] ErrorInfo metadata
12359
- */
12360
-
12361
- /**
12362
- * Constructs a new ErrorInfo.
12363
- * @memberof google.rpc
12364
- * @classdesc Represents an ErrorInfo.
12365
- * @implements IErrorInfo
12366
- * @constructor
12367
- * @param {google.rpc.IErrorInfo=} [properties] Properties to set
12368
- */
12369
- function ErrorInfo(properties) {
12370
- this.metadata = {};
12371
- if (properties)
12372
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12373
- if (properties[keys[i]] != null)
12374
- this[keys[i]] = properties[keys[i]];
12375
- }
12376
-
12377
- /**
12378
- * ErrorInfo reason.
12379
- * @member {string} reason
12380
- * @memberof google.rpc.ErrorInfo
12381
- * @instance
12382
- */
12383
- ErrorInfo.prototype.reason = "";
12384
-
12385
- /**
12386
- * ErrorInfo domain.
12387
- * @member {string} domain
12388
- * @memberof google.rpc.ErrorInfo
12389
- * @instance
12390
- */
12391
- ErrorInfo.prototype.domain = "";
12392
-
12393
- /**
12394
- * ErrorInfo metadata.
12395
- * @member {Object.<string,string>} metadata
12396
- * @memberof google.rpc.ErrorInfo
12397
- * @instance
12398
- */
12399
- ErrorInfo.prototype.metadata = $util.emptyObject;
12400
-
12401
- /**
12402
- * Creates a new ErrorInfo instance using the specified properties.
12403
- * @function create
12404
- * @memberof google.rpc.ErrorInfo
12405
- * @static
12406
- * @param {google.rpc.IErrorInfo=} [properties] Properties to set
12407
- * @returns {google.rpc.ErrorInfo} ErrorInfo instance
12408
- */
12409
- ErrorInfo.create = function create(properties) {
12410
- return new ErrorInfo(properties);
12411
- };
12412
-
12413
- /**
12414
- * Encodes the specified ErrorInfo message. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
12415
- * @function encode
12416
- * @memberof google.rpc.ErrorInfo
12417
- * @static
12418
- * @param {google.rpc.IErrorInfo} message ErrorInfo message or plain object to encode
12419
- * @param {$protobuf.Writer} [writer] Writer to encode to
12420
- * @returns {$protobuf.Writer} Writer
12421
- */
12422
- ErrorInfo.encode = function encode(message, writer) {
12423
- if (!writer)
12424
- writer = $Writer.create();
12425
- if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
12426
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
12427
- if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
12428
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain);
12429
- if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
12430
- for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i)
12431
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim();
12432
- return writer;
12433
- };
12434
-
12435
- /**
12436
- * Encodes the specified ErrorInfo message, length delimited. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
12437
- * @function encodeDelimited
12438
- * @memberof google.rpc.ErrorInfo
12439
- * @static
12440
- * @param {google.rpc.IErrorInfo} message ErrorInfo message or plain object to encode
12441
- * @param {$protobuf.Writer} [writer] Writer to encode to
12442
- * @returns {$protobuf.Writer} Writer
12443
- */
12444
- ErrorInfo.encodeDelimited = function encodeDelimited(message, writer) {
12445
- return this.encode(message, writer).ldelim();
12446
- };
12447
-
12448
- /**
12449
- * Decodes an ErrorInfo message from the specified reader or buffer.
12450
- * @function decode
12451
- * @memberof google.rpc.ErrorInfo
12452
- * @static
12453
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12454
- * @param {number} [length] Message length if known beforehand
12455
- * @returns {google.rpc.ErrorInfo} ErrorInfo
12456
- * @throws {Error} If the payload is not a reader or valid buffer
12457
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12458
- */
12459
- ErrorInfo.decode = function decode(reader, length) {
12460
- if (!(reader instanceof $Reader))
12461
- reader = $Reader.create(reader);
12462
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.ErrorInfo(), key, value;
12463
- while (reader.pos < end) {
12464
- var tag = reader.uint32();
12465
- switch (tag >>> 3) {
12466
- case 1: {
12467
- message.reason = reader.string();
12468
- break;
12469
- }
12470
- case 2: {
12471
- message.domain = reader.string();
12472
- break;
12473
- }
12474
- case 3: {
12475
- if (message.metadata === $util.emptyObject)
12476
- message.metadata = {};
12477
- var end2 = reader.uint32() + reader.pos;
12478
- key = "";
12479
- value = "";
12480
- while (reader.pos < end2) {
12481
- var tag2 = reader.uint32();
12482
- switch (tag2 >>> 3) {
12483
- case 1:
12484
- key = reader.string();
12485
- break;
12486
- case 2:
12487
- value = reader.string();
12488
- break;
12489
- default:
12490
- reader.skipType(tag2 & 7);
12491
- break;
12492
- }
12493
- }
12494
- message.metadata[key] = value;
12495
- break;
12496
- }
12497
- default:
12498
- reader.skipType(tag & 7);
12499
- break;
12500
- }
12501
- }
12502
- return message;
12503
- };
12504
-
12505
- /**
12506
- * Decodes an ErrorInfo message from the specified reader or buffer, length delimited.
12507
- * @function decodeDelimited
12508
- * @memberof google.rpc.ErrorInfo
12509
- * @static
12510
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12511
- * @returns {google.rpc.ErrorInfo} ErrorInfo
12512
- * @throws {Error} If the payload is not a reader or valid buffer
12513
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12514
- */
12515
- ErrorInfo.decodeDelimited = function decodeDelimited(reader) {
12516
- if (!(reader instanceof $Reader))
12517
- reader = new $Reader(reader);
12518
- return this.decode(reader, reader.uint32());
12519
- };
12520
-
12521
- /**
12522
- * Verifies an ErrorInfo message.
12523
- * @function verify
12524
- * @memberof google.rpc.ErrorInfo
12525
- * @static
12526
- * @param {Object.<string,*>} message Plain object to verify
12527
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
12528
- */
12529
- ErrorInfo.verify = function verify(message) {
12530
- if (typeof message !== "object" || message === null)
12531
- return "object expected";
12532
- if (message.reason != null && message.hasOwnProperty("reason"))
12533
- if (!$util.isString(message.reason))
12534
- return "reason: string expected";
12535
- if (message.domain != null && message.hasOwnProperty("domain"))
12536
- if (!$util.isString(message.domain))
12537
- return "domain: string expected";
12538
- if (message.metadata != null && message.hasOwnProperty("metadata")) {
12539
- if (!$util.isObject(message.metadata))
12540
- return "metadata: object expected";
12541
- var key = Object.keys(message.metadata);
12542
- for (var i = 0; i < key.length; ++i)
12543
- if (!$util.isString(message.metadata[key[i]]))
12544
- return "metadata: string{k:string} expected";
12545
- }
12546
- return null;
12547
- };
12548
-
12549
- /**
12550
- * Creates an ErrorInfo message from a plain object. Also converts values to their respective internal types.
12551
- * @function fromObject
12552
- * @memberof google.rpc.ErrorInfo
12553
- * @static
12554
- * @param {Object.<string,*>} object Plain object
12555
- * @returns {google.rpc.ErrorInfo} ErrorInfo
12556
- */
12557
- ErrorInfo.fromObject = function fromObject(object) {
12558
- if (object instanceof $root.google.rpc.ErrorInfo)
12559
- return object;
12560
- var message = new $root.google.rpc.ErrorInfo();
12561
- if (object.reason != null)
12562
- message.reason = String(object.reason);
12563
- if (object.domain != null)
12564
- message.domain = String(object.domain);
12565
- if (object.metadata) {
12566
- if (typeof object.metadata !== "object")
12567
- throw TypeError(".google.rpc.ErrorInfo.metadata: object expected");
12568
- message.metadata = {};
12569
- for (var keys = Object.keys(object.metadata), i = 0; i < keys.length; ++i)
12570
- message.metadata[keys[i]] = String(object.metadata[keys[i]]);
12571
- }
12572
- return message;
12573
- };
12574
-
12575
- /**
12576
- * Creates a plain object from an ErrorInfo message. Also converts values to other types if specified.
12577
- * @function toObject
12578
- * @memberof google.rpc.ErrorInfo
12579
- * @static
12580
- * @param {google.rpc.ErrorInfo} message ErrorInfo
12581
- * @param {$protobuf.IConversionOptions} [options] Conversion options
12582
- * @returns {Object.<string,*>} Plain object
12583
- */
12584
- ErrorInfo.toObject = function toObject(message, options) {
12585
- if (!options)
12586
- options = {};
12587
- var object = {};
12588
- if (options.objects || options.defaults)
12589
- object.metadata = {};
12590
- if (options.defaults) {
12591
- object.reason = "";
12592
- object.domain = "";
12593
- }
12594
- if (message.reason != null && message.hasOwnProperty("reason"))
12595
- object.reason = message.reason;
12596
- if (message.domain != null && message.hasOwnProperty("domain"))
12597
- object.domain = message.domain;
12598
- var keys2;
12599
- if (message.metadata && (keys2 = Object.keys(message.metadata)).length) {
12600
- object.metadata = {};
12601
- for (var j = 0; j < keys2.length; ++j)
12602
- object.metadata[keys2[j]] = message.metadata[keys2[j]];
12603
- }
12604
- return object;
12605
- };
12606
-
12607
- /**
12608
- * Converts this ErrorInfo to JSON.
12609
- * @function toJSON
12610
- * @memberof google.rpc.ErrorInfo
12611
- * @instance
12612
- * @returns {Object.<string,*>} JSON object
12613
- */
12614
- ErrorInfo.prototype.toJSON = function toJSON() {
12615
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12616
- };
12617
-
12618
- /**
12619
- * Gets the default type url for ErrorInfo
12620
- * @function getTypeUrl
12621
- * @memberof google.rpc.ErrorInfo
12622
- * @static
12623
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12624
- * @returns {string} The default type url
12625
- */
12626
- ErrorInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12627
- if (typeUrlPrefix === undefined) {
12628
- typeUrlPrefix = "type.googleapis.com";
12629
- }
12630
- return typeUrlPrefix + "/google.rpc.ErrorInfo";
12631
- };
12632
-
12633
- return ErrorInfo;
12634
- })();
12635
-
12636
12880
  rpc.PreconditionFailure = (function() {
12637
12881
 
12638
12882
  /**
@@ -49107,6 +49351,3615 @@
49107
49351
  return CustomHttpPattern;
49108
49352
  })();
49109
49353
 
49354
+ api.CommonLanguageSettings = (function() {
49355
+
49356
+ /**
49357
+ * Properties of a CommonLanguageSettings.
49358
+ * @memberof google.api
49359
+ * @interface ICommonLanguageSettings
49360
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
49361
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
49362
+ */
49363
+
49364
+ /**
49365
+ * Constructs a new CommonLanguageSettings.
49366
+ * @memberof google.api
49367
+ * @classdesc Represents a CommonLanguageSettings.
49368
+ * @implements ICommonLanguageSettings
49369
+ * @constructor
49370
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
49371
+ */
49372
+ function CommonLanguageSettings(properties) {
49373
+ this.destinations = [];
49374
+ if (properties)
49375
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49376
+ if (properties[keys[i]] != null)
49377
+ this[keys[i]] = properties[keys[i]];
49378
+ }
49379
+
49380
+ /**
49381
+ * CommonLanguageSettings referenceDocsUri.
49382
+ * @member {string} referenceDocsUri
49383
+ * @memberof google.api.CommonLanguageSettings
49384
+ * @instance
49385
+ */
49386
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
49387
+
49388
+ /**
49389
+ * CommonLanguageSettings destinations.
49390
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
49391
+ * @memberof google.api.CommonLanguageSettings
49392
+ * @instance
49393
+ */
49394
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
49395
+
49396
+ /**
49397
+ * Creates a new CommonLanguageSettings instance using the specified properties.
49398
+ * @function create
49399
+ * @memberof google.api.CommonLanguageSettings
49400
+ * @static
49401
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
49402
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
49403
+ */
49404
+ CommonLanguageSettings.create = function create(properties) {
49405
+ return new CommonLanguageSettings(properties);
49406
+ };
49407
+
49408
+ /**
49409
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
49410
+ * @function encode
49411
+ * @memberof google.api.CommonLanguageSettings
49412
+ * @static
49413
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
49414
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49415
+ * @returns {$protobuf.Writer} Writer
49416
+ */
49417
+ CommonLanguageSettings.encode = function encode(message, writer) {
49418
+ if (!writer)
49419
+ writer = $Writer.create();
49420
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
49421
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
49422
+ if (message.destinations != null && message.destinations.length) {
49423
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
49424
+ for (var i = 0; i < message.destinations.length; ++i)
49425
+ writer.int32(message.destinations[i]);
49426
+ writer.ldelim();
49427
+ }
49428
+ return writer;
49429
+ };
49430
+
49431
+ /**
49432
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
49433
+ * @function encodeDelimited
49434
+ * @memberof google.api.CommonLanguageSettings
49435
+ * @static
49436
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
49437
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49438
+ * @returns {$protobuf.Writer} Writer
49439
+ */
49440
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
49441
+ return this.encode(message, writer).ldelim();
49442
+ };
49443
+
49444
+ /**
49445
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
49446
+ * @function decode
49447
+ * @memberof google.api.CommonLanguageSettings
49448
+ * @static
49449
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49450
+ * @param {number} [length] Message length if known beforehand
49451
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49452
+ * @throws {Error} If the payload is not a reader or valid buffer
49453
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49454
+ */
49455
+ CommonLanguageSettings.decode = function decode(reader, length) {
49456
+ if (!(reader instanceof $Reader))
49457
+ reader = $Reader.create(reader);
49458
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
49459
+ while (reader.pos < end) {
49460
+ var tag = reader.uint32();
49461
+ switch (tag >>> 3) {
49462
+ case 1: {
49463
+ message.referenceDocsUri = reader.string();
49464
+ break;
49465
+ }
49466
+ case 2: {
49467
+ if (!(message.destinations && message.destinations.length))
49468
+ message.destinations = [];
49469
+ if ((tag & 7) === 2) {
49470
+ var end2 = reader.uint32() + reader.pos;
49471
+ while (reader.pos < end2)
49472
+ message.destinations.push(reader.int32());
49473
+ } else
49474
+ message.destinations.push(reader.int32());
49475
+ break;
49476
+ }
49477
+ default:
49478
+ reader.skipType(tag & 7);
49479
+ break;
49480
+ }
49481
+ }
49482
+ return message;
49483
+ };
49484
+
49485
+ /**
49486
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
49487
+ * @function decodeDelimited
49488
+ * @memberof google.api.CommonLanguageSettings
49489
+ * @static
49490
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49491
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49492
+ * @throws {Error} If the payload is not a reader or valid buffer
49493
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49494
+ */
49495
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
49496
+ if (!(reader instanceof $Reader))
49497
+ reader = new $Reader(reader);
49498
+ return this.decode(reader, reader.uint32());
49499
+ };
49500
+
49501
+ /**
49502
+ * Verifies a CommonLanguageSettings message.
49503
+ * @function verify
49504
+ * @memberof google.api.CommonLanguageSettings
49505
+ * @static
49506
+ * @param {Object.<string,*>} message Plain object to verify
49507
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49508
+ */
49509
+ CommonLanguageSettings.verify = function verify(message) {
49510
+ if (typeof message !== "object" || message === null)
49511
+ return "object expected";
49512
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
49513
+ if (!$util.isString(message.referenceDocsUri))
49514
+ return "referenceDocsUri: string expected";
49515
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
49516
+ if (!Array.isArray(message.destinations))
49517
+ return "destinations: array expected";
49518
+ for (var i = 0; i < message.destinations.length; ++i)
49519
+ switch (message.destinations[i]) {
49520
+ default:
49521
+ return "destinations: enum value[] expected";
49522
+ case 0:
49523
+ case 10:
49524
+ case 20:
49525
+ break;
49526
+ }
49527
+ }
49528
+ return null;
49529
+ };
49530
+
49531
+ /**
49532
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
49533
+ * @function fromObject
49534
+ * @memberof google.api.CommonLanguageSettings
49535
+ * @static
49536
+ * @param {Object.<string,*>} object Plain object
49537
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49538
+ */
49539
+ CommonLanguageSettings.fromObject = function fromObject(object) {
49540
+ if (object instanceof $root.google.api.CommonLanguageSettings)
49541
+ return object;
49542
+ var message = new $root.google.api.CommonLanguageSettings();
49543
+ if (object.referenceDocsUri != null)
49544
+ message.referenceDocsUri = String(object.referenceDocsUri);
49545
+ if (object.destinations) {
49546
+ if (!Array.isArray(object.destinations))
49547
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
49548
+ message.destinations = [];
49549
+ for (var i = 0; i < object.destinations.length; ++i)
49550
+ switch (object.destinations[i]) {
49551
+ default:
49552
+ if (typeof object.destinations[i] === "number") {
49553
+ message.destinations[i] = object.destinations[i];
49554
+ break;
49555
+ }
49556
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
49557
+ case 0:
49558
+ message.destinations[i] = 0;
49559
+ break;
49560
+ case "GITHUB":
49561
+ case 10:
49562
+ message.destinations[i] = 10;
49563
+ break;
49564
+ case "PACKAGE_MANAGER":
49565
+ case 20:
49566
+ message.destinations[i] = 20;
49567
+ break;
49568
+ }
49569
+ }
49570
+ return message;
49571
+ };
49572
+
49573
+ /**
49574
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
49575
+ * @function toObject
49576
+ * @memberof google.api.CommonLanguageSettings
49577
+ * @static
49578
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
49579
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49580
+ * @returns {Object.<string,*>} Plain object
49581
+ */
49582
+ CommonLanguageSettings.toObject = function toObject(message, options) {
49583
+ if (!options)
49584
+ options = {};
49585
+ var object = {};
49586
+ if (options.arrays || options.defaults)
49587
+ object.destinations = [];
49588
+ if (options.defaults)
49589
+ object.referenceDocsUri = "";
49590
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
49591
+ object.referenceDocsUri = message.referenceDocsUri;
49592
+ if (message.destinations && message.destinations.length) {
49593
+ object.destinations = [];
49594
+ for (var j = 0; j < message.destinations.length; ++j)
49595
+ 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];
49596
+ }
49597
+ return object;
49598
+ };
49599
+
49600
+ /**
49601
+ * Converts this CommonLanguageSettings to JSON.
49602
+ * @function toJSON
49603
+ * @memberof google.api.CommonLanguageSettings
49604
+ * @instance
49605
+ * @returns {Object.<string,*>} JSON object
49606
+ */
49607
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
49608
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49609
+ };
49610
+
49611
+ /**
49612
+ * Gets the default type url for CommonLanguageSettings
49613
+ * @function getTypeUrl
49614
+ * @memberof google.api.CommonLanguageSettings
49615
+ * @static
49616
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
49617
+ * @returns {string} The default type url
49618
+ */
49619
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
49620
+ if (typeUrlPrefix === undefined) {
49621
+ typeUrlPrefix = "type.googleapis.com";
49622
+ }
49623
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
49624
+ };
49625
+
49626
+ return CommonLanguageSettings;
49627
+ })();
49628
+
49629
+ api.ClientLibrarySettings = (function() {
49630
+
49631
+ /**
49632
+ * Properties of a ClientLibrarySettings.
49633
+ * @memberof google.api
49634
+ * @interface IClientLibrarySettings
49635
+ * @property {string|null} [version] ClientLibrarySettings version
49636
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
49637
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
49638
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
49639
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
49640
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
49641
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
49642
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
49643
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
49644
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
49645
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
49646
+ */
49647
+
49648
+ /**
49649
+ * Constructs a new ClientLibrarySettings.
49650
+ * @memberof google.api
49651
+ * @classdesc Represents a ClientLibrarySettings.
49652
+ * @implements IClientLibrarySettings
49653
+ * @constructor
49654
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
49655
+ */
49656
+ function ClientLibrarySettings(properties) {
49657
+ if (properties)
49658
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49659
+ if (properties[keys[i]] != null)
49660
+ this[keys[i]] = properties[keys[i]];
49661
+ }
49662
+
49663
+ /**
49664
+ * ClientLibrarySettings version.
49665
+ * @member {string} version
49666
+ * @memberof google.api.ClientLibrarySettings
49667
+ * @instance
49668
+ */
49669
+ ClientLibrarySettings.prototype.version = "";
49670
+
49671
+ /**
49672
+ * ClientLibrarySettings launchStage.
49673
+ * @member {google.api.LaunchStage} launchStage
49674
+ * @memberof google.api.ClientLibrarySettings
49675
+ * @instance
49676
+ */
49677
+ ClientLibrarySettings.prototype.launchStage = 0;
49678
+
49679
+ /**
49680
+ * ClientLibrarySettings restNumericEnums.
49681
+ * @member {boolean} restNumericEnums
49682
+ * @memberof google.api.ClientLibrarySettings
49683
+ * @instance
49684
+ */
49685
+ ClientLibrarySettings.prototype.restNumericEnums = false;
49686
+
49687
+ /**
49688
+ * ClientLibrarySettings javaSettings.
49689
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
49690
+ * @memberof google.api.ClientLibrarySettings
49691
+ * @instance
49692
+ */
49693
+ ClientLibrarySettings.prototype.javaSettings = null;
49694
+
49695
+ /**
49696
+ * ClientLibrarySettings cppSettings.
49697
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
49698
+ * @memberof google.api.ClientLibrarySettings
49699
+ * @instance
49700
+ */
49701
+ ClientLibrarySettings.prototype.cppSettings = null;
49702
+
49703
+ /**
49704
+ * ClientLibrarySettings phpSettings.
49705
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
49706
+ * @memberof google.api.ClientLibrarySettings
49707
+ * @instance
49708
+ */
49709
+ ClientLibrarySettings.prototype.phpSettings = null;
49710
+
49711
+ /**
49712
+ * ClientLibrarySettings pythonSettings.
49713
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
49714
+ * @memberof google.api.ClientLibrarySettings
49715
+ * @instance
49716
+ */
49717
+ ClientLibrarySettings.prototype.pythonSettings = null;
49718
+
49719
+ /**
49720
+ * ClientLibrarySettings nodeSettings.
49721
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
49722
+ * @memberof google.api.ClientLibrarySettings
49723
+ * @instance
49724
+ */
49725
+ ClientLibrarySettings.prototype.nodeSettings = null;
49726
+
49727
+ /**
49728
+ * ClientLibrarySettings dotnetSettings.
49729
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
49730
+ * @memberof google.api.ClientLibrarySettings
49731
+ * @instance
49732
+ */
49733
+ ClientLibrarySettings.prototype.dotnetSettings = null;
49734
+
49735
+ /**
49736
+ * ClientLibrarySettings rubySettings.
49737
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
49738
+ * @memberof google.api.ClientLibrarySettings
49739
+ * @instance
49740
+ */
49741
+ ClientLibrarySettings.prototype.rubySettings = null;
49742
+
49743
+ /**
49744
+ * ClientLibrarySettings goSettings.
49745
+ * @member {google.api.IGoSettings|null|undefined} goSettings
49746
+ * @memberof google.api.ClientLibrarySettings
49747
+ * @instance
49748
+ */
49749
+ ClientLibrarySettings.prototype.goSettings = null;
49750
+
49751
+ /**
49752
+ * Creates a new ClientLibrarySettings instance using the specified properties.
49753
+ * @function create
49754
+ * @memberof google.api.ClientLibrarySettings
49755
+ * @static
49756
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
49757
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
49758
+ */
49759
+ ClientLibrarySettings.create = function create(properties) {
49760
+ return new ClientLibrarySettings(properties);
49761
+ };
49762
+
49763
+ /**
49764
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
49765
+ * @function encode
49766
+ * @memberof google.api.ClientLibrarySettings
49767
+ * @static
49768
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
49769
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49770
+ * @returns {$protobuf.Writer} Writer
49771
+ */
49772
+ ClientLibrarySettings.encode = function encode(message, writer) {
49773
+ if (!writer)
49774
+ writer = $Writer.create();
49775
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
49776
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
49777
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
49778
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
49779
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
49780
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
49781
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
49782
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
49783
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
49784
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
49785
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
49786
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
49787
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
49788
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
49789
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
49790
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
49791
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
49792
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
49793
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
49794
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
49795
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
49796
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
49797
+ return writer;
49798
+ };
49799
+
49800
+ /**
49801
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
49802
+ * @function encodeDelimited
49803
+ * @memberof google.api.ClientLibrarySettings
49804
+ * @static
49805
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
49806
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49807
+ * @returns {$protobuf.Writer} Writer
49808
+ */
49809
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
49810
+ return this.encode(message, writer).ldelim();
49811
+ };
49812
+
49813
+ /**
49814
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
49815
+ * @function decode
49816
+ * @memberof google.api.ClientLibrarySettings
49817
+ * @static
49818
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49819
+ * @param {number} [length] Message length if known beforehand
49820
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
49821
+ * @throws {Error} If the payload is not a reader or valid buffer
49822
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49823
+ */
49824
+ ClientLibrarySettings.decode = function decode(reader, length) {
49825
+ if (!(reader instanceof $Reader))
49826
+ reader = $Reader.create(reader);
49827
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
49828
+ while (reader.pos < end) {
49829
+ var tag = reader.uint32();
49830
+ switch (tag >>> 3) {
49831
+ case 1: {
49832
+ message.version = reader.string();
49833
+ break;
49834
+ }
49835
+ case 2: {
49836
+ message.launchStage = reader.int32();
49837
+ break;
49838
+ }
49839
+ case 3: {
49840
+ message.restNumericEnums = reader.bool();
49841
+ break;
49842
+ }
49843
+ case 21: {
49844
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
49845
+ break;
49846
+ }
49847
+ case 22: {
49848
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
49849
+ break;
49850
+ }
49851
+ case 23: {
49852
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
49853
+ break;
49854
+ }
49855
+ case 24: {
49856
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
49857
+ break;
49858
+ }
49859
+ case 25: {
49860
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
49861
+ break;
49862
+ }
49863
+ case 26: {
49864
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
49865
+ break;
49866
+ }
49867
+ case 27: {
49868
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
49869
+ break;
49870
+ }
49871
+ case 28: {
49872
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
49873
+ break;
49874
+ }
49875
+ default:
49876
+ reader.skipType(tag & 7);
49877
+ break;
49878
+ }
49879
+ }
49880
+ return message;
49881
+ };
49882
+
49883
+ /**
49884
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
49885
+ * @function decodeDelimited
49886
+ * @memberof google.api.ClientLibrarySettings
49887
+ * @static
49888
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49889
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
49890
+ * @throws {Error} If the payload is not a reader or valid buffer
49891
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49892
+ */
49893
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
49894
+ if (!(reader instanceof $Reader))
49895
+ reader = new $Reader(reader);
49896
+ return this.decode(reader, reader.uint32());
49897
+ };
49898
+
49899
+ /**
49900
+ * Verifies a ClientLibrarySettings message.
49901
+ * @function verify
49902
+ * @memberof google.api.ClientLibrarySettings
49903
+ * @static
49904
+ * @param {Object.<string,*>} message Plain object to verify
49905
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49906
+ */
49907
+ ClientLibrarySettings.verify = function verify(message) {
49908
+ if (typeof message !== "object" || message === null)
49909
+ return "object expected";
49910
+ if (message.version != null && message.hasOwnProperty("version"))
49911
+ if (!$util.isString(message.version))
49912
+ return "version: string expected";
49913
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
49914
+ switch (message.launchStage) {
49915
+ default:
49916
+ return "launchStage: enum value expected";
49917
+ case 0:
49918
+ case 6:
49919
+ case 7:
49920
+ case 1:
49921
+ case 2:
49922
+ case 3:
49923
+ case 4:
49924
+ case 5:
49925
+ break;
49926
+ }
49927
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
49928
+ if (typeof message.restNumericEnums !== "boolean")
49929
+ return "restNumericEnums: boolean expected";
49930
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
49931
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
49932
+ if (error)
49933
+ return "javaSettings." + error;
49934
+ }
49935
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
49936
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
49937
+ if (error)
49938
+ return "cppSettings." + error;
49939
+ }
49940
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
49941
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
49942
+ if (error)
49943
+ return "phpSettings." + error;
49944
+ }
49945
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
49946
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
49947
+ if (error)
49948
+ return "pythonSettings." + error;
49949
+ }
49950
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
49951
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
49952
+ if (error)
49953
+ return "nodeSettings." + error;
49954
+ }
49955
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
49956
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
49957
+ if (error)
49958
+ return "dotnetSettings." + error;
49959
+ }
49960
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
49961
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
49962
+ if (error)
49963
+ return "rubySettings." + error;
49964
+ }
49965
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
49966
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
49967
+ if (error)
49968
+ return "goSettings." + error;
49969
+ }
49970
+ return null;
49971
+ };
49972
+
49973
+ /**
49974
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
49975
+ * @function fromObject
49976
+ * @memberof google.api.ClientLibrarySettings
49977
+ * @static
49978
+ * @param {Object.<string,*>} object Plain object
49979
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
49980
+ */
49981
+ ClientLibrarySettings.fromObject = function fromObject(object) {
49982
+ if (object instanceof $root.google.api.ClientLibrarySettings)
49983
+ return object;
49984
+ var message = new $root.google.api.ClientLibrarySettings();
49985
+ if (object.version != null)
49986
+ message.version = String(object.version);
49987
+ switch (object.launchStage) {
49988
+ default:
49989
+ if (typeof object.launchStage === "number") {
49990
+ message.launchStage = object.launchStage;
49991
+ break;
49992
+ }
49993
+ break;
49994
+ case "LAUNCH_STAGE_UNSPECIFIED":
49995
+ case 0:
49996
+ message.launchStage = 0;
49997
+ break;
49998
+ case "UNIMPLEMENTED":
49999
+ case 6:
50000
+ message.launchStage = 6;
50001
+ break;
50002
+ case "PRELAUNCH":
50003
+ case 7:
50004
+ message.launchStage = 7;
50005
+ break;
50006
+ case "EARLY_ACCESS":
50007
+ case 1:
50008
+ message.launchStage = 1;
50009
+ break;
50010
+ case "ALPHA":
50011
+ case 2:
50012
+ message.launchStage = 2;
50013
+ break;
50014
+ case "BETA":
50015
+ case 3:
50016
+ message.launchStage = 3;
50017
+ break;
50018
+ case "GA":
50019
+ case 4:
50020
+ message.launchStage = 4;
50021
+ break;
50022
+ case "DEPRECATED":
50023
+ case 5:
50024
+ message.launchStage = 5;
50025
+ break;
50026
+ }
50027
+ if (object.restNumericEnums != null)
50028
+ message.restNumericEnums = Boolean(object.restNumericEnums);
50029
+ if (object.javaSettings != null) {
50030
+ if (typeof object.javaSettings !== "object")
50031
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
50032
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
50033
+ }
50034
+ if (object.cppSettings != null) {
50035
+ if (typeof object.cppSettings !== "object")
50036
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
50037
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
50038
+ }
50039
+ if (object.phpSettings != null) {
50040
+ if (typeof object.phpSettings !== "object")
50041
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
50042
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
50043
+ }
50044
+ if (object.pythonSettings != null) {
50045
+ if (typeof object.pythonSettings !== "object")
50046
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
50047
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
50048
+ }
50049
+ if (object.nodeSettings != null) {
50050
+ if (typeof object.nodeSettings !== "object")
50051
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
50052
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
50053
+ }
50054
+ if (object.dotnetSettings != null) {
50055
+ if (typeof object.dotnetSettings !== "object")
50056
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
50057
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
50058
+ }
50059
+ if (object.rubySettings != null) {
50060
+ if (typeof object.rubySettings !== "object")
50061
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
50062
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
50063
+ }
50064
+ if (object.goSettings != null) {
50065
+ if (typeof object.goSettings !== "object")
50066
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
50067
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
50068
+ }
50069
+ return message;
50070
+ };
50071
+
50072
+ /**
50073
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
50074
+ * @function toObject
50075
+ * @memberof google.api.ClientLibrarySettings
50076
+ * @static
50077
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
50078
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50079
+ * @returns {Object.<string,*>} Plain object
50080
+ */
50081
+ ClientLibrarySettings.toObject = function toObject(message, options) {
50082
+ if (!options)
50083
+ options = {};
50084
+ var object = {};
50085
+ if (options.defaults) {
50086
+ object.version = "";
50087
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
50088
+ object.restNumericEnums = false;
50089
+ object.javaSettings = null;
50090
+ object.cppSettings = null;
50091
+ object.phpSettings = null;
50092
+ object.pythonSettings = null;
50093
+ object.nodeSettings = null;
50094
+ object.dotnetSettings = null;
50095
+ object.rubySettings = null;
50096
+ object.goSettings = null;
50097
+ }
50098
+ if (message.version != null && message.hasOwnProperty("version"))
50099
+ object.version = message.version;
50100
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
50101
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
50102
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
50103
+ object.restNumericEnums = message.restNumericEnums;
50104
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
50105
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
50106
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
50107
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
50108
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
50109
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
50110
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
50111
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
50112
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
50113
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
50114
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
50115
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
50116
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
50117
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
50118
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
50119
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
50120
+ return object;
50121
+ };
50122
+
50123
+ /**
50124
+ * Converts this ClientLibrarySettings to JSON.
50125
+ * @function toJSON
50126
+ * @memberof google.api.ClientLibrarySettings
50127
+ * @instance
50128
+ * @returns {Object.<string,*>} JSON object
50129
+ */
50130
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
50131
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50132
+ };
50133
+
50134
+ /**
50135
+ * Gets the default type url for ClientLibrarySettings
50136
+ * @function getTypeUrl
50137
+ * @memberof google.api.ClientLibrarySettings
50138
+ * @static
50139
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50140
+ * @returns {string} The default type url
50141
+ */
50142
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50143
+ if (typeUrlPrefix === undefined) {
50144
+ typeUrlPrefix = "type.googleapis.com";
50145
+ }
50146
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
50147
+ };
50148
+
50149
+ return ClientLibrarySettings;
50150
+ })();
50151
+
50152
+ api.Publishing = (function() {
50153
+
50154
+ /**
50155
+ * Properties of a Publishing.
50156
+ * @memberof google.api
50157
+ * @interface IPublishing
50158
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
50159
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
50160
+ * @property {string|null} [documentationUri] Publishing documentationUri
50161
+ * @property {string|null} [apiShortName] Publishing apiShortName
50162
+ * @property {string|null} [githubLabel] Publishing githubLabel
50163
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
50164
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
50165
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
50166
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
50167
+ */
50168
+
50169
+ /**
50170
+ * Constructs a new Publishing.
50171
+ * @memberof google.api
50172
+ * @classdesc Represents a Publishing.
50173
+ * @implements IPublishing
50174
+ * @constructor
50175
+ * @param {google.api.IPublishing=} [properties] Properties to set
50176
+ */
50177
+ function Publishing(properties) {
50178
+ this.methodSettings = [];
50179
+ this.codeownerGithubTeams = [];
50180
+ this.librarySettings = [];
50181
+ if (properties)
50182
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50183
+ if (properties[keys[i]] != null)
50184
+ this[keys[i]] = properties[keys[i]];
50185
+ }
50186
+
50187
+ /**
50188
+ * Publishing methodSettings.
50189
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
50190
+ * @memberof google.api.Publishing
50191
+ * @instance
50192
+ */
50193
+ Publishing.prototype.methodSettings = $util.emptyArray;
50194
+
50195
+ /**
50196
+ * Publishing newIssueUri.
50197
+ * @member {string} newIssueUri
50198
+ * @memberof google.api.Publishing
50199
+ * @instance
50200
+ */
50201
+ Publishing.prototype.newIssueUri = "";
50202
+
50203
+ /**
50204
+ * Publishing documentationUri.
50205
+ * @member {string} documentationUri
50206
+ * @memberof google.api.Publishing
50207
+ * @instance
50208
+ */
50209
+ Publishing.prototype.documentationUri = "";
50210
+
50211
+ /**
50212
+ * Publishing apiShortName.
50213
+ * @member {string} apiShortName
50214
+ * @memberof google.api.Publishing
50215
+ * @instance
50216
+ */
50217
+ Publishing.prototype.apiShortName = "";
50218
+
50219
+ /**
50220
+ * Publishing githubLabel.
50221
+ * @member {string} githubLabel
50222
+ * @memberof google.api.Publishing
50223
+ * @instance
50224
+ */
50225
+ Publishing.prototype.githubLabel = "";
50226
+
50227
+ /**
50228
+ * Publishing codeownerGithubTeams.
50229
+ * @member {Array.<string>} codeownerGithubTeams
50230
+ * @memberof google.api.Publishing
50231
+ * @instance
50232
+ */
50233
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
50234
+
50235
+ /**
50236
+ * Publishing docTagPrefix.
50237
+ * @member {string} docTagPrefix
50238
+ * @memberof google.api.Publishing
50239
+ * @instance
50240
+ */
50241
+ Publishing.prototype.docTagPrefix = "";
50242
+
50243
+ /**
50244
+ * Publishing organization.
50245
+ * @member {google.api.ClientLibraryOrganization} organization
50246
+ * @memberof google.api.Publishing
50247
+ * @instance
50248
+ */
50249
+ Publishing.prototype.organization = 0;
50250
+
50251
+ /**
50252
+ * Publishing librarySettings.
50253
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
50254
+ * @memberof google.api.Publishing
50255
+ * @instance
50256
+ */
50257
+ Publishing.prototype.librarySettings = $util.emptyArray;
50258
+
50259
+ /**
50260
+ * Creates a new Publishing instance using the specified properties.
50261
+ * @function create
50262
+ * @memberof google.api.Publishing
50263
+ * @static
50264
+ * @param {google.api.IPublishing=} [properties] Properties to set
50265
+ * @returns {google.api.Publishing} Publishing instance
50266
+ */
50267
+ Publishing.create = function create(properties) {
50268
+ return new Publishing(properties);
50269
+ };
50270
+
50271
+ /**
50272
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
50273
+ * @function encode
50274
+ * @memberof google.api.Publishing
50275
+ * @static
50276
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
50277
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50278
+ * @returns {$protobuf.Writer} Writer
50279
+ */
50280
+ Publishing.encode = function encode(message, writer) {
50281
+ if (!writer)
50282
+ writer = $Writer.create();
50283
+ if (message.methodSettings != null && message.methodSettings.length)
50284
+ for (var i = 0; i < message.methodSettings.length; ++i)
50285
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50286
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
50287
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
50288
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
50289
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
50290
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
50291
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
50292
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
50293
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
50294
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
50295
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
50296
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
50297
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
50298
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
50299
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
50300
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
50301
+ if (message.librarySettings != null && message.librarySettings.length)
50302
+ for (var i = 0; i < message.librarySettings.length; ++i)
50303
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
50304
+ return writer;
50305
+ };
50306
+
50307
+ /**
50308
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
50309
+ * @function encodeDelimited
50310
+ * @memberof google.api.Publishing
50311
+ * @static
50312
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
50313
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50314
+ * @returns {$protobuf.Writer} Writer
50315
+ */
50316
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
50317
+ return this.encode(message, writer).ldelim();
50318
+ };
50319
+
50320
+ /**
50321
+ * Decodes a Publishing message from the specified reader or buffer.
50322
+ * @function decode
50323
+ * @memberof google.api.Publishing
50324
+ * @static
50325
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50326
+ * @param {number} [length] Message length if known beforehand
50327
+ * @returns {google.api.Publishing} Publishing
50328
+ * @throws {Error} If the payload is not a reader or valid buffer
50329
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50330
+ */
50331
+ Publishing.decode = function decode(reader, length) {
50332
+ if (!(reader instanceof $Reader))
50333
+ reader = $Reader.create(reader);
50334
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
50335
+ while (reader.pos < end) {
50336
+ var tag = reader.uint32();
50337
+ switch (tag >>> 3) {
50338
+ case 2: {
50339
+ if (!(message.methodSettings && message.methodSettings.length))
50340
+ message.methodSettings = [];
50341
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
50342
+ break;
50343
+ }
50344
+ case 101: {
50345
+ message.newIssueUri = reader.string();
50346
+ break;
50347
+ }
50348
+ case 102: {
50349
+ message.documentationUri = reader.string();
50350
+ break;
50351
+ }
50352
+ case 103: {
50353
+ message.apiShortName = reader.string();
50354
+ break;
50355
+ }
50356
+ case 104: {
50357
+ message.githubLabel = reader.string();
50358
+ break;
50359
+ }
50360
+ case 105: {
50361
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
50362
+ message.codeownerGithubTeams = [];
50363
+ message.codeownerGithubTeams.push(reader.string());
50364
+ break;
50365
+ }
50366
+ case 106: {
50367
+ message.docTagPrefix = reader.string();
50368
+ break;
50369
+ }
50370
+ case 107: {
50371
+ message.organization = reader.int32();
50372
+ break;
50373
+ }
50374
+ case 109: {
50375
+ if (!(message.librarySettings && message.librarySettings.length))
50376
+ message.librarySettings = [];
50377
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
50378
+ break;
50379
+ }
50380
+ default:
50381
+ reader.skipType(tag & 7);
50382
+ break;
50383
+ }
50384
+ }
50385
+ return message;
50386
+ };
50387
+
50388
+ /**
50389
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
50390
+ * @function decodeDelimited
50391
+ * @memberof google.api.Publishing
50392
+ * @static
50393
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50394
+ * @returns {google.api.Publishing} Publishing
50395
+ * @throws {Error} If the payload is not a reader or valid buffer
50396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50397
+ */
50398
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
50399
+ if (!(reader instanceof $Reader))
50400
+ reader = new $Reader(reader);
50401
+ return this.decode(reader, reader.uint32());
50402
+ };
50403
+
50404
+ /**
50405
+ * Verifies a Publishing message.
50406
+ * @function verify
50407
+ * @memberof google.api.Publishing
50408
+ * @static
50409
+ * @param {Object.<string,*>} message Plain object to verify
50410
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50411
+ */
50412
+ Publishing.verify = function verify(message) {
50413
+ if (typeof message !== "object" || message === null)
50414
+ return "object expected";
50415
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
50416
+ if (!Array.isArray(message.methodSettings))
50417
+ return "methodSettings: array expected";
50418
+ for (var i = 0; i < message.methodSettings.length; ++i) {
50419
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
50420
+ if (error)
50421
+ return "methodSettings." + error;
50422
+ }
50423
+ }
50424
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
50425
+ if (!$util.isString(message.newIssueUri))
50426
+ return "newIssueUri: string expected";
50427
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
50428
+ if (!$util.isString(message.documentationUri))
50429
+ return "documentationUri: string expected";
50430
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
50431
+ if (!$util.isString(message.apiShortName))
50432
+ return "apiShortName: string expected";
50433
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
50434
+ if (!$util.isString(message.githubLabel))
50435
+ return "githubLabel: string expected";
50436
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
50437
+ if (!Array.isArray(message.codeownerGithubTeams))
50438
+ return "codeownerGithubTeams: array expected";
50439
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
50440
+ if (!$util.isString(message.codeownerGithubTeams[i]))
50441
+ return "codeownerGithubTeams: string[] expected";
50442
+ }
50443
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
50444
+ if (!$util.isString(message.docTagPrefix))
50445
+ return "docTagPrefix: string expected";
50446
+ if (message.organization != null && message.hasOwnProperty("organization"))
50447
+ switch (message.organization) {
50448
+ default:
50449
+ return "organization: enum value expected";
50450
+ case 0:
50451
+ case 1:
50452
+ case 2:
50453
+ case 3:
50454
+ case 4:
50455
+ break;
50456
+ }
50457
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
50458
+ if (!Array.isArray(message.librarySettings))
50459
+ return "librarySettings: array expected";
50460
+ for (var i = 0; i < message.librarySettings.length; ++i) {
50461
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
50462
+ if (error)
50463
+ return "librarySettings." + error;
50464
+ }
50465
+ }
50466
+ return null;
50467
+ };
50468
+
50469
+ /**
50470
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
50471
+ * @function fromObject
50472
+ * @memberof google.api.Publishing
50473
+ * @static
50474
+ * @param {Object.<string,*>} object Plain object
50475
+ * @returns {google.api.Publishing} Publishing
50476
+ */
50477
+ Publishing.fromObject = function fromObject(object) {
50478
+ if (object instanceof $root.google.api.Publishing)
50479
+ return object;
50480
+ var message = new $root.google.api.Publishing();
50481
+ if (object.methodSettings) {
50482
+ if (!Array.isArray(object.methodSettings))
50483
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
50484
+ message.methodSettings = [];
50485
+ for (var i = 0; i < object.methodSettings.length; ++i) {
50486
+ if (typeof object.methodSettings[i] !== "object")
50487
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
50488
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
50489
+ }
50490
+ }
50491
+ if (object.newIssueUri != null)
50492
+ message.newIssueUri = String(object.newIssueUri);
50493
+ if (object.documentationUri != null)
50494
+ message.documentationUri = String(object.documentationUri);
50495
+ if (object.apiShortName != null)
50496
+ message.apiShortName = String(object.apiShortName);
50497
+ if (object.githubLabel != null)
50498
+ message.githubLabel = String(object.githubLabel);
50499
+ if (object.codeownerGithubTeams) {
50500
+ if (!Array.isArray(object.codeownerGithubTeams))
50501
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
50502
+ message.codeownerGithubTeams = [];
50503
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
50504
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
50505
+ }
50506
+ if (object.docTagPrefix != null)
50507
+ message.docTagPrefix = String(object.docTagPrefix);
50508
+ switch (object.organization) {
50509
+ default:
50510
+ if (typeof object.organization === "number") {
50511
+ message.organization = object.organization;
50512
+ break;
50513
+ }
50514
+ break;
50515
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
50516
+ case 0:
50517
+ message.organization = 0;
50518
+ break;
50519
+ case "CLOUD":
50520
+ case 1:
50521
+ message.organization = 1;
50522
+ break;
50523
+ case "ADS":
50524
+ case 2:
50525
+ message.organization = 2;
50526
+ break;
50527
+ case "PHOTOS":
50528
+ case 3:
50529
+ message.organization = 3;
50530
+ break;
50531
+ case "STREET_VIEW":
50532
+ case 4:
50533
+ message.organization = 4;
50534
+ break;
50535
+ }
50536
+ if (object.librarySettings) {
50537
+ if (!Array.isArray(object.librarySettings))
50538
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
50539
+ message.librarySettings = [];
50540
+ for (var i = 0; i < object.librarySettings.length; ++i) {
50541
+ if (typeof object.librarySettings[i] !== "object")
50542
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
50543
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
50544
+ }
50545
+ }
50546
+ return message;
50547
+ };
50548
+
50549
+ /**
50550
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
50551
+ * @function toObject
50552
+ * @memberof google.api.Publishing
50553
+ * @static
50554
+ * @param {google.api.Publishing} message Publishing
50555
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50556
+ * @returns {Object.<string,*>} Plain object
50557
+ */
50558
+ Publishing.toObject = function toObject(message, options) {
50559
+ if (!options)
50560
+ options = {};
50561
+ var object = {};
50562
+ if (options.arrays || options.defaults) {
50563
+ object.methodSettings = [];
50564
+ object.codeownerGithubTeams = [];
50565
+ object.librarySettings = [];
50566
+ }
50567
+ if (options.defaults) {
50568
+ object.newIssueUri = "";
50569
+ object.documentationUri = "";
50570
+ object.apiShortName = "";
50571
+ object.githubLabel = "";
50572
+ object.docTagPrefix = "";
50573
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
50574
+ }
50575
+ if (message.methodSettings && message.methodSettings.length) {
50576
+ object.methodSettings = [];
50577
+ for (var j = 0; j < message.methodSettings.length; ++j)
50578
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
50579
+ }
50580
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
50581
+ object.newIssueUri = message.newIssueUri;
50582
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
50583
+ object.documentationUri = message.documentationUri;
50584
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
50585
+ object.apiShortName = message.apiShortName;
50586
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
50587
+ object.githubLabel = message.githubLabel;
50588
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
50589
+ object.codeownerGithubTeams = [];
50590
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
50591
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
50592
+ }
50593
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
50594
+ object.docTagPrefix = message.docTagPrefix;
50595
+ if (message.organization != null && message.hasOwnProperty("organization"))
50596
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
50597
+ if (message.librarySettings && message.librarySettings.length) {
50598
+ object.librarySettings = [];
50599
+ for (var j = 0; j < message.librarySettings.length; ++j)
50600
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
50601
+ }
50602
+ return object;
50603
+ };
50604
+
50605
+ /**
50606
+ * Converts this Publishing to JSON.
50607
+ * @function toJSON
50608
+ * @memberof google.api.Publishing
50609
+ * @instance
50610
+ * @returns {Object.<string,*>} JSON object
50611
+ */
50612
+ Publishing.prototype.toJSON = function toJSON() {
50613
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50614
+ };
50615
+
50616
+ /**
50617
+ * Gets the default type url for Publishing
50618
+ * @function getTypeUrl
50619
+ * @memberof google.api.Publishing
50620
+ * @static
50621
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50622
+ * @returns {string} The default type url
50623
+ */
50624
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50625
+ if (typeUrlPrefix === undefined) {
50626
+ typeUrlPrefix = "type.googleapis.com";
50627
+ }
50628
+ return typeUrlPrefix + "/google.api.Publishing";
50629
+ };
50630
+
50631
+ return Publishing;
50632
+ })();
50633
+
50634
+ api.JavaSettings = (function() {
50635
+
50636
+ /**
50637
+ * Properties of a JavaSettings.
50638
+ * @memberof google.api
50639
+ * @interface IJavaSettings
50640
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
50641
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
50642
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
50643
+ */
50644
+
50645
+ /**
50646
+ * Constructs a new JavaSettings.
50647
+ * @memberof google.api
50648
+ * @classdesc Represents a JavaSettings.
50649
+ * @implements IJavaSettings
50650
+ * @constructor
50651
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
50652
+ */
50653
+ function JavaSettings(properties) {
50654
+ this.serviceClassNames = {};
50655
+ if (properties)
50656
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50657
+ if (properties[keys[i]] != null)
50658
+ this[keys[i]] = properties[keys[i]];
50659
+ }
50660
+
50661
+ /**
50662
+ * JavaSettings libraryPackage.
50663
+ * @member {string} libraryPackage
50664
+ * @memberof google.api.JavaSettings
50665
+ * @instance
50666
+ */
50667
+ JavaSettings.prototype.libraryPackage = "";
50668
+
50669
+ /**
50670
+ * JavaSettings serviceClassNames.
50671
+ * @member {Object.<string,string>} serviceClassNames
50672
+ * @memberof google.api.JavaSettings
50673
+ * @instance
50674
+ */
50675
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
50676
+
50677
+ /**
50678
+ * JavaSettings common.
50679
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
50680
+ * @memberof google.api.JavaSettings
50681
+ * @instance
50682
+ */
50683
+ JavaSettings.prototype.common = null;
50684
+
50685
+ /**
50686
+ * Creates a new JavaSettings instance using the specified properties.
50687
+ * @function create
50688
+ * @memberof google.api.JavaSettings
50689
+ * @static
50690
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
50691
+ * @returns {google.api.JavaSettings} JavaSettings instance
50692
+ */
50693
+ JavaSettings.create = function create(properties) {
50694
+ return new JavaSettings(properties);
50695
+ };
50696
+
50697
+ /**
50698
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
50699
+ * @function encode
50700
+ * @memberof google.api.JavaSettings
50701
+ * @static
50702
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
50703
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50704
+ * @returns {$protobuf.Writer} Writer
50705
+ */
50706
+ JavaSettings.encode = function encode(message, writer) {
50707
+ if (!writer)
50708
+ writer = $Writer.create();
50709
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
50710
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
50711
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
50712
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
50713
+ 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();
50714
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
50715
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
50716
+ return writer;
50717
+ };
50718
+
50719
+ /**
50720
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
50721
+ * @function encodeDelimited
50722
+ * @memberof google.api.JavaSettings
50723
+ * @static
50724
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
50725
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50726
+ * @returns {$protobuf.Writer} Writer
50727
+ */
50728
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
50729
+ return this.encode(message, writer).ldelim();
50730
+ };
50731
+
50732
+ /**
50733
+ * Decodes a JavaSettings message from the specified reader or buffer.
50734
+ * @function decode
50735
+ * @memberof google.api.JavaSettings
50736
+ * @static
50737
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50738
+ * @param {number} [length] Message length if known beforehand
50739
+ * @returns {google.api.JavaSettings} JavaSettings
50740
+ * @throws {Error} If the payload is not a reader or valid buffer
50741
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50742
+ */
50743
+ JavaSettings.decode = function decode(reader, length) {
50744
+ if (!(reader instanceof $Reader))
50745
+ reader = $Reader.create(reader);
50746
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
50747
+ while (reader.pos < end) {
50748
+ var tag = reader.uint32();
50749
+ switch (tag >>> 3) {
50750
+ case 1: {
50751
+ message.libraryPackage = reader.string();
50752
+ break;
50753
+ }
50754
+ case 2: {
50755
+ if (message.serviceClassNames === $util.emptyObject)
50756
+ message.serviceClassNames = {};
50757
+ var end2 = reader.uint32() + reader.pos;
50758
+ key = "";
50759
+ value = "";
50760
+ while (reader.pos < end2) {
50761
+ var tag2 = reader.uint32();
50762
+ switch (tag2 >>> 3) {
50763
+ case 1:
50764
+ key = reader.string();
50765
+ break;
50766
+ case 2:
50767
+ value = reader.string();
50768
+ break;
50769
+ default:
50770
+ reader.skipType(tag2 & 7);
50771
+ break;
50772
+ }
50773
+ }
50774
+ message.serviceClassNames[key] = value;
50775
+ break;
50776
+ }
50777
+ case 3: {
50778
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
50779
+ break;
50780
+ }
50781
+ default:
50782
+ reader.skipType(tag & 7);
50783
+ break;
50784
+ }
50785
+ }
50786
+ return message;
50787
+ };
50788
+
50789
+ /**
50790
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
50791
+ * @function decodeDelimited
50792
+ * @memberof google.api.JavaSettings
50793
+ * @static
50794
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50795
+ * @returns {google.api.JavaSettings} JavaSettings
50796
+ * @throws {Error} If the payload is not a reader or valid buffer
50797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50798
+ */
50799
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
50800
+ if (!(reader instanceof $Reader))
50801
+ reader = new $Reader(reader);
50802
+ return this.decode(reader, reader.uint32());
50803
+ };
50804
+
50805
+ /**
50806
+ * Verifies a JavaSettings message.
50807
+ * @function verify
50808
+ * @memberof google.api.JavaSettings
50809
+ * @static
50810
+ * @param {Object.<string,*>} message Plain object to verify
50811
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50812
+ */
50813
+ JavaSettings.verify = function verify(message) {
50814
+ if (typeof message !== "object" || message === null)
50815
+ return "object expected";
50816
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
50817
+ if (!$util.isString(message.libraryPackage))
50818
+ return "libraryPackage: string expected";
50819
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
50820
+ if (!$util.isObject(message.serviceClassNames))
50821
+ return "serviceClassNames: object expected";
50822
+ var key = Object.keys(message.serviceClassNames);
50823
+ for (var i = 0; i < key.length; ++i)
50824
+ if (!$util.isString(message.serviceClassNames[key[i]]))
50825
+ return "serviceClassNames: string{k:string} expected";
50826
+ }
50827
+ if (message.common != null && message.hasOwnProperty("common")) {
50828
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
50829
+ if (error)
50830
+ return "common." + error;
50831
+ }
50832
+ return null;
50833
+ };
50834
+
50835
+ /**
50836
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
50837
+ * @function fromObject
50838
+ * @memberof google.api.JavaSettings
50839
+ * @static
50840
+ * @param {Object.<string,*>} object Plain object
50841
+ * @returns {google.api.JavaSettings} JavaSettings
50842
+ */
50843
+ JavaSettings.fromObject = function fromObject(object) {
50844
+ if (object instanceof $root.google.api.JavaSettings)
50845
+ return object;
50846
+ var message = new $root.google.api.JavaSettings();
50847
+ if (object.libraryPackage != null)
50848
+ message.libraryPackage = String(object.libraryPackage);
50849
+ if (object.serviceClassNames) {
50850
+ if (typeof object.serviceClassNames !== "object")
50851
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
50852
+ message.serviceClassNames = {};
50853
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
50854
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
50855
+ }
50856
+ if (object.common != null) {
50857
+ if (typeof object.common !== "object")
50858
+ throw TypeError(".google.api.JavaSettings.common: object expected");
50859
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
50860
+ }
50861
+ return message;
50862
+ };
50863
+
50864
+ /**
50865
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
50866
+ * @function toObject
50867
+ * @memberof google.api.JavaSettings
50868
+ * @static
50869
+ * @param {google.api.JavaSettings} message JavaSettings
50870
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50871
+ * @returns {Object.<string,*>} Plain object
50872
+ */
50873
+ JavaSettings.toObject = function toObject(message, options) {
50874
+ if (!options)
50875
+ options = {};
50876
+ var object = {};
50877
+ if (options.objects || options.defaults)
50878
+ object.serviceClassNames = {};
50879
+ if (options.defaults) {
50880
+ object.libraryPackage = "";
50881
+ object.common = null;
50882
+ }
50883
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
50884
+ object.libraryPackage = message.libraryPackage;
50885
+ var keys2;
50886
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
50887
+ object.serviceClassNames = {};
50888
+ for (var j = 0; j < keys2.length; ++j)
50889
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
50890
+ }
50891
+ if (message.common != null && message.hasOwnProperty("common"))
50892
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
50893
+ return object;
50894
+ };
50895
+
50896
+ /**
50897
+ * Converts this JavaSettings to JSON.
50898
+ * @function toJSON
50899
+ * @memberof google.api.JavaSettings
50900
+ * @instance
50901
+ * @returns {Object.<string,*>} JSON object
50902
+ */
50903
+ JavaSettings.prototype.toJSON = function toJSON() {
50904
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50905
+ };
50906
+
50907
+ /**
50908
+ * Gets the default type url for JavaSettings
50909
+ * @function getTypeUrl
50910
+ * @memberof google.api.JavaSettings
50911
+ * @static
50912
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50913
+ * @returns {string} The default type url
50914
+ */
50915
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50916
+ if (typeUrlPrefix === undefined) {
50917
+ typeUrlPrefix = "type.googleapis.com";
50918
+ }
50919
+ return typeUrlPrefix + "/google.api.JavaSettings";
50920
+ };
50921
+
50922
+ return JavaSettings;
50923
+ })();
50924
+
50925
+ api.CppSettings = (function() {
50926
+
50927
+ /**
50928
+ * Properties of a CppSettings.
50929
+ * @memberof google.api
50930
+ * @interface ICppSettings
50931
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
50932
+ */
50933
+
50934
+ /**
50935
+ * Constructs a new CppSettings.
50936
+ * @memberof google.api
50937
+ * @classdesc Represents a CppSettings.
50938
+ * @implements ICppSettings
50939
+ * @constructor
50940
+ * @param {google.api.ICppSettings=} [properties] Properties to set
50941
+ */
50942
+ function CppSettings(properties) {
50943
+ if (properties)
50944
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50945
+ if (properties[keys[i]] != null)
50946
+ this[keys[i]] = properties[keys[i]];
50947
+ }
50948
+
50949
+ /**
50950
+ * CppSettings common.
50951
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
50952
+ * @memberof google.api.CppSettings
50953
+ * @instance
50954
+ */
50955
+ CppSettings.prototype.common = null;
50956
+
50957
+ /**
50958
+ * Creates a new CppSettings instance using the specified properties.
50959
+ * @function create
50960
+ * @memberof google.api.CppSettings
50961
+ * @static
50962
+ * @param {google.api.ICppSettings=} [properties] Properties to set
50963
+ * @returns {google.api.CppSettings} CppSettings instance
50964
+ */
50965
+ CppSettings.create = function create(properties) {
50966
+ return new CppSettings(properties);
50967
+ };
50968
+
50969
+ /**
50970
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
50971
+ * @function encode
50972
+ * @memberof google.api.CppSettings
50973
+ * @static
50974
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
50975
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50976
+ * @returns {$protobuf.Writer} Writer
50977
+ */
50978
+ CppSettings.encode = function encode(message, writer) {
50979
+ if (!writer)
50980
+ writer = $Writer.create();
50981
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
50982
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
50983
+ return writer;
50984
+ };
50985
+
50986
+ /**
50987
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
50988
+ * @function encodeDelimited
50989
+ * @memberof google.api.CppSettings
50990
+ * @static
50991
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
50992
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50993
+ * @returns {$protobuf.Writer} Writer
50994
+ */
50995
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
50996
+ return this.encode(message, writer).ldelim();
50997
+ };
50998
+
50999
+ /**
51000
+ * Decodes a CppSettings message from the specified reader or buffer.
51001
+ * @function decode
51002
+ * @memberof google.api.CppSettings
51003
+ * @static
51004
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51005
+ * @param {number} [length] Message length if known beforehand
51006
+ * @returns {google.api.CppSettings} CppSettings
51007
+ * @throws {Error} If the payload is not a reader or valid buffer
51008
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51009
+ */
51010
+ CppSettings.decode = function decode(reader, length) {
51011
+ if (!(reader instanceof $Reader))
51012
+ reader = $Reader.create(reader);
51013
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
51014
+ while (reader.pos < end) {
51015
+ var tag = reader.uint32();
51016
+ switch (tag >>> 3) {
51017
+ case 1: {
51018
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51019
+ break;
51020
+ }
51021
+ default:
51022
+ reader.skipType(tag & 7);
51023
+ break;
51024
+ }
51025
+ }
51026
+ return message;
51027
+ };
51028
+
51029
+ /**
51030
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
51031
+ * @function decodeDelimited
51032
+ * @memberof google.api.CppSettings
51033
+ * @static
51034
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51035
+ * @returns {google.api.CppSettings} CppSettings
51036
+ * @throws {Error} If the payload is not a reader or valid buffer
51037
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51038
+ */
51039
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
51040
+ if (!(reader instanceof $Reader))
51041
+ reader = new $Reader(reader);
51042
+ return this.decode(reader, reader.uint32());
51043
+ };
51044
+
51045
+ /**
51046
+ * Verifies a CppSettings message.
51047
+ * @function verify
51048
+ * @memberof google.api.CppSettings
51049
+ * @static
51050
+ * @param {Object.<string,*>} message Plain object to verify
51051
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51052
+ */
51053
+ CppSettings.verify = function verify(message) {
51054
+ if (typeof message !== "object" || message === null)
51055
+ return "object expected";
51056
+ if (message.common != null && message.hasOwnProperty("common")) {
51057
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51058
+ if (error)
51059
+ return "common." + error;
51060
+ }
51061
+ return null;
51062
+ };
51063
+
51064
+ /**
51065
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
51066
+ * @function fromObject
51067
+ * @memberof google.api.CppSettings
51068
+ * @static
51069
+ * @param {Object.<string,*>} object Plain object
51070
+ * @returns {google.api.CppSettings} CppSettings
51071
+ */
51072
+ CppSettings.fromObject = function fromObject(object) {
51073
+ if (object instanceof $root.google.api.CppSettings)
51074
+ return object;
51075
+ var message = new $root.google.api.CppSettings();
51076
+ if (object.common != null) {
51077
+ if (typeof object.common !== "object")
51078
+ throw TypeError(".google.api.CppSettings.common: object expected");
51079
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51080
+ }
51081
+ return message;
51082
+ };
51083
+
51084
+ /**
51085
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
51086
+ * @function toObject
51087
+ * @memberof google.api.CppSettings
51088
+ * @static
51089
+ * @param {google.api.CppSettings} message CppSettings
51090
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51091
+ * @returns {Object.<string,*>} Plain object
51092
+ */
51093
+ CppSettings.toObject = function toObject(message, options) {
51094
+ if (!options)
51095
+ options = {};
51096
+ var object = {};
51097
+ if (options.defaults)
51098
+ object.common = null;
51099
+ if (message.common != null && message.hasOwnProperty("common"))
51100
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51101
+ return object;
51102
+ };
51103
+
51104
+ /**
51105
+ * Converts this CppSettings to JSON.
51106
+ * @function toJSON
51107
+ * @memberof google.api.CppSettings
51108
+ * @instance
51109
+ * @returns {Object.<string,*>} JSON object
51110
+ */
51111
+ CppSettings.prototype.toJSON = function toJSON() {
51112
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51113
+ };
51114
+
51115
+ /**
51116
+ * Gets the default type url for CppSettings
51117
+ * @function getTypeUrl
51118
+ * @memberof google.api.CppSettings
51119
+ * @static
51120
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51121
+ * @returns {string} The default type url
51122
+ */
51123
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51124
+ if (typeUrlPrefix === undefined) {
51125
+ typeUrlPrefix = "type.googleapis.com";
51126
+ }
51127
+ return typeUrlPrefix + "/google.api.CppSettings";
51128
+ };
51129
+
51130
+ return CppSettings;
51131
+ })();
51132
+
51133
+ api.PhpSettings = (function() {
51134
+
51135
+ /**
51136
+ * Properties of a PhpSettings.
51137
+ * @memberof google.api
51138
+ * @interface IPhpSettings
51139
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
51140
+ */
51141
+
51142
+ /**
51143
+ * Constructs a new PhpSettings.
51144
+ * @memberof google.api
51145
+ * @classdesc Represents a PhpSettings.
51146
+ * @implements IPhpSettings
51147
+ * @constructor
51148
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
51149
+ */
51150
+ function PhpSettings(properties) {
51151
+ if (properties)
51152
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51153
+ if (properties[keys[i]] != null)
51154
+ this[keys[i]] = properties[keys[i]];
51155
+ }
51156
+
51157
+ /**
51158
+ * PhpSettings common.
51159
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51160
+ * @memberof google.api.PhpSettings
51161
+ * @instance
51162
+ */
51163
+ PhpSettings.prototype.common = null;
51164
+
51165
+ /**
51166
+ * Creates a new PhpSettings instance using the specified properties.
51167
+ * @function create
51168
+ * @memberof google.api.PhpSettings
51169
+ * @static
51170
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
51171
+ * @returns {google.api.PhpSettings} PhpSettings instance
51172
+ */
51173
+ PhpSettings.create = function create(properties) {
51174
+ return new PhpSettings(properties);
51175
+ };
51176
+
51177
+ /**
51178
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
51179
+ * @function encode
51180
+ * @memberof google.api.PhpSettings
51181
+ * @static
51182
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
51183
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51184
+ * @returns {$protobuf.Writer} Writer
51185
+ */
51186
+ PhpSettings.encode = function encode(message, writer) {
51187
+ if (!writer)
51188
+ writer = $Writer.create();
51189
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51190
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51191
+ return writer;
51192
+ };
51193
+
51194
+ /**
51195
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
51196
+ * @function encodeDelimited
51197
+ * @memberof google.api.PhpSettings
51198
+ * @static
51199
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
51200
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51201
+ * @returns {$protobuf.Writer} Writer
51202
+ */
51203
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
51204
+ return this.encode(message, writer).ldelim();
51205
+ };
51206
+
51207
+ /**
51208
+ * Decodes a PhpSettings message from the specified reader or buffer.
51209
+ * @function decode
51210
+ * @memberof google.api.PhpSettings
51211
+ * @static
51212
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51213
+ * @param {number} [length] Message length if known beforehand
51214
+ * @returns {google.api.PhpSettings} PhpSettings
51215
+ * @throws {Error} If the payload is not a reader or valid buffer
51216
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51217
+ */
51218
+ PhpSettings.decode = function decode(reader, length) {
51219
+ if (!(reader instanceof $Reader))
51220
+ reader = $Reader.create(reader);
51221
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
51222
+ while (reader.pos < end) {
51223
+ var tag = reader.uint32();
51224
+ switch (tag >>> 3) {
51225
+ case 1: {
51226
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51227
+ break;
51228
+ }
51229
+ default:
51230
+ reader.skipType(tag & 7);
51231
+ break;
51232
+ }
51233
+ }
51234
+ return message;
51235
+ };
51236
+
51237
+ /**
51238
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
51239
+ * @function decodeDelimited
51240
+ * @memberof google.api.PhpSettings
51241
+ * @static
51242
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51243
+ * @returns {google.api.PhpSettings} PhpSettings
51244
+ * @throws {Error} If the payload is not a reader or valid buffer
51245
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51246
+ */
51247
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
51248
+ if (!(reader instanceof $Reader))
51249
+ reader = new $Reader(reader);
51250
+ return this.decode(reader, reader.uint32());
51251
+ };
51252
+
51253
+ /**
51254
+ * Verifies a PhpSettings message.
51255
+ * @function verify
51256
+ * @memberof google.api.PhpSettings
51257
+ * @static
51258
+ * @param {Object.<string,*>} message Plain object to verify
51259
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51260
+ */
51261
+ PhpSettings.verify = function verify(message) {
51262
+ if (typeof message !== "object" || message === null)
51263
+ return "object expected";
51264
+ if (message.common != null && message.hasOwnProperty("common")) {
51265
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51266
+ if (error)
51267
+ return "common." + error;
51268
+ }
51269
+ return null;
51270
+ };
51271
+
51272
+ /**
51273
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
51274
+ * @function fromObject
51275
+ * @memberof google.api.PhpSettings
51276
+ * @static
51277
+ * @param {Object.<string,*>} object Plain object
51278
+ * @returns {google.api.PhpSettings} PhpSettings
51279
+ */
51280
+ PhpSettings.fromObject = function fromObject(object) {
51281
+ if (object instanceof $root.google.api.PhpSettings)
51282
+ return object;
51283
+ var message = new $root.google.api.PhpSettings();
51284
+ if (object.common != null) {
51285
+ if (typeof object.common !== "object")
51286
+ throw TypeError(".google.api.PhpSettings.common: object expected");
51287
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51288
+ }
51289
+ return message;
51290
+ };
51291
+
51292
+ /**
51293
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
51294
+ * @function toObject
51295
+ * @memberof google.api.PhpSettings
51296
+ * @static
51297
+ * @param {google.api.PhpSettings} message PhpSettings
51298
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51299
+ * @returns {Object.<string,*>} Plain object
51300
+ */
51301
+ PhpSettings.toObject = function toObject(message, options) {
51302
+ if (!options)
51303
+ options = {};
51304
+ var object = {};
51305
+ if (options.defaults)
51306
+ object.common = null;
51307
+ if (message.common != null && message.hasOwnProperty("common"))
51308
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51309
+ return object;
51310
+ };
51311
+
51312
+ /**
51313
+ * Converts this PhpSettings to JSON.
51314
+ * @function toJSON
51315
+ * @memberof google.api.PhpSettings
51316
+ * @instance
51317
+ * @returns {Object.<string,*>} JSON object
51318
+ */
51319
+ PhpSettings.prototype.toJSON = function toJSON() {
51320
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51321
+ };
51322
+
51323
+ /**
51324
+ * Gets the default type url for PhpSettings
51325
+ * @function getTypeUrl
51326
+ * @memberof google.api.PhpSettings
51327
+ * @static
51328
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51329
+ * @returns {string} The default type url
51330
+ */
51331
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51332
+ if (typeUrlPrefix === undefined) {
51333
+ typeUrlPrefix = "type.googleapis.com";
51334
+ }
51335
+ return typeUrlPrefix + "/google.api.PhpSettings";
51336
+ };
51337
+
51338
+ return PhpSettings;
51339
+ })();
51340
+
51341
+ api.PythonSettings = (function() {
51342
+
51343
+ /**
51344
+ * Properties of a PythonSettings.
51345
+ * @memberof google.api
51346
+ * @interface IPythonSettings
51347
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
51348
+ */
51349
+
51350
+ /**
51351
+ * Constructs a new PythonSettings.
51352
+ * @memberof google.api
51353
+ * @classdesc Represents a PythonSettings.
51354
+ * @implements IPythonSettings
51355
+ * @constructor
51356
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
51357
+ */
51358
+ function PythonSettings(properties) {
51359
+ if (properties)
51360
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51361
+ if (properties[keys[i]] != null)
51362
+ this[keys[i]] = properties[keys[i]];
51363
+ }
51364
+
51365
+ /**
51366
+ * PythonSettings common.
51367
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51368
+ * @memberof google.api.PythonSettings
51369
+ * @instance
51370
+ */
51371
+ PythonSettings.prototype.common = null;
51372
+
51373
+ /**
51374
+ * Creates a new PythonSettings instance using the specified properties.
51375
+ * @function create
51376
+ * @memberof google.api.PythonSettings
51377
+ * @static
51378
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
51379
+ * @returns {google.api.PythonSettings} PythonSettings instance
51380
+ */
51381
+ PythonSettings.create = function create(properties) {
51382
+ return new PythonSettings(properties);
51383
+ };
51384
+
51385
+ /**
51386
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
51387
+ * @function encode
51388
+ * @memberof google.api.PythonSettings
51389
+ * @static
51390
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
51391
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51392
+ * @returns {$protobuf.Writer} Writer
51393
+ */
51394
+ PythonSettings.encode = function encode(message, writer) {
51395
+ if (!writer)
51396
+ writer = $Writer.create();
51397
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51398
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51399
+ return writer;
51400
+ };
51401
+
51402
+ /**
51403
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
51404
+ * @function encodeDelimited
51405
+ * @memberof google.api.PythonSettings
51406
+ * @static
51407
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
51408
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51409
+ * @returns {$protobuf.Writer} Writer
51410
+ */
51411
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
51412
+ return this.encode(message, writer).ldelim();
51413
+ };
51414
+
51415
+ /**
51416
+ * Decodes a PythonSettings message from the specified reader or buffer.
51417
+ * @function decode
51418
+ * @memberof google.api.PythonSettings
51419
+ * @static
51420
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51421
+ * @param {number} [length] Message length if known beforehand
51422
+ * @returns {google.api.PythonSettings} PythonSettings
51423
+ * @throws {Error} If the payload is not a reader or valid buffer
51424
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51425
+ */
51426
+ PythonSettings.decode = function decode(reader, length) {
51427
+ if (!(reader instanceof $Reader))
51428
+ reader = $Reader.create(reader);
51429
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
51430
+ while (reader.pos < end) {
51431
+ var tag = reader.uint32();
51432
+ switch (tag >>> 3) {
51433
+ case 1: {
51434
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51435
+ break;
51436
+ }
51437
+ default:
51438
+ reader.skipType(tag & 7);
51439
+ break;
51440
+ }
51441
+ }
51442
+ return message;
51443
+ };
51444
+
51445
+ /**
51446
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
51447
+ * @function decodeDelimited
51448
+ * @memberof google.api.PythonSettings
51449
+ * @static
51450
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51451
+ * @returns {google.api.PythonSettings} PythonSettings
51452
+ * @throws {Error} If the payload is not a reader or valid buffer
51453
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51454
+ */
51455
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
51456
+ if (!(reader instanceof $Reader))
51457
+ reader = new $Reader(reader);
51458
+ return this.decode(reader, reader.uint32());
51459
+ };
51460
+
51461
+ /**
51462
+ * Verifies a PythonSettings message.
51463
+ * @function verify
51464
+ * @memberof google.api.PythonSettings
51465
+ * @static
51466
+ * @param {Object.<string,*>} message Plain object to verify
51467
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51468
+ */
51469
+ PythonSettings.verify = function verify(message) {
51470
+ if (typeof message !== "object" || message === null)
51471
+ return "object expected";
51472
+ if (message.common != null && message.hasOwnProperty("common")) {
51473
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51474
+ if (error)
51475
+ return "common." + error;
51476
+ }
51477
+ return null;
51478
+ };
51479
+
51480
+ /**
51481
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
51482
+ * @function fromObject
51483
+ * @memberof google.api.PythonSettings
51484
+ * @static
51485
+ * @param {Object.<string,*>} object Plain object
51486
+ * @returns {google.api.PythonSettings} PythonSettings
51487
+ */
51488
+ PythonSettings.fromObject = function fromObject(object) {
51489
+ if (object instanceof $root.google.api.PythonSettings)
51490
+ return object;
51491
+ var message = new $root.google.api.PythonSettings();
51492
+ if (object.common != null) {
51493
+ if (typeof object.common !== "object")
51494
+ throw TypeError(".google.api.PythonSettings.common: object expected");
51495
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51496
+ }
51497
+ return message;
51498
+ };
51499
+
51500
+ /**
51501
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
51502
+ * @function toObject
51503
+ * @memberof google.api.PythonSettings
51504
+ * @static
51505
+ * @param {google.api.PythonSettings} message PythonSettings
51506
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51507
+ * @returns {Object.<string,*>} Plain object
51508
+ */
51509
+ PythonSettings.toObject = function toObject(message, options) {
51510
+ if (!options)
51511
+ options = {};
51512
+ var object = {};
51513
+ if (options.defaults)
51514
+ object.common = null;
51515
+ if (message.common != null && message.hasOwnProperty("common"))
51516
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51517
+ return object;
51518
+ };
51519
+
51520
+ /**
51521
+ * Converts this PythonSettings to JSON.
51522
+ * @function toJSON
51523
+ * @memberof google.api.PythonSettings
51524
+ * @instance
51525
+ * @returns {Object.<string,*>} JSON object
51526
+ */
51527
+ PythonSettings.prototype.toJSON = function toJSON() {
51528
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51529
+ };
51530
+
51531
+ /**
51532
+ * Gets the default type url for PythonSettings
51533
+ * @function getTypeUrl
51534
+ * @memberof google.api.PythonSettings
51535
+ * @static
51536
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51537
+ * @returns {string} The default type url
51538
+ */
51539
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51540
+ if (typeUrlPrefix === undefined) {
51541
+ typeUrlPrefix = "type.googleapis.com";
51542
+ }
51543
+ return typeUrlPrefix + "/google.api.PythonSettings";
51544
+ };
51545
+
51546
+ return PythonSettings;
51547
+ })();
51548
+
51549
+ api.NodeSettings = (function() {
51550
+
51551
+ /**
51552
+ * Properties of a NodeSettings.
51553
+ * @memberof google.api
51554
+ * @interface INodeSettings
51555
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
51556
+ */
51557
+
51558
+ /**
51559
+ * Constructs a new NodeSettings.
51560
+ * @memberof google.api
51561
+ * @classdesc Represents a NodeSettings.
51562
+ * @implements INodeSettings
51563
+ * @constructor
51564
+ * @param {google.api.INodeSettings=} [properties] Properties to set
51565
+ */
51566
+ function NodeSettings(properties) {
51567
+ if (properties)
51568
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51569
+ if (properties[keys[i]] != null)
51570
+ this[keys[i]] = properties[keys[i]];
51571
+ }
51572
+
51573
+ /**
51574
+ * NodeSettings common.
51575
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51576
+ * @memberof google.api.NodeSettings
51577
+ * @instance
51578
+ */
51579
+ NodeSettings.prototype.common = null;
51580
+
51581
+ /**
51582
+ * Creates a new NodeSettings instance using the specified properties.
51583
+ * @function create
51584
+ * @memberof google.api.NodeSettings
51585
+ * @static
51586
+ * @param {google.api.INodeSettings=} [properties] Properties to set
51587
+ * @returns {google.api.NodeSettings} NodeSettings instance
51588
+ */
51589
+ NodeSettings.create = function create(properties) {
51590
+ return new NodeSettings(properties);
51591
+ };
51592
+
51593
+ /**
51594
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
51595
+ * @function encode
51596
+ * @memberof google.api.NodeSettings
51597
+ * @static
51598
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
51599
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51600
+ * @returns {$protobuf.Writer} Writer
51601
+ */
51602
+ NodeSettings.encode = function encode(message, writer) {
51603
+ if (!writer)
51604
+ writer = $Writer.create();
51605
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51606
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51607
+ return writer;
51608
+ };
51609
+
51610
+ /**
51611
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
51612
+ * @function encodeDelimited
51613
+ * @memberof google.api.NodeSettings
51614
+ * @static
51615
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
51616
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51617
+ * @returns {$protobuf.Writer} Writer
51618
+ */
51619
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
51620
+ return this.encode(message, writer).ldelim();
51621
+ };
51622
+
51623
+ /**
51624
+ * Decodes a NodeSettings message from the specified reader or buffer.
51625
+ * @function decode
51626
+ * @memberof google.api.NodeSettings
51627
+ * @static
51628
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51629
+ * @param {number} [length] Message length if known beforehand
51630
+ * @returns {google.api.NodeSettings} NodeSettings
51631
+ * @throws {Error} If the payload is not a reader or valid buffer
51632
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51633
+ */
51634
+ NodeSettings.decode = function decode(reader, length) {
51635
+ if (!(reader instanceof $Reader))
51636
+ reader = $Reader.create(reader);
51637
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
51638
+ while (reader.pos < end) {
51639
+ var tag = reader.uint32();
51640
+ switch (tag >>> 3) {
51641
+ case 1: {
51642
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51643
+ break;
51644
+ }
51645
+ default:
51646
+ reader.skipType(tag & 7);
51647
+ break;
51648
+ }
51649
+ }
51650
+ return message;
51651
+ };
51652
+
51653
+ /**
51654
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
51655
+ * @function decodeDelimited
51656
+ * @memberof google.api.NodeSettings
51657
+ * @static
51658
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51659
+ * @returns {google.api.NodeSettings} NodeSettings
51660
+ * @throws {Error} If the payload is not a reader or valid buffer
51661
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51662
+ */
51663
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
51664
+ if (!(reader instanceof $Reader))
51665
+ reader = new $Reader(reader);
51666
+ return this.decode(reader, reader.uint32());
51667
+ };
51668
+
51669
+ /**
51670
+ * Verifies a NodeSettings message.
51671
+ * @function verify
51672
+ * @memberof google.api.NodeSettings
51673
+ * @static
51674
+ * @param {Object.<string,*>} message Plain object to verify
51675
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51676
+ */
51677
+ NodeSettings.verify = function verify(message) {
51678
+ if (typeof message !== "object" || message === null)
51679
+ return "object expected";
51680
+ if (message.common != null && message.hasOwnProperty("common")) {
51681
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51682
+ if (error)
51683
+ return "common." + error;
51684
+ }
51685
+ return null;
51686
+ };
51687
+
51688
+ /**
51689
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
51690
+ * @function fromObject
51691
+ * @memberof google.api.NodeSettings
51692
+ * @static
51693
+ * @param {Object.<string,*>} object Plain object
51694
+ * @returns {google.api.NodeSettings} NodeSettings
51695
+ */
51696
+ NodeSettings.fromObject = function fromObject(object) {
51697
+ if (object instanceof $root.google.api.NodeSettings)
51698
+ return object;
51699
+ var message = new $root.google.api.NodeSettings();
51700
+ if (object.common != null) {
51701
+ if (typeof object.common !== "object")
51702
+ throw TypeError(".google.api.NodeSettings.common: object expected");
51703
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51704
+ }
51705
+ return message;
51706
+ };
51707
+
51708
+ /**
51709
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
51710
+ * @function toObject
51711
+ * @memberof google.api.NodeSettings
51712
+ * @static
51713
+ * @param {google.api.NodeSettings} message NodeSettings
51714
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51715
+ * @returns {Object.<string,*>} Plain object
51716
+ */
51717
+ NodeSettings.toObject = function toObject(message, options) {
51718
+ if (!options)
51719
+ options = {};
51720
+ var object = {};
51721
+ if (options.defaults)
51722
+ object.common = null;
51723
+ if (message.common != null && message.hasOwnProperty("common"))
51724
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51725
+ return object;
51726
+ };
51727
+
51728
+ /**
51729
+ * Converts this NodeSettings to JSON.
51730
+ * @function toJSON
51731
+ * @memberof google.api.NodeSettings
51732
+ * @instance
51733
+ * @returns {Object.<string,*>} JSON object
51734
+ */
51735
+ NodeSettings.prototype.toJSON = function toJSON() {
51736
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51737
+ };
51738
+
51739
+ /**
51740
+ * Gets the default type url for NodeSettings
51741
+ * @function getTypeUrl
51742
+ * @memberof google.api.NodeSettings
51743
+ * @static
51744
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51745
+ * @returns {string} The default type url
51746
+ */
51747
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51748
+ if (typeUrlPrefix === undefined) {
51749
+ typeUrlPrefix = "type.googleapis.com";
51750
+ }
51751
+ return typeUrlPrefix + "/google.api.NodeSettings";
51752
+ };
51753
+
51754
+ return NodeSettings;
51755
+ })();
51756
+
51757
+ api.DotnetSettings = (function() {
51758
+
51759
+ /**
51760
+ * Properties of a DotnetSettings.
51761
+ * @memberof google.api
51762
+ * @interface IDotnetSettings
51763
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
51764
+ */
51765
+
51766
+ /**
51767
+ * Constructs a new DotnetSettings.
51768
+ * @memberof google.api
51769
+ * @classdesc Represents a DotnetSettings.
51770
+ * @implements IDotnetSettings
51771
+ * @constructor
51772
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
51773
+ */
51774
+ function DotnetSettings(properties) {
51775
+ if (properties)
51776
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51777
+ if (properties[keys[i]] != null)
51778
+ this[keys[i]] = properties[keys[i]];
51779
+ }
51780
+
51781
+ /**
51782
+ * DotnetSettings common.
51783
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51784
+ * @memberof google.api.DotnetSettings
51785
+ * @instance
51786
+ */
51787
+ DotnetSettings.prototype.common = null;
51788
+
51789
+ /**
51790
+ * Creates a new DotnetSettings instance using the specified properties.
51791
+ * @function create
51792
+ * @memberof google.api.DotnetSettings
51793
+ * @static
51794
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
51795
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
51796
+ */
51797
+ DotnetSettings.create = function create(properties) {
51798
+ return new DotnetSettings(properties);
51799
+ };
51800
+
51801
+ /**
51802
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
51803
+ * @function encode
51804
+ * @memberof google.api.DotnetSettings
51805
+ * @static
51806
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
51807
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51808
+ * @returns {$protobuf.Writer} Writer
51809
+ */
51810
+ DotnetSettings.encode = function encode(message, writer) {
51811
+ if (!writer)
51812
+ writer = $Writer.create();
51813
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51814
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51815
+ return writer;
51816
+ };
51817
+
51818
+ /**
51819
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
51820
+ * @function encodeDelimited
51821
+ * @memberof google.api.DotnetSettings
51822
+ * @static
51823
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
51824
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51825
+ * @returns {$protobuf.Writer} Writer
51826
+ */
51827
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
51828
+ return this.encode(message, writer).ldelim();
51829
+ };
51830
+
51831
+ /**
51832
+ * Decodes a DotnetSettings message from the specified reader or buffer.
51833
+ * @function decode
51834
+ * @memberof google.api.DotnetSettings
51835
+ * @static
51836
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51837
+ * @param {number} [length] Message length if known beforehand
51838
+ * @returns {google.api.DotnetSettings} DotnetSettings
51839
+ * @throws {Error} If the payload is not a reader or valid buffer
51840
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51841
+ */
51842
+ DotnetSettings.decode = function decode(reader, length) {
51843
+ if (!(reader instanceof $Reader))
51844
+ reader = $Reader.create(reader);
51845
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
51846
+ while (reader.pos < end) {
51847
+ var tag = reader.uint32();
51848
+ switch (tag >>> 3) {
51849
+ case 1: {
51850
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51851
+ break;
51852
+ }
51853
+ default:
51854
+ reader.skipType(tag & 7);
51855
+ break;
51856
+ }
51857
+ }
51858
+ return message;
51859
+ };
51860
+
51861
+ /**
51862
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
51863
+ * @function decodeDelimited
51864
+ * @memberof google.api.DotnetSettings
51865
+ * @static
51866
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51867
+ * @returns {google.api.DotnetSettings} DotnetSettings
51868
+ * @throws {Error} If the payload is not a reader or valid buffer
51869
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51870
+ */
51871
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
51872
+ if (!(reader instanceof $Reader))
51873
+ reader = new $Reader(reader);
51874
+ return this.decode(reader, reader.uint32());
51875
+ };
51876
+
51877
+ /**
51878
+ * Verifies a DotnetSettings message.
51879
+ * @function verify
51880
+ * @memberof google.api.DotnetSettings
51881
+ * @static
51882
+ * @param {Object.<string,*>} message Plain object to verify
51883
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51884
+ */
51885
+ DotnetSettings.verify = function verify(message) {
51886
+ if (typeof message !== "object" || message === null)
51887
+ return "object expected";
51888
+ if (message.common != null && message.hasOwnProperty("common")) {
51889
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51890
+ if (error)
51891
+ return "common." + error;
51892
+ }
51893
+ return null;
51894
+ };
51895
+
51896
+ /**
51897
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
51898
+ * @function fromObject
51899
+ * @memberof google.api.DotnetSettings
51900
+ * @static
51901
+ * @param {Object.<string,*>} object Plain object
51902
+ * @returns {google.api.DotnetSettings} DotnetSettings
51903
+ */
51904
+ DotnetSettings.fromObject = function fromObject(object) {
51905
+ if (object instanceof $root.google.api.DotnetSettings)
51906
+ return object;
51907
+ var message = new $root.google.api.DotnetSettings();
51908
+ if (object.common != null) {
51909
+ if (typeof object.common !== "object")
51910
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
51911
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51912
+ }
51913
+ return message;
51914
+ };
51915
+
51916
+ /**
51917
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
51918
+ * @function toObject
51919
+ * @memberof google.api.DotnetSettings
51920
+ * @static
51921
+ * @param {google.api.DotnetSettings} message DotnetSettings
51922
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51923
+ * @returns {Object.<string,*>} Plain object
51924
+ */
51925
+ DotnetSettings.toObject = function toObject(message, options) {
51926
+ if (!options)
51927
+ options = {};
51928
+ var object = {};
51929
+ if (options.defaults)
51930
+ object.common = null;
51931
+ if (message.common != null && message.hasOwnProperty("common"))
51932
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51933
+ return object;
51934
+ };
51935
+
51936
+ /**
51937
+ * Converts this DotnetSettings to JSON.
51938
+ * @function toJSON
51939
+ * @memberof google.api.DotnetSettings
51940
+ * @instance
51941
+ * @returns {Object.<string,*>} JSON object
51942
+ */
51943
+ DotnetSettings.prototype.toJSON = function toJSON() {
51944
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51945
+ };
51946
+
51947
+ /**
51948
+ * Gets the default type url for DotnetSettings
51949
+ * @function getTypeUrl
51950
+ * @memberof google.api.DotnetSettings
51951
+ * @static
51952
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51953
+ * @returns {string} The default type url
51954
+ */
51955
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51956
+ if (typeUrlPrefix === undefined) {
51957
+ typeUrlPrefix = "type.googleapis.com";
51958
+ }
51959
+ return typeUrlPrefix + "/google.api.DotnetSettings";
51960
+ };
51961
+
51962
+ return DotnetSettings;
51963
+ })();
51964
+
51965
+ api.RubySettings = (function() {
51966
+
51967
+ /**
51968
+ * Properties of a RubySettings.
51969
+ * @memberof google.api
51970
+ * @interface IRubySettings
51971
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
51972
+ */
51973
+
51974
+ /**
51975
+ * Constructs a new RubySettings.
51976
+ * @memberof google.api
51977
+ * @classdesc Represents a RubySettings.
51978
+ * @implements IRubySettings
51979
+ * @constructor
51980
+ * @param {google.api.IRubySettings=} [properties] Properties to set
51981
+ */
51982
+ function RubySettings(properties) {
51983
+ if (properties)
51984
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51985
+ if (properties[keys[i]] != null)
51986
+ this[keys[i]] = properties[keys[i]];
51987
+ }
51988
+
51989
+ /**
51990
+ * RubySettings common.
51991
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51992
+ * @memberof google.api.RubySettings
51993
+ * @instance
51994
+ */
51995
+ RubySettings.prototype.common = null;
51996
+
51997
+ /**
51998
+ * Creates a new RubySettings instance using the specified properties.
51999
+ * @function create
52000
+ * @memberof google.api.RubySettings
52001
+ * @static
52002
+ * @param {google.api.IRubySettings=} [properties] Properties to set
52003
+ * @returns {google.api.RubySettings} RubySettings instance
52004
+ */
52005
+ RubySettings.create = function create(properties) {
52006
+ return new RubySettings(properties);
52007
+ };
52008
+
52009
+ /**
52010
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
52011
+ * @function encode
52012
+ * @memberof google.api.RubySettings
52013
+ * @static
52014
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
52015
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52016
+ * @returns {$protobuf.Writer} Writer
52017
+ */
52018
+ RubySettings.encode = function encode(message, writer) {
52019
+ if (!writer)
52020
+ writer = $Writer.create();
52021
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
52022
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52023
+ return writer;
52024
+ };
52025
+
52026
+ /**
52027
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
52028
+ * @function encodeDelimited
52029
+ * @memberof google.api.RubySettings
52030
+ * @static
52031
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
52032
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52033
+ * @returns {$protobuf.Writer} Writer
52034
+ */
52035
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
52036
+ return this.encode(message, writer).ldelim();
52037
+ };
52038
+
52039
+ /**
52040
+ * Decodes a RubySettings message from the specified reader or buffer.
52041
+ * @function decode
52042
+ * @memberof google.api.RubySettings
52043
+ * @static
52044
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52045
+ * @param {number} [length] Message length if known beforehand
52046
+ * @returns {google.api.RubySettings} RubySettings
52047
+ * @throws {Error} If the payload is not a reader or valid buffer
52048
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52049
+ */
52050
+ RubySettings.decode = function decode(reader, length) {
52051
+ if (!(reader instanceof $Reader))
52052
+ reader = $Reader.create(reader);
52053
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
52054
+ while (reader.pos < end) {
52055
+ var tag = reader.uint32();
52056
+ switch (tag >>> 3) {
52057
+ case 1: {
52058
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
52059
+ break;
52060
+ }
52061
+ default:
52062
+ reader.skipType(tag & 7);
52063
+ break;
52064
+ }
52065
+ }
52066
+ return message;
52067
+ };
52068
+
52069
+ /**
52070
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
52071
+ * @function decodeDelimited
52072
+ * @memberof google.api.RubySettings
52073
+ * @static
52074
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52075
+ * @returns {google.api.RubySettings} RubySettings
52076
+ * @throws {Error} If the payload is not a reader or valid buffer
52077
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52078
+ */
52079
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
52080
+ if (!(reader instanceof $Reader))
52081
+ reader = new $Reader(reader);
52082
+ return this.decode(reader, reader.uint32());
52083
+ };
52084
+
52085
+ /**
52086
+ * Verifies a RubySettings message.
52087
+ * @function verify
52088
+ * @memberof google.api.RubySettings
52089
+ * @static
52090
+ * @param {Object.<string,*>} message Plain object to verify
52091
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52092
+ */
52093
+ RubySettings.verify = function verify(message) {
52094
+ if (typeof message !== "object" || message === null)
52095
+ return "object expected";
52096
+ if (message.common != null && message.hasOwnProperty("common")) {
52097
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
52098
+ if (error)
52099
+ return "common." + error;
52100
+ }
52101
+ return null;
52102
+ };
52103
+
52104
+ /**
52105
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
52106
+ * @function fromObject
52107
+ * @memberof google.api.RubySettings
52108
+ * @static
52109
+ * @param {Object.<string,*>} object Plain object
52110
+ * @returns {google.api.RubySettings} RubySettings
52111
+ */
52112
+ RubySettings.fromObject = function fromObject(object) {
52113
+ if (object instanceof $root.google.api.RubySettings)
52114
+ return object;
52115
+ var message = new $root.google.api.RubySettings();
52116
+ if (object.common != null) {
52117
+ if (typeof object.common !== "object")
52118
+ throw TypeError(".google.api.RubySettings.common: object expected");
52119
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
52120
+ }
52121
+ return message;
52122
+ };
52123
+
52124
+ /**
52125
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
52126
+ * @function toObject
52127
+ * @memberof google.api.RubySettings
52128
+ * @static
52129
+ * @param {google.api.RubySettings} message RubySettings
52130
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52131
+ * @returns {Object.<string,*>} Plain object
52132
+ */
52133
+ RubySettings.toObject = function toObject(message, options) {
52134
+ if (!options)
52135
+ options = {};
52136
+ var object = {};
52137
+ if (options.defaults)
52138
+ object.common = null;
52139
+ if (message.common != null && message.hasOwnProperty("common"))
52140
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
52141
+ return object;
52142
+ };
52143
+
52144
+ /**
52145
+ * Converts this RubySettings to JSON.
52146
+ * @function toJSON
52147
+ * @memberof google.api.RubySettings
52148
+ * @instance
52149
+ * @returns {Object.<string,*>} JSON object
52150
+ */
52151
+ RubySettings.prototype.toJSON = function toJSON() {
52152
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52153
+ };
52154
+
52155
+ /**
52156
+ * Gets the default type url for RubySettings
52157
+ * @function getTypeUrl
52158
+ * @memberof google.api.RubySettings
52159
+ * @static
52160
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52161
+ * @returns {string} The default type url
52162
+ */
52163
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52164
+ if (typeUrlPrefix === undefined) {
52165
+ typeUrlPrefix = "type.googleapis.com";
52166
+ }
52167
+ return typeUrlPrefix + "/google.api.RubySettings";
52168
+ };
52169
+
52170
+ return RubySettings;
52171
+ })();
52172
+
52173
+ api.GoSettings = (function() {
52174
+
52175
+ /**
52176
+ * Properties of a GoSettings.
52177
+ * @memberof google.api
52178
+ * @interface IGoSettings
52179
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
52180
+ */
52181
+
52182
+ /**
52183
+ * Constructs a new GoSettings.
52184
+ * @memberof google.api
52185
+ * @classdesc Represents a GoSettings.
52186
+ * @implements IGoSettings
52187
+ * @constructor
52188
+ * @param {google.api.IGoSettings=} [properties] Properties to set
52189
+ */
52190
+ function GoSettings(properties) {
52191
+ if (properties)
52192
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52193
+ if (properties[keys[i]] != null)
52194
+ this[keys[i]] = properties[keys[i]];
52195
+ }
52196
+
52197
+ /**
52198
+ * GoSettings common.
52199
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
52200
+ * @memberof google.api.GoSettings
52201
+ * @instance
52202
+ */
52203
+ GoSettings.prototype.common = null;
52204
+
52205
+ /**
52206
+ * Creates a new GoSettings instance using the specified properties.
52207
+ * @function create
52208
+ * @memberof google.api.GoSettings
52209
+ * @static
52210
+ * @param {google.api.IGoSettings=} [properties] Properties to set
52211
+ * @returns {google.api.GoSettings} GoSettings instance
52212
+ */
52213
+ GoSettings.create = function create(properties) {
52214
+ return new GoSettings(properties);
52215
+ };
52216
+
52217
+ /**
52218
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
52219
+ * @function encode
52220
+ * @memberof google.api.GoSettings
52221
+ * @static
52222
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
52223
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52224
+ * @returns {$protobuf.Writer} Writer
52225
+ */
52226
+ GoSettings.encode = function encode(message, writer) {
52227
+ if (!writer)
52228
+ writer = $Writer.create();
52229
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
52230
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52231
+ return writer;
52232
+ };
52233
+
52234
+ /**
52235
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
52236
+ * @function encodeDelimited
52237
+ * @memberof google.api.GoSettings
52238
+ * @static
52239
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
52240
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52241
+ * @returns {$protobuf.Writer} Writer
52242
+ */
52243
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
52244
+ return this.encode(message, writer).ldelim();
52245
+ };
52246
+
52247
+ /**
52248
+ * Decodes a GoSettings message from the specified reader or buffer.
52249
+ * @function decode
52250
+ * @memberof google.api.GoSettings
52251
+ * @static
52252
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52253
+ * @param {number} [length] Message length if known beforehand
52254
+ * @returns {google.api.GoSettings} GoSettings
52255
+ * @throws {Error} If the payload is not a reader or valid buffer
52256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52257
+ */
52258
+ GoSettings.decode = function decode(reader, length) {
52259
+ if (!(reader instanceof $Reader))
52260
+ reader = $Reader.create(reader);
52261
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
52262
+ while (reader.pos < end) {
52263
+ var tag = reader.uint32();
52264
+ switch (tag >>> 3) {
52265
+ case 1: {
52266
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
52267
+ break;
52268
+ }
52269
+ default:
52270
+ reader.skipType(tag & 7);
52271
+ break;
52272
+ }
52273
+ }
52274
+ return message;
52275
+ };
52276
+
52277
+ /**
52278
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
52279
+ * @function decodeDelimited
52280
+ * @memberof google.api.GoSettings
52281
+ * @static
52282
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52283
+ * @returns {google.api.GoSettings} GoSettings
52284
+ * @throws {Error} If the payload is not a reader or valid buffer
52285
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52286
+ */
52287
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
52288
+ if (!(reader instanceof $Reader))
52289
+ reader = new $Reader(reader);
52290
+ return this.decode(reader, reader.uint32());
52291
+ };
52292
+
52293
+ /**
52294
+ * Verifies a GoSettings message.
52295
+ * @function verify
52296
+ * @memberof google.api.GoSettings
52297
+ * @static
52298
+ * @param {Object.<string,*>} message Plain object to verify
52299
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52300
+ */
52301
+ GoSettings.verify = function verify(message) {
52302
+ if (typeof message !== "object" || message === null)
52303
+ return "object expected";
52304
+ if (message.common != null && message.hasOwnProperty("common")) {
52305
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
52306
+ if (error)
52307
+ return "common." + error;
52308
+ }
52309
+ return null;
52310
+ };
52311
+
52312
+ /**
52313
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
52314
+ * @function fromObject
52315
+ * @memberof google.api.GoSettings
52316
+ * @static
52317
+ * @param {Object.<string,*>} object Plain object
52318
+ * @returns {google.api.GoSettings} GoSettings
52319
+ */
52320
+ GoSettings.fromObject = function fromObject(object) {
52321
+ if (object instanceof $root.google.api.GoSettings)
52322
+ return object;
52323
+ var message = new $root.google.api.GoSettings();
52324
+ if (object.common != null) {
52325
+ if (typeof object.common !== "object")
52326
+ throw TypeError(".google.api.GoSettings.common: object expected");
52327
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
52328
+ }
52329
+ return message;
52330
+ };
52331
+
52332
+ /**
52333
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
52334
+ * @function toObject
52335
+ * @memberof google.api.GoSettings
52336
+ * @static
52337
+ * @param {google.api.GoSettings} message GoSettings
52338
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52339
+ * @returns {Object.<string,*>} Plain object
52340
+ */
52341
+ GoSettings.toObject = function toObject(message, options) {
52342
+ if (!options)
52343
+ options = {};
52344
+ var object = {};
52345
+ if (options.defaults)
52346
+ object.common = null;
52347
+ if (message.common != null && message.hasOwnProperty("common"))
52348
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
52349
+ return object;
52350
+ };
52351
+
52352
+ /**
52353
+ * Converts this GoSettings to JSON.
52354
+ * @function toJSON
52355
+ * @memberof google.api.GoSettings
52356
+ * @instance
52357
+ * @returns {Object.<string,*>} JSON object
52358
+ */
52359
+ GoSettings.prototype.toJSON = function toJSON() {
52360
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52361
+ };
52362
+
52363
+ /**
52364
+ * Gets the default type url for GoSettings
52365
+ * @function getTypeUrl
52366
+ * @memberof google.api.GoSettings
52367
+ * @static
52368
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52369
+ * @returns {string} The default type url
52370
+ */
52371
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52372
+ if (typeUrlPrefix === undefined) {
52373
+ typeUrlPrefix = "type.googleapis.com";
52374
+ }
52375
+ return typeUrlPrefix + "/google.api.GoSettings";
52376
+ };
52377
+
52378
+ return GoSettings;
52379
+ })();
52380
+
52381
+ api.MethodSettings = (function() {
52382
+
52383
+ /**
52384
+ * Properties of a MethodSettings.
52385
+ * @memberof google.api
52386
+ * @interface IMethodSettings
52387
+ * @property {string|null} [selector] MethodSettings selector
52388
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
52389
+ */
52390
+
52391
+ /**
52392
+ * Constructs a new MethodSettings.
52393
+ * @memberof google.api
52394
+ * @classdesc Represents a MethodSettings.
52395
+ * @implements IMethodSettings
52396
+ * @constructor
52397
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
52398
+ */
52399
+ function MethodSettings(properties) {
52400
+ if (properties)
52401
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52402
+ if (properties[keys[i]] != null)
52403
+ this[keys[i]] = properties[keys[i]];
52404
+ }
52405
+
52406
+ /**
52407
+ * MethodSettings selector.
52408
+ * @member {string} selector
52409
+ * @memberof google.api.MethodSettings
52410
+ * @instance
52411
+ */
52412
+ MethodSettings.prototype.selector = "";
52413
+
52414
+ /**
52415
+ * MethodSettings longRunning.
52416
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
52417
+ * @memberof google.api.MethodSettings
52418
+ * @instance
52419
+ */
52420
+ MethodSettings.prototype.longRunning = null;
52421
+
52422
+ /**
52423
+ * Creates a new MethodSettings instance using the specified properties.
52424
+ * @function create
52425
+ * @memberof google.api.MethodSettings
52426
+ * @static
52427
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
52428
+ * @returns {google.api.MethodSettings} MethodSettings instance
52429
+ */
52430
+ MethodSettings.create = function create(properties) {
52431
+ return new MethodSettings(properties);
52432
+ };
52433
+
52434
+ /**
52435
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
52436
+ * @function encode
52437
+ * @memberof google.api.MethodSettings
52438
+ * @static
52439
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
52440
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52441
+ * @returns {$protobuf.Writer} Writer
52442
+ */
52443
+ MethodSettings.encode = function encode(message, writer) {
52444
+ if (!writer)
52445
+ writer = $Writer.create();
52446
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
52447
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
52448
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
52449
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
52450
+ return writer;
52451
+ };
52452
+
52453
+ /**
52454
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
52455
+ * @function encodeDelimited
52456
+ * @memberof google.api.MethodSettings
52457
+ * @static
52458
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
52459
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52460
+ * @returns {$protobuf.Writer} Writer
52461
+ */
52462
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
52463
+ return this.encode(message, writer).ldelim();
52464
+ };
52465
+
52466
+ /**
52467
+ * Decodes a MethodSettings message from the specified reader or buffer.
52468
+ * @function decode
52469
+ * @memberof google.api.MethodSettings
52470
+ * @static
52471
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52472
+ * @param {number} [length] Message length if known beforehand
52473
+ * @returns {google.api.MethodSettings} MethodSettings
52474
+ * @throws {Error} If the payload is not a reader or valid buffer
52475
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52476
+ */
52477
+ MethodSettings.decode = function decode(reader, length) {
52478
+ if (!(reader instanceof $Reader))
52479
+ reader = $Reader.create(reader);
52480
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
52481
+ while (reader.pos < end) {
52482
+ var tag = reader.uint32();
52483
+ switch (tag >>> 3) {
52484
+ case 1: {
52485
+ message.selector = reader.string();
52486
+ break;
52487
+ }
52488
+ case 2: {
52489
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
52490
+ break;
52491
+ }
52492
+ default:
52493
+ reader.skipType(tag & 7);
52494
+ break;
52495
+ }
52496
+ }
52497
+ return message;
52498
+ };
52499
+
52500
+ /**
52501
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
52502
+ * @function decodeDelimited
52503
+ * @memberof google.api.MethodSettings
52504
+ * @static
52505
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52506
+ * @returns {google.api.MethodSettings} MethodSettings
52507
+ * @throws {Error} If the payload is not a reader or valid buffer
52508
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52509
+ */
52510
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
52511
+ if (!(reader instanceof $Reader))
52512
+ reader = new $Reader(reader);
52513
+ return this.decode(reader, reader.uint32());
52514
+ };
52515
+
52516
+ /**
52517
+ * Verifies a MethodSettings message.
52518
+ * @function verify
52519
+ * @memberof google.api.MethodSettings
52520
+ * @static
52521
+ * @param {Object.<string,*>} message Plain object to verify
52522
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52523
+ */
52524
+ MethodSettings.verify = function verify(message) {
52525
+ if (typeof message !== "object" || message === null)
52526
+ return "object expected";
52527
+ if (message.selector != null && message.hasOwnProperty("selector"))
52528
+ if (!$util.isString(message.selector))
52529
+ return "selector: string expected";
52530
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
52531
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
52532
+ if (error)
52533
+ return "longRunning." + error;
52534
+ }
52535
+ return null;
52536
+ };
52537
+
52538
+ /**
52539
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
52540
+ * @function fromObject
52541
+ * @memberof google.api.MethodSettings
52542
+ * @static
52543
+ * @param {Object.<string,*>} object Plain object
52544
+ * @returns {google.api.MethodSettings} MethodSettings
52545
+ */
52546
+ MethodSettings.fromObject = function fromObject(object) {
52547
+ if (object instanceof $root.google.api.MethodSettings)
52548
+ return object;
52549
+ var message = new $root.google.api.MethodSettings();
52550
+ if (object.selector != null)
52551
+ message.selector = String(object.selector);
52552
+ if (object.longRunning != null) {
52553
+ if (typeof object.longRunning !== "object")
52554
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
52555
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
52556
+ }
52557
+ return message;
52558
+ };
52559
+
52560
+ /**
52561
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
52562
+ * @function toObject
52563
+ * @memberof google.api.MethodSettings
52564
+ * @static
52565
+ * @param {google.api.MethodSettings} message MethodSettings
52566
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52567
+ * @returns {Object.<string,*>} Plain object
52568
+ */
52569
+ MethodSettings.toObject = function toObject(message, options) {
52570
+ if (!options)
52571
+ options = {};
52572
+ var object = {};
52573
+ if (options.defaults) {
52574
+ object.selector = "";
52575
+ object.longRunning = null;
52576
+ }
52577
+ if (message.selector != null && message.hasOwnProperty("selector"))
52578
+ object.selector = message.selector;
52579
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
52580
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
52581
+ return object;
52582
+ };
52583
+
52584
+ /**
52585
+ * Converts this MethodSettings to JSON.
52586
+ * @function toJSON
52587
+ * @memberof google.api.MethodSettings
52588
+ * @instance
52589
+ * @returns {Object.<string,*>} JSON object
52590
+ */
52591
+ MethodSettings.prototype.toJSON = function toJSON() {
52592
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52593
+ };
52594
+
52595
+ /**
52596
+ * Gets the default type url for MethodSettings
52597
+ * @function getTypeUrl
52598
+ * @memberof google.api.MethodSettings
52599
+ * @static
52600
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52601
+ * @returns {string} The default type url
52602
+ */
52603
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52604
+ if (typeUrlPrefix === undefined) {
52605
+ typeUrlPrefix = "type.googleapis.com";
52606
+ }
52607
+ return typeUrlPrefix + "/google.api.MethodSettings";
52608
+ };
52609
+
52610
+ MethodSettings.LongRunning = (function() {
52611
+
52612
+ /**
52613
+ * Properties of a LongRunning.
52614
+ * @memberof google.api.MethodSettings
52615
+ * @interface ILongRunning
52616
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
52617
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
52618
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
52619
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
52620
+ */
52621
+
52622
+ /**
52623
+ * Constructs a new LongRunning.
52624
+ * @memberof google.api.MethodSettings
52625
+ * @classdesc Represents a LongRunning.
52626
+ * @implements ILongRunning
52627
+ * @constructor
52628
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
52629
+ */
52630
+ function LongRunning(properties) {
52631
+ if (properties)
52632
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52633
+ if (properties[keys[i]] != null)
52634
+ this[keys[i]] = properties[keys[i]];
52635
+ }
52636
+
52637
+ /**
52638
+ * LongRunning initialPollDelay.
52639
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
52640
+ * @memberof google.api.MethodSettings.LongRunning
52641
+ * @instance
52642
+ */
52643
+ LongRunning.prototype.initialPollDelay = null;
52644
+
52645
+ /**
52646
+ * LongRunning pollDelayMultiplier.
52647
+ * @member {number} pollDelayMultiplier
52648
+ * @memberof google.api.MethodSettings.LongRunning
52649
+ * @instance
52650
+ */
52651
+ LongRunning.prototype.pollDelayMultiplier = 0;
52652
+
52653
+ /**
52654
+ * LongRunning maxPollDelay.
52655
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
52656
+ * @memberof google.api.MethodSettings.LongRunning
52657
+ * @instance
52658
+ */
52659
+ LongRunning.prototype.maxPollDelay = null;
52660
+
52661
+ /**
52662
+ * LongRunning totalPollTimeout.
52663
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
52664
+ * @memberof google.api.MethodSettings.LongRunning
52665
+ * @instance
52666
+ */
52667
+ LongRunning.prototype.totalPollTimeout = null;
52668
+
52669
+ /**
52670
+ * Creates a new LongRunning instance using the specified properties.
52671
+ * @function create
52672
+ * @memberof google.api.MethodSettings.LongRunning
52673
+ * @static
52674
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
52675
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
52676
+ */
52677
+ LongRunning.create = function create(properties) {
52678
+ return new LongRunning(properties);
52679
+ };
52680
+
52681
+ /**
52682
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
52683
+ * @function encode
52684
+ * @memberof google.api.MethodSettings.LongRunning
52685
+ * @static
52686
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
52687
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52688
+ * @returns {$protobuf.Writer} Writer
52689
+ */
52690
+ LongRunning.encode = function encode(message, writer) {
52691
+ if (!writer)
52692
+ writer = $Writer.create();
52693
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
52694
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52695
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
52696
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
52697
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
52698
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
52699
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
52700
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
52701
+ return writer;
52702
+ };
52703
+
52704
+ /**
52705
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
52706
+ * @function encodeDelimited
52707
+ * @memberof google.api.MethodSettings.LongRunning
52708
+ * @static
52709
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
52710
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52711
+ * @returns {$protobuf.Writer} Writer
52712
+ */
52713
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
52714
+ return this.encode(message, writer).ldelim();
52715
+ };
52716
+
52717
+ /**
52718
+ * Decodes a LongRunning message from the specified reader or buffer.
52719
+ * @function decode
52720
+ * @memberof google.api.MethodSettings.LongRunning
52721
+ * @static
52722
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52723
+ * @param {number} [length] Message length if known beforehand
52724
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52725
+ * @throws {Error} If the payload is not a reader or valid buffer
52726
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52727
+ */
52728
+ LongRunning.decode = function decode(reader, length) {
52729
+ if (!(reader instanceof $Reader))
52730
+ reader = $Reader.create(reader);
52731
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
52732
+ while (reader.pos < end) {
52733
+ var tag = reader.uint32();
52734
+ switch (tag >>> 3) {
52735
+ case 1: {
52736
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52737
+ break;
52738
+ }
52739
+ case 2: {
52740
+ message.pollDelayMultiplier = reader.float();
52741
+ break;
52742
+ }
52743
+ case 3: {
52744
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52745
+ break;
52746
+ }
52747
+ case 4: {
52748
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52749
+ break;
52750
+ }
52751
+ default:
52752
+ reader.skipType(tag & 7);
52753
+ break;
52754
+ }
52755
+ }
52756
+ return message;
52757
+ };
52758
+
52759
+ /**
52760
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
52761
+ * @function decodeDelimited
52762
+ * @memberof google.api.MethodSettings.LongRunning
52763
+ * @static
52764
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52765
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52766
+ * @throws {Error} If the payload is not a reader or valid buffer
52767
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52768
+ */
52769
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
52770
+ if (!(reader instanceof $Reader))
52771
+ reader = new $Reader(reader);
52772
+ return this.decode(reader, reader.uint32());
52773
+ };
52774
+
52775
+ /**
52776
+ * Verifies a LongRunning message.
52777
+ * @function verify
52778
+ * @memberof google.api.MethodSettings.LongRunning
52779
+ * @static
52780
+ * @param {Object.<string,*>} message Plain object to verify
52781
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52782
+ */
52783
+ LongRunning.verify = function verify(message) {
52784
+ if (typeof message !== "object" || message === null)
52785
+ return "object expected";
52786
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
52787
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
52788
+ if (error)
52789
+ return "initialPollDelay." + error;
52790
+ }
52791
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
52792
+ if (typeof message.pollDelayMultiplier !== "number")
52793
+ return "pollDelayMultiplier: number expected";
52794
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
52795
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
52796
+ if (error)
52797
+ return "maxPollDelay." + error;
52798
+ }
52799
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
52800
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
52801
+ if (error)
52802
+ return "totalPollTimeout." + error;
52803
+ }
52804
+ return null;
52805
+ };
52806
+
52807
+ /**
52808
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
52809
+ * @function fromObject
52810
+ * @memberof google.api.MethodSettings.LongRunning
52811
+ * @static
52812
+ * @param {Object.<string,*>} object Plain object
52813
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52814
+ */
52815
+ LongRunning.fromObject = function fromObject(object) {
52816
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
52817
+ return object;
52818
+ var message = new $root.google.api.MethodSettings.LongRunning();
52819
+ if (object.initialPollDelay != null) {
52820
+ if (typeof object.initialPollDelay !== "object")
52821
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
52822
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
52823
+ }
52824
+ if (object.pollDelayMultiplier != null)
52825
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
52826
+ if (object.maxPollDelay != null) {
52827
+ if (typeof object.maxPollDelay !== "object")
52828
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
52829
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
52830
+ }
52831
+ if (object.totalPollTimeout != null) {
52832
+ if (typeof object.totalPollTimeout !== "object")
52833
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
52834
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
52835
+ }
52836
+ return message;
52837
+ };
52838
+
52839
+ /**
52840
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
52841
+ * @function toObject
52842
+ * @memberof google.api.MethodSettings.LongRunning
52843
+ * @static
52844
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
52845
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52846
+ * @returns {Object.<string,*>} Plain object
52847
+ */
52848
+ LongRunning.toObject = function toObject(message, options) {
52849
+ if (!options)
52850
+ options = {};
52851
+ var object = {};
52852
+ if (options.defaults) {
52853
+ object.initialPollDelay = null;
52854
+ object.pollDelayMultiplier = 0;
52855
+ object.maxPollDelay = null;
52856
+ object.totalPollTimeout = null;
52857
+ }
52858
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
52859
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
52860
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
52861
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
52862
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
52863
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
52864
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
52865
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
52866
+ return object;
52867
+ };
52868
+
52869
+ /**
52870
+ * Converts this LongRunning to JSON.
52871
+ * @function toJSON
52872
+ * @memberof google.api.MethodSettings.LongRunning
52873
+ * @instance
52874
+ * @returns {Object.<string,*>} JSON object
52875
+ */
52876
+ LongRunning.prototype.toJSON = function toJSON() {
52877
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52878
+ };
52879
+
52880
+ /**
52881
+ * Gets the default type url for LongRunning
52882
+ * @function getTypeUrl
52883
+ * @memberof google.api.MethodSettings.LongRunning
52884
+ * @static
52885
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52886
+ * @returns {string} The default type url
52887
+ */
52888
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52889
+ if (typeUrlPrefix === undefined) {
52890
+ typeUrlPrefix = "type.googleapis.com";
52891
+ }
52892
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
52893
+ };
52894
+
52895
+ return LongRunning;
52896
+ })();
52897
+
52898
+ return MethodSettings;
52899
+ })();
52900
+
52901
+ /**
52902
+ * ClientLibraryOrganization enum.
52903
+ * @name google.api.ClientLibraryOrganization
52904
+ * @enum {number}
52905
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
52906
+ * @property {number} CLOUD=1 CLOUD value
52907
+ * @property {number} ADS=2 ADS value
52908
+ * @property {number} PHOTOS=3 PHOTOS value
52909
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
52910
+ */
52911
+ api.ClientLibraryOrganization = (function() {
52912
+ var valuesById = {}, values = Object.create(valuesById);
52913
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
52914
+ values[valuesById[1] = "CLOUD"] = 1;
52915
+ values[valuesById[2] = "ADS"] = 2;
52916
+ values[valuesById[3] = "PHOTOS"] = 3;
52917
+ values[valuesById[4] = "STREET_VIEW"] = 4;
52918
+ return values;
52919
+ })();
52920
+
52921
+ /**
52922
+ * ClientLibraryDestination enum.
52923
+ * @name google.api.ClientLibraryDestination
52924
+ * @enum {number}
52925
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
52926
+ * @property {number} GITHUB=10 GITHUB value
52927
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
52928
+ */
52929
+ api.ClientLibraryDestination = (function() {
52930
+ var valuesById = {}, values = Object.create(valuesById);
52931
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
52932
+ values[valuesById[10] = "GITHUB"] = 10;
52933
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
52934
+ return values;
52935
+ })();
52936
+
52937
+ /**
52938
+ * LaunchStage enum.
52939
+ * @name google.api.LaunchStage
52940
+ * @enum {number}
52941
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
52942
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
52943
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
52944
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
52945
+ * @property {number} ALPHA=2 ALPHA value
52946
+ * @property {number} BETA=3 BETA value
52947
+ * @property {number} GA=4 GA value
52948
+ * @property {number} DEPRECATED=5 DEPRECATED value
52949
+ */
52950
+ api.LaunchStage = (function() {
52951
+ var valuesById = {}, values = Object.create(valuesById);
52952
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
52953
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
52954
+ values[valuesById[7] = "PRELAUNCH"] = 7;
52955
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
52956
+ values[valuesById[2] = "ALPHA"] = 2;
52957
+ values[valuesById[3] = "BETA"] = 3;
52958
+ values[valuesById[4] = "GA"] = 4;
52959
+ values[valuesById[5] = "DEPRECATED"] = 5;
52960
+ return values;
52961
+ })();
52962
+
49110
52963
  return api;
49111
52964
  })();
49112
52965