@google-cloud/spanner 6.7.1 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/build/protos/google/spanner/admin/database/v1/backup.proto +1 -1
  3. package/build/protos/google/spanner/admin/database/v1/common.proto +1 -1
  4. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +1 -1
  5. package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -1
  6. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +1 -1
  7. package/build/protos/google/spanner/v1/commit_response.proto +1 -1
  8. package/build/protos/google/spanner/v1/keys.proto +1 -1
  9. package/build/protos/google/spanner/v1/mutation.proto +1 -1
  10. package/build/protos/google/spanner/v1/query_plan.proto +1 -1
  11. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  12. package/build/protos/google/spanner/v1/spanner.proto +15 -1
  13. package/build/protos/google/spanner/v1/transaction.proto +1 -1
  14. package/build/protos/google/spanner/v1/type.proto +1 -1
  15. package/build/protos/protos.d.ts +1614 -109
  16. package/build/protos/protos.js +4185 -286
  17. package/build/protos/protos.json +322 -22
  18. package/build/src/partial-result-stream.js +2 -6
  19. package/build/src/transaction-runner.d.ts +6 -0
  20. package/build/src/transaction-runner.js +19 -3
  21. package/build/src/transaction.js +1 -1
  22. package/build/src/v1/database_admin_client.d.ts +38 -40
  23. package/build/src/v1/database_admin_client.js +24 -26
  24. package/build/src/v1/instance_admin_client.d.ts +16 -16
  25. package/build/src/v1/instance_admin_client.js +6 -6
  26. package/build/src/v1/spanner_client.d.ts +41 -17
  27. package/build/src/v1/spanner_client.js +16 -4
  28. package/package.json +1 -1
@@ -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
  /**
@@ -42925,6 +43169,7 @@
42925
43169
  * @property {number|Long|null} [seqno] ExecuteSqlRequest seqno
42926
43170
  * @property {google.spanner.v1.ExecuteSqlRequest.IQueryOptions|null} [queryOptions] ExecuteSqlRequest queryOptions
42927
43171
  * @property {google.spanner.v1.IRequestOptions|null} [requestOptions] ExecuteSqlRequest requestOptions
43172
+ * @property {boolean|null} [dataBoostEnabled] ExecuteSqlRequest dataBoostEnabled
42928
43173
  */
42929
43174
 
42930
43175
  /**
@@ -43031,6 +43276,14 @@
43031
43276
  */
43032
43277
  ExecuteSqlRequest.prototype.requestOptions = null;
43033
43278
 
43279
+ /**
43280
+ * ExecuteSqlRequest dataBoostEnabled.
43281
+ * @member {boolean} dataBoostEnabled
43282
+ * @memberof google.spanner.v1.ExecuteSqlRequest
43283
+ * @instance
43284
+ */
43285
+ ExecuteSqlRequest.prototype.dataBoostEnabled = false;
43286
+
43034
43287
  /**
43035
43288
  * Creates a new ExecuteSqlRequest instance using the specified properties.
43036
43289
  * @function create
@@ -43080,6 +43333,8 @@
43080
43333
  $root.google.spanner.v1.ExecuteSqlRequest.QueryOptions.encode(message.queryOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
43081
43334
  if (message.requestOptions != null && Object.hasOwnProperty.call(message, "requestOptions"))
43082
43335
  $root.google.spanner.v1.RequestOptions.encode(message.requestOptions, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
43336
+ if (message.dataBoostEnabled != null && Object.hasOwnProperty.call(message, "dataBoostEnabled"))
43337
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.dataBoostEnabled);
43083
43338
  return writer;
43084
43339
  };
43085
43340
 
@@ -43177,6 +43432,10 @@
43177
43432
  message.requestOptions = $root.google.spanner.v1.RequestOptions.decode(reader, reader.uint32());
43178
43433
  break;
43179
43434
  }
43435
+ case 16: {
43436
+ message.dataBoostEnabled = reader.bool();
43437
+ break;
43438
+ }
43180
43439
  default:
43181
43440
  reader.skipType(tag & 7);
43182
43441
  break;
@@ -43266,6 +43525,9 @@
43266
43525
  if (error)
43267
43526
  return "requestOptions." + error;
43268
43527
  }
43528
+ if (message.dataBoostEnabled != null && message.hasOwnProperty("dataBoostEnabled"))
43529
+ if (typeof message.dataBoostEnabled !== "boolean")
43530
+ return "dataBoostEnabled: boolean expected";
43269
43531
  return null;
43270
43532
  };
43271
43533
 
@@ -43354,6 +43616,8 @@
43354
43616
  throw TypeError(".google.spanner.v1.ExecuteSqlRequest.requestOptions: object expected");
43355
43617
  message.requestOptions = $root.google.spanner.v1.RequestOptions.fromObject(object.requestOptions);
43356
43618
  }
43619
+ if (object.dataBoostEnabled != null)
43620
+ message.dataBoostEnabled = Boolean(object.dataBoostEnabled);
43357
43621
  return message;
43358
43622
  };
43359
43623
 
@@ -43399,6 +43663,7 @@
43399
43663
  object.seqno = options.longs === String ? "0" : 0;
43400
43664
  object.queryOptions = null;
43401
43665
  object.requestOptions = null;
43666
+ object.dataBoostEnabled = false;
43402
43667
  }
43403
43668
  if (message.session != null && message.hasOwnProperty("session"))
43404
43669
  object.session = message.session;
@@ -43429,6 +43694,8 @@
43429
43694
  object.queryOptions = $root.google.spanner.v1.ExecuteSqlRequest.QueryOptions.toObject(message.queryOptions, options);
43430
43695
  if (message.requestOptions != null && message.hasOwnProperty("requestOptions"))
43431
43696
  object.requestOptions = $root.google.spanner.v1.RequestOptions.toObject(message.requestOptions, options);
43697
+ if (message.dataBoostEnabled != null && message.hasOwnProperty("dataBoostEnabled"))
43698
+ object.dataBoostEnabled = message.dataBoostEnabled;
43432
43699
  return object;
43433
43700
  };
43434
43701
 
@@ -46084,6 +46351,7 @@
46084
46351
  * @property {Uint8Array|null} [resumeToken] ReadRequest resumeToken
46085
46352
  * @property {Uint8Array|null} [partitionToken] ReadRequest partitionToken
46086
46353
  * @property {google.spanner.v1.IRequestOptions|null} [requestOptions] ReadRequest requestOptions
46354
+ * @property {boolean|null} [dataBoostEnabled] ReadRequest dataBoostEnabled
46087
46355
  */
46088
46356
 
46089
46357
  /**
@@ -46182,6 +46450,14 @@
46182
46450
  */
46183
46451
  ReadRequest.prototype.requestOptions = null;
46184
46452
 
46453
+ /**
46454
+ * ReadRequest dataBoostEnabled.
46455
+ * @member {boolean} dataBoostEnabled
46456
+ * @memberof google.spanner.v1.ReadRequest
46457
+ * @instance
46458
+ */
46459
+ ReadRequest.prototype.dataBoostEnabled = false;
46460
+
46185
46461
  /**
46186
46462
  * Creates a new ReadRequest instance using the specified properties.
46187
46463
  * @function create
@@ -46227,6 +46503,8 @@
46227
46503
  writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.partitionToken);
46228
46504
  if (message.requestOptions != null && Object.hasOwnProperty.call(message, "requestOptions"))
46229
46505
  $root.google.spanner.v1.RequestOptions.encode(message.requestOptions, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
46506
+ if (message.dataBoostEnabled != null && Object.hasOwnProperty.call(message, "dataBoostEnabled"))
46507
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.dataBoostEnabled);
46230
46508
  return writer;
46231
46509
  };
46232
46510
 
@@ -46303,6 +46581,10 @@
46303
46581
  message.requestOptions = $root.google.spanner.v1.RequestOptions.decode(reader, reader.uint32());
46304
46582
  break;
46305
46583
  }
46584
+ case 15: {
46585
+ message.dataBoostEnabled = reader.bool();
46586
+ break;
46587
+ }
46306
46588
  default:
46307
46589
  reader.skipType(tag & 7);
46308
46590
  break;
@@ -46378,6 +46660,9 @@
46378
46660
  if (error)
46379
46661
  return "requestOptions." + error;
46380
46662
  }
46663
+ if (message.dataBoostEnabled != null && message.hasOwnProperty("dataBoostEnabled"))
46664
+ if (typeof message.dataBoostEnabled !== "boolean")
46665
+ return "dataBoostEnabled: boolean expected";
46381
46666
  return null;
46382
46667
  };
46383
46668
 
@@ -46440,6 +46725,8 @@
46440
46725
  throw TypeError(".google.spanner.v1.ReadRequest.requestOptions: object expected");
46441
46726
  message.requestOptions = $root.google.spanner.v1.RequestOptions.fromObject(object.requestOptions);
46442
46727
  }
46728
+ if (object.dataBoostEnabled != null)
46729
+ message.dataBoostEnabled = Boolean(object.dataBoostEnabled);
46443
46730
  return message;
46444
46731
  };
46445
46732
 
@@ -46484,6 +46771,7 @@
46484
46771
  object.partitionToken = $util.newBuffer(object.partitionToken);
46485
46772
  }
46486
46773
  object.requestOptions = null;
46774
+ object.dataBoostEnabled = false;
46487
46775
  }
46488
46776
  if (message.session != null && message.hasOwnProperty("session"))
46489
46777
  object.session = message.session;
@@ -46511,6 +46799,8 @@
46511
46799
  object.partitionToken = options.bytes === String ? $util.base64.encode(message.partitionToken, 0, message.partitionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.partitionToken) : message.partitionToken;
46512
46800
  if (message.requestOptions != null && message.hasOwnProperty("requestOptions"))
46513
46801
  object.requestOptions = $root.google.spanner.v1.RequestOptions.toObject(message.requestOptions, options);
46802
+ if (message.dataBoostEnabled != null && message.hasOwnProperty("dataBoostEnabled"))
46803
+ object.dataBoostEnabled = message.dataBoostEnabled;
46514
46804
  return object;
46515
46805
  };
46516
46806
 
@@ -49107,6 +49397,3615 @@
49107
49397
  return CustomHttpPattern;
49108
49398
  })();
49109
49399
 
49400
+ api.CommonLanguageSettings = (function() {
49401
+
49402
+ /**
49403
+ * Properties of a CommonLanguageSettings.
49404
+ * @memberof google.api
49405
+ * @interface ICommonLanguageSettings
49406
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
49407
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
49408
+ */
49409
+
49410
+ /**
49411
+ * Constructs a new CommonLanguageSettings.
49412
+ * @memberof google.api
49413
+ * @classdesc Represents a CommonLanguageSettings.
49414
+ * @implements ICommonLanguageSettings
49415
+ * @constructor
49416
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
49417
+ */
49418
+ function CommonLanguageSettings(properties) {
49419
+ this.destinations = [];
49420
+ if (properties)
49421
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49422
+ if (properties[keys[i]] != null)
49423
+ this[keys[i]] = properties[keys[i]];
49424
+ }
49425
+
49426
+ /**
49427
+ * CommonLanguageSettings referenceDocsUri.
49428
+ * @member {string} referenceDocsUri
49429
+ * @memberof google.api.CommonLanguageSettings
49430
+ * @instance
49431
+ */
49432
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
49433
+
49434
+ /**
49435
+ * CommonLanguageSettings destinations.
49436
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
49437
+ * @memberof google.api.CommonLanguageSettings
49438
+ * @instance
49439
+ */
49440
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
49441
+
49442
+ /**
49443
+ * Creates a new CommonLanguageSettings instance using the specified properties.
49444
+ * @function create
49445
+ * @memberof google.api.CommonLanguageSettings
49446
+ * @static
49447
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
49448
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
49449
+ */
49450
+ CommonLanguageSettings.create = function create(properties) {
49451
+ return new CommonLanguageSettings(properties);
49452
+ };
49453
+
49454
+ /**
49455
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
49456
+ * @function encode
49457
+ * @memberof google.api.CommonLanguageSettings
49458
+ * @static
49459
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
49460
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49461
+ * @returns {$protobuf.Writer} Writer
49462
+ */
49463
+ CommonLanguageSettings.encode = function encode(message, writer) {
49464
+ if (!writer)
49465
+ writer = $Writer.create();
49466
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
49467
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
49468
+ if (message.destinations != null && message.destinations.length) {
49469
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
49470
+ for (var i = 0; i < message.destinations.length; ++i)
49471
+ writer.int32(message.destinations[i]);
49472
+ writer.ldelim();
49473
+ }
49474
+ return writer;
49475
+ };
49476
+
49477
+ /**
49478
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
49479
+ * @function encodeDelimited
49480
+ * @memberof google.api.CommonLanguageSettings
49481
+ * @static
49482
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
49483
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49484
+ * @returns {$protobuf.Writer} Writer
49485
+ */
49486
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
49487
+ return this.encode(message, writer).ldelim();
49488
+ };
49489
+
49490
+ /**
49491
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
49492
+ * @function decode
49493
+ * @memberof google.api.CommonLanguageSettings
49494
+ * @static
49495
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49496
+ * @param {number} [length] Message length if known beforehand
49497
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49498
+ * @throws {Error} If the payload is not a reader or valid buffer
49499
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49500
+ */
49501
+ CommonLanguageSettings.decode = function decode(reader, length) {
49502
+ if (!(reader instanceof $Reader))
49503
+ reader = $Reader.create(reader);
49504
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
49505
+ while (reader.pos < end) {
49506
+ var tag = reader.uint32();
49507
+ switch (tag >>> 3) {
49508
+ case 1: {
49509
+ message.referenceDocsUri = reader.string();
49510
+ break;
49511
+ }
49512
+ case 2: {
49513
+ if (!(message.destinations && message.destinations.length))
49514
+ message.destinations = [];
49515
+ if ((tag & 7) === 2) {
49516
+ var end2 = reader.uint32() + reader.pos;
49517
+ while (reader.pos < end2)
49518
+ message.destinations.push(reader.int32());
49519
+ } else
49520
+ message.destinations.push(reader.int32());
49521
+ break;
49522
+ }
49523
+ default:
49524
+ reader.skipType(tag & 7);
49525
+ break;
49526
+ }
49527
+ }
49528
+ return message;
49529
+ };
49530
+
49531
+ /**
49532
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
49533
+ * @function decodeDelimited
49534
+ * @memberof google.api.CommonLanguageSettings
49535
+ * @static
49536
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49537
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49538
+ * @throws {Error} If the payload is not a reader or valid buffer
49539
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49540
+ */
49541
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
49542
+ if (!(reader instanceof $Reader))
49543
+ reader = new $Reader(reader);
49544
+ return this.decode(reader, reader.uint32());
49545
+ };
49546
+
49547
+ /**
49548
+ * Verifies a CommonLanguageSettings message.
49549
+ * @function verify
49550
+ * @memberof google.api.CommonLanguageSettings
49551
+ * @static
49552
+ * @param {Object.<string,*>} message Plain object to verify
49553
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49554
+ */
49555
+ CommonLanguageSettings.verify = function verify(message) {
49556
+ if (typeof message !== "object" || message === null)
49557
+ return "object expected";
49558
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
49559
+ if (!$util.isString(message.referenceDocsUri))
49560
+ return "referenceDocsUri: string expected";
49561
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
49562
+ if (!Array.isArray(message.destinations))
49563
+ return "destinations: array expected";
49564
+ for (var i = 0; i < message.destinations.length; ++i)
49565
+ switch (message.destinations[i]) {
49566
+ default:
49567
+ return "destinations: enum value[] expected";
49568
+ case 0:
49569
+ case 10:
49570
+ case 20:
49571
+ break;
49572
+ }
49573
+ }
49574
+ return null;
49575
+ };
49576
+
49577
+ /**
49578
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
49579
+ * @function fromObject
49580
+ * @memberof google.api.CommonLanguageSettings
49581
+ * @static
49582
+ * @param {Object.<string,*>} object Plain object
49583
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
49584
+ */
49585
+ CommonLanguageSettings.fromObject = function fromObject(object) {
49586
+ if (object instanceof $root.google.api.CommonLanguageSettings)
49587
+ return object;
49588
+ var message = new $root.google.api.CommonLanguageSettings();
49589
+ if (object.referenceDocsUri != null)
49590
+ message.referenceDocsUri = String(object.referenceDocsUri);
49591
+ if (object.destinations) {
49592
+ if (!Array.isArray(object.destinations))
49593
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
49594
+ message.destinations = [];
49595
+ for (var i = 0; i < object.destinations.length; ++i)
49596
+ switch (object.destinations[i]) {
49597
+ default:
49598
+ if (typeof object.destinations[i] === "number") {
49599
+ message.destinations[i] = object.destinations[i];
49600
+ break;
49601
+ }
49602
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
49603
+ case 0:
49604
+ message.destinations[i] = 0;
49605
+ break;
49606
+ case "GITHUB":
49607
+ case 10:
49608
+ message.destinations[i] = 10;
49609
+ break;
49610
+ case "PACKAGE_MANAGER":
49611
+ case 20:
49612
+ message.destinations[i] = 20;
49613
+ break;
49614
+ }
49615
+ }
49616
+ return message;
49617
+ };
49618
+
49619
+ /**
49620
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
49621
+ * @function toObject
49622
+ * @memberof google.api.CommonLanguageSettings
49623
+ * @static
49624
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
49625
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49626
+ * @returns {Object.<string,*>} Plain object
49627
+ */
49628
+ CommonLanguageSettings.toObject = function toObject(message, options) {
49629
+ if (!options)
49630
+ options = {};
49631
+ var object = {};
49632
+ if (options.arrays || options.defaults)
49633
+ object.destinations = [];
49634
+ if (options.defaults)
49635
+ object.referenceDocsUri = "";
49636
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
49637
+ object.referenceDocsUri = message.referenceDocsUri;
49638
+ if (message.destinations && message.destinations.length) {
49639
+ object.destinations = [];
49640
+ for (var j = 0; j < message.destinations.length; ++j)
49641
+ 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];
49642
+ }
49643
+ return object;
49644
+ };
49645
+
49646
+ /**
49647
+ * Converts this CommonLanguageSettings to JSON.
49648
+ * @function toJSON
49649
+ * @memberof google.api.CommonLanguageSettings
49650
+ * @instance
49651
+ * @returns {Object.<string,*>} JSON object
49652
+ */
49653
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
49654
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49655
+ };
49656
+
49657
+ /**
49658
+ * Gets the default type url for CommonLanguageSettings
49659
+ * @function getTypeUrl
49660
+ * @memberof google.api.CommonLanguageSettings
49661
+ * @static
49662
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
49663
+ * @returns {string} The default type url
49664
+ */
49665
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
49666
+ if (typeUrlPrefix === undefined) {
49667
+ typeUrlPrefix = "type.googleapis.com";
49668
+ }
49669
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
49670
+ };
49671
+
49672
+ return CommonLanguageSettings;
49673
+ })();
49674
+
49675
+ api.ClientLibrarySettings = (function() {
49676
+
49677
+ /**
49678
+ * Properties of a ClientLibrarySettings.
49679
+ * @memberof google.api
49680
+ * @interface IClientLibrarySettings
49681
+ * @property {string|null} [version] ClientLibrarySettings version
49682
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
49683
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
49684
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
49685
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
49686
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
49687
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
49688
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
49689
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
49690
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
49691
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
49692
+ */
49693
+
49694
+ /**
49695
+ * Constructs a new ClientLibrarySettings.
49696
+ * @memberof google.api
49697
+ * @classdesc Represents a ClientLibrarySettings.
49698
+ * @implements IClientLibrarySettings
49699
+ * @constructor
49700
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
49701
+ */
49702
+ function ClientLibrarySettings(properties) {
49703
+ if (properties)
49704
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49705
+ if (properties[keys[i]] != null)
49706
+ this[keys[i]] = properties[keys[i]];
49707
+ }
49708
+
49709
+ /**
49710
+ * ClientLibrarySettings version.
49711
+ * @member {string} version
49712
+ * @memberof google.api.ClientLibrarySettings
49713
+ * @instance
49714
+ */
49715
+ ClientLibrarySettings.prototype.version = "";
49716
+
49717
+ /**
49718
+ * ClientLibrarySettings launchStage.
49719
+ * @member {google.api.LaunchStage} launchStage
49720
+ * @memberof google.api.ClientLibrarySettings
49721
+ * @instance
49722
+ */
49723
+ ClientLibrarySettings.prototype.launchStage = 0;
49724
+
49725
+ /**
49726
+ * ClientLibrarySettings restNumericEnums.
49727
+ * @member {boolean} restNumericEnums
49728
+ * @memberof google.api.ClientLibrarySettings
49729
+ * @instance
49730
+ */
49731
+ ClientLibrarySettings.prototype.restNumericEnums = false;
49732
+
49733
+ /**
49734
+ * ClientLibrarySettings javaSettings.
49735
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
49736
+ * @memberof google.api.ClientLibrarySettings
49737
+ * @instance
49738
+ */
49739
+ ClientLibrarySettings.prototype.javaSettings = null;
49740
+
49741
+ /**
49742
+ * ClientLibrarySettings cppSettings.
49743
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
49744
+ * @memberof google.api.ClientLibrarySettings
49745
+ * @instance
49746
+ */
49747
+ ClientLibrarySettings.prototype.cppSettings = null;
49748
+
49749
+ /**
49750
+ * ClientLibrarySettings phpSettings.
49751
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
49752
+ * @memberof google.api.ClientLibrarySettings
49753
+ * @instance
49754
+ */
49755
+ ClientLibrarySettings.prototype.phpSettings = null;
49756
+
49757
+ /**
49758
+ * ClientLibrarySettings pythonSettings.
49759
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
49760
+ * @memberof google.api.ClientLibrarySettings
49761
+ * @instance
49762
+ */
49763
+ ClientLibrarySettings.prototype.pythonSettings = null;
49764
+
49765
+ /**
49766
+ * ClientLibrarySettings nodeSettings.
49767
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
49768
+ * @memberof google.api.ClientLibrarySettings
49769
+ * @instance
49770
+ */
49771
+ ClientLibrarySettings.prototype.nodeSettings = null;
49772
+
49773
+ /**
49774
+ * ClientLibrarySettings dotnetSettings.
49775
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
49776
+ * @memberof google.api.ClientLibrarySettings
49777
+ * @instance
49778
+ */
49779
+ ClientLibrarySettings.prototype.dotnetSettings = null;
49780
+
49781
+ /**
49782
+ * ClientLibrarySettings rubySettings.
49783
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
49784
+ * @memberof google.api.ClientLibrarySettings
49785
+ * @instance
49786
+ */
49787
+ ClientLibrarySettings.prototype.rubySettings = null;
49788
+
49789
+ /**
49790
+ * ClientLibrarySettings goSettings.
49791
+ * @member {google.api.IGoSettings|null|undefined} goSettings
49792
+ * @memberof google.api.ClientLibrarySettings
49793
+ * @instance
49794
+ */
49795
+ ClientLibrarySettings.prototype.goSettings = null;
49796
+
49797
+ /**
49798
+ * Creates a new ClientLibrarySettings instance using the specified properties.
49799
+ * @function create
49800
+ * @memberof google.api.ClientLibrarySettings
49801
+ * @static
49802
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
49803
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
49804
+ */
49805
+ ClientLibrarySettings.create = function create(properties) {
49806
+ return new ClientLibrarySettings(properties);
49807
+ };
49808
+
49809
+ /**
49810
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
49811
+ * @function encode
49812
+ * @memberof google.api.ClientLibrarySettings
49813
+ * @static
49814
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
49815
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49816
+ * @returns {$protobuf.Writer} Writer
49817
+ */
49818
+ ClientLibrarySettings.encode = function encode(message, writer) {
49819
+ if (!writer)
49820
+ writer = $Writer.create();
49821
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
49822
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
49823
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
49824
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
49825
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
49826
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
49827
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
49828
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
49829
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
49830
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
49831
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
49832
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
49833
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
49834
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
49835
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
49836
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
49837
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
49838
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
49839
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
49840
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
49841
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
49842
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
49843
+ return writer;
49844
+ };
49845
+
49846
+ /**
49847
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
49848
+ * @function encodeDelimited
49849
+ * @memberof google.api.ClientLibrarySettings
49850
+ * @static
49851
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
49852
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49853
+ * @returns {$protobuf.Writer} Writer
49854
+ */
49855
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
49856
+ return this.encode(message, writer).ldelim();
49857
+ };
49858
+
49859
+ /**
49860
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
49861
+ * @function decode
49862
+ * @memberof google.api.ClientLibrarySettings
49863
+ * @static
49864
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49865
+ * @param {number} [length] Message length if known beforehand
49866
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
49867
+ * @throws {Error} If the payload is not a reader or valid buffer
49868
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49869
+ */
49870
+ ClientLibrarySettings.decode = function decode(reader, length) {
49871
+ if (!(reader instanceof $Reader))
49872
+ reader = $Reader.create(reader);
49873
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
49874
+ while (reader.pos < end) {
49875
+ var tag = reader.uint32();
49876
+ switch (tag >>> 3) {
49877
+ case 1: {
49878
+ message.version = reader.string();
49879
+ break;
49880
+ }
49881
+ case 2: {
49882
+ message.launchStage = reader.int32();
49883
+ break;
49884
+ }
49885
+ case 3: {
49886
+ message.restNumericEnums = reader.bool();
49887
+ break;
49888
+ }
49889
+ case 21: {
49890
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
49891
+ break;
49892
+ }
49893
+ case 22: {
49894
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
49895
+ break;
49896
+ }
49897
+ case 23: {
49898
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
49899
+ break;
49900
+ }
49901
+ case 24: {
49902
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
49903
+ break;
49904
+ }
49905
+ case 25: {
49906
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
49907
+ break;
49908
+ }
49909
+ case 26: {
49910
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
49911
+ break;
49912
+ }
49913
+ case 27: {
49914
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
49915
+ break;
49916
+ }
49917
+ case 28: {
49918
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
49919
+ break;
49920
+ }
49921
+ default:
49922
+ reader.skipType(tag & 7);
49923
+ break;
49924
+ }
49925
+ }
49926
+ return message;
49927
+ };
49928
+
49929
+ /**
49930
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
49931
+ * @function decodeDelimited
49932
+ * @memberof google.api.ClientLibrarySettings
49933
+ * @static
49934
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49935
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
49936
+ * @throws {Error} If the payload is not a reader or valid buffer
49937
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49938
+ */
49939
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
49940
+ if (!(reader instanceof $Reader))
49941
+ reader = new $Reader(reader);
49942
+ return this.decode(reader, reader.uint32());
49943
+ };
49944
+
49945
+ /**
49946
+ * Verifies a ClientLibrarySettings message.
49947
+ * @function verify
49948
+ * @memberof google.api.ClientLibrarySettings
49949
+ * @static
49950
+ * @param {Object.<string,*>} message Plain object to verify
49951
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49952
+ */
49953
+ ClientLibrarySettings.verify = function verify(message) {
49954
+ if (typeof message !== "object" || message === null)
49955
+ return "object expected";
49956
+ if (message.version != null && message.hasOwnProperty("version"))
49957
+ if (!$util.isString(message.version))
49958
+ return "version: string expected";
49959
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
49960
+ switch (message.launchStage) {
49961
+ default:
49962
+ return "launchStage: enum value expected";
49963
+ case 0:
49964
+ case 6:
49965
+ case 7:
49966
+ case 1:
49967
+ case 2:
49968
+ case 3:
49969
+ case 4:
49970
+ case 5:
49971
+ break;
49972
+ }
49973
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
49974
+ if (typeof message.restNumericEnums !== "boolean")
49975
+ return "restNumericEnums: boolean expected";
49976
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
49977
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
49978
+ if (error)
49979
+ return "javaSettings." + error;
49980
+ }
49981
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
49982
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
49983
+ if (error)
49984
+ return "cppSettings." + error;
49985
+ }
49986
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
49987
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
49988
+ if (error)
49989
+ return "phpSettings." + error;
49990
+ }
49991
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
49992
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
49993
+ if (error)
49994
+ return "pythonSettings." + error;
49995
+ }
49996
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
49997
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
49998
+ if (error)
49999
+ return "nodeSettings." + error;
50000
+ }
50001
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
50002
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
50003
+ if (error)
50004
+ return "dotnetSettings." + error;
50005
+ }
50006
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
50007
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
50008
+ if (error)
50009
+ return "rubySettings." + error;
50010
+ }
50011
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
50012
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
50013
+ if (error)
50014
+ return "goSettings." + error;
50015
+ }
50016
+ return null;
50017
+ };
50018
+
50019
+ /**
50020
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
50021
+ * @function fromObject
50022
+ * @memberof google.api.ClientLibrarySettings
50023
+ * @static
50024
+ * @param {Object.<string,*>} object Plain object
50025
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
50026
+ */
50027
+ ClientLibrarySettings.fromObject = function fromObject(object) {
50028
+ if (object instanceof $root.google.api.ClientLibrarySettings)
50029
+ return object;
50030
+ var message = new $root.google.api.ClientLibrarySettings();
50031
+ if (object.version != null)
50032
+ message.version = String(object.version);
50033
+ switch (object.launchStage) {
50034
+ default:
50035
+ if (typeof object.launchStage === "number") {
50036
+ message.launchStage = object.launchStage;
50037
+ break;
50038
+ }
50039
+ break;
50040
+ case "LAUNCH_STAGE_UNSPECIFIED":
50041
+ case 0:
50042
+ message.launchStage = 0;
50043
+ break;
50044
+ case "UNIMPLEMENTED":
50045
+ case 6:
50046
+ message.launchStage = 6;
50047
+ break;
50048
+ case "PRELAUNCH":
50049
+ case 7:
50050
+ message.launchStage = 7;
50051
+ break;
50052
+ case "EARLY_ACCESS":
50053
+ case 1:
50054
+ message.launchStage = 1;
50055
+ break;
50056
+ case "ALPHA":
50057
+ case 2:
50058
+ message.launchStage = 2;
50059
+ break;
50060
+ case "BETA":
50061
+ case 3:
50062
+ message.launchStage = 3;
50063
+ break;
50064
+ case "GA":
50065
+ case 4:
50066
+ message.launchStage = 4;
50067
+ break;
50068
+ case "DEPRECATED":
50069
+ case 5:
50070
+ message.launchStage = 5;
50071
+ break;
50072
+ }
50073
+ if (object.restNumericEnums != null)
50074
+ message.restNumericEnums = Boolean(object.restNumericEnums);
50075
+ if (object.javaSettings != null) {
50076
+ if (typeof object.javaSettings !== "object")
50077
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
50078
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
50079
+ }
50080
+ if (object.cppSettings != null) {
50081
+ if (typeof object.cppSettings !== "object")
50082
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
50083
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
50084
+ }
50085
+ if (object.phpSettings != null) {
50086
+ if (typeof object.phpSettings !== "object")
50087
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
50088
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
50089
+ }
50090
+ if (object.pythonSettings != null) {
50091
+ if (typeof object.pythonSettings !== "object")
50092
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
50093
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
50094
+ }
50095
+ if (object.nodeSettings != null) {
50096
+ if (typeof object.nodeSettings !== "object")
50097
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
50098
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
50099
+ }
50100
+ if (object.dotnetSettings != null) {
50101
+ if (typeof object.dotnetSettings !== "object")
50102
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
50103
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
50104
+ }
50105
+ if (object.rubySettings != null) {
50106
+ if (typeof object.rubySettings !== "object")
50107
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
50108
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
50109
+ }
50110
+ if (object.goSettings != null) {
50111
+ if (typeof object.goSettings !== "object")
50112
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
50113
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
50114
+ }
50115
+ return message;
50116
+ };
50117
+
50118
+ /**
50119
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
50120
+ * @function toObject
50121
+ * @memberof google.api.ClientLibrarySettings
50122
+ * @static
50123
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
50124
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50125
+ * @returns {Object.<string,*>} Plain object
50126
+ */
50127
+ ClientLibrarySettings.toObject = function toObject(message, options) {
50128
+ if (!options)
50129
+ options = {};
50130
+ var object = {};
50131
+ if (options.defaults) {
50132
+ object.version = "";
50133
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
50134
+ object.restNumericEnums = false;
50135
+ object.javaSettings = null;
50136
+ object.cppSettings = null;
50137
+ object.phpSettings = null;
50138
+ object.pythonSettings = null;
50139
+ object.nodeSettings = null;
50140
+ object.dotnetSettings = null;
50141
+ object.rubySettings = null;
50142
+ object.goSettings = null;
50143
+ }
50144
+ if (message.version != null && message.hasOwnProperty("version"))
50145
+ object.version = message.version;
50146
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
50147
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
50148
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
50149
+ object.restNumericEnums = message.restNumericEnums;
50150
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
50151
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
50152
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
50153
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
50154
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
50155
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
50156
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
50157
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
50158
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
50159
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
50160
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
50161
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
50162
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
50163
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
50164
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
50165
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
50166
+ return object;
50167
+ };
50168
+
50169
+ /**
50170
+ * Converts this ClientLibrarySettings to JSON.
50171
+ * @function toJSON
50172
+ * @memberof google.api.ClientLibrarySettings
50173
+ * @instance
50174
+ * @returns {Object.<string,*>} JSON object
50175
+ */
50176
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
50177
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50178
+ };
50179
+
50180
+ /**
50181
+ * Gets the default type url for ClientLibrarySettings
50182
+ * @function getTypeUrl
50183
+ * @memberof google.api.ClientLibrarySettings
50184
+ * @static
50185
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50186
+ * @returns {string} The default type url
50187
+ */
50188
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50189
+ if (typeUrlPrefix === undefined) {
50190
+ typeUrlPrefix = "type.googleapis.com";
50191
+ }
50192
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
50193
+ };
50194
+
50195
+ return ClientLibrarySettings;
50196
+ })();
50197
+
50198
+ api.Publishing = (function() {
50199
+
50200
+ /**
50201
+ * Properties of a Publishing.
50202
+ * @memberof google.api
50203
+ * @interface IPublishing
50204
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
50205
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
50206
+ * @property {string|null} [documentationUri] Publishing documentationUri
50207
+ * @property {string|null} [apiShortName] Publishing apiShortName
50208
+ * @property {string|null} [githubLabel] Publishing githubLabel
50209
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
50210
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
50211
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
50212
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
50213
+ */
50214
+
50215
+ /**
50216
+ * Constructs a new Publishing.
50217
+ * @memberof google.api
50218
+ * @classdesc Represents a Publishing.
50219
+ * @implements IPublishing
50220
+ * @constructor
50221
+ * @param {google.api.IPublishing=} [properties] Properties to set
50222
+ */
50223
+ function Publishing(properties) {
50224
+ this.methodSettings = [];
50225
+ this.codeownerGithubTeams = [];
50226
+ this.librarySettings = [];
50227
+ if (properties)
50228
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50229
+ if (properties[keys[i]] != null)
50230
+ this[keys[i]] = properties[keys[i]];
50231
+ }
50232
+
50233
+ /**
50234
+ * Publishing methodSettings.
50235
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
50236
+ * @memberof google.api.Publishing
50237
+ * @instance
50238
+ */
50239
+ Publishing.prototype.methodSettings = $util.emptyArray;
50240
+
50241
+ /**
50242
+ * Publishing newIssueUri.
50243
+ * @member {string} newIssueUri
50244
+ * @memberof google.api.Publishing
50245
+ * @instance
50246
+ */
50247
+ Publishing.prototype.newIssueUri = "";
50248
+
50249
+ /**
50250
+ * Publishing documentationUri.
50251
+ * @member {string} documentationUri
50252
+ * @memberof google.api.Publishing
50253
+ * @instance
50254
+ */
50255
+ Publishing.prototype.documentationUri = "";
50256
+
50257
+ /**
50258
+ * Publishing apiShortName.
50259
+ * @member {string} apiShortName
50260
+ * @memberof google.api.Publishing
50261
+ * @instance
50262
+ */
50263
+ Publishing.prototype.apiShortName = "";
50264
+
50265
+ /**
50266
+ * Publishing githubLabel.
50267
+ * @member {string} githubLabel
50268
+ * @memberof google.api.Publishing
50269
+ * @instance
50270
+ */
50271
+ Publishing.prototype.githubLabel = "";
50272
+
50273
+ /**
50274
+ * Publishing codeownerGithubTeams.
50275
+ * @member {Array.<string>} codeownerGithubTeams
50276
+ * @memberof google.api.Publishing
50277
+ * @instance
50278
+ */
50279
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
50280
+
50281
+ /**
50282
+ * Publishing docTagPrefix.
50283
+ * @member {string} docTagPrefix
50284
+ * @memberof google.api.Publishing
50285
+ * @instance
50286
+ */
50287
+ Publishing.prototype.docTagPrefix = "";
50288
+
50289
+ /**
50290
+ * Publishing organization.
50291
+ * @member {google.api.ClientLibraryOrganization} organization
50292
+ * @memberof google.api.Publishing
50293
+ * @instance
50294
+ */
50295
+ Publishing.prototype.organization = 0;
50296
+
50297
+ /**
50298
+ * Publishing librarySettings.
50299
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
50300
+ * @memberof google.api.Publishing
50301
+ * @instance
50302
+ */
50303
+ Publishing.prototype.librarySettings = $util.emptyArray;
50304
+
50305
+ /**
50306
+ * Creates a new Publishing instance using the specified properties.
50307
+ * @function create
50308
+ * @memberof google.api.Publishing
50309
+ * @static
50310
+ * @param {google.api.IPublishing=} [properties] Properties to set
50311
+ * @returns {google.api.Publishing} Publishing instance
50312
+ */
50313
+ Publishing.create = function create(properties) {
50314
+ return new Publishing(properties);
50315
+ };
50316
+
50317
+ /**
50318
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
50319
+ * @function encode
50320
+ * @memberof google.api.Publishing
50321
+ * @static
50322
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
50323
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50324
+ * @returns {$protobuf.Writer} Writer
50325
+ */
50326
+ Publishing.encode = function encode(message, writer) {
50327
+ if (!writer)
50328
+ writer = $Writer.create();
50329
+ if (message.methodSettings != null && message.methodSettings.length)
50330
+ for (var i = 0; i < message.methodSettings.length; ++i)
50331
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50332
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
50333
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
50334
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
50335
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
50336
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
50337
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
50338
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
50339
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
50340
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
50341
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
50342
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
50343
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
50344
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
50345
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
50346
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
50347
+ if (message.librarySettings != null && message.librarySettings.length)
50348
+ for (var i = 0; i < message.librarySettings.length; ++i)
50349
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
50350
+ return writer;
50351
+ };
50352
+
50353
+ /**
50354
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
50355
+ * @function encodeDelimited
50356
+ * @memberof google.api.Publishing
50357
+ * @static
50358
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
50359
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50360
+ * @returns {$protobuf.Writer} Writer
50361
+ */
50362
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
50363
+ return this.encode(message, writer).ldelim();
50364
+ };
50365
+
50366
+ /**
50367
+ * Decodes a Publishing message from the specified reader or buffer.
50368
+ * @function decode
50369
+ * @memberof google.api.Publishing
50370
+ * @static
50371
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50372
+ * @param {number} [length] Message length if known beforehand
50373
+ * @returns {google.api.Publishing} Publishing
50374
+ * @throws {Error} If the payload is not a reader or valid buffer
50375
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50376
+ */
50377
+ Publishing.decode = function decode(reader, length) {
50378
+ if (!(reader instanceof $Reader))
50379
+ reader = $Reader.create(reader);
50380
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
50381
+ while (reader.pos < end) {
50382
+ var tag = reader.uint32();
50383
+ switch (tag >>> 3) {
50384
+ case 2: {
50385
+ if (!(message.methodSettings && message.methodSettings.length))
50386
+ message.methodSettings = [];
50387
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
50388
+ break;
50389
+ }
50390
+ case 101: {
50391
+ message.newIssueUri = reader.string();
50392
+ break;
50393
+ }
50394
+ case 102: {
50395
+ message.documentationUri = reader.string();
50396
+ break;
50397
+ }
50398
+ case 103: {
50399
+ message.apiShortName = reader.string();
50400
+ break;
50401
+ }
50402
+ case 104: {
50403
+ message.githubLabel = reader.string();
50404
+ break;
50405
+ }
50406
+ case 105: {
50407
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
50408
+ message.codeownerGithubTeams = [];
50409
+ message.codeownerGithubTeams.push(reader.string());
50410
+ break;
50411
+ }
50412
+ case 106: {
50413
+ message.docTagPrefix = reader.string();
50414
+ break;
50415
+ }
50416
+ case 107: {
50417
+ message.organization = reader.int32();
50418
+ break;
50419
+ }
50420
+ case 109: {
50421
+ if (!(message.librarySettings && message.librarySettings.length))
50422
+ message.librarySettings = [];
50423
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
50424
+ break;
50425
+ }
50426
+ default:
50427
+ reader.skipType(tag & 7);
50428
+ break;
50429
+ }
50430
+ }
50431
+ return message;
50432
+ };
50433
+
50434
+ /**
50435
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
50436
+ * @function decodeDelimited
50437
+ * @memberof google.api.Publishing
50438
+ * @static
50439
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50440
+ * @returns {google.api.Publishing} Publishing
50441
+ * @throws {Error} If the payload is not a reader or valid buffer
50442
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50443
+ */
50444
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
50445
+ if (!(reader instanceof $Reader))
50446
+ reader = new $Reader(reader);
50447
+ return this.decode(reader, reader.uint32());
50448
+ };
50449
+
50450
+ /**
50451
+ * Verifies a Publishing message.
50452
+ * @function verify
50453
+ * @memberof google.api.Publishing
50454
+ * @static
50455
+ * @param {Object.<string,*>} message Plain object to verify
50456
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50457
+ */
50458
+ Publishing.verify = function verify(message) {
50459
+ if (typeof message !== "object" || message === null)
50460
+ return "object expected";
50461
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
50462
+ if (!Array.isArray(message.methodSettings))
50463
+ return "methodSettings: array expected";
50464
+ for (var i = 0; i < message.methodSettings.length; ++i) {
50465
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
50466
+ if (error)
50467
+ return "methodSettings." + error;
50468
+ }
50469
+ }
50470
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
50471
+ if (!$util.isString(message.newIssueUri))
50472
+ return "newIssueUri: string expected";
50473
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
50474
+ if (!$util.isString(message.documentationUri))
50475
+ return "documentationUri: string expected";
50476
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
50477
+ if (!$util.isString(message.apiShortName))
50478
+ return "apiShortName: string expected";
50479
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
50480
+ if (!$util.isString(message.githubLabel))
50481
+ return "githubLabel: string expected";
50482
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
50483
+ if (!Array.isArray(message.codeownerGithubTeams))
50484
+ return "codeownerGithubTeams: array expected";
50485
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
50486
+ if (!$util.isString(message.codeownerGithubTeams[i]))
50487
+ return "codeownerGithubTeams: string[] expected";
50488
+ }
50489
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
50490
+ if (!$util.isString(message.docTagPrefix))
50491
+ return "docTagPrefix: string expected";
50492
+ if (message.organization != null && message.hasOwnProperty("organization"))
50493
+ switch (message.organization) {
50494
+ default:
50495
+ return "organization: enum value expected";
50496
+ case 0:
50497
+ case 1:
50498
+ case 2:
50499
+ case 3:
50500
+ case 4:
50501
+ break;
50502
+ }
50503
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
50504
+ if (!Array.isArray(message.librarySettings))
50505
+ return "librarySettings: array expected";
50506
+ for (var i = 0; i < message.librarySettings.length; ++i) {
50507
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
50508
+ if (error)
50509
+ return "librarySettings." + error;
50510
+ }
50511
+ }
50512
+ return null;
50513
+ };
50514
+
50515
+ /**
50516
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
50517
+ * @function fromObject
50518
+ * @memberof google.api.Publishing
50519
+ * @static
50520
+ * @param {Object.<string,*>} object Plain object
50521
+ * @returns {google.api.Publishing} Publishing
50522
+ */
50523
+ Publishing.fromObject = function fromObject(object) {
50524
+ if (object instanceof $root.google.api.Publishing)
50525
+ return object;
50526
+ var message = new $root.google.api.Publishing();
50527
+ if (object.methodSettings) {
50528
+ if (!Array.isArray(object.methodSettings))
50529
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
50530
+ message.methodSettings = [];
50531
+ for (var i = 0; i < object.methodSettings.length; ++i) {
50532
+ if (typeof object.methodSettings[i] !== "object")
50533
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
50534
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
50535
+ }
50536
+ }
50537
+ if (object.newIssueUri != null)
50538
+ message.newIssueUri = String(object.newIssueUri);
50539
+ if (object.documentationUri != null)
50540
+ message.documentationUri = String(object.documentationUri);
50541
+ if (object.apiShortName != null)
50542
+ message.apiShortName = String(object.apiShortName);
50543
+ if (object.githubLabel != null)
50544
+ message.githubLabel = String(object.githubLabel);
50545
+ if (object.codeownerGithubTeams) {
50546
+ if (!Array.isArray(object.codeownerGithubTeams))
50547
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
50548
+ message.codeownerGithubTeams = [];
50549
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
50550
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
50551
+ }
50552
+ if (object.docTagPrefix != null)
50553
+ message.docTagPrefix = String(object.docTagPrefix);
50554
+ switch (object.organization) {
50555
+ default:
50556
+ if (typeof object.organization === "number") {
50557
+ message.organization = object.organization;
50558
+ break;
50559
+ }
50560
+ break;
50561
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
50562
+ case 0:
50563
+ message.organization = 0;
50564
+ break;
50565
+ case "CLOUD":
50566
+ case 1:
50567
+ message.organization = 1;
50568
+ break;
50569
+ case "ADS":
50570
+ case 2:
50571
+ message.organization = 2;
50572
+ break;
50573
+ case "PHOTOS":
50574
+ case 3:
50575
+ message.organization = 3;
50576
+ break;
50577
+ case "STREET_VIEW":
50578
+ case 4:
50579
+ message.organization = 4;
50580
+ break;
50581
+ }
50582
+ if (object.librarySettings) {
50583
+ if (!Array.isArray(object.librarySettings))
50584
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
50585
+ message.librarySettings = [];
50586
+ for (var i = 0; i < object.librarySettings.length; ++i) {
50587
+ if (typeof object.librarySettings[i] !== "object")
50588
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
50589
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
50590
+ }
50591
+ }
50592
+ return message;
50593
+ };
50594
+
50595
+ /**
50596
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
50597
+ * @function toObject
50598
+ * @memberof google.api.Publishing
50599
+ * @static
50600
+ * @param {google.api.Publishing} message Publishing
50601
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50602
+ * @returns {Object.<string,*>} Plain object
50603
+ */
50604
+ Publishing.toObject = function toObject(message, options) {
50605
+ if (!options)
50606
+ options = {};
50607
+ var object = {};
50608
+ if (options.arrays || options.defaults) {
50609
+ object.methodSettings = [];
50610
+ object.codeownerGithubTeams = [];
50611
+ object.librarySettings = [];
50612
+ }
50613
+ if (options.defaults) {
50614
+ object.newIssueUri = "";
50615
+ object.documentationUri = "";
50616
+ object.apiShortName = "";
50617
+ object.githubLabel = "";
50618
+ object.docTagPrefix = "";
50619
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
50620
+ }
50621
+ if (message.methodSettings && message.methodSettings.length) {
50622
+ object.methodSettings = [];
50623
+ for (var j = 0; j < message.methodSettings.length; ++j)
50624
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
50625
+ }
50626
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
50627
+ object.newIssueUri = message.newIssueUri;
50628
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
50629
+ object.documentationUri = message.documentationUri;
50630
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
50631
+ object.apiShortName = message.apiShortName;
50632
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
50633
+ object.githubLabel = message.githubLabel;
50634
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
50635
+ object.codeownerGithubTeams = [];
50636
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
50637
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
50638
+ }
50639
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
50640
+ object.docTagPrefix = message.docTagPrefix;
50641
+ if (message.organization != null && message.hasOwnProperty("organization"))
50642
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
50643
+ if (message.librarySettings && message.librarySettings.length) {
50644
+ object.librarySettings = [];
50645
+ for (var j = 0; j < message.librarySettings.length; ++j)
50646
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
50647
+ }
50648
+ return object;
50649
+ };
50650
+
50651
+ /**
50652
+ * Converts this Publishing to JSON.
50653
+ * @function toJSON
50654
+ * @memberof google.api.Publishing
50655
+ * @instance
50656
+ * @returns {Object.<string,*>} JSON object
50657
+ */
50658
+ Publishing.prototype.toJSON = function toJSON() {
50659
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50660
+ };
50661
+
50662
+ /**
50663
+ * Gets the default type url for Publishing
50664
+ * @function getTypeUrl
50665
+ * @memberof google.api.Publishing
50666
+ * @static
50667
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50668
+ * @returns {string} The default type url
50669
+ */
50670
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50671
+ if (typeUrlPrefix === undefined) {
50672
+ typeUrlPrefix = "type.googleapis.com";
50673
+ }
50674
+ return typeUrlPrefix + "/google.api.Publishing";
50675
+ };
50676
+
50677
+ return Publishing;
50678
+ })();
50679
+
50680
+ api.JavaSettings = (function() {
50681
+
50682
+ /**
50683
+ * Properties of a JavaSettings.
50684
+ * @memberof google.api
50685
+ * @interface IJavaSettings
50686
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
50687
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
50688
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
50689
+ */
50690
+
50691
+ /**
50692
+ * Constructs a new JavaSettings.
50693
+ * @memberof google.api
50694
+ * @classdesc Represents a JavaSettings.
50695
+ * @implements IJavaSettings
50696
+ * @constructor
50697
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
50698
+ */
50699
+ function JavaSettings(properties) {
50700
+ this.serviceClassNames = {};
50701
+ if (properties)
50702
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50703
+ if (properties[keys[i]] != null)
50704
+ this[keys[i]] = properties[keys[i]];
50705
+ }
50706
+
50707
+ /**
50708
+ * JavaSettings libraryPackage.
50709
+ * @member {string} libraryPackage
50710
+ * @memberof google.api.JavaSettings
50711
+ * @instance
50712
+ */
50713
+ JavaSettings.prototype.libraryPackage = "";
50714
+
50715
+ /**
50716
+ * JavaSettings serviceClassNames.
50717
+ * @member {Object.<string,string>} serviceClassNames
50718
+ * @memberof google.api.JavaSettings
50719
+ * @instance
50720
+ */
50721
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
50722
+
50723
+ /**
50724
+ * JavaSettings common.
50725
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
50726
+ * @memberof google.api.JavaSettings
50727
+ * @instance
50728
+ */
50729
+ JavaSettings.prototype.common = null;
50730
+
50731
+ /**
50732
+ * Creates a new JavaSettings instance using the specified properties.
50733
+ * @function create
50734
+ * @memberof google.api.JavaSettings
50735
+ * @static
50736
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
50737
+ * @returns {google.api.JavaSettings} JavaSettings instance
50738
+ */
50739
+ JavaSettings.create = function create(properties) {
50740
+ return new JavaSettings(properties);
50741
+ };
50742
+
50743
+ /**
50744
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
50745
+ * @function encode
50746
+ * @memberof google.api.JavaSettings
50747
+ * @static
50748
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
50749
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50750
+ * @returns {$protobuf.Writer} Writer
50751
+ */
50752
+ JavaSettings.encode = function encode(message, writer) {
50753
+ if (!writer)
50754
+ writer = $Writer.create();
50755
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
50756
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
50757
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
50758
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
50759
+ 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();
50760
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
50761
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
50762
+ return writer;
50763
+ };
50764
+
50765
+ /**
50766
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
50767
+ * @function encodeDelimited
50768
+ * @memberof google.api.JavaSettings
50769
+ * @static
50770
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
50771
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50772
+ * @returns {$protobuf.Writer} Writer
50773
+ */
50774
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
50775
+ return this.encode(message, writer).ldelim();
50776
+ };
50777
+
50778
+ /**
50779
+ * Decodes a JavaSettings message from the specified reader or buffer.
50780
+ * @function decode
50781
+ * @memberof google.api.JavaSettings
50782
+ * @static
50783
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50784
+ * @param {number} [length] Message length if known beforehand
50785
+ * @returns {google.api.JavaSettings} JavaSettings
50786
+ * @throws {Error} If the payload is not a reader or valid buffer
50787
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50788
+ */
50789
+ JavaSettings.decode = function decode(reader, length) {
50790
+ if (!(reader instanceof $Reader))
50791
+ reader = $Reader.create(reader);
50792
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
50793
+ while (reader.pos < end) {
50794
+ var tag = reader.uint32();
50795
+ switch (tag >>> 3) {
50796
+ case 1: {
50797
+ message.libraryPackage = reader.string();
50798
+ break;
50799
+ }
50800
+ case 2: {
50801
+ if (message.serviceClassNames === $util.emptyObject)
50802
+ message.serviceClassNames = {};
50803
+ var end2 = reader.uint32() + reader.pos;
50804
+ key = "";
50805
+ value = "";
50806
+ while (reader.pos < end2) {
50807
+ var tag2 = reader.uint32();
50808
+ switch (tag2 >>> 3) {
50809
+ case 1:
50810
+ key = reader.string();
50811
+ break;
50812
+ case 2:
50813
+ value = reader.string();
50814
+ break;
50815
+ default:
50816
+ reader.skipType(tag2 & 7);
50817
+ break;
50818
+ }
50819
+ }
50820
+ message.serviceClassNames[key] = value;
50821
+ break;
50822
+ }
50823
+ case 3: {
50824
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
50825
+ break;
50826
+ }
50827
+ default:
50828
+ reader.skipType(tag & 7);
50829
+ break;
50830
+ }
50831
+ }
50832
+ return message;
50833
+ };
50834
+
50835
+ /**
50836
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
50837
+ * @function decodeDelimited
50838
+ * @memberof google.api.JavaSettings
50839
+ * @static
50840
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50841
+ * @returns {google.api.JavaSettings} JavaSettings
50842
+ * @throws {Error} If the payload is not a reader or valid buffer
50843
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50844
+ */
50845
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
50846
+ if (!(reader instanceof $Reader))
50847
+ reader = new $Reader(reader);
50848
+ return this.decode(reader, reader.uint32());
50849
+ };
50850
+
50851
+ /**
50852
+ * Verifies a JavaSettings message.
50853
+ * @function verify
50854
+ * @memberof google.api.JavaSettings
50855
+ * @static
50856
+ * @param {Object.<string,*>} message Plain object to verify
50857
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50858
+ */
50859
+ JavaSettings.verify = function verify(message) {
50860
+ if (typeof message !== "object" || message === null)
50861
+ return "object expected";
50862
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
50863
+ if (!$util.isString(message.libraryPackage))
50864
+ return "libraryPackage: string expected";
50865
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
50866
+ if (!$util.isObject(message.serviceClassNames))
50867
+ return "serviceClassNames: object expected";
50868
+ var key = Object.keys(message.serviceClassNames);
50869
+ for (var i = 0; i < key.length; ++i)
50870
+ if (!$util.isString(message.serviceClassNames[key[i]]))
50871
+ return "serviceClassNames: string{k:string} expected";
50872
+ }
50873
+ if (message.common != null && message.hasOwnProperty("common")) {
50874
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
50875
+ if (error)
50876
+ return "common." + error;
50877
+ }
50878
+ return null;
50879
+ };
50880
+
50881
+ /**
50882
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
50883
+ * @function fromObject
50884
+ * @memberof google.api.JavaSettings
50885
+ * @static
50886
+ * @param {Object.<string,*>} object Plain object
50887
+ * @returns {google.api.JavaSettings} JavaSettings
50888
+ */
50889
+ JavaSettings.fromObject = function fromObject(object) {
50890
+ if (object instanceof $root.google.api.JavaSettings)
50891
+ return object;
50892
+ var message = new $root.google.api.JavaSettings();
50893
+ if (object.libraryPackage != null)
50894
+ message.libraryPackage = String(object.libraryPackage);
50895
+ if (object.serviceClassNames) {
50896
+ if (typeof object.serviceClassNames !== "object")
50897
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
50898
+ message.serviceClassNames = {};
50899
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
50900
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
50901
+ }
50902
+ if (object.common != null) {
50903
+ if (typeof object.common !== "object")
50904
+ throw TypeError(".google.api.JavaSettings.common: object expected");
50905
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
50906
+ }
50907
+ return message;
50908
+ };
50909
+
50910
+ /**
50911
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
50912
+ * @function toObject
50913
+ * @memberof google.api.JavaSettings
50914
+ * @static
50915
+ * @param {google.api.JavaSettings} message JavaSettings
50916
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50917
+ * @returns {Object.<string,*>} Plain object
50918
+ */
50919
+ JavaSettings.toObject = function toObject(message, options) {
50920
+ if (!options)
50921
+ options = {};
50922
+ var object = {};
50923
+ if (options.objects || options.defaults)
50924
+ object.serviceClassNames = {};
50925
+ if (options.defaults) {
50926
+ object.libraryPackage = "";
50927
+ object.common = null;
50928
+ }
50929
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
50930
+ object.libraryPackage = message.libraryPackage;
50931
+ var keys2;
50932
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
50933
+ object.serviceClassNames = {};
50934
+ for (var j = 0; j < keys2.length; ++j)
50935
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
50936
+ }
50937
+ if (message.common != null && message.hasOwnProperty("common"))
50938
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
50939
+ return object;
50940
+ };
50941
+
50942
+ /**
50943
+ * Converts this JavaSettings to JSON.
50944
+ * @function toJSON
50945
+ * @memberof google.api.JavaSettings
50946
+ * @instance
50947
+ * @returns {Object.<string,*>} JSON object
50948
+ */
50949
+ JavaSettings.prototype.toJSON = function toJSON() {
50950
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50951
+ };
50952
+
50953
+ /**
50954
+ * Gets the default type url for JavaSettings
50955
+ * @function getTypeUrl
50956
+ * @memberof google.api.JavaSettings
50957
+ * @static
50958
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50959
+ * @returns {string} The default type url
50960
+ */
50961
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50962
+ if (typeUrlPrefix === undefined) {
50963
+ typeUrlPrefix = "type.googleapis.com";
50964
+ }
50965
+ return typeUrlPrefix + "/google.api.JavaSettings";
50966
+ };
50967
+
50968
+ return JavaSettings;
50969
+ })();
50970
+
50971
+ api.CppSettings = (function() {
50972
+
50973
+ /**
50974
+ * Properties of a CppSettings.
50975
+ * @memberof google.api
50976
+ * @interface ICppSettings
50977
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
50978
+ */
50979
+
50980
+ /**
50981
+ * Constructs a new CppSettings.
50982
+ * @memberof google.api
50983
+ * @classdesc Represents a CppSettings.
50984
+ * @implements ICppSettings
50985
+ * @constructor
50986
+ * @param {google.api.ICppSettings=} [properties] Properties to set
50987
+ */
50988
+ function CppSettings(properties) {
50989
+ if (properties)
50990
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50991
+ if (properties[keys[i]] != null)
50992
+ this[keys[i]] = properties[keys[i]];
50993
+ }
50994
+
50995
+ /**
50996
+ * CppSettings common.
50997
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
50998
+ * @memberof google.api.CppSettings
50999
+ * @instance
51000
+ */
51001
+ CppSettings.prototype.common = null;
51002
+
51003
+ /**
51004
+ * Creates a new CppSettings instance using the specified properties.
51005
+ * @function create
51006
+ * @memberof google.api.CppSettings
51007
+ * @static
51008
+ * @param {google.api.ICppSettings=} [properties] Properties to set
51009
+ * @returns {google.api.CppSettings} CppSettings instance
51010
+ */
51011
+ CppSettings.create = function create(properties) {
51012
+ return new CppSettings(properties);
51013
+ };
51014
+
51015
+ /**
51016
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
51017
+ * @function encode
51018
+ * @memberof google.api.CppSettings
51019
+ * @static
51020
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
51021
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51022
+ * @returns {$protobuf.Writer} Writer
51023
+ */
51024
+ CppSettings.encode = function encode(message, writer) {
51025
+ if (!writer)
51026
+ writer = $Writer.create();
51027
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51028
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51029
+ return writer;
51030
+ };
51031
+
51032
+ /**
51033
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
51034
+ * @function encodeDelimited
51035
+ * @memberof google.api.CppSettings
51036
+ * @static
51037
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
51038
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51039
+ * @returns {$protobuf.Writer} Writer
51040
+ */
51041
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
51042
+ return this.encode(message, writer).ldelim();
51043
+ };
51044
+
51045
+ /**
51046
+ * Decodes a CppSettings message from the specified reader or buffer.
51047
+ * @function decode
51048
+ * @memberof google.api.CppSettings
51049
+ * @static
51050
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51051
+ * @param {number} [length] Message length if known beforehand
51052
+ * @returns {google.api.CppSettings} CppSettings
51053
+ * @throws {Error} If the payload is not a reader or valid buffer
51054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51055
+ */
51056
+ CppSettings.decode = function decode(reader, length) {
51057
+ if (!(reader instanceof $Reader))
51058
+ reader = $Reader.create(reader);
51059
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
51060
+ while (reader.pos < end) {
51061
+ var tag = reader.uint32();
51062
+ switch (tag >>> 3) {
51063
+ case 1: {
51064
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51065
+ break;
51066
+ }
51067
+ default:
51068
+ reader.skipType(tag & 7);
51069
+ break;
51070
+ }
51071
+ }
51072
+ return message;
51073
+ };
51074
+
51075
+ /**
51076
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
51077
+ * @function decodeDelimited
51078
+ * @memberof google.api.CppSettings
51079
+ * @static
51080
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51081
+ * @returns {google.api.CppSettings} CppSettings
51082
+ * @throws {Error} If the payload is not a reader or valid buffer
51083
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51084
+ */
51085
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
51086
+ if (!(reader instanceof $Reader))
51087
+ reader = new $Reader(reader);
51088
+ return this.decode(reader, reader.uint32());
51089
+ };
51090
+
51091
+ /**
51092
+ * Verifies a CppSettings message.
51093
+ * @function verify
51094
+ * @memberof google.api.CppSettings
51095
+ * @static
51096
+ * @param {Object.<string,*>} message Plain object to verify
51097
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51098
+ */
51099
+ CppSettings.verify = function verify(message) {
51100
+ if (typeof message !== "object" || message === null)
51101
+ return "object expected";
51102
+ if (message.common != null && message.hasOwnProperty("common")) {
51103
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51104
+ if (error)
51105
+ return "common." + error;
51106
+ }
51107
+ return null;
51108
+ };
51109
+
51110
+ /**
51111
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
51112
+ * @function fromObject
51113
+ * @memberof google.api.CppSettings
51114
+ * @static
51115
+ * @param {Object.<string,*>} object Plain object
51116
+ * @returns {google.api.CppSettings} CppSettings
51117
+ */
51118
+ CppSettings.fromObject = function fromObject(object) {
51119
+ if (object instanceof $root.google.api.CppSettings)
51120
+ return object;
51121
+ var message = new $root.google.api.CppSettings();
51122
+ if (object.common != null) {
51123
+ if (typeof object.common !== "object")
51124
+ throw TypeError(".google.api.CppSettings.common: object expected");
51125
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51126
+ }
51127
+ return message;
51128
+ };
51129
+
51130
+ /**
51131
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
51132
+ * @function toObject
51133
+ * @memberof google.api.CppSettings
51134
+ * @static
51135
+ * @param {google.api.CppSettings} message CppSettings
51136
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51137
+ * @returns {Object.<string,*>} Plain object
51138
+ */
51139
+ CppSettings.toObject = function toObject(message, options) {
51140
+ if (!options)
51141
+ options = {};
51142
+ var object = {};
51143
+ if (options.defaults)
51144
+ object.common = null;
51145
+ if (message.common != null && message.hasOwnProperty("common"))
51146
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51147
+ return object;
51148
+ };
51149
+
51150
+ /**
51151
+ * Converts this CppSettings to JSON.
51152
+ * @function toJSON
51153
+ * @memberof google.api.CppSettings
51154
+ * @instance
51155
+ * @returns {Object.<string,*>} JSON object
51156
+ */
51157
+ CppSettings.prototype.toJSON = function toJSON() {
51158
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51159
+ };
51160
+
51161
+ /**
51162
+ * Gets the default type url for CppSettings
51163
+ * @function getTypeUrl
51164
+ * @memberof google.api.CppSettings
51165
+ * @static
51166
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51167
+ * @returns {string} The default type url
51168
+ */
51169
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51170
+ if (typeUrlPrefix === undefined) {
51171
+ typeUrlPrefix = "type.googleapis.com";
51172
+ }
51173
+ return typeUrlPrefix + "/google.api.CppSettings";
51174
+ };
51175
+
51176
+ return CppSettings;
51177
+ })();
51178
+
51179
+ api.PhpSettings = (function() {
51180
+
51181
+ /**
51182
+ * Properties of a PhpSettings.
51183
+ * @memberof google.api
51184
+ * @interface IPhpSettings
51185
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
51186
+ */
51187
+
51188
+ /**
51189
+ * Constructs a new PhpSettings.
51190
+ * @memberof google.api
51191
+ * @classdesc Represents a PhpSettings.
51192
+ * @implements IPhpSettings
51193
+ * @constructor
51194
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
51195
+ */
51196
+ function PhpSettings(properties) {
51197
+ if (properties)
51198
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51199
+ if (properties[keys[i]] != null)
51200
+ this[keys[i]] = properties[keys[i]];
51201
+ }
51202
+
51203
+ /**
51204
+ * PhpSettings common.
51205
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51206
+ * @memberof google.api.PhpSettings
51207
+ * @instance
51208
+ */
51209
+ PhpSettings.prototype.common = null;
51210
+
51211
+ /**
51212
+ * Creates a new PhpSettings instance using the specified properties.
51213
+ * @function create
51214
+ * @memberof google.api.PhpSettings
51215
+ * @static
51216
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
51217
+ * @returns {google.api.PhpSettings} PhpSettings instance
51218
+ */
51219
+ PhpSettings.create = function create(properties) {
51220
+ return new PhpSettings(properties);
51221
+ };
51222
+
51223
+ /**
51224
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
51225
+ * @function encode
51226
+ * @memberof google.api.PhpSettings
51227
+ * @static
51228
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
51229
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51230
+ * @returns {$protobuf.Writer} Writer
51231
+ */
51232
+ PhpSettings.encode = function encode(message, writer) {
51233
+ if (!writer)
51234
+ writer = $Writer.create();
51235
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51236
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51237
+ return writer;
51238
+ };
51239
+
51240
+ /**
51241
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
51242
+ * @function encodeDelimited
51243
+ * @memberof google.api.PhpSettings
51244
+ * @static
51245
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
51246
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51247
+ * @returns {$protobuf.Writer} Writer
51248
+ */
51249
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
51250
+ return this.encode(message, writer).ldelim();
51251
+ };
51252
+
51253
+ /**
51254
+ * Decodes a PhpSettings message from the specified reader or buffer.
51255
+ * @function decode
51256
+ * @memberof google.api.PhpSettings
51257
+ * @static
51258
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51259
+ * @param {number} [length] Message length if known beforehand
51260
+ * @returns {google.api.PhpSettings} PhpSettings
51261
+ * @throws {Error} If the payload is not a reader or valid buffer
51262
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51263
+ */
51264
+ PhpSettings.decode = function decode(reader, length) {
51265
+ if (!(reader instanceof $Reader))
51266
+ reader = $Reader.create(reader);
51267
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
51268
+ while (reader.pos < end) {
51269
+ var tag = reader.uint32();
51270
+ switch (tag >>> 3) {
51271
+ case 1: {
51272
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51273
+ break;
51274
+ }
51275
+ default:
51276
+ reader.skipType(tag & 7);
51277
+ break;
51278
+ }
51279
+ }
51280
+ return message;
51281
+ };
51282
+
51283
+ /**
51284
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
51285
+ * @function decodeDelimited
51286
+ * @memberof google.api.PhpSettings
51287
+ * @static
51288
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51289
+ * @returns {google.api.PhpSettings} PhpSettings
51290
+ * @throws {Error} If the payload is not a reader or valid buffer
51291
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51292
+ */
51293
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
51294
+ if (!(reader instanceof $Reader))
51295
+ reader = new $Reader(reader);
51296
+ return this.decode(reader, reader.uint32());
51297
+ };
51298
+
51299
+ /**
51300
+ * Verifies a PhpSettings message.
51301
+ * @function verify
51302
+ * @memberof google.api.PhpSettings
51303
+ * @static
51304
+ * @param {Object.<string,*>} message Plain object to verify
51305
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51306
+ */
51307
+ PhpSettings.verify = function verify(message) {
51308
+ if (typeof message !== "object" || message === null)
51309
+ return "object expected";
51310
+ if (message.common != null && message.hasOwnProperty("common")) {
51311
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51312
+ if (error)
51313
+ return "common." + error;
51314
+ }
51315
+ return null;
51316
+ };
51317
+
51318
+ /**
51319
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
51320
+ * @function fromObject
51321
+ * @memberof google.api.PhpSettings
51322
+ * @static
51323
+ * @param {Object.<string,*>} object Plain object
51324
+ * @returns {google.api.PhpSettings} PhpSettings
51325
+ */
51326
+ PhpSettings.fromObject = function fromObject(object) {
51327
+ if (object instanceof $root.google.api.PhpSettings)
51328
+ return object;
51329
+ var message = new $root.google.api.PhpSettings();
51330
+ if (object.common != null) {
51331
+ if (typeof object.common !== "object")
51332
+ throw TypeError(".google.api.PhpSettings.common: object expected");
51333
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51334
+ }
51335
+ return message;
51336
+ };
51337
+
51338
+ /**
51339
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
51340
+ * @function toObject
51341
+ * @memberof google.api.PhpSettings
51342
+ * @static
51343
+ * @param {google.api.PhpSettings} message PhpSettings
51344
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51345
+ * @returns {Object.<string,*>} Plain object
51346
+ */
51347
+ PhpSettings.toObject = function toObject(message, options) {
51348
+ if (!options)
51349
+ options = {};
51350
+ var object = {};
51351
+ if (options.defaults)
51352
+ object.common = null;
51353
+ if (message.common != null && message.hasOwnProperty("common"))
51354
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51355
+ return object;
51356
+ };
51357
+
51358
+ /**
51359
+ * Converts this PhpSettings to JSON.
51360
+ * @function toJSON
51361
+ * @memberof google.api.PhpSettings
51362
+ * @instance
51363
+ * @returns {Object.<string,*>} JSON object
51364
+ */
51365
+ PhpSettings.prototype.toJSON = function toJSON() {
51366
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51367
+ };
51368
+
51369
+ /**
51370
+ * Gets the default type url for PhpSettings
51371
+ * @function getTypeUrl
51372
+ * @memberof google.api.PhpSettings
51373
+ * @static
51374
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51375
+ * @returns {string} The default type url
51376
+ */
51377
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51378
+ if (typeUrlPrefix === undefined) {
51379
+ typeUrlPrefix = "type.googleapis.com";
51380
+ }
51381
+ return typeUrlPrefix + "/google.api.PhpSettings";
51382
+ };
51383
+
51384
+ return PhpSettings;
51385
+ })();
51386
+
51387
+ api.PythonSettings = (function() {
51388
+
51389
+ /**
51390
+ * Properties of a PythonSettings.
51391
+ * @memberof google.api
51392
+ * @interface IPythonSettings
51393
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
51394
+ */
51395
+
51396
+ /**
51397
+ * Constructs a new PythonSettings.
51398
+ * @memberof google.api
51399
+ * @classdesc Represents a PythonSettings.
51400
+ * @implements IPythonSettings
51401
+ * @constructor
51402
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
51403
+ */
51404
+ function PythonSettings(properties) {
51405
+ if (properties)
51406
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51407
+ if (properties[keys[i]] != null)
51408
+ this[keys[i]] = properties[keys[i]];
51409
+ }
51410
+
51411
+ /**
51412
+ * PythonSettings common.
51413
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51414
+ * @memberof google.api.PythonSettings
51415
+ * @instance
51416
+ */
51417
+ PythonSettings.prototype.common = null;
51418
+
51419
+ /**
51420
+ * Creates a new PythonSettings instance using the specified properties.
51421
+ * @function create
51422
+ * @memberof google.api.PythonSettings
51423
+ * @static
51424
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
51425
+ * @returns {google.api.PythonSettings} PythonSettings instance
51426
+ */
51427
+ PythonSettings.create = function create(properties) {
51428
+ return new PythonSettings(properties);
51429
+ };
51430
+
51431
+ /**
51432
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
51433
+ * @function encode
51434
+ * @memberof google.api.PythonSettings
51435
+ * @static
51436
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
51437
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51438
+ * @returns {$protobuf.Writer} Writer
51439
+ */
51440
+ PythonSettings.encode = function encode(message, writer) {
51441
+ if (!writer)
51442
+ writer = $Writer.create();
51443
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51444
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51445
+ return writer;
51446
+ };
51447
+
51448
+ /**
51449
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
51450
+ * @function encodeDelimited
51451
+ * @memberof google.api.PythonSettings
51452
+ * @static
51453
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
51454
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51455
+ * @returns {$protobuf.Writer} Writer
51456
+ */
51457
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
51458
+ return this.encode(message, writer).ldelim();
51459
+ };
51460
+
51461
+ /**
51462
+ * Decodes a PythonSettings message from the specified reader or buffer.
51463
+ * @function decode
51464
+ * @memberof google.api.PythonSettings
51465
+ * @static
51466
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51467
+ * @param {number} [length] Message length if known beforehand
51468
+ * @returns {google.api.PythonSettings} PythonSettings
51469
+ * @throws {Error} If the payload is not a reader or valid buffer
51470
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51471
+ */
51472
+ PythonSettings.decode = function decode(reader, length) {
51473
+ if (!(reader instanceof $Reader))
51474
+ reader = $Reader.create(reader);
51475
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
51476
+ while (reader.pos < end) {
51477
+ var tag = reader.uint32();
51478
+ switch (tag >>> 3) {
51479
+ case 1: {
51480
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51481
+ break;
51482
+ }
51483
+ default:
51484
+ reader.skipType(tag & 7);
51485
+ break;
51486
+ }
51487
+ }
51488
+ return message;
51489
+ };
51490
+
51491
+ /**
51492
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
51493
+ * @function decodeDelimited
51494
+ * @memberof google.api.PythonSettings
51495
+ * @static
51496
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51497
+ * @returns {google.api.PythonSettings} PythonSettings
51498
+ * @throws {Error} If the payload is not a reader or valid buffer
51499
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51500
+ */
51501
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
51502
+ if (!(reader instanceof $Reader))
51503
+ reader = new $Reader(reader);
51504
+ return this.decode(reader, reader.uint32());
51505
+ };
51506
+
51507
+ /**
51508
+ * Verifies a PythonSettings message.
51509
+ * @function verify
51510
+ * @memberof google.api.PythonSettings
51511
+ * @static
51512
+ * @param {Object.<string,*>} message Plain object to verify
51513
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51514
+ */
51515
+ PythonSettings.verify = function verify(message) {
51516
+ if (typeof message !== "object" || message === null)
51517
+ return "object expected";
51518
+ if (message.common != null && message.hasOwnProperty("common")) {
51519
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51520
+ if (error)
51521
+ return "common." + error;
51522
+ }
51523
+ return null;
51524
+ };
51525
+
51526
+ /**
51527
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
51528
+ * @function fromObject
51529
+ * @memberof google.api.PythonSettings
51530
+ * @static
51531
+ * @param {Object.<string,*>} object Plain object
51532
+ * @returns {google.api.PythonSettings} PythonSettings
51533
+ */
51534
+ PythonSettings.fromObject = function fromObject(object) {
51535
+ if (object instanceof $root.google.api.PythonSettings)
51536
+ return object;
51537
+ var message = new $root.google.api.PythonSettings();
51538
+ if (object.common != null) {
51539
+ if (typeof object.common !== "object")
51540
+ throw TypeError(".google.api.PythonSettings.common: object expected");
51541
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51542
+ }
51543
+ return message;
51544
+ };
51545
+
51546
+ /**
51547
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
51548
+ * @function toObject
51549
+ * @memberof google.api.PythonSettings
51550
+ * @static
51551
+ * @param {google.api.PythonSettings} message PythonSettings
51552
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51553
+ * @returns {Object.<string,*>} Plain object
51554
+ */
51555
+ PythonSettings.toObject = function toObject(message, options) {
51556
+ if (!options)
51557
+ options = {};
51558
+ var object = {};
51559
+ if (options.defaults)
51560
+ object.common = null;
51561
+ if (message.common != null && message.hasOwnProperty("common"))
51562
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51563
+ return object;
51564
+ };
51565
+
51566
+ /**
51567
+ * Converts this PythonSettings to JSON.
51568
+ * @function toJSON
51569
+ * @memberof google.api.PythonSettings
51570
+ * @instance
51571
+ * @returns {Object.<string,*>} JSON object
51572
+ */
51573
+ PythonSettings.prototype.toJSON = function toJSON() {
51574
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51575
+ };
51576
+
51577
+ /**
51578
+ * Gets the default type url for PythonSettings
51579
+ * @function getTypeUrl
51580
+ * @memberof google.api.PythonSettings
51581
+ * @static
51582
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51583
+ * @returns {string} The default type url
51584
+ */
51585
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51586
+ if (typeUrlPrefix === undefined) {
51587
+ typeUrlPrefix = "type.googleapis.com";
51588
+ }
51589
+ return typeUrlPrefix + "/google.api.PythonSettings";
51590
+ };
51591
+
51592
+ return PythonSettings;
51593
+ })();
51594
+
51595
+ api.NodeSettings = (function() {
51596
+
51597
+ /**
51598
+ * Properties of a NodeSettings.
51599
+ * @memberof google.api
51600
+ * @interface INodeSettings
51601
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
51602
+ */
51603
+
51604
+ /**
51605
+ * Constructs a new NodeSettings.
51606
+ * @memberof google.api
51607
+ * @classdesc Represents a NodeSettings.
51608
+ * @implements INodeSettings
51609
+ * @constructor
51610
+ * @param {google.api.INodeSettings=} [properties] Properties to set
51611
+ */
51612
+ function NodeSettings(properties) {
51613
+ if (properties)
51614
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51615
+ if (properties[keys[i]] != null)
51616
+ this[keys[i]] = properties[keys[i]];
51617
+ }
51618
+
51619
+ /**
51620
+ * NodeSettings common.
51621
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51622
+ * @memberof google.api.NodeSettings
51623
+ * @instance
51624
+ */
51625
+ NodeSettings.prototype.common = null;
51626
+
51627
+ /**
51628
+ * Creates a new NodeSettings instance using the specified properties.
51629
+ * @function create
51630
+ * @memberof google.api.NodeSettings
51631
+ * @static
51632
+ * @param {google.api.INodeSettings=} [properties] Properties to set
51633
+ * @returns {google.api.NodeSettings} NodeSettings instance
51634
+ */
51635
+ NodeSettings.create = function create(properties) {
51636
+ return new NodeSettings(properties);
51637
+ };
51638
+
51639
+ /**
51640
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
51641
+ * @function encode
51642
+ * @memberof google.api.NodeSettings
51643
+ * @static
51644
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
51645
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51646
+ * @returns {$protobuf.Writer} Writer
51647
+ */
51648
+ NodeSettings.encode = function encode(message, writer) {
51649
+ if (!writer)
51650
+ writer = $Writer.create();
51651
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51652
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51653
+ return writer;
51654
+ };
51655
+
51656
+ /**
51657
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
51658
+ * @function encodeDelimited
51659
+ * @memberof google.api.NodeSettings
51660
+ * @static
51661
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
51662
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51663
+ * @returns {$protobuf.Writer} Writer
51664
+ */
51665
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
51666
+ return this.encode(message, writer).ldelim();
51667
+ };
51668
+
51669
+ /**
51670
+ * Decodes a NodeSettings message from the specified reader or buffer.
51671
+ * @function decode
51672
+ * @memberof google.api.NodeSettings
51673
+ * @static
51674
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51675
+ * @param {number} [length] Message length if known beforehand
51676
+ * @returns {google.api.NodeSettings} NodeSettings
51677
+ * @throws {Error} If the payload is not a reader or valid buffer
51678
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51679
+ */
51680
+ NodeSettings.decode = function decode(reader, length) {
51681
+ if (!(reader instanceof $Reader))
51682
+ reader = $Reader.create(reader);
51683
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
51684
+ while (reader.pos < end) {
51685
+ var tag = reader.uint32();
51686
+ switch (tag >>> 3) {
51687
+ case 1: {
51688
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51689
+ break;
51690
+ }
51691
+ default:
51692
+ reader.skipType(tag & 7);
51693
+ break;
51694
+ }
51695
+ }
51696
+ return message;
51697
+ };
51698
+
51699
+ /**
51700
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
51701
+ * @function decodeDelimited
51702
+ * @memberof google.api.NodeSettings
51703
+ * @static
51704
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51705
+ * @returns {google.api.NodeSettings} NodeSettings
51706
+ * @throws {Error} If the payload is not a reader or valid buffer
51707
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51708
+ */
51709
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
51710
+ if (!(reader instanceof $Reader))
51711
+ reader = new $Reader(reader);
51712
+ return this.decode(reader, reader.uint32());
51713
+ };
51714
+
51715
+ /**
51716
+ * Verifies a NodeSettings message.
51717
+ * @function verify
51718
+ * @memberof google.api.NodeSettings
51719
+ * @static
51720
+ * @param {Object.<string,*>} message Plain object to verify
51721
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51722
+ */
51723
+ NodeSettings.verify = function verify(message) {
51724
+ if (typeof message !== "object" || message === null)
51725
+ return "object expected";
51726
+ if (message.common != null && message.hasOwnProperty("common")) {
51727
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51728
+ if (error)
51729
+ return "common." + error;
51730
+ }
51731
+ return null;
51732
+ };
51733
+
51734
+ /**
51735
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
51736
+ * @function fromObject
51737
+ * @memberof google.api.NodeSettings
51738
+ * @static
51739
+ * @param {Object.<string,*>} object Plain object
51740
+ * @returns {google.api.NodeSettings} NodeSettings
51741
+ */
51742
+ NodeSettings.fromObject = function fromObject(object) {
51743
+ if (object instanceof $root.google.api.NodeSettings)
51744
+ return object;
51745
+ var message = new $root.google.api.NodeSettings();
51746
+ if (object.common != null) {
51747
+ if (typeof object.common !== "object")
51748
+ throw TypeError(".google.api.NodeSettings.common: object expected");
51749
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51750
+ }
51751
+ return message;
51752
+ };
51753
+
51754
+ /**
51755
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
51756
+ * @function toObject
51757
+ * @memberof google.api.NodeSettings
51758
+ * @static
51759
+ * @param {google.api.NodeSettings} message NodeSettings
51760
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51761
+ * @returns {Object.<string,*>} Plain object
51762
+ */
51763
+ NodeSettings.toObject = function toObject(message, options) {
51764
+ if (!options)
51765
+ options = {};
51766
+ var object = {};
51767
+ if (options.defaults)
51768
+ object.common = null;
51769
+ if (message.common != null && message.hasOwnProperty("common"))
51770
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51771
+ return object;
51772
+ };
51773
+
51774
+ /**
51775
+ * Converts this NodeSettings to JSON.
51776
+ * @function toJSON
51777
+ * @memberof google.api.NodeSettings
51778
+ * @instance
51779
+ * @returns {Object.<string,*>} JSON object
51780
+ */
51781
+ NodeSettings.prototype.toJSON = function toJSON() {
51782
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51783
+ };
51784
+
51785
+ /**
51786
+ * Gets the default type url for NodeSettings
51787
+ * @function getTypeUrl
51788
+ * @memberof google.api.NodeSettings
51789
+ * @static
51790
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51791
+ * @returns {string} The default type url
51792
+ */
51793
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
51794
+ if (typeUrlPrefix === undefined) {
51795
+ typeUrlPrefix = "type.googleapis.com";
51796
+ }
51797
+ return typeUrlPrefix + "/google.api.NodeSettings";
51798
+ };
51799
+
51800
+ return NodeSettings;
51801
+ })();
51802
+
51803
+ api.DotnetSettings = (function() {
51804
+
51805
+ /**
51806
+ * Properties of a DotnetSettings.
51807
+ * @memberof google.api
51808
+ * @interface IDotnetSettings
51809
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
51810
+ */
51811
+
51812
+ /**
51813
+ * Constructs a new DotnetSettings.
51814
+ * @memberof google.api
51815
+ * @classdesc Represents a DotnetSettings.
51816
+ * @implements IDotnetSettings
51817
+ * @constructor
51818
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
51819
+ */
51820
+ function DotnetSettings(properties) {
51821
+ if (properties)
51822
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51823
+ if (properties[keys[i]] != null)
51824
+ this[keys[i]] = properties[keys[i]];
51825
+ }
51826
+
51827
+ /**
51828
+ * DotnetSettings common.
51829
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
51830
+ * @memberof google.api.DotnetSettings
51831
+ * @instance
51832
+ */
51833
+ DotnetSettings.prototype.common = null;
51834
+
51835
+ /**
51836
+ * Creates a new DotnetSettings instance using the specified properties.
51837
+ * @function create
51838
+ * @memberof google.api.DotnetSettings
51839
+ * @static
51840
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
51841
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
51842
+ */
51843
+ DotnetSettings.create = function create(properties) {
51844
+ return new DotnetSettings(properties);
51845
+ };
51846
+
51847
+ /**
51848
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
51849
+ * @function encode
51850
+ * @memberof google.api.DotnetSettings
51851
+ * @static
51852
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
51853
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51854
+ * @returns {$protobuf.Writer} Writer
51855
+ */
51856
+ DotnetSettings.encode = function encode(message, writer) {
51857
+ if (!writer)
51858
+ writer = $Writer.create();
51859
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
51860
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
51861
+ return writer;
51862
+ };
51863
+
51864
+ /**
51865
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
51866
+ * @function encodeDelimited
51867
+ * @memberof google.api.DotnetSettings
51868
+ * @static
51869
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
51870
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51871
+ * @returns {$protobuf.Writer} Writer
51872
+ */
51873
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
51874
+ return this.encode(message, writer).ldelim();
51875
+ };
51876
+
51877
+ /**
51878
+ * Decodes a DotnetSettings message from the specified reader or buffer.
51879
+ * @function decode
51880
+ * @memberof google.api.DotnetSettings
51881
+ * @static
51882
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51883
+ * @param {number} [length] Message length if known beforehand
51884
+ * @returns {google.api.DotnetSettings} DotnetSettings
51885
+ * @throws {Error} If the payload is not a reader or valid buffer
51886
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51887
+ */
51888
+ DotnetSettings.decode = function decode(reader, length) {
51889
+ if (!(reader instanceof $Reader))
51890
+ reader = $Reader.create(reader);
51891
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
51892
+ while (reader.pos < end) {
51893
+ var tag = reader.uint32();
51894
+ switch (tag >>> 3) {
51895
+ case 1: {
51896
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
51897
+ break;
51898
+ }
51899
+ default:
51900
+ reader.skipType(tag & 7);
51901
+ break;
51902
+ }
51903
+ }
51904
+ return message;
51905
+ };
51906
+
51907
+ /**
51908
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
51909
+ * @function decodeDelimited
51910
+ * @memberof google.api.DotnetSettings
51911
+ * @static
51912
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51913
+ * @returns {google.api.DotnetSettings} DotnetSettings
51914
+ * @throws {Error} If the payload is not a reader or valid buffer
51915
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51916
+ */
51917
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
51918
+ if (!(reader instanceof $Reader))
51919
+ reader = new $Reader(reader);
51920
+ return this.decode(reader, reader.uint32());
51921
+ };
51922
+
51923
+ /**
51924
+ * Verifies a DotnetSettings message.
51925
+ * @function verify
51926
+ * @memberof google.api.DotnetSettings
51927
+ * @static
51928
+ * @param {Object.<string,*>} message Plain object to verify
51929
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51930
+ */
51931
+ DotnetSettings.verify = function verify(message) {
51932
+ if (typeof message !== "object" || message === null)
51933
+ return "object expected";
51934
+ if (message.common != null && message.hasOwnProperty("common")) {
51935
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
51936
+ if (error)
51937
+ return "common." + error;
51938
+ }
51939
+ return null;
51940
+ };
51941
+
51942
+ /**
51943
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
51944
+ * @function fromObject
51945
+ * @memberof google.api.DotnetSettings
51946
+ * @static
51947
+ * @param {Object.<string,*>} object Plain object
51948
+ * @returns {google.api.DotnetSettings} DotnetSettings
51949
+ */
51950
+ DotnetSettings.fromObject = function fromObject(object) {
51951
+ if (object instanceof $root.google.api.DotnetSettings)
51952
+ return object;
51953
+ var message = new $root.google.api.DotnetSettings();
51954
+ if (object.common != null) {
51955
+ if (typeof object.common !== "object")
51956
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
51957
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
51958
+ }
51959
+ return message;
51960
+ };
51961
+
51962
+ /**
51963
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
51964
+ * @function toObject
51965
+ * @memberof google.api.DotnetSettings
51966
+ * @static
51967
+ * @param {google.api.DotnetSettings} message DotnetSettings
51968
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51969
+ * @returns {Object.<string,*>} Plain object
51970
+ */
51971
+ DotnetSettings.toObject = function toObject(message, options) {
51972
+ if (!options)
51973
+ options = {};
51974
+ var object = {};
51975
+ if (options.defaults)
51976
+ object.common = null;
51977
+ if (message.common != null && message.hasOwnProperty("common"))
51978
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
51979
+ return object;
51980
+ };
51981
+
51982
+ /**
51983
+ * Converts this DotnetSettings to JSON.
51984
+ * @function toJSON
51985
+ * @memberof google.api.DotnetSettings
51986
+ * @instance
51987
+ * @returns {Object.<string,*>} JSON object
51988
+ */
51989
+ DotnetSettings.prototype.toJSON = function toJSON() {
51990
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51991
+ };
51992
+
51993
+ /**
51994
+ * Gets the default type url for DotnetSettings
51995
+ * @function getTypeUrl
51996
+ * @memberof google.api.DotnetSettings
51997
+ * @static
51998
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51999
+ * @returns {string} The default type url
52000
+ */
52001
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52002
+ if (typeUrlPrefix === undefined) {
52003
+ typeUrlPrefix = "type.googleapis.com";
52004
+ }
52005
+ return typeUrlPrefix + "/google.api.DotnetSettings";
52006
+ };
52007
+
52008
+ return DotnetSettings;
52009
+ })();
52010
+
52011
+ api.RubySettings = (function() {
52012
+
52013
+ /**
52014
+ * Properties of a RubySettings.
52015
+ * @memberof google.api
52016
+ * @interface IRubySettings
52017
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
52018
+ */
52019
+
52020
+ /**
52021
+ * Constructs a new RubySettings.
52022
+ * @memberof google.api
52023
+ * @classdesc Represents a RubySettings.
52024
+ * @implements IRubySettings
52025
+ * @constructor
52026
+ * @param {google.api.IRubySettings=} [properties] Properties to set
52027
+ */
52028
+ function RubySettings(properties) {
52029
+ if (properties)
52030
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52031
+ if (properties[keys[i]] != null)
52032
+ this[keys[i]] = properties[keys[i]];
52033
+ }
52034
+
52035
+ /**
52036
+ * RubySettings common.
52037
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
52038
+ * @memberof google.api.RubySettings
52039
+ * @instance
52040
+ */
52041
+ RubySettings.prototype.common = null;
52042
+
52043
+ /**
52044
+ * Creates a new RubySettings instance using the specified properties.
52045
+ * @function create
52046
+ * @memberof google.api.RubySettings
52047
+ * @static
52048
+ * @param {google.api.IRubySettings=} [properties] Properties to set
52049
+ * @returns {google.api.RubySettings} RubySettings instance
52050
+ */
52051
+ RubySettings.create = function create(properties) {
52052
+ return new RubySettings(properties);
52053
+ };
52054
+
52055
+ /**
52056
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
52057
+ * @function encode
52058
+ * @memberof google.api.RubySettings
52059
+ * @static
52060
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
52061
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52062
+ * @returns {$protobuf.Writer} Writer
52063
+ */
52064
+ RubySettings.encode = function encode(message, writer) {
52065
+ if (!writer)
52066
+ writer = $Writer.create();
52067
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
52068
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52069
+ return writer;
52070
+ };
52071
+
52072
+ /**
52073
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
52074
+ * @function encodeDelimited
52075
+ * @memberof google.api.RubySettings
52076
+ * @static
52077
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
52078
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52079
+ * @returns {$protobuf.Writer} Writer
52080
+ */
52081
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
52082
+ return this.encode(message, writer).ldelim();
52083
+ };
52084
+
52085
+ /**
52086
+ * Decodes a RubySettings message from the specified reader or buffer.
52087
+ * @function decode
52088
+ * @memberof google.api.RubySettings
52089
+ * @static
52090
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52091
+ * @param {number} [length] Message length if known beforehand
52092
+ * @returns {google.api.RubySettings} RubySettings
52093
+ * @throws {Error} If the payload is not a reader or valid buffer
52094
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52095
+ */
52096
+ RubySettings.decode = function decode(reader, length) {
52097
+ if (!(reader instanceof $Reader))
52098
+ reader = $Reader.create(reader);
52099
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
52100
+ while (reader.pos < end) {
52101
+ var tag = reader.uint32();
52102
+ switch (tag >>> 3) {
52103
+ case 1: {
52104
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
52105
+ break;
52106
+ }
52107
+ default:
52108
+ reader.skipType(tag & 7);
52109
+ break;
52110
+ }
52111
+ }
52112
+ return message;
52113
+ };
52114
+
52115
+ /**
52116
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
52117
+ * @function decodeDelimited
52118
+ * @memberof google.api.RubySettings
52119
+ * @static
52120
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52121
+ * @returns {google.api.RubySettings} RubySettings
52122
+ * @throws {Error} If the payload is not a reader or valid buffer
52123
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52124
+ */
52125
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
52126
+ if (!(reader instanceof $Reader))
52127
+ reader = new $Reader(reader);
52128
+ return this.decode(reader, reader.uint32());
52129
+ };
52130
+
52131
+ /**
52132
+ * Verifies a RubySettings message.
52133
+ * @function verify
52134
+ * @memberof google.api.RubySettings
52135
+ * @static
52136
+ * @param {Object.<string,*>} message Plain object to verify
52137
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52138
+ */
52139
+ RubySettings.verify = function verify(message) {
52140
+ if (typeof message !== "object" || message === null)
52141
+ return "object expected";
52142
+ if (message.common != null && message.hasOwnProperty("common")) {
52143
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
52144
+ if (error)
52145
+ return "common." + error;
52146
+ }
52147
+ return null;
52148
+ };
52149
+
52150
+ /**
52151
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
52152
+ * @function fromObject
52153
+ * @memberof google.api.RubySettings
52154
+ * @static
52155
+ * @param {Object.<string,*>} object Plain object
52156
+ * @returns {google.api.RubySettings} RubySettings
52157
+ */
52158
+ RubySettings.fromObject = function fromObject(object) {
52159
+ if (object instanceof $root.google.api.RubySettings)
52160
+ return object;
52161
+ var message = new $root.google.api.RubySettings();
52162
+ if (object.common != null) {
52163
+ if (typeof object.common !== "object")
52164
+ throw TypeError(".google.api.RubySettings.common: object expected");
52165
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
52166
+ }
52167
+ return message;
52168
+ };
52169
+
52170
+ /**
52171
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
52172
+ * @function toObject
52173
+ * @memberof google.api.RubySettings
52174
+ * @static
52175
+ * @param {google.api.RubySettings} message RubySettings
52176
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52177
+ * @returns {Object.<string,*>} Plain object
52178
+ */
52179
+ RubySettings.toObject = function toObject(message, options) {
52180
+ if (!options)
52181
+ options = {};
52182
+ var object = {};
52183
+ if (options.defaults)
52184
+ object.common = null;
52185
+ if (message.common != null && message.hasOwnProperty("common"))
52186
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
52187
+ return object;
52188
+ };
52189
+
52190
+ /**
52191
+ * Converts this RubySettings to JSON.
52192
+ * @function toJSON
52193
+ * @memberof google.api.RubySettings
52194
+ * @instance
52195
+ * @returns {Object.<string,*>} JSON object
52196
+ */
52197
+ RubySettings.prototype.toJSON = function toJSON() {
52198
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52199
+ };
52200
+
52201
+ /**
52202
+ * Gets the default type url for RubySettings
52203
+ * @function getTypeUrl
52204
+ * @memberof google.api.RubySettings
52205
+ * @static
52206
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52207
+ * @returns {string} The default type url
52208
+ */
52209
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52210
+ if (typeUrlPrefix === undefined) {
52211
+ typeUrlPrefix = "type.googleapis.com";
52212
+ }
52213
+ return typeUrlPrefix + "/google.api.RubySettings";
52214
+ };
52215
+
52216
+ return RubySettings;
52217
+ })();
52218
+
52219
+ api.GoSettings = (function() {
52220
+
52221
+ /**
52222
+ * Properties of a GoSettings.
52223
+ * @memberof google.api
52224
+ * @interface IGoSettings
52225
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
52226
+ */
52227
+
52228
+ /**
52229
+ * Constructs a new GoSettings.
52230
+ * @memberof google.api
52231
+ * @classdesc Represents a GoSettings.
52232
+ * @implements IGoSettings
52233
+ * @constructor
52234
+ * @param {google.api.IGoSettings=} [properties] Properties to set
52235
+ */
52236
+ function GoSettings(properties) {
52237
+ if (properties)
52238
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52239
+ if (properties[keys[i]] != null)
52240
+ this[keys[i]] = properties[keys[i]];
52241
+ }
52242
+
52243
+ /**
52244
+ * GoSettings common.
52245
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
52246
+ * @memberof google.api.GoSettings
52247
+ * @instance
52248
+ */
52249
+ GoSettings.prototype.common = null;
52250
+
52251
+ /**
52252
+ * Creates a new GoSettings instance using the specified properties.
52253
+ * @function create
52254
+ * @memberof google.api.GoSettings
52255
+ * @static
52256
+ * @param {google.api.IGoSettings=} [properties] Properties to set
52257
+ * @returns {google.api.GoSettings} GoSettings instance
52258
+ */
52259
+ GoSettings.create = function create(properties) {
52260
+ return new GoSettings(properties);
52261
+ };
52262
+
52263
+ /**
52264
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
52265
+ * @function encode
52266
+ * @memberof google.api.GoSettings
52267
+ * @static
52268
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
52269
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52270
+ * @returns {$protobuf.Writer} Writer
52271
+ */
52272
+ GoSettings.encode = function encode(message, writer) {
52273
+ if (!writer)
52274
+ writer = $Writer.create();
52275
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
52276
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52277
+ return writer;
52278
+ };
52279
+
52280
+ /**
52281
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
52282
+ * @function encodeDelimited
52283
+ * @memberof google.api.GoSettings
52284
+ * @static
52285
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
52286
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52287
+ * @returns {$protobuf.Writer} Writer
52288
+ */
52289
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
52290
+ return this.encode(message, writer).ldelim();
52291
+ };
52292
+
52293
+ /**
52294
+ * Decodes a GoSettings message from the specified reader or buffer.
52295
+ * @function decode
52296
+ * @memberof google.api.GoSettings
52297
+ * @static
52298
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52299
+ * @param {number} [length] Message length if known beforehand
52300
+ * @returns {google.api.GoSettings} GoSettings
52301
+ * @throws {Error} If the payload is not a reader or valid buffer
52302
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52303
+ */
52304
+ GoSettings.decode = function decode(reader, length) {
52305
+ if (!(reader instanceof $Reader))
52306
+ reader = $Reader.create(reader);
52307
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
52308
+ while (reader.pos < end) {
52309
+ var tag = reader.uint32();
52310
+ switch (tag >>> 3) {
52311
+ case 1: {
52312
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
52313
+ break;
52314
+ }
52315
+ default:
52316
+ reader.skipType(tag & 7);
52317
+ break;
52318
+ }
52319
+ }
52320
+ return message;
52321
+ };
52322
+
52323
+ /**
52324
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
52325
+ * @function decodeDelimited
52326
+ * @memberof google.api.GoSettings
52327
+ * @static
52328
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52329
+ * @returns {google.api.GoSettings} GoSettings
52330
+ * @throws {Error} If the payload is not a reader or valid buffer
52331
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52332
+ */
52333
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
52334
+ if (!(reader instanceof $Reader))
52335
+ reader = new $Reader(reader);
52336
+ return this.decode(reader, reader.uint32());
52337
+ };
52338
+
52339
+ /**
52340
+ * Verifies a GoSettings message.
52341
+ * @function verify
52342
+ * @memberof google.api.GoSettings
52343
+ * @static
52344
+ * @param {Object.<string,*>} message Plain object to verify
52345
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52346
+ */
52347
+ GoSettings.verify = function verify(message) {
52348
+ if (typeof message !== "object" || message === null)
52349
+ return "object expected";
52350
+ if (message.common != null && message.hasOwnProperty("common")) {
52351
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
52352
+ if (error)
52353
+ return "common." + error;
52354
+ }
52355
+ return null;
52356
+ };
52357
+
52358
+ /**
52359
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
52360
+ * @function fromObject
52361
+ * @memberof google.api.GoSettings
52362
+ * @static
52363
+ * @param {Object.<string,*>} object Plain object
52364
+ * @returns {google.api.GoSettings} GoSettings
52365
+ */
52366
+ GoSettings.fromObject = function fromObject(object) {
52367
+ if (object instanceof $root.google.api.GoSettings)
52368
+ return object;
52369
+ var message = new $root.google.api.GoSettings();
52370
+ if (object.common != null) {
52371
+ if (typeof object.common !== "object")
52372
+ throw TypeError(".google.api.GoSettings.common: object expected");
52373
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
52374
+ }
52375
+ return message;
52376
+ };
52377
+
52378
+ /**
52379
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
52380
+ * @function toObject
52381
+ * @memberof google.api.GoSettings
52382
+ * @static
52383
+ * @param {google.api.GoSettings} message GoSettings
52384
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52385
+ * @returns {Object.<string,*>} Plain object
52386
+ */
52387
+ GoSettings.toObject = function toObject(message, options) {
52388
+ if (!options)
52389
+ options = {};
52390
+ var object = {};
52391
+ if (options.defaults)
52392
+ object.common = null;
52393
+ if (message.common != null && message.hasOwnProperty("common"))
52394
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
52395
+ return object;
52396
+ };
52397
+
52398
+ /**
52399
+ * Converts this GoSettings to JSON.
52400
+ * @function toJSON
52401
+ * @memberof google.api.GoSettings
52402
+ * @instance
52403
+ * @returns {Object.<string,*>} JSON object
52404
+ */
52405
+ GoSettings.prototype.toJSON = function toJSON() {
52406
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52407
+ };
52408
+
52409
+ /**
52410
+ * Gets the default type url for GoSettings
52411
+ * @function getTypeUrl
52412
+ * @memberof google.api.GoSettings
52413
+ * @static
52414
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52415
+ * @returns {string} The default type url
52416
+ */
52417
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52418
+ if (typeUrlPrefix === undefined) {
52419
+ typeUrlPrefix = "type.googleapis.com";
52420
+ }
52421
+ return typeUrlPrefix + "/google.api.GoSettings";
52422
+ };
52423
+
52424
+ return GoSettings;
52425
+ })();
52426
+
52427
+ api.MethodSettings = (function() {
52428
+
52429
+ /**
52430
+ * Properties of a MethodSettings.
52431
+ * @memberof google.api
52432
+ * @interface IMethodSettings
52433
+ * @property {string|null} [selector] MethodSettings selector
52434
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
52435
+ */
52436
+
52437
+ /**
52438
+ * Constructs a new MethodSettings.
52439
+ * @memberof google.api
52440
+ * @classdesc Represents a MethodSettings.
52441
+ * @implements IMethodSettings
52442
+ * @constructor
52443
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
52444
+ */
52445
+ function MethodSettings(properties) {
52446
+ if (properties)
52447
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52448
+ if (properties[keys[i]] != null)
52449
+ this[keys[i]] = properties[keys[i]];
52450
+ }
52451
+
52452
+ /**
52453
+ * MethodSettings selector.
52454
+ * @member {string} selector
52455
+ * @memberof google.api.MethodSettings
52456
+ * @instance
52457
+ */
52458
+ MethodSettings.prototype.selector = "";
52459
+
52460
+ /**
52461
+ * MethodSettings longRunning.
52462
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
52463
+ * @memberof google.api.MethodSettings
52464
+ * @instance
52465
+ */
52466
+ MethodSettings.prototype.longRunning = null;
52467
+
52468
+ /**
52469
+ * Creates a new MethodSettings instance using the specified properties.
52470
+ * @function create
52471
+ * @memberof google.api.MethodSettings
52472
+ * @static
52473
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
52474
+ * @returns {google.api.MethodSettings} MethodSettings instance
52475
+ */
52476
+ MethodSettings.create = function create(properties) {
52477
+ return new MethodSettings(properties);
52478
+ };
52479
+
52480
+ /**
52481
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
52482
+ * @function encode
52483
+ * @memberof google.api.MethodSettings
52484
+ * @static
52485
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
52486
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52487
+ * @returns {$protobuf.Writer} Writer
52488
+ */
52489
+ MethodSettings.encode = function encode(message, writer) {
52490
+ if (!writer)
52491
+ writer = $Writer.create();
52492
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
52493
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
52494
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
52495
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
52496
+ return writer;
52497
+ };
52498
+
52499
+ /**
52500
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
52501
+ * @function encodeDelimited
52502
+ * @memberof google.api.MethodSettings
52503
+ * @static
52504
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
52505
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52506
+ * @returns {$protobuf.Writer} Writer
52507
+ */
52508
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
52509
+ return this.encode(message, writer).ldelim();
52510
+ };
52511
+
52512
+ /**
52513
+ * Decodes a MethodSettings message from the specified reader or buffer.
52514
+ * @function decode
52515
+ * @memberof google.api.MethodSettings
52516
+ * @static
52517
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52518
+ * @param {number} [length] Message length if known beforehand
52519
+ * @returns {google.api.MethodSettings} MethodSettings
52520
+ * @throws {Error} If the payload is not a reader or valid buffer
52521
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52522
+ */
52523
+ MethodSettings.decode = function decode(reader, length) {
52524
+ if (!(reader instanceof $Reader))
52525
+ reader = $Reader.create(reader);
52526
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
52527
+ while (reader.pos < end) {
52528
+ var tag = reader.uint32();
52529
+ switch (tag >>> 3) {
52530
+ case 1: {
52531
+ message.selector = reader.string();
52532
+ break;
52533
+ }
52534
+ case 2: {
52535
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
52536
+ break;
52537
+ }
52538
+ default:
52539
+ reader.skipType(tag & 7);
52540
+ break;
52541
+ }
52542
+ }
52543
+ return message;
52544
+ };
52545
+
52546
+ /**
52547
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
52548
+ * @function decodeDelimited
52549
+ * @memberof google.api.MethodSettings
52550
+ * @static
52551
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52552
+ * @returns {google.api.MethodSettings} MethodSettings
52553
+ * @throws {Error} If the payload is not a reader or valid buffer
52554
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52555
+ */
52556
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
52557
+ if (!(reader instanceof $Reader))
52558
+ reader = new $Reader(reader);
52559
+ return this.decode(reader, reader.uint32());
52560
+ };
52561
+
52562
+ /**
52563
+ * Verifies a MethodSettings message.
52564
+ * @function verify
52565
+ * @memberof google.api.MethodSettings
52566
+ * @static
52567
+ * @param {Object.<string,*>} message Plain object to verify
52568
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52569
+ */
52570
+ MethodSettings.verify = function verify(message) {
52571
+ if (typeof message !== "object" || message === null)
52572
+ return "object expected";
52573
+ if (message.selector != null && message.hasOwnProperty("selector"))
52574
+ if (!$util.isString(message.selector))
52575
+ return "selector: string expected";
52576
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
52577
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
52578
+ if (error)
52579
+ return "longRunning." + error;
52580
+ }
52581
+ return null;
52582
+ };
52583
+
52584
+ /**
52585
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
52586
+ * @function fromObject
52587
+ * @memberof google.api.MethodSettings
52588
+ * @static
52589
+ * @param {Object.<string,*>} object Plain object
52590
+ * @returns {google.api.MethodSettings} MethodSettings
52591
+ */
52592
+ MethodSettings.fromObject = function fromObject(object) {
52593
+ if (object instanceof $root.google.api.MethodSettings)
52594
+ return object;
52595
+ var message = new $root.google.api.MethodSettings();
52596
+ if (object.selector != null)
52597
+ message.selector = String(object.selector);
52598
+ if (object.longRunning != null) {
52599
+ if (typeof object.longRunning !== "object")
52600
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
52601
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
52602
+ }
52603
+ return message;
52604
+ };
52605
+
52606
+ /**
52607
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
52608
+ * @function toObject
52609
+ * @memberof google.api.MethodSettings
52610
+ * @static
52611
+ * @param {google.api.MethodSettings} message MethodSettings
52612
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52613
+ * @returns {Object.<string,*>} Plain object
52614
+ */
52615
+ MethodSettings.toObject = function toObject(message, options) {
52616
+ if (!options)
52617
+ options = {};
52618
+ var object = {};
52619
+ if (options.defaults) {
52620
+ object.selector = "";
52621
+ object.longRunning = null;
52622
+ }
52623
+ if (message.selector != null && message.hasOwnProperty("selector"))
52624
+ object.selector = message.selector;
52625
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
52626
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
52627
+ return object;
52628
+ };
52629
+
52630
+ /**
52631
+ * Converts this MethodSettings to JSON.
52632
+ * @function toJSON
52633
+ * @memberof google.api.MethodSettings
52634
+ * @instance
52635
+ * @returns {Object.<string,*>} JSON object
52636
+ */
52637
+ MethodSettings.prototype.toJSON = function toJSON() {
52638
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52639
+ };
52640
+
52641
+ /**
52642
+ * Gets the default type url for MethodSettings
52643
+ * @function getTypeUrl
52644
+ * @memberof google.api.MethodSettings
52645
+ * @static
52646
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52647
+ * @returns {string} The default type url
52648
+ */
52649
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52650
+ if (typeUrlPrefix === undefined) {
52651
+ typeUrlPrefix = "type.googleapis.com";
52652
+ }
52653
+ return typeUrlPrefix + "/google.api.MethodSettings";
52654
+ };
52655
+
52656
+ MethodSettings.LongRunning = (function() {
52657
+
52658
+ /**
52659
+ * Properties of a LongRunning.
52660
+ * @memberof google.api.MethodSettings
52661
+ * @interface ILongRunning
52662
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
52663
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
52664
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
52665
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
52666
+ */
52667
+
52668
+ /**
52669
+ * Constructs a new LongRunning.
52670
+ * @memberof google.api.MethodSettings
52671
+ * @classdesc Represents a LongRunning.
52672
+ * @implements ILongRunning
52673
+ * @constructor
52674
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
52675
+ */
52676
+ function LongRunning(properties) {
52677
+ if (properties)
52678
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52679
+ if (properties[keys[i]] != null)
52680
+ this[keys[i]] = properties[keys[i]];
52681
+ }
52682
+
52683
+ /**
52684
+ * LongRunning initialPollDelay.
52685
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
52686
+ * @memberof google.api.MethodSettings.LongRunning
52687
+ * @instance
52688
+ */
52689
+ LongRunning.prototype.initialPollDelay = null;
52690
+
52691
+ /**
52692
+ * LongRunning pollDelayMultiplier.
52693
+ * @member {number} pollDelayMultiplier
52694
+ * @memberof google.api.MethodSettings.LongRunning
52695
+ * @instance
52696
+ */
52697
+ LongRunning.prototype.pollDelayMultiplier = 0;
52698
+
52699
+ /**
52700
+ * LongRunning maxPollDelay.
52701
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
52702
+ * @memberof google.api.MethodSettings.LongRunning
52703
+ * @instance
52704
+ */
52705
+ LongRunning.prototype.maxPollDelay = null;
52706
+
52707
+ /**
52708
+ * LongRunning totalPollTimeout.
52709
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
52710
+ * @memberof google.api.MethodSettings.LongRunning
52711
+ * @instance
52712
+ */
52713
+ LongRunning.prototype.totalPollTimeout = null;
52714
+
52715
+ /**
52716
+ * Creates a new LongRunning instance using the specified properties.
52717
+ * @function create
52718
+ * @memberof google.api.MethodSettings.LongRunning
52719
+ * @static
52720
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
52721
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
52722
+ */
52723
+ LongRunning.create = function create(properties) {
52724
+ return new LongRunning(properties);
52725
+ };
52726
+
52727
+ /**
52728
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
52729
+ * @function encode
52730
+ * @memberof google.api.MethodSettings.LongRunning
52731
+ * @static
52732
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
52733
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52734
+ * @returns {$protobuf.Writer} Writer
52735
+ */
52736
+ LongRunning.encode = function encode(message, writer) {
52737
+ if (!writer)
52738
+ writer = $Writer.create();
52739
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
52740
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52741
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
52742
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
52743
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
52744
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
52745
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
52746
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
52747
+ return writer;
52748
+ };
52749
+
52750
+ /**
52751
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
52752
+ * @function encodeDelimited
52753
+ * @memberof google.api.MethodSettings.LongRunning
52754
+ * @static
52755
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
52756
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52757
+ * @returns {$protobuf.Writer} Writer
52758
+ */
52759
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
52760
+ return this.encode(message, writer).ldelim();
52761
+ };
52762
+
52763
+ /**
52764
+ * Decodes a LongRunning message from the specified reader or buffer.
52765
+ * @function decode
52766
+ * @memberof google.api.MethodSettings.LongRunning
52767
+ * @static
52768
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52769
+ * @param {number} [length] Message length if known beforehand
52770
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52771
+ * @throws {Error} If the payload is not a reader or valid buffer
52772
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52773
+ */
52774
+ LongRunning.decode = function decode(reader, length) {
52775
+ if (!(reader instanceof $Reader))
52776
+ reader = $Reader.create(reader);
52777
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
52778
+ while (reader.pos < end) {
52779
+ var tag = reader.uint32();
52780
+ switch (tag >>> 3) {
52781
+ case 1: {
52782
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52783
+ break;
52784
+ }
52785
+ case 2: {
52786
+ message.pollDelayMultiplier = reader.float();
52787
+ break;
52788
+ }
52789
+ case 3: {
52790
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52791
+ break;
52792
+ }
52793
+ case 4: {
52794
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
52795
+ break;
52796
+ }
52797
+ default:
52798
+ reader.skipType(tag & 7);
52799
+ break;
52800
+ }
52801
+ }
52802
+ return message;
52803
+ };
52804
+
52805
+ /**
52806
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
52807
+ * @function decodeDelimited
52808
+ * @memberof google.api.MethodSettings.LongRunning
52809
+ * @static
52810
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52811
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52812
+ * @throws {Error} If the payload is not a reader or valid buffer
52813
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52814
+ */
52815
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
52816
+ if (!(reader instanceof $Reader))
52817
+ reader = new $Reader(reader);
52818
+ return this.decode(reader, reader.uint32());
52819
+ };
52820
+
52821
+ /**
52822
+ * Verifies a LongRunning message.
52823
+ * @function verify
52824
+ * @memberof google.api.MethodSettings.LongRunning
52825
+ * @static
52826
+ * @param {Object.<string,*>} message Plain object to verify
52827
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52828
+ */
52829
+ LongRunning.verify = function verify(message) {
52830
+ if (typeof message !== "object" || message === null)
52831
+ return "object expected";
52832
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
52833
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
52834
+ if (error)
52835
+ return "initialPollDelay." + error;
52836
+ }
52837
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
52838
+ if (typeof message.pollDelayMultiplier !== "number")
52839
+ return "pollDelayMultiplier: number expected";
52840
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
52841
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
52842
+ if (error)
52843
+ return "maxPollDelay." + error;
52844
+ }
52845
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
52846
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
52847
+ if (error)
52848
+ return "totalPollTimeout." + error;
52849
+ }
52850
+ return null;
52851
+ };
52852
+
52853
+ /**
52854
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
52855
+ * @function fromObject
52856
+ * @memberof google.api.MethodSettings.LongRunning
52857
+ * @static
52858
+ * @param {Object.<string,*>} object Plain object
52859
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
52860
+ */
52861
+ LongRunning.fromObject = function fromObject(object) {
52862
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
52863
+ return object;
52864
+ var message = new $root.google.api.MethodSettings.LongRunning();
52865
+ if (object.initialPollDelay != null) {
52866
+ if (typeof object.initialPollDelay !== "object")
52867
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
52868
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
52869
+ }
52870
+ if (object.pollDelayMultiplier != null)
52871
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
52872
+ if (object.maxPollDelay != null) {
52873
+ if (typeof object.maxPollDelay !== "object")
52874
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
52875
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
52876
+ }
52877
+ if (object.totalPollTimeout != null) {
52878
+ if (typeof object.totalPollTimeout !== "object")
52879
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
52880
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
52881
+ }
52882
+ return message;
52883
+ };
52884
+
52885
+ /**
52886
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
52887
+ * @function toObject
52888
+ * @memberof google.api.MethodSettings.LongRunning
52889
+ * @static
52890
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
52891
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52892
+ * @returns {Object.<string,*>} Plain object
52893
+ */
52894
+ LongRunning.toObject = function toObject(message, options) {
52895
+ if (!options)
52896
+ options = {};
52897
+ var object = {};
52898
+ if (options.defaults) {
52899
+ object.initialPollDelay = null;
52900
+ object.pollDelayMultiplier = 0;
52901
+ object.maxPollDelay = null;
52902
+ object.totalPollTimeout = null;
52903
+ }
52904
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
52905
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
52906
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
52907
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
52908
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
52909
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
52910
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
52911
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
52912
+ return object;
52913
+ };
52914
+
52915
+ /**
52916
+ * Converts this LongRunning to JSON.
52917
+ * @function toJSON
52918
+ * @memberof google.api.MethodSettings.LongRunning
52919
+ * @instance
52920
+ * @returns {Object.<string,*>} JSON object
52921
+ */
52922
+ LongRunning.prototype.toJSON = function toJSON() {
52923
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52924
+ };
52925
+
52926
+ /**
52927
+ * Gets the default type url for LongRunning
52928
+ * @function getTypeUrl
52929
+ * @memberof google.api.MethodSettings.LongRunning
52930
+ * @static
52931
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52932
+ * @returns {string} The default type url
52933
+ */
52934
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52935
+ if (typeUrlPrefix === undefined) {
52936
+ typeUrlPrefix = "type.googleapis.com";
52937
+ }
52938
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
52939
+ };
52940
+
52941
+ return LongRunning;
52942
+ })();
52943
+
52944
+ return MethodSettings;
52945
+ })();
52946
+
52947
+ /**
52948
+ * ClientLibraryOrganization enum.
52949
+ * @name google.api.ClientLibraryOrganization
52950
+ * @enum {number}
52951
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
52952
+ * @property {number} CLOUD=1 CLOUD value
52953
+ * @property {number} ADS=2 ADS value
52954
+ * @property {number} PHOTOS=3 PHOTOS value
52955
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
52956
+ */
52957
+ api.ClientLibraryOrganization = (function() {
52958
+ var valuesById = {}, values = Object.create(valuesById);
52959
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
52960
+ values[valuesById[1] = "CLOUD"] = 1;
52961
+ values[valuesById[2] = "ADS"] = 2;
52962
+ values[valuesById[3] = "PHOTOS"] = 3;
52963
+ values[valuesById[4] = "STREET_VIEW"] = 4;
52964
+ return values;
52965
+ })();
52966
+
52967
+ /**
52968
+ * ClientLibraryDestination enum.
52969
+ * @name google.api.ClientLibraryDestination
52970
+ * @enum {number}
52971
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
52972
+ * @property {number} GITHUB=10 GITHUB value
52973
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
52974
+ */
52975
+ api.ClientLibraryDestination = (function() {
52976
+ var valuesById = {}, values = Object.create(valuesById);
52977
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
52978
+ values[valuesById[10] = "GITHUB"] = 10;
52979
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
52980
+ return values;
52981
+ })();
52982
+
52983
+ /**
52984
+ * LaunchStage enum.
52985
+ * @name google.api.LaunchStage
52986
+ * @enum {number}
52987
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
52988
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
52989
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
52990
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
52991
+ * @property {number} ALPHA=2 ALPHA value
52992
+ * @property {number} BETA=3 BETA value
52993
+ * @property {number} GA=4 GA value
52994
+ * @property {number} DEPRECATED=5 DEPRECATED value
52995
+ */
52996
+ api.LaunchStage = (function() {
52997
+ var valuesById = {}, values = Object.create(valuesById);
52998
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
52999
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
53000
+ values[valuesById[7] = "PRELAUNCH"] = 7;
53001
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
53002
+ values[valuesById[2] = "ALPHA"] = 2;
53003
+ values[valuesById[3] = "BETA"] = 3;
53004
+ values[valuesById[4] = "GA"] = 4;
53005
+ values[valuesById[5] = "DEPRECATED"] = 5;
53006
+ return values;
53007
+ })();
53008
+
49110
53009
  return api;
49111
53010
  })();
49112
53011