@google-cloud/dms 3.2.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45660,6 +45660,7 @@
45660
45660
  * @property {string|null} [docTagPrefix] Publishing docTagPrefix
45661
45661
  * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
45662
45662
  * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
45663
+ * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
45663
45664
  */
45664
45665
 
45665
45666
  /**
@@ -45752,6 +45753,14 @@
45752
45753
  */
45753
45754
  Publishing.prototype.librarySettings = $util.emptyArray;
45754
45755
 
45756
+ /**
45757
+ * Publishing protoReferenceDocumentationUri.
45758
+ * @member {string} protoReferenceDocumentationUri
45759
+ * @memberof google.api.Publishing
45760
+ * @instance
45761
+ */
45762
+ Publishing.prototype.protoReferenceDocumentationUri = "";
45763
+
45755
45764
  /**
45756
45765
  * Creates a new Publishing instance using the specified properties.
45757
45766
  * @function create
@@ -45797,6 +45806,8 @@
45797
45806
  if (message.librarySettings != null && message.librarySettings.length)
45798
45807
  for (var i = 0; i < message.librarySettings.length; ++i)
45799
45808
  $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
45809
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
45810
+ writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
45800
45811
  return writer;
45801
45812
  };
45802
45813
 
@@ -45873,6 +45884,10 @@
45873
45884
  message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
45874
45885
  break;
45875
45886
  }
45887
+ case 110: {
45888
+ message.protoReferenceDocumentationUri = reader.string();
45889
+ break;
45890
+ }
45876
45891
  default:
45877
45892
  reader.skipType(tag & 7);
45878
45893
  break;
@@ -45948,6 +45963,9 @@
45948
45963
  case 2:
45949
45964
  case 3:
45950
45965
  case 4:
45966
+ case 5:
45967
+ case 6:
45968
+ case 7:
45951
45969
  break;
45952
45970
  }
45953
45971
  if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
@@ -45959,6 +45977,9 @@
45959
45977
  return "librarySettings." + error;
45960
45978
  }
45961
45979
  }
45980
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
45981
+ if (!$util.isString(message.protoReferenceDocumentationUri))
45982
+ return "protoReferenceDocumentationUri: string expected";
45962
45983
  return null;
45963
45984
  };
45964
45985
 
@@ -46028,6 +46049,18 @@
46028
46049
  case 4:
46029
46050
  message.organization = 4;
46030
46051
  break;
46052
+ case "SHOPPING":
46053
+ case 5:
46054
+ message.organization = 5;
46055
+ break;
46056
+ case "GEO":
46057
+ case 6:
46058
+ message.organization = 6;
46059
+ break;
46060
+ case "GENERATIVE_AI":
46061
+ case 7:
46062
+ message.organization = 7;
46063
+ break;
46031
46064
  }
46032
46065
  if (object.librarySettings) {
46033
46066
  if (!Array.isArray(object.librarySettings))
@@ -46039,6 +46072,8 @@
46039
46072
  message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
46040
46073
  }
46041
46074
  }
46075
+ if (object.protoReferenceDocumentationUri != null)
46076
+ message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
46042
46077
  return message;
46043
46078
  };
46044
46079
 
@@ -46067,6 +46102,7 @@
46067
46102
  object.githubLabel = "";
46068
46103
  object.docTagPrefix = "";
46069
46104
  object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
46105
+ object.protoReferenceDocumentationUri = "";
46070
46106
  }
46071
46107
  if (message.methodSettings && message.methodSettings.length) {
46072
46108
  object.methodSettings = [];
@@ -46095,6 +46131,8 @@
46095
46131
  for (var j = 0; j < message.librarySettings.length; ++j)
46096
46132
  object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
46097
46133
  }
46134
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
46135
+ object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
46098
46136
  return object;
46099
46137
  };
46100
46138
 
@@ -47257,6 +47295,11 @@
47257
47295
  * @memberof google.api
47258
47296
  * @interface IDotnetSettings
47259
47297
  * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
47298
+ * @property {Object.<string,string>|null} [renamedServices] DotnetSettings renamedServices
47299
+ * @property {Object.<string,string>|null} [renamedResources] DotnetSettings renamedResources
47300
+ * @property {Array.<string>|null} [ignoredResources] DotnetSettings ignoredResources
47301
+ * @property {Array.<string>|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
47302
+ * @property {Array.<string>|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
47260
47303
  */
47261
47304
 
47262
47305
  /**
@@ -47268,6 +47311,11 @@
47268
47311
  * @param {google.api.IDotnetSettings=} [properties] Properties to set
47269
47312
  */
47270
47313
  function DotnetSettings(properties) {
47314
+ this.renamedServices = {};
47315
+ this.renamedResources = {};
47316
+ this.ignoredResources = [];
47317
+ this.forcedNamespaceAliases = [];
47318
+ this.handwrittenSignatures = [];
47271
47319
  if (properties)
47272
47320
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47273
47321
  if (properties[keys[i]] != null)
@@ -47282,6 +47330,46 @@
47282
47330
  */
47283
47331
  DotnetSettings.prototype.common = null;
47284
47332
 
47333
+ /**
47334
+ * DotnetSettings renamedServices.
47335
+ * @member {Object.<string,string>} renamedServices
47336
+ * @memberof google.api.DotnetSettings
47337
+ * @instance
47338
+ */
47339
+ DotnetSettings.prototype.renamedServices = $util.emptyObject;
47340
+
47341
+ /**
47342
+ * DotnetSettings renamedResources.
47343
+ * @member {Object.<string,string>} renamedResources
47344
+ * @memberof google.api.DotnetSettings
47345
+ * @instance
47346
+ */
47347
+ DotnetSettings.prototype.renamedResources = $util.emptyObject;
47348
+
47349
+ /**
47350
+ * DotnetSettings ignoredResources.
47351
+ * @member {Array.<string>} ignoredResources
47352
+ * @memberof google.api.DotnetSettings
47353
+ * @instance
47354
+ */
47355
+ DotnetSettings.prototype.ignoredResources = $util.emptyArray;
47356
+
47357
+ /**
47358
+ * DotnetSettings forcedNamespaceAliases.
47359
+ * @member {Array.<string>} forcedNamespaceAliases
47360
+ * @memberof google.api.DotnetSettings
47361
+ * @instance
47362
+ */
47363
+ DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
47364
+
47365
+ /**
47366
+ * DotnetSettings handwrittenSignatures.
47367
+ * @member {Array.<string>} handwrittenSignatures
47368
+ * @memberof google.api.DotnetSettings
47369
+ * @instance
47370
+ */
47371
+ DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
47372
+
47285
47373
  /**
47286
47374
  * Creates a new DotnetSettings instance using the specified properties.
47287
47375
  * @function create
@@ -47308,6 +47396,21 @@
47308
47396
  writer = $Writer.create();
47309
47397
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
47310
47398
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47399
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
47400
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
47401
+ 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.renamedServices[keys[i]]).ldelim();
47402
+ if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
47403
+ for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
47404
+ 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.renamedResources[keys[i]]).ldelim();
47405
+ if (message.ignoredResources != null && message.ignoredResources.length)
47406
+ for (var i = 0; i < message.ignoredResources.length; ++i)
47407
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
47408
+ if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
47409
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
47410
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
47411
+ if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
47412
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
47413
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
47311
47414
  return writer;
47312
47415
  };
47313
47416
 
@@ -47338,7 +47441,7 @@
47338
47441
  DotnetSettings.decode = function decode(reader, length) {
47339
47442
  if (!(reader instanceof $Reader))
47340
47443
  reader = $Reader.create(reader);
47341
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
47444
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
47342
47445
  while (reader.pos < end) {
47343
47446
  var tag = reader.uint32();
47344
47447
  switch (tag >>> 3) {
@@ -47346,6 +47449,70 @@
47346
47449
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
47347
47450
  break;
47348
47451
  }
47452
+ case 2: {
47453
+ if (message.renamedServices === $util.emptyObject)
47454
+ message.renamedServices = {};
47455
+ var end2 = reader.uint32() + reader.pos;
47456
+ key = "";
47457
+ value = "";
47458
+ while (reader.pos < end2) {
47459
+ var tag2 = reader.uint32();
47460
+ switch (tag2 >>> 3) {
47461
+ case 1:
47462
+ key = reader.string();
47463
+ break;
47464
+ case 2:
47465
+ value = reader.string();
47466
+ break;
47467
+ default:
47468
+ reader.skipType(tag2 & 7);
47469
+ break;
47470
+ }
47471
+ }
47472
+ message.renamedServices[key] = value;
47473
+ break;
47474
+ }
47475
+ case 3: {
47476
+ if (message.renamedResources === $util.emptyObject)
47477
+ message.renamedResources = {};
47478
+ var end2 = reader.uint32() + reader.pos;
47479
+ key = "";
47480
+ value = "";
47481
+ while (reader.pos < end2) {
47482
+ var tag2 = reader.uint32();
47483
+ switch (tag2 >>> 3) {
47484
+ case 1:
47485
+ key = reader.string();
47486
+ break;
47487
+ case 2:
47488
+ value = reader.string();
47489
+ break;
47490
+ default:
47491
+ reader.skipType(tag2 & 7);
47492
+ break;
47493
+ }
47494
+ }
47495
+ message.renamedResources[key] = value;
47496
+ break;
47497
+ }
47498
+ case 4: {
47499
+ if (!(message.ignoredResources && message.ignoredResources.length))
47500
+ message.ignoredResources = [];
47501
+ message.ignoredResources.push(reader.string());
47502
+ break;
47503
+ }
47504
+ case 5: {
47505
+ if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
47506
+ message.forcedNamespaceAliases = [];
47507
+ message.forcedNamespaceAliases.push(reader.string());
47508
+ break;
47509
+ }
47510
+ case 6: {
47511
+ if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
47512
+ message.handwrittenSignatures = [];
47513
+ message.handwrittenSignatures.push(reader.string());
47514
+ break;
47515
+ }
47349
47516
  default:
47350
47517
  reader.skipType(tag & 7);
47351
47518
  break;
@@ -47386,6 +47553,43 @@
47386
47553
  if (error)
47387
47554
  return "common." + error;
47388
47555
  }
47556
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
47557
+ if (!$util.isObject(message.renamedServices))
47558
+ return "renamedServices: object expected";
47559
+ var key = Object.keys(message.renamedServices);
47560
+ for (var i = 0; i < key.length; ++i)
47561
+ if (!$util.isString(message.renamedServices[key[i]]))
47562
+ return "renamedServices: string{k:string} expected";
47563
+ }
47564
+ if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) {
47565
+ if (!$util.isObject(message.renamedResources))
47566
+ return "renamedResources: object expected";
47567
+ var key = Object.keys(message.renamedResources);
47568
+ for (var i = 0; i < key.length; ++i)
47569
+ if (!$util.isString(message.renamedResources[key[i]]))
47570
+ return "renamedResources: string{k:string} expected";
47571
+ }
47572
+ if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) {
47573
+ if (!Array.isArray(message.ignoredResources))
47574
+ return "ignoredResources: array expected";
47575
+ for (var i = 0; i < message.ignoredResources.length; ++i)
47576
+ if (!$util.isString(message.ignoredResources[i]))
47577
+ return "ignoredResources: string[] expected";
47578
+ }
47579
+ if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) {
47580
+ if (!Array.isArray(message.forcedNamespaceAliases))
47581
+ return "forcedNamespaceAliases: array expected";
47582
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
47583
+ if (!$util.isString(message.forcedNamespaceAliases[i]))
47584
+ return "forcedNamespaceAliases: string[] expected";
47585
+ }
47586
+ if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) {
47587
+ if (!Array.isArray(message.handwrittenSignatures))
47588
+ return "handwrittenSignatures: array expected";
47589
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
47590
+ if (!$util.isString(message.handwrittenSignatures[i]))
47591
+ return "handwrittenSignatures: string[] expected";
47592
+ }
47389
47593
  return null;
47390
47594
  };
47391
47595
 
@@ -47406,6 +47610,41 @@
47406
47610
  throw TypeError(".google.api.DotnetSettings.common: object expected");
47407
47611
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
47408
47612
  }
47613
+ if (object.renamedServices) {
47614
+ if (typeof object.renamedServices !== "object")
47615
+ throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
47616
+ message.renamedServices = {};
47617
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
47618
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
47619
+ }
47620
+ if (object.renamedResources) {
47621
+ if (typeof object.renamedResources !== "object")
47622
+ throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
47623
+ message.renamedResources = {};
47624
+ for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i)
47625
+ message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
47626
+ }
47627
+ if (object.ignoredResources) {
47628
+ if (!Array.isArray(object.ignoredResources))
47629
+ throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
47630
+ message.ignoredResources = [];
47631
+ for (var i = 0; i < object.ignoredResources.length; ++i)
47632
+ message.ignoredResources[i] = String(object.ignoredResources[i]);
47633
+ }
47634
+ if (object.forcedNamespaceAliases) {
47635
+ if (!Array.isArray(object.forcedNamespaceAliases))
47636
+ throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
47637
+ message.forcedNamespaceAliases = [];
47638
+ for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
47639
+ message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
47640
+ }
47641
+ if (object.handwrittenSignatures) {
47642
+ if (!Array.isArray(object.handwrittenSignatures))
47643
+ throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
47644
+ message.handwrittenSignatures = [];
47645
+ for (var i = 0; i < object.handwrittenSignatures.length; ++i)
47646
+ message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
47647
+ }
47409
47648
  return message;
47410
47649
  };
47411
47650
 
@@ -47422,10 +47661,45 @@
47422
47661
  if (!options)
47423
47662
  options = {};
47424
47663
  var object = {};
47664
+ if (options.arrays || options.defaults) {
47665
+ object.ignoredResources = [];
47666
+ object.forcedNamespaceAliases = [];
47667
+ object.handwrittenSignatures = [];
47668
+ }
47669
+ if (options.objects || options.defaults) {
47670
+ object.renamedServices = {};
47671
+ object.renamedResources = {};
47672
+ }
47425
47673
  if (options.defaults)
47426
47674
  object.common = null;
47427
47675
  if (message.common != null && message.hasOwnProperty("common"))
47428
47676
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
47677
+ var keys2;
47678
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
47679
+ object.renamedServices = {};
47680
+ for (var j = 0; j < keys2.length; ++j)
47681
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
47682
+ }
47683
+ if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
47684
+ object.renamedResources = {};
47685
+ for (var j = 0; j < keys2.length; ++j)
47686
+ object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
47687
+ }
47688
+ if (message.ignoredResources && message.ignoredResources.length) {
47689
+ object.ignoredResources = [];
47690
+ for (var j = 0; j < message.ignoredResources.length; ++j)
47691
+ object.ignoredResources[j] = message.ignoredResources[j];
47692
+ }
47693
+ if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
47694
+ object.forcedNamespaceAliases = [];
47695
+ for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
47696
+ object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
47697
+ }
47698
+ if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
47699
+ object.handwrittenSignatures = [];
47700
+ for (var j = 0; j < message.handwrittenSignatures.length; ++j)
47701
+ object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
47702
+ }
47429
47703
  return object;
47430
47704
  };
47431
47705
 
@@ -47882,6 +48156,7 @@
47882
48156
  * @interface IMethodSettings
47883
48157
  * @property {string|null} [selector] MethodSettings selector
47884
48158
  * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
48159
+ * @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
47885
48160
  */
47886
48161
 
47887
48162
  /**
@@ -47893,6 +48168,7 @@
47893
48168
  * @param {google.api.IMethodSettings=} [properties] Properties to set
47894
48169
  */
47895
48170
  function MethodSettings(properties) {
48171
+ this.autoPopulatedFields = [];
47896
48172
  if (properties)
47897
48173
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47898
48174
  if (properties[keys[i]] != null)
@@ -47915,6 +48191,14 @@
47915
48191
  */
47916
48192
  MethodSettings.prototype.longRunning = null;
47917
48193
 
48194
+ /**
48195
+ * MethodSettings autoPopulatedFields.
48196
+ * @member {Array.<string>} autoPopulatedFields
48197
+ * @memberof google.api.MethodSettings
48198
+ * @instance
48199
+ */
48200
+ MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
48201
+
47918
48202
  /**
47919
48203
  * Creates a new MethodSettings instance using the specified properties.
47920
48204
  * @function create
@@ -47943,6 +48227,9 @@
47943
48227
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
47944
48228
  if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
47945
48229
  $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
48230
+ if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
48231
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
48232
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
47946
48233
  return writer;
47947
48234
  };
47948
48235
 
@@ -47985,6 +48272,12 @@
47985
48272
  message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
47986
48273
  break;
47987
48274
  }
48275
+ case 3: {
48276
+ if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
48277
+ message.autoPopulatedFields = [];
48278
+ message.autoPopulatedFields.push(reader.string());
48279
+ break;
48280
+ }
47988
48281
  default:
47989
48282
  reader.skipType(tag & 7);
47990
48283
  break;
@@ -48028,6 +48321,13 @@
48028
48321
  if (error)
48029
48322
  return "longRunning." + error;
48030
48323
  }
48324
+ if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
48325
+ if (!Array.isArray(message.autoPopulatedFields))
48326
+ return "autoPopulatedFields: array expected";
48327
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
48328
+ if (!$util.isString(message.autoPopulatedFields[i]))
48329
+ return "autoPopulatedFields: string[] expected";
48330
+ }
48031
48331
  return null;
48032
48332
  };
48033
48333
 
@@ -48050,6 +48350,13 @@
48050
48350
  throw TypeError(".google.api.MethodSettings.longRunning: object expected");
48051
48351
  message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
48052
48352
  }
48353
+ if (object.autoPopulatedFields) {
48354
+ if (!Array.isArray(object.autoPopulatedFields))
48355
+ throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
48356
+ message.autoPopulatedFields = [];
48357
+ for (var i = 0; i < object.autoPopulatedFields.length; ++i)
48358
+ message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
48359
+ }
48053
48360
  return message;
48054
48361
  };
48055
48362
 
@@ -48066,6 +48373,8 @@
48066
48373
  if (!options)
48067
48374
  options = {};
48068
48375
  var object = {};
48376
+ if (options.arrays || options.defaults)
48377
+ object.autoPopulatedFields = [];
48069
48378
  if (options.defaults) {
48070
48379
  object.selector = "";
48071
48380
  object.longRunning = null;
@@ -48074,6 +48383,11 @@
48074
48383
  object.selector = message.selector;
48075
48384
  if (message.longRunning != null && message.hasOwnProperty("longRunning"))
48076
48385
  object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
48386
+ if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
48387
+ object.autoPopulatedFields = [];
48388
+ for (var j = 0; j < message.autoPopulatedFields.length; ++j)
48389
+ object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
48390
+ }
48077
48391
  return object;
48078
48392
  };
48079
48393
 
@@ -48403,6 +48717,9 @@
48403
48717
  * @property {number} ADS=2 ADS value
48404
48718
  * @property {number} PHOTOS=3 PHOTOS value
48405
48719
  * @property {number} STREET_VIEW=4 STREET_VIEW value
48720
+ * @property {number} SHOPPING=5 SHOPPING value
48721
+ * @property {number} GEO=6 GEO value
48722
+ * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value
48406
48723
  */
48407
48724
  api.ClientLibraryOrganization = (function() {
48408
48725
  var valuesById = {}, values = Object.create(valuesById);
@@ -48411,6 +48728,9 @@
48411
48728
  values[valuesById[2] = "ADS"] = 2;
48412
48729
  values[valuesById[3] = "PHOTOS"] = 3;
48413
48730
  values[valuesById[4] = "STREET_VIEW"] = 4;
48731
+ values[valuesById[5] = "SHOPPING"] = 5;
48732
+ values[valuesById[6] = "GEO"] = 6;
48733
+ values[valuesById[7] = "GENERATIVE_AI"] = 7;
48414
48734
  return values;
48415
48735
  })();
48416
48736
 
@@ -48468,6 +48788,7 @@
48468
48788
  * @property {number} IMMUTABLE=5 IMMUTABLE value
48469
48789
  * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
48470
48790
  * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
48791
+ * @property {number} IDENTIFIER=8 IDENTIFIER value
48471
48792
  */
48472
48793
  api.FieldBehavior = (function() {
48473
48794
  var valuesById = {}, values = Object.create(valuesById);
@@ -48479,6 +48800,7 @@
48479
48800
  values[valuesById[5] = "IMMUTABLE"] = 5;
48480
48801
  values[valuesById[6] = "UNORDERED_LIST"] = 6;
48481
48802
  values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
48803
+ values[valuesById[8] = "IDENTIFIER"] = 8;
48482
48804
  return values;
48483
48805
  })();
48484
48806
 
@@ -49402,6 +49724,38 @@
49402
49724
  return FileDescriptorSet;
49403
49725
  })();
49404
49726
 
49727
+ /**
49728
+ * Edition enum.
49729
+ * @name google.protobuf.Edition
49730
+ * @enum {number}
49731
+ * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
49732
+ * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
49733
+ * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
49734
+ * @property {number} EDITION_2023=1000 EDITION_2023 value
49735
+ * @property {number} EDITION_2024=1001 EDITION_2024 value
49736
+ * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
49737
+ * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
49738
+ * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
49739
+ * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
49740
+ * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
49741
+ * @property {number} EDITION_MAX=2147483647 EDITION_MAX value
49742
+ */
49743
+ protobuf.Edition = (function() {
49744
+ var valuesById = {}, values = Object.create(valuesById);
49745
+ values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
49746
+ values[valuesById[998] = "EDITION_PROTO2"] = 998;
49747
+ values[valuesById[999] = "EDITION_PROTO3"] = 999;
49748
+ values[valuesById[1000] = "EDITION_2023"] = 1000;
49749
+ values[valuesById[1001] = "EDITION_2024"] = 1001;
49750
+ values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
49751
+ values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
49752
+ values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
49753
+ values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
49754
+ values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
49755
+ values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
49756
+ return values;
49757
+ })();
49758
+
49405
49759
  protobuf.FileDescriptorProto = (function() {
49406
49760
 
49407
49761
  /**
@@ -49420,7 +49774,7 @@
49420
49774
  * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
49421
49775
  * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
49422
49776
  * @property {string|null} [syntax] FileDescriptorProto syntax
49423
- * @property {string|null} [edition] FileDescriptorProto edition
49777
+ * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
49424
49778
  */
49425
49779
 
49426
49780
  /**
@@ -49543,11 +49897,11 @@
49543
49897
 
49544
49898
  /**
49545
49899
  * FileDescriptorProto edition.
49546
- * @member {string} edition
49900
+ * @member {google.protobuf.Edition} edition
49547
49901
  * @memberof google.protobuf.FileDescriptorProto
49548
49902
  * @instance
49549
49903
  */
49550
- FileDescriptorProto.prototype.edition = "";
49904
+ FileDescriptorProto.prototype.edition = 0;
49551
49905
 
49552
49906
  /**
49553
49907
  * Creates a new FileDescriptorProto instance using the specified properties.
@@ -49605,7 +49959,7 @@
49605
49959
  if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
49606
49960
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
49607
49961
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
49608
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition);
49962
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
49609
49963
  return writer;
49610
49964
  };
49611
49965
 
@@ -49712,8 +50066,8 @@
49712
50066
  message.syntax = reader.string();
49713
50067
  break;
49714
50068
  }
49715
- case 13: {
49716
- message.edition = reader.string();
50069
+ case 14: {
50070
+ message.edition = reader.int32();
49717
50071
  break;
49718
50072
  }
49719
50073
  default:
@@ -49828,8 +50182,22 @@
49828
50182
  if (!$util.isString(message.syntax))
49829
50183
  return "syntax: string expected";
49830
50184
  if (message.edition != null && message.hasOwnProperty("edition"))
49831
- if (!$util.isString(message.edition))
49832
- return "edition: string expected";
50185
+ switch (message.edition) {
50186
+ default:
50187
+ return "edition: enum value expected";
50188
+ case 0:
50189
+ case 998:
50190
+ case 999:
50191
+ case 1000:
50192
+ case 1001:
50193
+ case 1:
50194
+ case 2:
50195
+ case 99997:
50196
+ case 99998:
50197
+ case 99999:
50198
+ case 2147483647:
50199
+ break;
50200
+ }
49833
50201
  return null;
49834
50202
  };
49835
50203
 
@@ -49922,8 +50290,58 @@
49922
50290
  }
49923
50291
  if (object.syntax != null)
49924
50292
  message.syntax = String(object.syntax);
49925
- if (object.edition != null)
49926
- message.edition = String(object.edition);
50293
+ switch (object.edition) {
50294
+ default:
50295
+ if (typeof object.edition === "number") {
50296
+ message.edition = object.edition;
50297
+ break;
50298
+ }
50299
+ break;
50300
+ case "EDITION_UNKNOWN":
50301
+ case 0:
50302
+ message.edition = 0;
50303
+ break;
50304
+ case "EDITION_PROTO2":
50305
+ case 998:
50306
+ message.edition = 998;
50307
+ break;
50308
+ case "EDITION_PROTO3":
50309
+ case 999:
50310
+ message.edition = 999;
50311
+ break;
50312
+ case "EDITION_2023":
50313
+ case 1000:
50314
+ message.edition = 1000;
50315
+ break;
50316
+ case "EDITION_2024":
50317
+ case 1001:
50318
+ message.edition = 1001;
50319
+ break;
50320
+ case "EDITION_1_TEST_ONLY":
50321
+ case 1:
50322
+ message.edition = 1;
50323
+ break;
50324
+ case "EDITION_2_TEST_ONLY":
50325
+ case 2:
50326
+ message.edition = 2;
50327
+ break;
50328
+ case "EDITION_99997_TEST_ONLY":
50329
+ case 99997:
50330
+ message.edition = 99997;
50331
+ break;
50332
+ case "EDITION_99998_TEST_ONLY":
50333
+ case 99998:
50334
+ message.edition = 99998;
50335
+ break;
50336
+ case "EDITION_99999_TEST_ONLY":
50337
+ case 99999:
50338
+ message.edition = 99999;
50339
+ break;
50340
+ case "EDITION_MAX":
50341
+ case 2147483647:
50342
+ message.edition = 2147483647;
50343
+ break;
50344
+ }
49927
50345
  return message;
49928
50346
  };
49929
50347
 
@@ -49955,7 +50373,7 @@
49955
50373
  object.options = null;
49956
50374
  object.sourceCodeInfo = null;
49957
50375
  object.syntax = "";
49958
- object.edition = "";
50376
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
49959
50377
  }
49960
50378
  if (message.name != null && message.hasOwnProperty("name"))
49961
50379
  object.name = message.name;
@@ -50003,7 +50421,7 @@
50003
50421
  if (message.syntax != null && message.hasOwnProperty("syntax"))
50004
50422
  object.syntax = message.syntax;
50005
50423
  if (message.edition != null && message.hasOwnProperty("edition"))
50006
- object.edition = message.edition;
50424
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
50007
50425
  return object;
50008
50426
  };
50009
50427
 
@@ -51106,6 +51524,9 @@
51106
51524
  * @memberof google.protobuf
51107
51525
  * @interface IExtensionRangeOptions
51108
51526
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption
51527
+ * @property {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>|null} [declaration] ExtensionRangeOptions declaration
51528
+ * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features
51529
+ * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification
51109
51530
  */
51110
51531
 
51111
51532
  /**
@@ -51118,6 +51539,7 @@
51118
51539
  */
51119
51540
  function ExtensionRangeOptions(properties) {
51120
51541
  this.uninterpretedOption = [];
51542
+ this.declaration = [];
51121
51543
  if (properties)
51122
51544
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51123
51545
  if (properties[keys[i]] != null)
@@ -51132,6 +51554,30 @@
51132
51554
  */
51133
51555
  ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray;
51134
51556
 
51557
+ /**
51558
+ * ExtensionRangeOptions declaration.
51559
+ * @member {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>} declaration
51560
+ * @memberof google.protobuf.ExtensionRangeOptions
51561
+ * @instance
51562
+ */
51563
+ ExtensionRangeOptions.prototype.declaration = $util.emptyArray;
51564
+
51565
+ /**
51566
+ * ExtensionRangeOptions features.
51567
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
51568
+ * @memberof google.protobuf.ExtensionRangeOptions
51569
+ * @instance
51570
+ */
51571
+ ExtensionRangeOptions.prototype.features = null;
51572
+
51573
+ /**
51574
+ * ExtensionRangeOptions verification.
51575
+ * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification
51576
+ * @memberof google.protobuf.ExtensionRangeOptions
51577
+ * @instance
51578
+ */
51579
+ ExtensionRangeOptions.prototype.verification = 1;
51580
+
51135
51581
  /**
51136
51582
  * Creates a new ExtensionRangeOptions instance using the specified properties.
51137
51583
  * @function create
@@ -51156,6 +51602,13 @@
51156
51602
  ExtensionRangeOptions.encode = function encode(message, writer) {
51157
51603
  if (!writer)
51158
51604
  writer = $Writer.create();
51605
+ if (message.declaration != null && message.declaration.length)
51606
+ for (var i = 0; i < message.declaration.length; ++i)
51607
+ $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
51608
+ if (message.verification != null && Object.hasOwnProperty.call(message, "verification"))
51609
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification);
51610
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
51611
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
51159
51612
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
51160
51613
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
51161
51614
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -51199,6 +51652,20 @@
51199
51652
  message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
51200
51653
  break;
51201
51654
  }
51655
+ case 2: {
51656
+ if (!(message.declaration && message.declaration.length))
51657
+ message.declaration = [];
51658
+ message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32()));
51659
+ break;
51660
+ }
51661
+ case 50: {
51662
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
51663
+ break;
51664
+ }
51665
+ case 3: {
51666
+ message.verification = reader.int32();
51667
+ break;
51668
+ }
51202
51669
  default:
51203
51670
  reader.skipType(tag & 7);
51204
51671
  break;
@@ -51243,6 +51710,28 @@
51243
51710
  return "uninterpretedOption." + error;
51244
51711
  }
51245
51712
  }
51713
+ if (message.declaration != null && message.hasOwnProperty("declaration")) {
51714
+ if (!Array.isArray(message.declaration))
51715
+ return "declaration: array expected";
51716
+ for (var i = 0; i < message.declaration.length; ++i) {
51717
+ var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]);
51718
+ if (error)
51719
+ return "declaration." + error;
51720
+ }
51721
+ }
51722
+ if (message.features != null && message.hasOwnProperty("features")) {
51723
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
51724
+ if (error)
51725
+ return "features." + error;
51726
+ }
51727
+ if (message.verification != null && message.hasOwnProperty("verification"))
51728
+ switch (message.verification) {
51729
+ default:
51730
+ return "verification: enum value expected";
51731
+ case 0:
51732
+ case 1:
51733
+ break;
51734
+ }
51246
51735
  return null;
51247
51736
  };
51248
51737
 
@@ -51268,6 +51757,37 @@
51268
51757
  message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
51269
51758
  }
51270
51759
  }
51760
+ if (object.declaration) {
51761
+ if (!Array.isArray(object.declaration))
51762
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");
51763
+ message.declaration = [];
51764
+ for (var i = 0; i < object.declaration.length; ++i) {
51765
+ if (typeof object.declaration[i] !== "object")
51766
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");
51767
+ message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]);
51768
+ }
51769
+ }
51770
+ if (object.features != null) {
51771
+ if (typeof object.features !== "object")
51772
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");
51773
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
51774
+ }
51775
+ switch (object.verification) {
51776
+ case "DECLARATION":
51777
+ case 0:
51778
+ message.verification = 0;
51779
+ break;
51780
+ default:
51781
+ if (typeof object.verification === "number") {
51782
+ message.verification = object.verification;
51783
+ break;
51784
+ }
51785
+ break;
51786
+ case "UNVERIFIED":
51787
+ case 1:
51788
+ message.verification = 1;
51789
+ break;
51790
+ }
51271
51791
  return message;
51272
51792
  };
51273
51793
 
@@ -51284,8 +51804,23 @@
51284
51804
  if (!options)
51285
51805
  options = {};
51286
51806
  var object = {};
51287
- if (options.arrays || options.defaults)
51807
+ if (options.arrays || options.defaults) {
51808
+ object.declaration = [];
51288
51809
  object.uninterpretedOption = [];
51810
+ }
51811
+ if (options.defaults) {
51812
+ object.verification = options.enums === String ? "UNVERIFIED" : 1;
51813
+ object.features = null;
51814
+ }
51815
+ if (message.declaration && message.declaration.length) {
51816
+ object.declaration = [];
51817
+ for (var j = 0; j < message.declaration.length; ++j)
51818
+ object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options);
51819
+ }
51820
+ if (message.verification != null && message.hasOwnProperty("verification"))
51821
+ object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification;
51822
+ if (message.features != null && message.hasOwnProperty("features"))
51823
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
51289
51824
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
51290
51825
  object.uninterpretedOption = [];
51291
51826
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -51320,45 +51855,355 @@
51320
51855
  return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions";
51321
51856
  };
51322
51857
 
51323
- return ExtensionRangeOptions;
51324
- })();
51858
+ ExtensionRangeOptions.Declaration = (function() {
51325
51859
 
51326
- protobuf.FieldDescriptorProto = (function() {
51860
+ /**
51861
+ * Properties of a Declaration.
51862
+ * @memberof google.protobuf.ExtensionRangeOptions
51863
+ * @interface IDeclaration
51864
+ * @property {number|null} [number] Declaration number
51865
+ * @property {string|null} [fullName] Declaration fullName
51866
+ * @property {string|null} [type] Declaration type
51867
+ * @property {boolean|null} [reserved] Declaration reserved
51868
+ * @property {boolean|null} [repeated] Declaration repeated
51869
+ */
51327
51870
 
51328
- /**
51329
- * Properties of a FieldDescriptorProto.
51330
- * @memberof google.protobuf
51331
- * @interface IFieldDescriptorProto
51332
- * @property {string|null} [name] FieldDescriptorProto name
51333
- * @property {number|null} [number] FieldDescriptorProto number
51334
- * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label
51335
- * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type
51336
- * @property {string|null} [typeName] FieldDescriptorProto typeName
51337
- * @property {string|null} [extendee] FieldDescriptorProto extendee
51338
- * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue
51339
- * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
51340
- * @property {string|null} [jsonName] FieldDescriptorProto jsonName
51341
- * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
51342
- * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional
51343
- */
51871
+ /**
51872
+ * Constructs a new Declaration.
51873
+ * @memberof google.protobuf.ExtensionRangeOptions
51874
+ * @classdesc Represents a Declaration.
51875
+ * @implements IDeclaration
51876
+ * @constructor
51877
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
51878
+ */
51879
+ function Declaration(properties) {
51880
+ if (properties)
51881
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51882
+ if (properties[keys[i]] != null)
51883
+ this[keys[i]] = properties[keys[i]];
51884
+ }
51344
51885
 
51345
- /**
51346
- * Constructs a new FieldDescriptorProto.
51347
- * @memberof google.protobuf
51348
- * @classdesc Represents a FieldDescriptorProto.
51349
- * @implements IFieldDescriptorProto
51350
- * @constructor
51351
- * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
51352
- */
51353
- function FieldDescriptorProto(properties) {
51354
- if (properties)
51355
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51356
- if (properties[keys[i]] != null)
51357
- this[keys[i]] = properties[keys[i]];
51358
- }
51886
+ /**
51887
+ * Declaration number.
51888
+ * @member {number} number
51889
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51890
+ * @instance
51891
+ */
51892
+ Declaration.prototype.number = 0;
51359
51893
 
51360
- /**
51361
- * FieldDescriptorProto name.
51894
+ /**
51895
+ * Declaration fullName.
51896
+ * @member {string} fullName
51897
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51898
+ * @instance
51899
+ */
51900
+ Declaration.prototype.fullName = "";
51901
+
51902
+ /**
51903
+ * Declaration type.
51904
+ * @member {string} type
51905
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51906
+ * @instance
51907
+ */
51908
+ Declaration.prototype.type = "";
51909
+
51910
+ /**
51911
+ * Declaration reserved.
51912
+ * @member {boolean} reserved
51913
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51914
+ * @instance
51915
+ */
51916
+ Declaration.prototype.reserved = false;
51917
+
51918
+ /**
51919
+ * Declaration repeated.
51920
+ * @member {boolean} repeated
51921
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51922
+ * @instance
51923
+ */
51924
+ Declaration.prototype.repeated = false;
51925
+
51926
+ /**
51927
+ * Creates a new Declaration instance using the specified properties.
51928
+ * @function create
51929
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51930
+ * @static
51931
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
51932
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance
51933
+ */
51934
+ Declaration.create = function create(properties) {
51935
+ return new Declaration(properties);
51936
+ };
51937
+
51938
+ /**
51939
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
51940
+ * @function encode
51941
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51942
+ * @static
51943
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
51944
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51945
+ * @returns {$protobuf.Writer} Writer
51946
+ */
51947
+ Declaration.encode = function encode(message, writer) {
51948
+ if (!writer)
51949
+ writer = $Writer.create();
51950
+ if (message.number != null && Object.hasOwnProperty.call(message, "number"))
51951
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number);
51952
+ if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName"))
51953
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName);
51954
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
51955
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
51956
+ if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved"))
51957
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved);
51958
+ if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated"))
51959
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated);
51960
+ return writer;
51961
+ };
51962
+
51963
+ /**
51964
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
51965
+ * @function encodeDelimited
51966
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51967
+ * @static
51968
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
51969
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51970
+ * @returns {$protobuf.Writer} Writer
51971
+ */
51972
+ Declaration.encodeDelimited = function encodeDelimited(message, writer) {
51973
+ return this.encode(message, writer).ldelim();
51974
+ };
51975
+
51976
+ /**
51977
+ * Decodes a Declaration message from the specified reader or buffer.
51978
+ * @function decode
51979
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
51980
+ * @static
51981
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51982
+ * @param {number} [length] Message length if known beforehand
51983
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
51984
+ * @throws {Error} If the payload is not a reader or valid buffer
51985
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51986
+ */
51987
+ Declaration.decode = function decode(reader, length) {
51988
+ if (!(reader instanceof $Reader))
51989
+ reader = $Reader.create(reader);
51990
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
51991
+ while (reader.pos < end) {
51992
+ var tag = reader.uint32();
51993
+ switch (tag >>> 3) {
51994
+ case 1: {
51995
+ message.number = reader.int32();
51996
+ break;
51997
+ }
51998
+ case 2: {
51999
+ message.fullName = reader.string();
52000
+ break;
52001
+ }
52002
+ case 3: {
52003
+ message.type = reader.string();
52004
+ break;
52005
+ }
52006
+ case 5: {
52007
+ message.reserved = reader.bool();
52008
+ break;
52009
+ }
52010
+ case 6: {
52011
+ message.repeated = reader.bool();
52012
+ break;
52013
+ }
52014
+ default:
52015
+ reader.skipType(tag & 7);
52016
+ break;
52017
+ }
52018
+ }
52019
+ return message;
52020
+ };
52021
+
52022
+ /**
52023
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
52024
+ * @function decodeDelimited
52025
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52026
+ * @static
52027
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52028
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
52029
+ * @throws {Error} If the payload is not a reader or valid buffer
52030
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52031
+ */
52032
+ Declaration.decodeDelimited = function decodeDelimited(reader) {
52033
+ if (!(reader instanceof $Reader))
52034
+ reader = new $Reader(reader);
52035
+ return this.decode(reader, reader.uint32());
52036
+ };
52037
+
52038
+ /**
52039
+ * Verifies a Declaration message.
52040
+ * @function verify
52041
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52042
+ * @static
52043
+ * @param {Object.<string,*>} message Plain object to verify
52044
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52045
+ */
52046
+ Declaration.verify = function verify(message) {
52047
+ if (typeof message !== "object" || message === null)
52048
+ return "object expected";
52049
+ if (message.number != null && message.hasOwnProperty("number"))
52050
+ if (!$util.isInteger(message.number))
52051
+ return "number: integer expected";
52052
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
52053
+ if (!$util.isString(message.fullName))
52054
+ return "fullName: string expected";
52055
+ if (message.type != null && message.hasOwnProperty("type"))
52056
+ if (!$util.isString(message.type))
52057
+ return "type: string expected";
52058
+ if (message.reserved != null && message.hasOwnProperty("reserved"))
52059
+ if (typeof message.reserved !== "boolean")
52060
+ return "reserved: boolean expected";
52061
+ if (message.repeated != null && message.hasOwnProperty("repeated"))
52062
+ if (typeof message.repeated !== "boolean")
52063
+ return "repeated: boolean expected";
52064
+ return null;
52065
+ };
52066
+
52067
+ /**
52068
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
52069
+ * @function fromObject
52070
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52071
+ * @static
52072
+ * @param {Object.<string,*>} object Plain object
52073
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
52074
+ */
52075
+ Declaration.fromObject = function fromObject(object) {
52076
+ if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration)
52077
+ return object;
52078
+ var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
52079
+ if (object.number != null)
52080
+ message.number = object.number | 0;
52081
+ if (object.fullName != null)
52082
+ message.fullName = String(object.fullName);
52083
+ if (object.type != null)
52084
+ message.type = String(object.type);
52085
+ if (object.reserved != null)
52086
+ message.reserved = Boolean(object.reserved);
52087
+ if (object.repeated != null)
52088
+ message.repeated = Boolean(object.repeated);
52089
+ return message;
52090
+ };
52091
+
52092
+ /**
52093
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
52094
+ * @function toObject
52095
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52096
+ * @static
52097
+ * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration
52098
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52099
+ * @returns {Object.<string,*>} Plain object
52100
+ */
52101
+ Declaration.toObject = function toObject(message, options) {
52102
+ if (!options)
52103
+ options = {};
52104
+ var object = {};
52105
+ if (options.defaults) {
52106
+ object.number = 0;
52107
+ object.fullName = "";
52108
+ object.type = "";
52109
+ object.reserved = false;
52110
+ object.repeated = false;
52111
+ }
52112
+ if (message.number != null && message.hasOwnProperty("number"))
52113
+ object.number = message.number;
52114
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
52115
+ object.fullName = message.fullName;
52116
+ if (message.type != null && message.hasOwnProperty("type"))
52117
+ object.type = message.type;
52118
+ if (message.reserved != null && message.hasOwnProperty("reserved"))
52119
+ object.reserved = message.reserved;
52120
+ if (message.repeated != null && message.hasOwnProperty("repeated"))
52121
+ object.repeated = message.repeated;
52122
+ return object;
52123
+ };
52124
+
52125
+ /**
52126
+ * Converts this Declaration to JSON.
52127
+ * @function toJSON
52128
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52129
+ * @instance
52130
+ * @returns {Object.<string,*>} JSON object
52131
+ */
52132
+ Declaration.prototype.toJSON = function toJSON() {
52133
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52134
+ };
52135
+
52136
+ /**
52137
+ * Gets the default type url for Declaration
52138
+ * @function getTypeUrl
52139
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
52140
+ * @static
52141
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52142
+ * @returns {string} The default type url
52143
+ */
52144
+ Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52145
+ if (typeUrlPrefix === undefined) {
52146
+ typeUrlPrefix = "type.googleapis.com";
52147
+ }
52148
+ return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration";
52149
+ };
52150
+
52151
+ return Declaration;
52152
+ })();
52153
+
52154
+ /**
52155
+ * VerificationState enum.
52156
+ * @name google.protobuf.ExtensionRangeOptions.VerificationState
52157
+ * @enum {number}
52158
+ * @property {number} DECLARATION=0 DECLARATION value
52159
+ * @property {number} UNVERIFIED=1 UNVERIFIED value
52160
+ */
52161
+ ExtensionRangeOptions.VerificationState = (function() {
52162
+ var valuesById = {}, values = Object.create(valuesById);
52163
+ values[valuesById[0] = "DECLARATION"] = 0;
52164
+ values[valuesById[1] = "UNVERIFIED"] = 1;
52165
+ return values;
52166
+ })();
52167
+
52168
+ return ExtensionRangeOptions;
52169
+ })();
52170
+
52171
+ protobuf.FieldDescriptorProto = (function() {
52172
+
52173
+ /**
52174
+ * Properties of a FieldDescriptorProto.
52175
+ * @memberof google.protobuf
52176
+ * @interface IFieldDescriptorProto
52177
+ * @property {string|null} [name] FieldDescriptorProto name
52178
+ * @property {number|null} [number] FieldDescriptorProto number
52179
+ * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label
52180
+ * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type
52181
+ * @property {string|null} [typeName] FieldDescriptorProto typeName
52182
+ * @property {string|null} [extendee] FieldDescriptorProto extendee
52183
+ * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue
52184
+ * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
52185
+ * @property {string|null} [jsonName] FieldDescriptorProto jsonName
52186
+ * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
52187
+ * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional
52188
+ */
52189
+
52190
+ /**
52191
+ * Constructs a new FieldDescriptorProto.
52192
+ * @memberof google.protobuf
52193
+ * @classdesc Represents a FieldDescriptorProto.
52194
+ * @implements IFieldDescriptorProto
52195
+ * @constructor
52196
+ * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
52197
+ */
52198
+ function FieldDescriptorProto(properties) {
52199
+ if (properties)
52200
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52201
+ if (properties[keys[i]] != null)
52202
+ this[keys[i]] = properties[keys[i]];
52203
+ }
52204
+
52205
+ /**
52206
+ * FieldDescriptorProto name.
51362
52207
  * @member {string} name
51363
52208
  * @memberof google.protobuf.FieldDescriptorProto
51364
52209
  * @instance
@@ -51615,8 +52460,8 @@
51615
52460
  default:
51616
52461
  return "label: enum value expected";
51617
52462
  case 1:
51618
- case 2:
51619
52463
  case 3:
52464
+ case 2:
51620
52465
  break;
51621
52466
  }
51622
52467
  if (message.type != null && message.hasOwnProperty("type"))
@@ -51696,14 +52541,14 @@
51696
52541
  case 1:
51697
52542
  message.label = 1;
51698
52543
  break;
51699
- case "LABEL_REQUIRED":
51700
- case 2:
51701
- message.label = 2;
51702
- break;
51703
52544
  case "LABEL_REPEATED":
51704
52545
  case 3:
51705
52546
  message.label = 3;
51706
52547
  break;
52548
+ case "LABEL_REQUIRED":
52549
+ case 2:
52550
+ message.label = 2;
52551
+ break;
51707
52552
  }
51708
52553
  switch (object.type) {
51709
52554
  default:
@@ -51933,14 +52778,14 @@
51933
52778
  * @name google.protobuf.FieldDescriptorProto.Label
51934
52779
  * @enum {number}
51935
52780
  * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value
51936
- * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
51937
52781
  * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value
52782
+ * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
51938
52783
  */
51939
52784
  FieldDescriptorProto.Label = (function() {
51940
52785
  var valuesById = {}, values = Object.create(valuesById);
51941
52786
  values[valuesById[1] = "LABEL_OPTIONAL"] = 1;
51942
- values[valuesById[2] = "LABEL_REQUIRED"] = 2;
51943
52787
  values[valuesById[3] = "LABEL_REPEATED"] = 3;
52788
+ values[valuesById[2] = "LABEL_REQUIRED"] = 2;
51944
52789
  return values;
51945
52790
  })();
51946
52791
 
@@ -53639,7 +54484,6 @@
53639
54484
  * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices
53640
54485
  * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices
53641
54486
  * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices
53642
- * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices
53643
54487
  * @property {boolean|null} [deprecated] FileOptions deprecated
53644
54488
  * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas
53645
54489
  * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix
@@ -53649,6 +54493,7 @@
53649
54493
  * @property {string|null} [phpNamespace] FileOptions phpNamespace
53650
54494
  * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace
53651
54495
  * @property {string|null} [rubyPackage] FileOptions rubyPackage
54496
+ * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features
53652
54497
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption
53653
54498
  * @property {Array.<google.api.IResourceDescriptor>|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition
53654
54499
  */
@@ -53750,14 +54595,6 @@
53750
54595
  */
53751
54596
  FileOptions.prototype.pyGenericServices = false;
53752
54597
 
53753
- /**
53754
- * FileOptions phpGenericServices.
53755
- * @member {boolean} phpGenericServices
53756
- * @memberof google.protobuf.FileOptions
53757
- * @instance
53758
- */
53759
- FileOptions.prototype.phpGenericServices = false;
53760
-
53761
54598
  /**
53762
54599
  * FileOptions deprecated.
53763
54600
  * @member {boolean} deprecated
@@ -53830,6 +54667,14 @@
53830
54667
  */
53831
54668
  FileOptions.prototype.rubyPackage = "";
53832
54669
 
54670
+ /**
54671
+ * FileOptions features.
54672
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
54673
+ * @memberof google.protobuf.FileOptions
54674
+ * @instance
54675
+ */
54676
+ FileOptions.prototype.features = null;
54677
+
53833
54678
  /**
53834
54679
  * FileOptions uninterpretedOption.
53835
54680
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -53904,12 +54749,12 @@
53904
54749
  writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix);
53905
54750
  if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace"))
53906
54751
  writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace);
53907
- if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices"))
53908
- writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices);
53909
54752
  if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace"))
53910
54753
  writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
53911
54754
  if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
53912
54755
  writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage);
54756
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
54757
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
53913
54758
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
53914
54759
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
53915
54760
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -53990,10 +54835,6 @@
53990
54835
  message.pyGenericServices = reader.bool();
53991
54836
  break;
53992
54837
  }
53993
- case 42: {
53994
- message.phpGenericServices = reader.bool();
53995
- break;
53996
- }
53997
54838
  case 23: {
53998
54839
  message.deprecated = reader.bool();
53999
54840
  break;
@@ -54030,6 +54871,10 @@
54030
54871
  message.rubyPackage = reader.string();
54031
54872
  break;
54032
54873
  }
54874
+ case 50: {
54875
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
54876
+ break;
54877
+ }
54033
54878
  case 999: {
54034
54879
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
54035
54880
  message.uninterpretedOption = [];
@@ -54113,9 +54958,6 @@
54113
54958
  if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices"))
54114
54959
  if (typeof message.pyGenericServices !== "boolean")
54115
54960
  return "pyGenericServices: boolean expected";
54116
- if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
54117
- if (typeof message.phpGenericServices !== "boolean")
54118
- return "phpGenericServices: boolean expected";
54119
54961
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
54120
54962
  if (typeof message.deprecated !== "boolean")
54121
54963
  return "deprecated: boolean expected";
@@ -54143,6 +54985,11 @@
54143
54985
  if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
54144
54986
  if (!$util.isString(message.rubyPackage))
54145
54987
  return "rubyPackage: string expected";
54988
+ if (message.features != null && message.hasOwnProperty("features")) {
54989
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
54990
+ if (error)
54991
+ return "features." + error;
54992
+ }
54146
54993
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
54147
54994
  if (!Array.isArray(message.uninterpretedOption))
54148
54995
  return "uninterpretedOption: array expected";
@@ -54214,8 +55061,6 @@
54214
55061
  message.javaGenericServices = Boolean(object.javaGenericServices);
54215
55062
  if (object.pyGenericServices != null)
54216
55063
  message.pyGenericServices = Boolean(object.pyGenericServices);
54217
- if (object.phpGenericServices != null)
54218
- message.phpGenericServices = Boolean(object.phpGenericServices);
54219
55064
  if (object.deprecated != null)
54220
55065
  message.deprecated = Boolean(object.deprecated);
54221
55066
  if (object.ccEnableArenas != null)
@@ -54234,6 +55079,11 @@
54234
55079
  message.phpMetadataNamespace = String(object.phpMetadataNamespace);
54235
55080
  if (object.rubyPackage != null)
54236
55081
  message.rubyPackage = String(object.rubyPackage);
55082
+ if (object.features != null) {
55083
+ if (typeof object.features !== "object")
55084
+ throw TypeError(".google.protobuf.FileOptions.features: object expected");
55085
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
55086
+ }
54237
55087
  if (object.uninterpretedOption) {
54238
55088
  if (!Array.isArray(object.uninterpretedOption))
54239
55089
  throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");
@@ -54292,9 +55142,9 @@
54292
55142
  object.swiftPrefix = "";
54293
55143
  object.phpClassPrefix = "";
54294
55144
  object.phpNamespace = "";
54295
- object.phpGenericServices = false;
54296
55145
  object.phpMetadataNamespace = "";
54297
55146
  object.rubyPackage = "";
55147
+ object.features = null;
54298
55148
  }
54299
55149
  if (message.javaPackage != null && message.hasOwnProperty("javaPackage"))
54300
55150
  object.javaPackage = message.javaPackage;
@@ -54330,12 +55180,12 @@
54330
55180
  object.phpClassPrefix = message.phpClassPrefix;
54331
55181
  if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace"))
54332
55182
  object.phpNamespace = message.phpNamespace;
54333
- if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
54334
- object.phpGenericServices = message.phpGenericServices;
54335
55183
  if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace"))
54336
55184
  object.phpMetadataNamespace = message.phpMetadataNamespace;
54337
55185
  if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
54338
55186
  object.rubyPackage = message.rubyPackage;
55187
+ if (message.features != null && message.hasOwnProperty("features"))
55188
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
54339
55189
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
54340
55190
  object.uninterpretedOption = [];
54341
55191
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -54405,6 +55255,7 @@
54405
55255
  * @property {boolean|null} [deprecated] MessageOptions deprecated
54406
55256
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
54407
55257
  * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
55258
+ * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features
54408
55259
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
54409
55260
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
54410
55261
  */
@@ -54465,6 +55316,14 @@
54465
55316
  */
54466
55317
  MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
54467
55318
 
55319
+ /**
55320
+ * MessageOptions features.
55321
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
55322
+ * @memberof google.protobuf.MessageOptions
55323
+ * @instance
55324
+ */
55325
+ MessageOptions.prototype.features = null;
55326
+
54468
55327
  /**
54469
55328
  * MessageOptions uninterpretedOption.
54470
55329
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -54515,6 +55374,8 @@
54515
55374
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
54516
55375
  if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
54517
55376
  writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
55377
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
55378
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
54518
55379
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
54519
55380
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
54520
55381
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -54574,6 +55435,10 @@
54574
55435
  message.deprecatedLegacyJsonFieldConflicts = reader.bool();
54575
55436
  break;
54576
55437
  }
55438
+ case 12: {
55439
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
55440
+ break;
55441
+ }
54577
55442
  case 999: {
54578
55443
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
54579
55444
  message.uninterpretedOption = [];
@@ -54634,6 +55499,11 @@
54634
55499
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
54635
55500
  if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
54636
55501
  return "deprecatedLegacyJsonFieldConflicts: boolean expected";
55502
+ if (message.features != null && message.hasOwnProperty("features")) {
55503
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
55504
+ if (error)
55505
+ return "features." + error;
55506
+ }
54637
55507
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
54638
55508
  if (!Array.isArray(message.uninterpretedOption))
54639
55509
  return "uninterpretedOption: array expected";
@@ -54673,6 +55543,11 @@
54673
55543
  message.mapEntry = Boolean(object.mapEntry);
54674
55544
  if (object.deprecatedLegacyJsonFieldConflicts != null)
54675
55545
  message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
55546
+ if (object.features != null) {
55547
+ if (typeof object.features !== "object")
55548
+ throw TypeError(".google.protobuf.MessageOptions.features: object expected");
55549
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
55550
+ }
54676
55551
  if (object.uninterpretedOption) {
54677
55552
  if (!Array.isArray(object.uninterpretedOption))
54678
55553
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -54712,6 +55587,7 @@
54712
55587
  object.deprecated = false;
54713
55588
  object.mapEntry = false;
54714
55589
  object.deprecatedLegacyJsonFieldConflicts = false;
55590
+ object.features = null;
54715
55591
  object[".google.api.resource"] = null;
54716
55592
  }
54717
55593
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -54724,6 +55600,8 @@
54724
55600
  object.mapEntry = message.mapEntry;
54725
55601
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
54726
55602
  object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
55603
+ if (message.features != null && message.hasOwnProperty("features"))
55604
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
54727
55605
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
54728
55606
  object.uninterpretedOption = [];
54729
55607
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -54778,7 +55656,9 @@
54778
55656
  * @property {boolean|null} [weak] FieldOptions weak
54779
55657
  * @property {boolean|null} [debugRedact] FieldOptions debugRedact
54780
55658
  * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
54781
- * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
55659
+ * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
55660
+ * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
55661
+ * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
54782
55662
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
54783
55663
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
54784
55664
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -54793,6 +55673,8 @@
54793
55673
  * @param {google.protobuf.IFieldOptions=} [properties] Properties to set
54794
55674
  */
54795
55675
  function FieldOptions(properties) {
55676
+ this.targets = [];
55677
+ this.editionDefaults = [];
54796
55678
  this.uninterpretedOption = [];
54797
55679
  this[".google.api.fieldBehavior"] = [];
54798
55680
  if (properties)
@@ -54874,12 +55756,28 @@
54874
55756
  FieldOptions.prototype.retention = 0;
54875
55757
 
54876
55758
  /**
54877
- * FieldOptions target.
54878
- * @member {google.protobuf.FieldOptions.OptionTargetType} target
55759
+ * FieldOptions targets.
55760
+ * @member {Array.<google.protobuf.FieldOptions.OptionTargetType>} targets
55761
+ * @memberof google.protobuf.FieldOptions
55762
+ * @instance
55763
+ */
55764
+ FieldOptions.prototype.targets = $util.emptyArray;
55765
+
55766
+ /**
55767
+ * FieldOptions editionDefaults.
55768
+ * @member {Array.<google.protobuf.FieldOptions.IEditionDefault>} editionDefaults
55769
+ * @memberof google.protobuf.FieldOptions
55770
+ * @instance
55771
+ */
55772
+ FieldOptions.prototype.editionDefaults = $util.emptyArray;
55773
+
55774
+ /**
55775
+ * FieldOptions features.
55776
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
54879
55777
  * @memberof google.protobuf.FieldOptions
54880
55778
  * @instance
54881
55779
  */
54882
- FieldOptions.prototype.target = 0;
55780
+ FieldOptions.prototype.features = null;
54883
55781
 
54884
55782
  /**
54885
55783
  * FieldOptions uninterpretedOption.
@@ -54947,8 +55845,14 @@
54947
55845
  writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
54948
55846
  if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
54949
55847
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
54950
- if (message.target != null && Object.hasOwnProperty.call(message, "target"))
54951
- writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
55848
+ if (message.targets != null && message.targets.length)
55849
+ for (var i = 0; i < message.targets.length; ++i)
55850
+ writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]);
55851
+ if (message.editionDefaults != null && message.editionDefaults.length)
55852
+ for (var i = 0; i < message.editionDefaults.length; ++i)
55853
+ $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
55854
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
55855
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
54952
55856
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
54953
55857
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
54954
55858
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -55030,8 +55934,25 @@
55030
55934
  message.retention = reader.int32();
55031
55935
  break;
55032
55936
  }
55033
- case 18: {
55034
- message.target = reader.int32();
55937
+ case 19: {
55938
+ if (!(message.targets && message.targets.length))
55939
+ message.targets = [];
55940
+ if ((tag & 7) === 2) {
55941
+ var end2 = reader.uint32() + reader.pos;
55942
+ while (reader.pos < end2)
55943
+ message.targets.push(reader.int32());
55944
+ } else
55945
+ message.targets.push(reader.int32());
55946
+ break;
55947
+ }
55948
+ case 20: {
55949
+ if (!(message.editionDefaults && message.editionDefaults.length))
55950
+ message.editionDefaults = [];
55951
+ message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32()));
55952
+ break;
55953
+ }
55954
+ case 21: {
55955
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
55035
55956
  break;
55036
55957
  }
55037
55958
  case 999: {
@@ -55135,22 +56056,40 @@
55135
56056
  case 2:
55136
56057
  break;
55137
56058
  }
55138
- if (message.target != null && message.hasOwnProperty("target"))
55139
- switch (message.target) {
55140
- default:
55141
- return "target: enum value expected";
55142
- case 0:
55143
- case 1:
55144
- case 2:
55145
- case 3:
55146
- case 4:
55147
- case 5:
55148
- case 6:
55149
- case 7:
55150
- case 8:
55151
- case 9:
55152
- break;
56059
+ if (message.targets != null && message.hasOwnProperty("targets")) {
56060
+ if (!Array.isArray(message.targets))
56061
+ return "targets: array expected";
56062
+ for (var i = 0; i < message.targets.length; ++i)
56063
+ switch (message.targets[i]) {
56064
+ default:
56065
+ return "targets: enum value[] expected";
56066
+ case 0:
56067
+ case 1:
56068
+ case 2:
56069
+ case 3:
56070
+ case 4:
56071
+ case 5:
56072
+ case 6:
56073
+ case 7:
56074
+ case 8:
56075
+ case 9:
56076
+ break;
56077
+ }
56078
+ }
56079
+ if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) {
56080
+ if (!Array.isArray(message.editionDefaults))
56081
+ return "editionDefaults: array expected";
56082
+ for (var i = 0; i < message.editionDefaults.length; ++i) {
56083
+ var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]);
56084
+ if (error)
56085
+ return "editionDefaults." + error;
55153
56086
  }
56087
+ }
56088
+ if (message.features != null && message.hasOwnProperty("features")) {
56089
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
56090
+ if (error)
56091
+ return "features." + error;
56092
+ }
55154
56093
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
55155
56094
  if (!Array.isArray(message.uninterpretedOption))
55156
56095
  return "uninterpretedOption: array expected";
@@ -55175,6 +56114,7 @@
55175
56114
  case 5:
55176
56115
  case 6:
55177
56116
  case 7:
56117
+ case 8:
55178
56118
  break;
55179
56119
  }
55180
56120
  }
@@ -55270,53 +56210,73 @@
55270
56210
  message.retention = 2;
55271
56211
  break;
55272
56212
  }
55273
- switch (object.target) {
55274
- default:
55275
- if (typeof object.target === "number") {
55276
- message.target = object.target;
55277
- break;
56213
+ if (object.targets) {
56214
+ if (!Array.isArray(object.targets))
56215
+ throw TypeError(".google.protobuf.FieldOptions.targets: array expected");
56216
+ message.targets = [];
56217
+ for (var i = 0; i < object.targets.length; ++i)
56218
+ switch (object.targets[i]) {
56219
+ default:
56220
+ if (typeof object.targets[i] === "number") {
56221
+ message.targets[i] = object.targets[i];
56222
+ break;
56223
+ }
56224
+ case "TARGET_TYPE_UNKNOWN":
56225
+ case 0:
56226
+ message.targets[i] = 0;
56227
+ break;
56228
+ case "TARGET_TYPE_FILE":
56229
+ case 1:
56230
+ message.targets[i] = 1;
56231
+ break;
56232
+ case "TARGET_TYPE_EXTENSION_RANGE":
56233
+ case 2:
56234
+ message.targets[i] = 2;
56235
+ break;
56236
+ case "TARGET_TYPE_MESSAGE":
56237
+ case 3:
56238
+ message.targets[i] = 3;
56239
+ break;
56240
+ case "TARGET_TYPE_FIELD":
56241
+ case 4:
56242
+ message.targets[i] = 4;
56243
+ break;
56244
+ case "TARGET_TYPE_ONEOF":
56245
+ case 5:
56246
+ message.targets[i] = 5;
56247
+ break;
56248
+ case "TARGET_TYPE_ENUM":
56249
+ case 6:
56250
+ message.targets[i] = 6;
56251
+ break;
56252
+ case "TARGET_TYPE_ENUM_ENTRY":
56253
+ case 7:
56254
+ message.targets[i] = 7;
56255
+ break;
56256
+ case "TARGET_TYPE_SERVICE":
56257
+ case 8:
56258
+ message.targets[i] = 8;
56259
+ break;
56260
+ case "TARGET_TYPE_METHOD":
56261
+ case 9:
56262
+ message.targets[i] = 9;
56263
+ break;
56264
+ }
56265
+ }
56266
+ if (object.editionDefaults) {
56267
+ if (!Array.isArray(object.editionDefaults))
56268
+ throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");
56269
+ message.editionDefaults = [];
56270
+ for (var i = 0; i < object.editionDefaults.length; ++i) {
56271
+ if (typeof object.editionDefaults[i] !== "object")
56272
+ throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");
56273
+ message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]);
55278
56274
  }
55279
- break;
55280
- case "TARGET_TYPE_UNKNOWN":
55281
- case 0:
55282
- message.target = 0;
55283
- break;
55284
- case "TARGET_TYPE_FILE":
55285
- case 1:
55286
- message.target = 1;
55287
- break;
55288
- case "TARGET_TYPE_EXTENSION_RANGE":
55289
- case 2:
55290
- message.target = 2;
55291
- break;
55292
- case "TARGET_TYPE_MESSAGE":
55293
- case 3:
55294
- message.target = 3;
55295
- break;
55296
- case "TARGET_TYPE_FIELD":
55297
- case 4:
55298
- message.target = 4;
55299
- break;
55300
- case "TARGET_TYPE_ONEOF":
55301
- case 5:
55302
- message.target = 5;
55303
- break;
55304
- case "TARGET_TYPE_ENUM":
55305
- case 6:
55306
- message.target = 6;
55307
- break;
55308
- case "TARGET_TYPE_ENUM_ENTRY":
55309
- case 7:
55310
- message.target = 7;
55311
- break;
55312
- case "TARGET_TYPE_SERVICE":
55313
- case 8:
55314
- message.target = 8;
55315
- break;
55316
- case "TARGET_TYPE_METHOD":
55317
- case 9:
55318
- message.target = 9;
55319
- break;
56275
+ }
56276
+ if (object.features != null) {
56277
+ if (typeof object.features !== "object")
56278
+ throw TypeError(".google.protobuf.FieldOptions.features: object expected");
56279
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
55320
56280
  }
55321
56281
  if (object.uninterpretedOption) {
55322
56282
  if (!Array.isArray(object.uninterpretedOption))
@@ -55371,6 +56331,10 @@
55371
56331
  case 7:
55372
56332
  message[".google.api.fieldBehavior"][i] = 7;
55373
56333
  break;
56334
+ case "IDENTIFIER":
56335
+ case 8:
56336
+ message[".google.api.fieldBehavior"][i] = 8;
56337
+ break;
55374
56338
  }
55375
56339
  }
55376
56340
  if (object[".google.api.resourceReference"] != null) {
@@ -55395,6 +56359,8 @@
55395
56359
  options = {};
55396
56360
  var object = {};
55397
56361
  if (options.arrays || options.defaults) {
56362
+ object.targets = [];
56363
+ object.editionDefaults = [];
55398
56364
  object.uninterpretedOption = [];
55399
56365
  object[".google.api.fieldBehavior"] = [];
55400
56366
  }
@@ -55408,7 +56374,7 @@
55408
56374
  object.unverifiedLazy = false;
55409
56375
  object.debugRedact = false;
55410
56376
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
55411
- object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
56377
+ object.features = null;
55412
56378
  object[".google.api.resourceReference"] = null;
55413
56379
  }
55414
56380
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -55429,8 +56395,18 @@
55429
56395
  object.debugRedact = message.debugRedact;
55430
56396
  if (message.retention != null && message.hasOwnProperty("retention"))
55431
56397
  object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
55432
- if (message.target != null && message.hasOwnProperty("target"))
55433
- object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
56398
+ if (message.targets && message.targets.length) {
56399
+ object.targets = [];
56400
+ for (var j = 0; j < message.targets.length; ++j)
56401
+ object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j];
56402
+ }
56403
+ if (message.editionDefaults && message.editionDefaults.length) {
56404
+ object.editionDefaults = [];
56405
+ for (var j = 0; j < message.editionDefaults.length; ++j)
56406
+ object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options);
56407
+ }
56408
+ if (message.features != null && message.hasOwnProperty("features"))
56409
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
55434
56410
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
55435
56411
  object.uninterpretedOption = [];
55436
56412
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -55550,6 +56526,297 @@
55550
56526
  return values;
55551
56527
  })();
55552
56528
 
56529
+ FieldOptions.EditionDefault = (function() {
56530
+
56531
+ /**
56532
+ * Properties of an EditionDefault.
56533
+ * @memberof google.protobuf.FieldOptions
56534
+ * @interface IEditionDefault
56535
+ * @property {google.protobuf.Edition|null} [edition] EditionDefault edition
56536
+ * @property {string|null} [value] EditionDefault value
56537
+ */
56538
+
56539
+ /**
56540
+ * Constructs a new EditionDefault.
56541
+ * @memberof google.protobuf.FieldOptions
56542
+ * @classdesc Represents an EditionDefault.
56543
+ * @implements IEditionDefault
56544
+ * @constructor
56545
+ * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
56546
+ */
56547
+ function EditionDefault(properties) {
56548
+ if (properties)
56549
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56550
+ if (properties[keys[i]] != null)
56551
+ this[keys[i]] = properties[keys[i]];
56552
+ }
56553
+
56554
+ /**
56555
+ * EditionDefault edition.
56556
+ * @member {google.protobuf.Edition} edition
56557
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56558
+ * @instance
56559
+ */
56560
+ EditionDefault.prototype.edition = 0;
56561
+
56562
+ /**
56563
+ * EditionDefault value.
56564
+ * @member {string} value
56565
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56566
+ * @instance
56567
+ */
56568
+ EditionDefault.prototype.value = "";
56569
+
56570
+ /**
56571
+ * Creates a new EditionDefault instance using the specified properties.
56572
+ * @function create
56573
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56574
+ * @static
56575
+ * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
56576
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance
56577
+ */
56578
+ EditionDefault.create = function create(properties) {
56579
+ return new EditionDefault(properties);
56580
+ };
56581
+
56582
+ /**
56583
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
56584
+ * @function encode
56585
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56586
+ * @static
56587
+ * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
56588
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56589
+ * @returns {$protobuf.Writer} Writer
56590
+ */
56591
+ EditionDefault.encode = function encode(message, writer) {
56592
+ if (!writer)
56593
+ writer = $Writer.create();
56594
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
56595
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
56596
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
56597
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
56598
+ return writer;
56599
+ };
56600
+
56601
+ /**
56602
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
56603
+ * @function encodeDelimited
56604
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56605
+ * @static
56606
+ * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
56607
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56608
+ * @returns {$protobuf.Writer} Writer
56609
+ */
56610
+ EditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
56611
+ return this.encode(message, writer).ldelim();
56612
+ };
56613
+
56614
+ /**
56615
+ * Decodes an EditionDefault message from the specified reader or buffer.
56616
+ * @function decode
56617
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56618
+ * @static
56619
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56620
+ * @param {number} [length] Message length if known beforehand
56621
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
56622
+ * @throws {Error} If the payload is not a reader or valid buffer
56623
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56624
+ */
56625
+ EditionDefault.decode = function decode(reader, length) {
56626
+ if (!(reader instanceof $Reader))
56627
+ reader = $Reader.create(reader);
56628
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
56629
+ while (reader.pos < end) {
56630
+ var tag = reader.uint32();
56631
+ switch (tag >>> 3) {
56632
+ case 3: {
56633
+ message.edition = reader.int32();
56634
+ break;
56635
+ }
56636
+ case 2: {
56637
+ message.value = reader.string();
56638
+ break;
56639
+ }
56640
+ default:
56641
+ reader.skipType(tag & 7);
56642
+ break;
56643
+ }
56644
+ }
56645
+ return message;
56646
+ };
56647
+
56648
+ /**
56649
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
56650
+ * @function decodeDelimited
56651
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56652
+ * @static
56653
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56654
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
56655
+ * @throws {Error} If the payload is not a reader or valid buffer
56656
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56657
+ */
56658
+ EditionDefault.decodeDelimited = function decodeDelimited(reader) {
56659
+ if (!(reader instanceof $Reader))
56660
+ reader = new $Reader(reader);
56661
+ return this.decode(reader, reader.uint32());
56662
+ };
56663
+
56664
+ /**
56665
+ * Verifies an EditionDefault message.
56666
+ * @function verify
56667
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56668
+ * @static
56669
+ * @param {Object.<string,*>} message Plain object to verify
56670
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56671
+ */
56672
+ EditionDefault.verify = function verify(message) {
56673
+ if (typeof message !== "object" || message === null)
56674
+ return "object expected";
56675
+ if (message.edition != null && message.hasOwnProperty("edition"))
56676
+ switch (message.edition) {
56677
+ default:
56678
+ return "edition: enum value expected";
56679
+ case 0:
56680
+ case 998:
56681
+ case 999:
56682
+ case 1000:
56683
+ case 1001:
56684
+ case 1:
56685
+ case 2:
56686
+ case 99997:
56687
+ case 99998:
56688
+ case 99999:
56689
+ case 2147483647:
56690
+ break;
56691
+ }
56692
+ if (message.value != null && message.hasOwnProperty("value"))
56693
+ if (!$util.isString(message.value))
56694
+ return "value: string expected";
56695
+ return null;
56696
+ };
56697
+
56698
+ /**
56699
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
56700
+ * @function fromObject
56701
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56702
+ * @static
56703
+ * @param {Object.<string,*>} object Plain object
56704
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
56705
+ */
56706
+ EditionDefault.fromObject = function fromObject(object) {
56707
+ if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
56708
+ return object;
56709
+ var message = new $root.google.protobuf.FieldOptions.EditionDefault();
56710
+ switch (object.edition) {
56711
+ default:
56712
+ if (typeof object.edition === "number") {
56713
+ message.edition = object.edition;
56714
+ break;
56715
+ }
56716
+ break;
56717
+ case "EDITION_UNKNOWN":
56718
+ case 0:
56719
+ message.edition = 0;
56720
+ break;
56721
+ case "EDITION_PROTO2":
56722
+ case 998:
56723
+ message.edition = 998;
56724
+ break;
56725
+ case "EDITION_PROTO3":
56726
+ case 999:
56727
+ message.edition = 999;
56728
+ break;
56729
+ case "EDITION_2023":
56730
+ case 1000:
56731
+ message.edition = 1000;
56732
+ break;
56733
+ case "EDITION_2024":
56734
+ case 1001:
56735
+ message.edition = 1001;
56736
+ break;
56737
+ case "EDITION_1_TEST_ONLY":
56738
+ case 1:
56739
+ message.edition = 1;
56740
+ break;
56741
+ case "EDITION_2_TEST_ONLY":
56742
+ case 2:
56743
+ message.edition = 2;
56744
+ break;
56745
+ case "EDITION_99997_TEST_ONLY":
56746
+ case 99997:
56747
+ message.edition = 99997;
56748
+ break;
56749
+ case "EDITION_99998_TEST_ONLY":
56750
+ case 99998:
56751
+ message.edition = 99998;
56752
+ break;
56753
+ case "EDITION_99999_TEST_ONLY":
56754
+ case 99999:
56755
+ message.edition = 99999;
56756
+ break;
56757
+ case "EDITION_MAX":
56758
+ case 2147483647:
56759
+ message.edition = 2147483647;
56760
+ break;
56761
+ }
56762
+ if (object.value != null)
56763
+ message.value = String(object.value);
56764
+ return message;
56765
+ };
56766
+
56767
+ /**
56768
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
56769
+ * @function toObject
56770
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56771
+ * @static
56772
+ * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
56773
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56774
+ * @returns {Object.<string,*>} Plain object
56775
+ */
56776
+ EditionDefault.toObject = function toObject(message, options) {
56777
+ if (!options)
56778
+ options = {};
56779
+ var object = {};
56780
+ if (options.defaults) {
56781
+ object.value = "";
56782
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
56783
+ }
56784
+ if (message.value != null && message.hasOwnProperty("value"))
56785
+ object.value = message.value;
56786
+ if (message.edition != null && message.hasOwnProperty("edition"))
56787
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
56788
+ return object;
56789
+ };
56790
+
56791
+ /**
56792
+ * Converts this EditionDefault to JSON.
56793
+ * @function toJSON
56794
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56795
+ * @instance
56796
+ * @returns {Object.<string,*>} JSON object
56797
+ */
56798
+ EditionDefault.prototype.toJSON = function toJSON() {
56799
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56800
+ };
56801
+
56802
+ /**
56803
+ * Gets the default type url for EditionDefault
56804
+ * @function getTypeUrl
56805
+ * @memberof google.protobuf.FieldOptions.EditionDefault
56806
+ * @static
56807
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
56808
+ * @returns {string} The default type url
56809
+ */
56810
+ EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
56811
+ if (typeUrlPrefix === undefined) {
56812
+ typeUrlPrefix = "type.googleapis.com";
56813
+ }
56814
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
56815
+ };
56816
+
56817
+ return EditionDefault;
56818
+ })();
56819
+
55553
56820
  return FieldOptions;
55554
56821
  })();
55555
56822
 
@@ -55559,6 +56826,7 @@
55559
56826
  * Properties of an OneofOptions.
55560
56827
  * @memberof google.protobuf
55561
56828
  * @interface IOneofOptions
56829
+ * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features
55562
56830
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] OneofOptions uninterpretedOption
55563
56831
  */
55564
56832
 
@@ -55578,6 +56846,14 @@
55578
56846
  this[keys[i]] = properties[keys[i]];
55579
56847
  }
55580
56848
 
56849
+ /**
56850
+ * OneofOptions features.
56851
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
56852
+ * @memberof google.protobuf.OneofOptions
56853
+ * @instance
56854
+ */
56855
+ OneofOptions.prototype.features = null;
56856
+
55581
56857
  /**
55582
56858
  * OneofOptions uninterpretedOption.
55583
56859
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -55610,6 +56886,8 @@
55610
56886
  OneofOptions.encode = function encode(message, writer) {
55611
56887
  if (!writer)
55612
56888
  writer = $Writer.create();
56889
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
56890
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55613
56891
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
55614
56892
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
55615
56893
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -55647,8 +56925,12 @@
55647
56925
  while (reader.pos < end) {
55648
56926
  var tag = reader.uint32();
55649
56927
  switch (tag >>> 3) {
55650
- case 999: {
55651
- if (!(message.uninterpretedOption && message.uninterpretedOption.length))
56928
+ case 1: {
56929
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
56930
+ break;
56931
+ }
56932
+ case 999: {
56933
+ if (!(message.uninterpretedOption && message.uninterpretedOption.length))
55652
56934
  message.uninterpretedOption = [];
55653
56935
  message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
55654
56936
  break;
@@ -55688,6 +56970,11 @@
55688
56970
  OneofOptions.verify = function verify(message) {
55689
56971
  if (typeof message !== "object" || message === null)
55690
56972
  return "object expected";
56973
+ if (message.features != null && message.hasOwnProperty("features")) {
56974
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
56975
+ if (error)
56976
+ return "features." + error;
56977
+ }
55691
56978
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
55692
56979
  if (!Array.isArray(message.uninterpretedOption))
55693
56980
  return "uninterpretedOption: array expected";
@@ -55712,6 +56999,11 @@
55712
56999
  if (object instanceof $root.google.protobuf.OneofOptions)
55713
57000
  return object;
55714
57001
  var message = new $root.google.protobuf.OneofOptions();
57002
+ if (object.features != null) {
57003
+ if (typeof object.features !== "object")
57004
+ throw TypeError(".google.protobuf.OneofOptions.features: object expected");
57005
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
57006
+ }
55715
57007
  if (object.uninterpretedOption) {
55716
57008
  if (!Array.isArray(object.uninterpretedOption))
55717
57009
  throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");
@@ -55740,6 +57032,10 @@
55740
57032
  var object = {};
55741
57033
  if (options.arrays || options.defaults)
55742
57034
  object.uninterpretedOption = [];
57035
+ if (options.defaults)
57036
+ object.features = null;
57037
+ if (message.features != null && message.hasOwnProperty("features"))
57038
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
55743
57039
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
55744
57040
  object.uninterpretedOption = [];
55745
57041
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -55786,6 +57082,7 @@
55786
57082
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
55787
57083
  * @property {boolean|null} [deprecated] EnumOptions deprecated
55788
57084
  * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
57085
+ * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features
55789
57086
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
55790
57087
  */
55791
57088
 
@@ -55829,6 +57126,14 @@
55829
57126
  */
55830
57127
  EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
55831
57128
 
57129
+ /**
57130
+ * EnumOptions features.
57131
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
57132
+ * @memberof google.protobuf.EnumOptions
57133
+ * @instance
57134
+ */
57135
+ EnumOptions.prototype.features = null;
57136
+
55832
57137
  /**
55833
57138
  * EnumOptions uninterpretedOption.
55834
57139
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -55867,6 +57172,8 @@
55867
57172
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
55868
57173
  if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
55869
57174
  writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
57175
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
57176
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
55870
57177
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
55871
57178
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
55872
57179
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -55916,6 +57223,10 @@
55916
57223
  message.deprecatedLegacyJsonFieldConflicts = reader.bool();
55917
57224
  break;
55918
57225
  }
57226
+ case 7: {
57227
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
57228
+ break;
57229
+ }
55919
57230
  case 999: {
55920
57231
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
55921
57232
  message.uninterpretedOption = [];
@@ -55966,6 +57277,11 @@
55966
57277
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
55967
57278
  if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
55968
57279
  return "deprecatedLegacyJsonFieldConflicts: boolean expected";
57280
+ if (message.features != null && message.hasOwnProperty("features")) {
57281
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
57282
+ if (error)
57283
+ return "features." + error;
57284
+ }
55969
57285
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
55970
57286
  if (!Array.isArray(message.uninterpretedOption))
55971
57287
  return "uninterpretedOption: array expected";
@@ -55996,6 +57312,11 @@
55996
57312
  message.deprecated = Boolean(object.deprecated);
55997
57313
  if (object.deprecatedLegacyJsonFieldConflicts != null)
55998
57314
  message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
57315
+ if (object.features != null) {
57316
+ if (typeof object.features !== "object")
57317
+ throw TypeError(".google.protobuf.EnumOptions.features: object expected");
57318
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
57319
+ }
55999
57320
  if (object.uninterpretedOption) {
56000
57321
  if (!Array.isArray(object.uninterpretedOption))
56001
57322
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -56028,6 +57349,7 @@
56028
57349
  object.allowAlias = false;
56029
57350
  object.deprecated = false;
56030
57351
  object.deprecatedLegacyJsonFieldConflicts = false;
57352
+ object.features = null;
56031
57353
  }
56032
57354
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
56033
57355
  object.allowAlias = message.allowAlias;
@@ -56035,6 +57357,8 @@
56035
57357
  object.deprecated = message.deprecated;
56036
57358
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
56037
57359
  object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
57360
+ if (message.features != null && message.hasOwnProperty("features"))
57361
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
56038
57362
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
56039
57363
  object.uninterpretedOption = [];
56040
57364
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -56079,6 +57403,8 @@
56079
57403
  * @memberof google.protobuf
56080
57404
  * @interface IEnumValueOptions
56081
57405
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
57406
+ * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
57407
+ * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
56082
57408
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
56083
57409
  */
56084
57410
 
@@ -56106,6 +57432,22 @@
56106
57432
  */
56107
57433
  EnumValueOptions.prototype.deprecated = false;
56108
57434
 
57435
+ /**
57436
+ * EnumValueOptions features.
57437
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
57438
+ * @memberof google.protobuf.EnumValueOptions
57439
+ * @instance
57440
+ */
57441
+ EnumValueOptions.prototype.features = null;
57442
+
57443
+ /**
57444
+ * EnumValueOptions debugRedact.
57445
+ * @member {boolean} debugRedact
57446
+ * @memberof google.protobuf.EnumValueOptions
57447
+ * @instance
57448
+ */
57449
+ EnumValueOptions.prototype.debugRedact = false;
57450
+
56109
57451
  /**
56110
57452
  * EnumValueOptions uninterpretedOption.
56111
57453
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -56140,6 +57482,10 @@
56140
57482
  writer = $Writer.create();
56141
57483
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
56142
57484
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated);
57485
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
57486
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
57487
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
57488
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
56143
57489
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
56144
57490
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
56145
57491
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -56181,6 +57527,14 @@
56181
57527
  message.deprecated = reader.bool();
56182
57528
  break;
56183
57529
  }
57530
+ case 2: {
57531
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
57532
+ break;
57533
+ }
57534
+ case 3: {
57535
+ message.debugRedact = reader.bool();
57536
+ break;
57537
+ }
56184
57538
  case 999: {
56185
57539
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
56186
57540
  message.uninterpretedOption = [];
@@ -56225,6 +57579,14 @@
56225
57579
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
56226
57580
  if (typeof message.deprecated !== "boolean")
56227
57581
  return "deprecated: boolean expected";
57582
+ if (message.features != null && message.hasOwnProperty("features")) {
57583
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
57584
+ if (error)
57585
+ return "features." + error;
57586
+ }
57587
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
57588
+ if (typeof message.debugRedact !== "boolean")
57589
+ return "debugRedact: boolean expected";
56228
57590
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
56229
57591
  if (!Array.isArray(message.uninterpretedOption))
56230
57592
  return "uninterpretedOption: array expected";
@@ -56251,6 +57613,13 @@
56251
57613
  var message = new $root.google.protobuf.EnumValueOptions();
56252
57614
  if (object.deprecated != null)
56253
57615
  message.deprecated = Boolean(object.deprecated);
57616
+ if (object.features != null) {
57617
+ if (typeof object.features !== "object")
57618
+ throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");
57619
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
57620
+ }
57621
+ if (object.debugRedact != null)
57622
+ message.debugRedact = Boolean(object.debugRedact);
56254
57623
  if (object.uninterpretedOption) {
56255
57624
  if (!Array.isArray(object.uninterpretedOption))
56256
57625
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -56279,10 +57648,17 @@
56279
57648
  var object = {};
56280
57649
  if (options.arrays || options.defaults)
56281
57650
  object.uninterpretedOption = [];
56282
- if (options.defaults)
57651
+ if (options.defaults) {
56283
57652
  object.deprecated = false;
57653
+ object.features = null;
57654
+ object.debugRedact = false;
57655
+ }
56284
57656
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
56285
57657
  object.deprecated = message.deprecated;
57658
+ if (message.features != null && message.hasOwnProperty("features"))
57659
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
57660
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
57661
+ object.debugRedact = message.debugRedact;
56286
57662
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
56287
57663
  object.uninterpretedOption = [];
56288
57664
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -56326,6 +57702,7 @@
56326
57702
  * Properties of a ServiceOptions.
56327
57703
  * @memberof google.protobuf
56328
57704
  * @interface IServiceOptions
57705
+ * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features
56329
57706
  * @property {boolean|null} [deprecated] ServiceOptions deprecated
56330
57707
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
56331
57708
  * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
@@ -56348,6 +57725,14 @@
56348
57725
  this[keys[i]] = properties[keys[i]];
56349
57726
  }
56350
57727
 
57728
+ /**
57729
+ * ServiceOptions features.
57730
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
57731
+ * @memberof google.protobuf.ServiceOptions
57732
+ * @instance
57733
+ */
57734
+ ServiceOptions.prototype.features = null;
57735
+
56351
57736
  /**
56352
57737
  * ServiceOptions deprecated.
56353
57738
  * @member {boolean} deprecated
@@ -56406,6 +57791,8 @@
56406
57791
  writer = $Writer.create();
56407
57792
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
56408
57793
  writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
57794
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
57795
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
56409
57796
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
56410
57797
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
56411
57798
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -56447,6 +57834,10 @@
56447
57834
  while (reader.pos < end) {
56448
57835
  var tag = reader.uint32();
56449
57836
  switch (tag >>> 3) {
57837
+ case 34: {
57838
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
57839
+ break;
57840
+ }
56450
57841
  case 33: {
56451
57842
  message.deprecated = reader.bool();
56452
57843
  break;
@@ -56500,6 +57891,11 @@
56500
57891
  ServiceOptions.verify = function verify(message) {
56501
57892
  if (typeof message !== "object" || message === null)
56502
57893
  return "object expected";
57894
+ if (message.features != null && message.hasOwnProperty("features")) {
57895
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
57896
+ if (error)
57897
+ return "features." + error;
57898
+ }
56503
57899
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
56504
57900
  if (typeof message.deprecated !== "boolean")
56505
57901
  return "deprecated: boolean expected";
@@ -56533,6 +57929,11 @@
56533
57929
  if (object instanceof $root.google.protobuf.ServiceOptions)
56534
57930
  return object;
56535
57931
  var message = new $root.google.protobuf.ServiceOptions();
57932
+ if (object.features != null) {
57933
+ if (typeof object.features !== "object")
57934
+ throw TypeError(".google.protobuf.ServiceOptions.features: object expected");
57935
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
57936
+ }
56536
57937
  if (object.deprecated != null)
56537
57938
  message.deprecated = Boolean(object.deprecated);
56538
57939
  if (object.uninterpretedOption) {
@@ -56569,11 +57970,14 @@
56569
57970
  object.uninterpretedOption = [];
56570
57971
  if (options.defaults) {
56571
57972
  object.deprecated = false;
57973
+ object.features = null;
56572
57974
  object[".google.api.defaultHost"] = "";
56573
57975
  object[".google.api.oauthScopes"] = "";
56574
57976
  }
56575
57977
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
56576
57978
  object.deprecated = message.deprecated;
57979
+ if (message.features != null && message.hasOwnProperty("features"))
57980
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
56577
57981
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
56578
57982
  object.uninterpretedOption = [];
56579
57983
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -56623,6 +58027,7 @@
56623
58027
  * @interface IMethodOptions
56624
58028
  * @property {boolean|null} [deprecated] MethodOptions deprecated
56625
58029
  * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
58030
+ * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features
56626
58031
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption
56627
58032
  * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http
56628
58033
  * @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
@@ -56662,6 +58067,14 @@
56662
58067
  */
56663
58068
  MethodOptions.prototype.idempotencyLevel = 0;
56664
58069
 
58070
+ /**
58071
+ * MethodOptions features.
58072
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
58073
+ * @memberof google.protobuf.MethodOptions
58074
+ * @instance
58075
+ */
58076
+ MethodOptions.prototype.features = null;
58077
+
56665
58078
  /**
56666
58079
  * MethodOptions uninterpretedOption.
56667
58080
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -56722,6 +58135,8 @@
56722
58135
  writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
56723
58136
  if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel"))
56724
58137
  writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel);
58138
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
58139
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
56725
58140
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
56726
58141
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
56727
58142
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -56774,6 +58189,10 @@
56774
58189
  message.idempotencyLevel = reader.int32();
56775
58190
  break;
56776
58191
  }
58192
+ case 35: {
58193
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
58194
+ break;
58195
+ }
56777
58196
  case 999: {
56778
58197
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
56779
58198
  message.uninterpretedOption = [];
@@ -56841,6 +58260,11 @@
56841
58260
  case 2:
56842
58261
  break;
56843
58262
  }
58263
+ if (message.features != null && message.hasOwnProperty("features")) {
58264
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
58265
+ if (error)
58266
+ return "features." + error;
58267
+ }
56844
58268
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
56845
58269
  if (!Array.isArray(message.uninterpretedOption))
56846
58270
  return "uninterpretedOption: array expected";
@@ -56904,6 +58328,11 @@
56904
58328
  message.idempotencyLevel = 2;
56905
58329
  break;
56906
58330
  }
58331
+ if (object.features != null) {
58332
+ if (typeof object.features !== "object")
58333
+ throw TypeError(".google.protobuf.MethodOptions.features: object expected");
58334
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
58335
+ }
56907
58336
  if (object.uninterpretedOption) {
56908
58337
  if (!Array.isArray(object.uninterpretedOption))
56909
58338
  throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");
@@ -56954,6 +58383,7 @@
56954
58383
  if (options.defaults) {
56955
58384
  object.deprecated = false;
56956
58385
  object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0;
58386
+ object.features = null;
56957
58387
  object[".google.longrunning.operationInfo"] = null;
56958
58388
  object[".google.api.http"] = null;
56959
58389
  }
@@ -56961,6 +58391,8 @@
56961
58391
  object.deprecated = message.deprecated;
56962
58392
  if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel"))
56963
58393
  object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel;
58394
+ if (message.features != null && message.hasOwnProperty("features"))
58395
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
56964
58396
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
56965
58397
  object.uninterpretedOption = [];
56966
58398
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -57651,6 +59083,1268 @@
57651
59083
  return UninterpretedOption;
57652
59084
  })();
57653
59085
 
59086
+ protobuf.FeatureSet = (function() {
59087
+
59088
+ /**
59089
+ * Properties of a FeatureSet.
59090
+ * @memberof google.protobuf
59091
+ * @interface IFeatureSet
59092
+ * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
59093
+ * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
59094
+ * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
59095
+ * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
59096
+ * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
59097
+ * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
59098
+ */
59099
+
59100
+ /**
59101
+ * Constructs a new FeatureSet.
59102
+ * @memberof google.protobuf
59103
+ * @classdesc Represents a FeatureSet.
59104
+ * @implements IFeatureSet
59105
+ * @constructor
59106
+ * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
59107
+ */
59108
+ function FeatureSet(properties) {
59109
+ if (properties)
59110
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59111
+ if (properties[keys[i]] != null)
59112
+ this[keys[i]] = properties[keys[i]];
59113
+ }
59114
+
59115
+ /**
59116
+ * FeatureSet fieldPresence.
59117
+ * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence
59118
+ * @memberof google.protobuf.FeatureSet
59119
+ * @instance
59120
+ */
59121
+ FeatureSet.prototype.fieldPresence = 0;
59122
+
59123
+ /**
59124
+ * FeatureSet enumType.
59125
+ * @member {google.protobuf.FeatureSet.EnumType} enumType
59126
+ * @memberof google.protobuf.FeatureSet
59127
+ * @instance
59128
+ */
59129
+ FeatureSet.prototype.enumType = 0;
59130
+
59131
+ /**
59132
+ * FeatureSet repeatedFieldEncoding.
59133
+ * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding
59134
+ * @memberof google.protobuf.FeatureSet
59135
+ * @instance
59136
+ */
59137
+ FeatureSet.prototype.repeatedFieldEncoding = 0;
59138
+
59139
+ /**
59140
+ * FeatureSet utf8Validation.
59141
+ * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation
59142
+ * @memberof google.protobuf.FeatureSet
59143
+ * @instance
59144
+ */
59145
+ FeatureSet.prototype.utf8Validation = 0;
59146
+
59147
+ /**
59148
+ * FeatureSet messageEncoding.
59149
+ * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding
59150
+ * @memberof google.protobuf.FeatureSet
59151
+ * @instance
59152
+ */
59153
+ FeatureSet.prototype.messageEncoding = 0;
59154
+
59155
+ /**
59156
+ * FeatureSet jsonFormat.
59157
+ * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat
59158
+ * @memberof google.protobuf.FeatureSet
59159
+ * @instance
59160
+ */
59161
+ FeatureSet.prototype.jsonFormat = 0;
59162
+
59163
+ /**
59164
+ * Creates a new FeatureSet instance using the specified properties.
59165
+ * @function create
59166
+ * @memberof google.protobuf.FeatureSet
59167
+ * @static
59168
+ * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
59169
+ * @returns {google.protobuf.FeatureSet} FeatureSet instance
59170
+ */
59171
+ FeatureSet.create = function create(properties) {
59172
+ return new FeatureSet(properties);
59173
+ };
59174
+
59175
+ /**
59176
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
59177
+ * @function encode
59178
+ * @memberof google.protobuf.FeatureSet
59179
+ * @static
59180
+ * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
59181
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59182
+ * @returns {$protobuf.Writer} Writer
59183
+ */
59184
+ FeatureSet.encode = function encode(message, writer) {
59185
+ if (!writer)
59186
+ writer = $Writer.create();
59187
+ if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence"))
59188
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence);
59189
+ if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType"))
59190
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
59191
+ if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
59192
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
59193
+ if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation"))
59194
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation);
59195
+ if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
59196
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
59197
+ if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
59198
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
59199
+ return writer;
59200
+ };
59201
+
59202
+ /**
59203
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
59204
+ * @function encodeDelimited
59205
+ * @memberof google.protobuf.FeatureSet
59206
+ * @static
59207
+ * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
59208
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59209
+ * @returns {$protobuf.Writer} Writer
59210
+ */
59211
+ FeatureSet.encodeDelimited = function encodeDelimited(message, writer) {
59212
+ return this.encode(message, writer).ldelim();
59213
+ };
59214
+
59215
+ /**
59216
+ * Decodes a FeatureSet message from the specified reader or buffer.
59217
+ * @function decode
59218
+ * @memberof google.protobuf.FeatureSet
59219
+ * @static
59220
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59221
+ * @param {number} [length] Message length if known beforehand
59222
+ * @returns {google.protobuf.FeatureSet} FeatureSet
59223
+ * @throws {Error} If the payload is not a reader or valid buffer
59224
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59225
+ */
59226
+ FeatureSet.decode = function decode(reader, length) {
59227
+ if (!(reader instanceof $Reader))
59228
+ reader = $Reader.create(reader);
59229
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet();
59230
+ while (reader.pos < end) {
59231
+ var tag = reader.uint32();
59232
+ switch (tag >>> 3) {
59233
+ case 1: {
59234
+ message.fieldPresence = reader.int32();
59235
+ break;
59236
+ }
59237
+ case 2: {
59238
+ message.enumType = reader.int32();
59239
+ break;
59240
+ }
59241
+ case 3: {
59242
+ message.repeatedFieldEncoding = reader.int32();
59243
+ break;
59244
+ }
59245
+ case 4: {
59246
+ message.utf8Validation = reader.int32();
59247
+ break;
59248
+ }
59249
+ case 5: {
59250
+ message.messageEncoding = reader.int32();
59251
+ break;
59252
+ }
59253
+ case 6: {
59254
+ message.jsonFormat = reader.int32();
59255
+ break;
59256
+ }
59257
+ default:
59258
+ reader.skipType(tag & 7);
59259
+ break;
59260
+ }
59261
+ }
59262
+ return message;
59263
+ };
59264
+
59265
+ /**
59266
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
59267
+ * @function decodeDelimited
59268
+ * @memberof google.protobuf.FeatureSet
59269
+ * @static
59270
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59271
+ * @returns {google.protobuf.FeatureSet} FeatureSet
59272
+ * @throws {Error} If the payload is not a reader or valid buffer
59273
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59274
+ */
59275
+ FeatureSet.decodeDelimited = function decodeDelimited(reader) {
59276
+ if (!(reader instanceof $Reader))
59277
+ reader = new $Reader(reader);
59278
+ return this.decode(reader, reader.uint32());
59279
+ };
59280
+
59281
+ /**
59282
+ * Verifies a FeatureSet message.
59283
+ * @function verify
59284
+ * @memberof google.protobuf.FeatureSet
59285
+ * @static
59286
+ * @param {Object.<string,*>} message Plain object to verify
59287
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59288
+ */
59289
+ FeatureSet.verify = function verify(message) {
59290
+ if (typeof message !== "object" || message === null)
59291
+ return "object expected";
59292
+ if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
59293
+ switch (message.fieldPresence) {
59294
+ default:
59295
+ return "fieldPresence: enum value expected";
59296
+ case 0:
59297
+ case 1:
59298
+ case 2:
59299
+ case 3:
59300
+ break;
59301
+ }
59302
+ if (message.enumType != null && message.hasOwnProperty("enumType"))
59303
+ switch (message.enumType) {
59304
+ default:
59305
+ return "enumType: enum value expected";
59306
+ case 0:
59307
+ case 1:
59308
+ case 2:
59309
+ break;
59310
+ }
59311
+ if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
59312
+ switch (message.repeatedFieldEncoding) {
59313
+ default:
59314
+ return "repeatedFieldEncoding: enum value expected";
59315
+ case 0:
59316
+ case 1:
59317
+ case 2:
59318
+ break;
59319
+ }
59320
+ if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
59321
+ switch (message.utf8Validation) {
59322
+ default:
59323
+ return "utf8Validation: enum value expected";
59324
+ case 0:
59325
+ case 2:
59326
+ case 3:
59327
+ break;
59328
+ }
59329
+ if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
59330
+ switch (message.messageEncoding) {
59331
+ default:
59332
+ return "messageEncoding: enum value expected";
59333
+ case 0:
59334
+ case 1:
59335
+ case 2:
59336
+ break;
59337
+ }
59338
+ if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
59339
+ switch (message.jsonFormat) {
59340
+ default:
59341
+ return "jsonFormat: enum value expected";
59342
+ case 0:
59343
+ case 1:
59344
+ case 2:
59345
+ break;
59346
+ }
59347
+ return null;
59348
+ };
59349
+
59350
+ /**
59351
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
59352
+ * @function fromObject
59353
+ * @memberof google.protobuf.FeatureSet
59354
+ * @static
59355
+ * @param {Object.<string,*>} object Plain object
59356
+ * @returns {google.protobuf.FeatureSet} FeatureSet
59357
+ */
59358
+ FeatureSet.fromObject = function fromObject(object) {
59359
+ if (object instanceof $root.google.protobuf.FeatureSet)
59360
+ return object;
59361
+ var message = new $root.google.protobuf.FeatureSet();
59362
+ switch (object.fieldPresence) {
59363
+ default:
59364
+ if (typeof object.fieldPresence === "number") {
59365
+ message.fieldPresence = object.fieldPresence;
59366
+ break;
59367
+ }
59368
+ break;
59369
+ case "FIELD_PRESENCE_UNKNOWN":
59370
+ case 0:
59371
+ message.fieldPresence = 0;
59372
+ break;
59373
+ case "EXPLICIT":
59374
+ case 1:
59375
+ message.fieldPresence = 1;
59376
+ break;
59377
+ case "IMPLICIT":
59378
+ case 2:
59379
+ message.fieldPresence = 2;
59380
+ break;
59381
+ case "LEGACY_REQUIRED":
59382
+ case 3:
59383
+ message.fieldPresence = 3;
59384
+ break;
59385
+ }
59386
+ switch (object.enumType) {
59387
+ default:
59388
+ if (typeof object.enumType === "number") {
59389
+ message.enumType = object.enumType;
59390
+ break;
59391
+ }
59392
+ break;
59393
+ case "ENUM_TYPE_UNKNOWN":
59394
+ case 0:
59395
+ message.enumType = 0;
59396
+ break;
59397
+ case "OPEN":
59398
+ case 1:
59399
+ message.enumType = 1;
59400
+ break;
59401
+ case "CLOSED":
59402
+ case 2:
59403
+ message.enumType = 2;
59404
+ break;
59405
+ }
59406
+ switch (object.repeatedFieldEncoding) {
59407
+ default:
59408
+ if (typeof object.repeatedFieldEncoding === "number") {
59409
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding;
59410
+ break;
59411
+ }
59412
+ break;
59413
+ case "REPEATED_FIELD_ENCODING_UNKNOWN":
59414
+ case 0:
59415
+ message.repeatedFieldEncoding = 0;
59416
+ break;
59417
+ case "PACKED":
59418
+ case 1:
59419
+ message.repeatedFieldEncoding = 1;
59420
+ break;
59421
+ case "EXPANDED":
59422
+ case 2:
59423
+ message.repeatedFieldEncoding = 2;
59424
+ break;
59425
+ }
59426
+ switch (object.utf8Validation) {
59427
+ default:
59428
+ if (typeof object.utf8Validation === "number") {
59429
+ message.utf8Validation = object.utf8Validation;
59430
+ break;
59431
+ }
59432
+ break;
59433
+ case "UTF8_VALIDATION_UNKNOWN":
59434
+ case 0:
59435
+ message.utf8Validation = 0;
59436
+ break;
59437
+ case "VERIFY":
59438
+ case 2:
59439
+ message.utf8Validation = 2;
59440
+ break;
59441
+ case "NONE":
59442
+ case 3:
59443
+ message.utf8Validation = 3;
59444
+ break;
59445
+ }
59446
+ switch (object.messageEncoding) {
59447
+ default:
59448
+ if (typeof object.messageEncoding === "number") {
59449
+ message.messageEncoding = object.messageEncoding;
59450
+ break;
59451
+ }
59452
+ break;
59453
+ case "MESSAGE_ENCODING_UNKNOWN":
59454
+ case 0:
59455
+ message.messageEncoding = 0;
59456
+ break;
59457
+ case "LENGTH_PREFIXED":
59458
+ case 1:
59459
+ message.messageEncoding = 1;
59460
+ break;
59461
+ case "DELIMITED":
59462
+ case 2:
59463
+ message.messageEncoding = 2;
59464
+ break;
59465
+ }
59466
+ switch (object.jsonFormat) {
59467
+ default:
59468
+ if (typeof object.jsonFormat === "number") {
59469
+ message.jsonFormat = object.jsonFormat;
59470
+ break;
59471
+ }
59472
+ break;
59473
+ case "JSON_FORMAT_UNKNOWN":
59474
+ case 0:
59475
+ message.jsonFormat = 0;
59476
+ break;
59477
+ case "ALLOW":
59478
+ case 1:
59479
+ message.jsonFormat = 1;
59480
+ break;
59481
+ case "LEGACY_BEST_EFFORT":
59482
+ case 2:
59483
+ message.jsonFormat = 2;
59484
+ break;
59485
+ }
59486
+ return message;
59487
+ };
59488
+
59489
+ /**
59490
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
59491
+ * @function toObject
59492
+ * @memberof google.protobuf.FeatureSet
59493
+ * @static
59494
+ * @param {google.protobuf.FeatureSet} message FeatureSet
59495
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59496
+ * @returns {Object.<string,*>} Plain object
59497
+ */
59498
+ FeatureSet.toObject = function toObject(message, options) {
59499
+ if (!options)
59500
+ options = {};
59501
+ var object = {};
59502
+ if (options.defaults) {
59503
+ object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
59504
+ object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
59505
+ object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
59506
+ object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
59507
+ object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
59508
+ object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
59509
+ }
59510
+ if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
59511
+ object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
59512
+ if (message.enumType != null && message.hasOwnProperty("enumType"))
59513
+ object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
59514
+ if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
59515
+ object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
59516
+ if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
59517
+ object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation;
59518
+ if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
59519
+ object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
59520
+ if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
59521
+ object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
59522
+ return object;
59523
+ };
59524
+
59525
+ /**
59526
+ * Converts this FeatureSet to JSON.
59527
+ * @function toJSON
59528
+ * @memberof google.protobuf.FeatureSet
59529
+ * @instance
59530
+ * @returns {Object.<string,*>} JSON object
59531
+ */
59532
+ FeatureSet.prototype.toJSON = function toJSON() {
59533
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59534
+ };
59535
+
59536
+ /**
59537
+ * Gets the default type url for FeatureSet
59538
+ * @function getTypeUrl
59539
+ * @memberof google.protobuf.FeatureSet
59540
+ * @static
59541
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
59542
+ * @returns {string} The default type url
59543
+ */
59544
+ FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
59545
+ if (typeUrlPrefix === undefined) {
59546
+ typeUrlPrefix = "type.googleapis.com";
59547
+ }
59548
+ return typeUrlPrefix + "/google.protobuf.FeatureSet";
59549
+ };
59550
+
59551
+ /**
59552
+ * FieldPresence enum.
59553
+ * @name google.protobuf.FeatureSet.FieldPresence
59554
+ * @enum {number}
59555
+ * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value
59556
+ * @property {number} EXPLICIT=1 EXPLICIT value
59557
+ * @property {number} IMPLICIT=2 IMPLICIT value
59558
+ * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value
59559
+ */
59560
+ FeatureSet.FieldPresence = (function() {
59561
+ var valuesById = {}, values = Object.create(valuesById);
59562
+ values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0;
59563
+ values[valuesById[1] = "EXPLICIT"] = 1;
59564
+ values[valuesById[2] = "IMPLICIT"] = 2;
59565
+ values[valuesById[3] = "LEGACY_REQUIRED"] = 3;
59566
+ return values;
59567
+ })();
59568
+
59569
+ /**
59570
+ * EnumType enum.
59571
+ * @name google.protobuf.FeatureSet.EnumType
59572
+ * @enum {number}
59573
+ * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value
59574
+ * @property {number} OPEN=1 OPEN value
59575
+ * @property {number} CLOSED=2 CLOSED value
59576
+ */
59577
+ FeatureSet.EnumType = (function() {
59578
+ var valuesById = {}, values = Object.create(valuesById);
59579
+ values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0;
59580
+ values[valuesById[1] = "OPEN"] = 1;
59581
+ values[valuesById[2] = "CLOSED"] = 2;
59582
+ return values;
59583
+ })();
59584
+
59585
+ /**
59586
+ * RepeatedFieldEncoding enum.
59587
+ * @name google.protobuf.FeatureSet.RepeatedFieldEncoding
59588
+ * @enum {number}
59589
+ * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value
59590
+ * @property {number} PACKED=1 PACKED value
59591
+ * @property {number} EXPANDED=2 EXPANDED value
59592
+ */
59593
+ FeatureSet.RepeatedFieldEncoding = (function() {
59594
+ var valuesById = {}, values = Object.create(valuesById);
59595
+ values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0;
59596
+ values[valuesById[1] = "PACKED"] = 1;
59597
+ values[valuesById[2] = "EXPANDED"] = 2;
59598
+ return values;
59599
+ })();
59600
+
59601
+ /**
59602
+ * Utf8Validation enum.
59603
+ * @name google.protobuf.FeatureSet.Utf8Validation
59604
+ * @enum {number}
59605
+ * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value
59606
+ * @property {number} VERIFY=2 VERIFY value
59607
+ * @property {number} NONE=3 NONE value
59608
+ */
59609
+ FeatureSet.Utf8Validation = (function() {
59610
+ var valuesById = {}, values = Object.create(valuesById);
59611
+ values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0;
59612
+ values[valuesById[2] = "VERIFY"] = 2;
59613
+ values[valuesById[3] = "NONE"] = 3;
59614
+ return values;
59615
+ })();
59616
+
59617
+ /**
59618
+ * MessageEncoding enum.
59619
+ * @name google.protobuf.FeatureSet.MessageEncoding
59620
+ * @enum {number}
59621
+ * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value
59622
+ * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value
59623
+ * @property {number} DELIMITED=2 DELIMITED value
59624
+ */
59625
+ FeatureSet.MessageEncoding = (function() {
59626
+ var valuesById = {}, values = Object.create(valuesById);
59627
+ values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0;
59628
+ values[valuesById[1] = "LENGTH_PREFIXED"] = 1;
59629
+ values[valuesById[2] = "DELIMITED"] = 2;
59630
+ return values;
59631
+ })();
59632
+
59633
+ /**
59634
+ * JsonFormat enum.
59635
+ * @name google.protobuf.FeatureSet.JsonFormat
59636
+ * @enum {number}
59637
+ * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value
59638
+ * @property {number} ALLOW=1 ALLOW value
59639
+ * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value
59640
+ */
59641
+ FeatureSet.JsonFormat = (function() {
59642
+ var valuesById = {}, values = Object.create(valuesById);
59643
+ values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0;
59644
+ values[valuesById[1] = "ALLOW"] = 1;
59645
+ values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2;
59646
+ return values;
59647
+ })();
59648
+
59649
+ return FeatureSet;
59650
+ })();
59651
+
59652
+ protobuf.FeatureSetDefaults = (function() {
59653
+
59654
+ /**
59655
+ * Properties of a FeatureSetDefaults.
59656
+ * @memberof google.protobuf
59657
+ * @interface IFeatureSetDefaults
59658
+ * @property {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>|null} [defaults] FeatureSetDefaults defaults
59659
+ * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition
59660
+ * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition
59661
+ */
59662
+
59663
+ /**
59664
+ * Constructs a new FeatureSetDefaults.
59665
+ * @memberof google.protobuf
59666
+ * @classdesc Represents a FeatureSetDefaults.
59667
+ * @implements IFeatureSetDefaults
59668
+ * @constructor
59669
+ * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
59670
+ */
59671
+ function FeatureSetDefaults(properties) {
59672
+ this.defaults = [];
59673
+ if (properties)
59674
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59675
+ if (properties[keys[i]] != null)
59676
+ this[keys[i]] = properties[keys[i]];
59677
+ }
59678
+
59679
+ /**
59680
+ * FeatureSetDefaults defaults.
59681
+ * @member {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>} defaults
59682
+ * @memberof google.protobuf.FeatureSetDefaults
59683
+ * @instance
59684
+ */
59685
+ FeatureSetDefaults.prototype.defaults = $util.emptyArray;
59686
+
59687
+ /**
59688
+ * FeatureSetDefaults minimumEdition.
59689
+ * @member {google.protobuf.Edition} minimumEdition
59690
+ * @memberof google.protobuf.FeatureSetDefaults
59691
+ * @instance
59692
+ */
59693
+ FeatureSetDefaults.prototype.minimumEdition = 0;
59694
+
59695
+ /**
59696
+ * FeatureSetDefaults maximumEdition.
59697
+ * @member {google.protobuf.Edition} maximumEdition
59698
+ * @memberof google.protobuf.FeatureSetDefaults
59699
+ * @instance
59700
+ */
59701
+ FeatureSetDefaults.prototype.maximumEdition = 0;
59702
+
59703
+ /**
59704
+ * Creates a new FeatureSetDefaults instance using the specified properties.
59705
+ * @function create
59706
+ * @memberof google.protobuf.FeatureSetDefaults
59707
+ * @static
59708
+ * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
59709
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance
59710
+ */
59711
+ FeatureSetDefaults.create = function create(properties) {
59712
+ return new FeatureSetDefaults(properties);
59713
+ };
59714
+
59715
+ /**
59716
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
59717
+ * @function encode
59718
+ * @memberof google.protobuf.FeatureSetDefaults
59719
+ * @static
59720
+ * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
59721
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59722
+ * @returns {$protobuf.Writer} Writer
59723
+ */
59724
+ FeatureSetDefaults.encode = function encode(message, writer) {
59725
+ if (!writer)
59726
+ writer = $Writer.create();
59727
+ if (message.defaults != null && message.defaults.length)
59728
+ for (var i = 0; i < message.defaults.length; ++i)
59729
+ $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59730
+ if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition"))
59731
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition);
59732
+ if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition"))
59733
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition);
59734
+ return writer;
59735
+ };
59736
+
59737
+ /**
59738
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
59739
+ * @function encodeDelimited
59740
+ * @memberof google.protobuf.FeatureSetDefaults
59741
+ * @static
59742
+ * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
59743
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59744
+ * @returns {$protobuf.Writer} Writer
59745
+ */
59746
+ FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) {
59747
+ return this.encode(message, writer).ldelim();
59748
+ };
59749
+
59750
+ /**
59751
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
59752
+ * @function decode
59753
+ * @memberof google.protobuf.FeatureSetDefaults
59754
+ * @static
59755
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59756
+ * @param {number} [length] Message length if known beforehand
59757
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
59758
+ * @throws {Error} If the payload is not a reader or valid buffer
59759
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59760
+ */
59761
+ FeatureSetDefaults.decode = function decode(reader, length) {
59762
+ if (!(reader instanceof $Reader))
59763
+ reader = $Reader.create(reader);
59764
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
59765
+ while (reader.pos < end) {
59766
+ var tag = reader.uint32();
59767
+ switch (tag >>> 3) {
59768
+ case 1: {
59769
+ if (!(message.defaults && message.defaults.length))
59770
+ message.defaults = [];
59771
+ message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32()));
59772
+ break;
59773
+ }
59774
+ case 4: {
59775
+ message.minimumEdition = reader.int32();
59776
+ break;
59777
+ }
59778
+ case 5: {
59779
+ message.maximumEdition = reader.int32();
59780
+ break;
59781
+ }
59782
+ default:
59783
+ reader.skipType(tag & 7);
59784
+ break;
59785
+ }
59786
+ }
59787
+ return message;
59788
+ };
59789
+
59790
+ /**
59791
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
59792
+ * @function decodeDelimited
59793
+ * @memberof google.protobuf.FeatureSetDefaults
59794
+ * @static
59795
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59796
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
59797
+ * @throws {Error} If the payload is not a reader or valid buffer
59798
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59799
+ */
59800
+ FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) {
59801
+ if (!(reader instanceof $Reader))
59802
+ reader = new $Reader(reader);
59803
+ return this.decode(reader, reader.uint32());
59804
+ };
59805
+
59806
+ /**
59807
+ * Verifies a FeatureSetDefaults message.
59808
+ * @function verify
59809
+ * @memberof google.protobuf.FeatureSetDefaults
59810
+ * @static
59811
+ * @param {Object.<string,*>} message Plain object to verify
59812
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59813
+ */
59814
+ FeatureSetDefaults.verify = function verify(message) {
59815
+ if (typeof message !== "object" || message === null)
59816
+ return "object expected";
59817
+ if (message.defaults != null && message.hasOwnProperty("defaults")) {
59818
+ if (!Array.isArray(message.defaults))
59819
+ return "defaults: array expected";
59820
+ for (var i = 0; i < message.defaults.length; ++i) {
59821
+ var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]);
59822
+ if (error)
59823
+ return "defaults." + error;
59824
+ }
59825
+ }
59826
+ if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
59827
+ switch (message.minimumEdition) {
59828
+ default:
59829
+ return "minimumEdition: enum value expected";
59830
+ case 0:
59831
+ case 998:
59832
+ case 999:
59833
+ case 1000:
59834
+ case 1001:
59835
+ case 1:
59836
+ case 2:
59837
+ case 99997:
59838
+ case 99998:
59839
+ case 99999:
59840
+ case 2147483647:
59841
+ break;
59842
+ }
59843
+ if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
59844
+ switch (message.maximumEdition) {
59845
+ default:
59846
+ return "maximumEdition: enum value expected";
59847
+ case 0:
59848
+ case 998:
59849
+ case 999:
59850
+ case 1000:
59851
+ case 1001:
59852
+ case 1:
59853
+ case 2:
59854
+ case 99997:
59855
+ case 99998:
59856
+ case 99999:
59857
+ case 2147483647:
59858
+ break;
59859
+ }
59860
+ return null;
59861
+ };
59862
+
59863
+ /**
59864
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
59865
+ * @function fromObject
59866
+ * @memberof google.protobuf.FeatureSetDefaults
59867
+ * @static
59868
+ * @param {Object.<string,*>} object Plain object
59869
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
59870
+ */
59871
+ FeatureSetDefaults.fromObject = function fromObject(object) {
59872
+ if (object instanceof $root.google.protobuf.FeatureSetDefaults)
59873
+ return object;
59874
+ var message = new $root.google.protobuf.FeatureSetDefaults();
59875
+ if (object.defaults) {
59876
+ if (!Array.isArray(object.defaults))
59877
+ throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");
59878
+ message.defaults = [];
59879
+ for (var i = 0; i < object.defaults.length; ++i) {
59880
+ if (typeof object.defaults[i] !== "object")
59881
+ throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");
59882
+ message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]);
59883
+ }
59884
+ }
59885
+ switch (object.minimumEdition) {
59886
+ default:
59887
+ if (typeof object.minimumEdition === "number") {
59888
+ message.minimumEdition = object.minimumEdition;
59889
+ break;
59890
+ }
59891
+ break;
59892
+ case "EDITION_UNKNOWN":
59893
+ case 0:
59894
+ message.minimumEdition = 0;
59895
+ break;
59896
+ case "EDITION_PROTO2":
59897
+ case 998:
59898
+ message.minimumEdition = 998;
59899
+ break;
59900
+ case "EDITION_PROTO3":
59901
+ case 999:
59902
+ message.minimumEdition = 999;
59903
+ break;
59904
+ case "EDITION_2023":
59905
+ case 1000:
59906
+ message.minimumEdition = 1000;
59907
+ break;
59908
+ case "EDITION_2024":
59909
+ case 1001:
59910
+ message.minimumEdition = 1001;
59911
+ break;
59912
+ case "EDITION_1_TEST_ONLY":
59913
+ case 1:
59914
+ message.minimumEdition = 1;
59915
+ break;
59916
+ case "EDITION_2_TEST_ONLY":
59917
+ case 2:
59918
+ message.minimumEdition = 2;
59919
+ break;
59920
+ case "EDITION_99997_TEST_ONLY":
59921
+ case 99997:
59922
+ message.minimumEdition = 99997;
59923
+ break;
59924
+ case "EDITION_99998_TEST_ONLY":
59925
+ case 99998:
59926
+ message.minimumEdition = 99998;
59927
+ break;
59928
+ case "EDITION_99999_TEST_ONLY":
59929
+ case 99999:
59930
+ message.minimumEdition = 99999;
59931
+ break;
59932
+ case "EDITION_MAX":
59933
+ case 2147483647:
59934
+ message.minimumEdition = 2147483647;
59935
+ break;
59936
+ }
59937
+ switch (object.maximumEdition) {
59938
+ default:
59939
+ if (typeof object.maximumEdition === "number") {
59940
+ message.maximumEdition = object.maximumEdition;
59941
+ break;
59942
+ }
59943
+ break;
59944
+ case "EDITION_UNKNOWN":
59945
+ case 0:
59946
+ message.maximumEdition = 0;
59947
+ break;
59948
+ case "EDITION_PROTO2":
59949
+ case 998:
59950
+ message.maximumEdition = 998;
59951
+ break;
59952
+ case "EDITION_PROTO3":
59953
+ case 999:
59954
+ message.maximumEdition = 999;
59955
+ break;
59956
+ case "EDITION_2023":
59957
+ case 1000:
59958
+ message.maximumEdition = 1000;
59959
+ break;
59960
+ case "EDITION_2024":
59961
+ case 1001:
59962
+ message.maximumEdition = 1001;
59963
+ break;
59964
+ case "EDITION_1_TEST_ONLY":
59965
+ case 1:
59966
+ message.maximumEdition = 1;
59967
+ break;
59968
+ case "EDITION_2_TEST_ONLY":
59969
+ case 2:
59970
+ message.maximumEdition = 2;
59971
+ break;
59972
+ case "EDITION_99997_TEST_ONLY":
59973
+ case 99997:
59974
+ message.maximumEdition = 99997;
59975
+ break;
59976
+ case "EDITION_99998_TEST_ONLY":
59977
+ case 99998:
59978
+ message.maximumEdition = 99998;
59979
+ break;
59980
+ case "EDITION_99999_TEST_ONLY":
59981
+ case 99999:
59982
+ message.maximumEdition = 99999;
59983
+ break;
59984
+ case "EDITION_MAX":
59985
+ case 2147483647:
59986
+ message.maximumEdition = 2147483647;
59987
+ break;
59988
+ }
59989
+ return message;
59990
+ };
59991
+
59992
+ /**
59993
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
59994
+ * @function toObject
59995
+ * @memberof google.protobuf.FeatureSetDefaults
59996
+ * @static
59997
+ * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults
59998
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59999
+ * @returns {Object.<string,*>} Plain object
60000
+ */
60001
+ FeatureSetDefaults.toObject = function toObject(message, options) {
60002
+ if (!options)
60003
+ options = {};
60004
+ var object = {};
60005
+ if (options.arrays || options.defaults)
60006
+ object.defaults = [];
60007
+ if (options.defaults) {
60008
+ object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
60009
+ object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
60010
+ }
60011
+ if (message.defaults && message.defaults.length) {
60012
+ object.defaults = [];
60013
+ for (var j = 0; j < message.defaults.length; ++j)
60014
+ object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options);
60015
+ }
60016
+ if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
60017
+ object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition;
60018
+ if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
60019
+ object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition;
60020
+ return object;
60021
+ };
60022
+
60023
+ /**
60024
+ * Converts this FeatureSetDefaults to JSON.
60025
+ * @function toJSON
60026
+ * @memberof google.protobuf.FeatureSetDefaults
60027
+ * @instance
60028
+ * @returns {Object.<string,*>} JSON object
60029
+ */
60030
+ FeatureSetDefaults.prototype.toJSON = function toJSON() {
60031
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60032
+ };
60033
+
60034
+ /**
60035
+ * Gets the default type url for FeatureSetDefaults
60036
+ * @function getTypeUrl
60037
+ * @memberof google.protobuf.FeatureSetDefaults
60038
+ * @static
60039
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60040
+ * @returns {string} The default type url
60041
+ */
60042
+ FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60043
+ if (typeUrlPrefix === undefined) {
60044
+ typeUrlPrefix = "type.googleapis.com";
60045
+ }
60046
+ return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults";
60047
+ };
60048
+
60049
+ FeatureSetDefaults.FeatureSetEditionDefault = (function() {
60050
+
60051
+ /**
60052
+ * Properties of a FeatureSetEditionDefault.
60053
+ * @memberof google.protobuf.FeatureSetDefaults
60054
+ * @interface IFeatureSetEditionDefault
60055
+ * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
60056
+ * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
60057
+ */
60058
+
60059
+ /**
60060
+ * Constructs a new FeatureSetEditionDefault.
60061
+ * @memberof google.protobuf.FeatureSetDefaults
60062
+ * @classdesc Represents a FeatureSetEditionDefault.
60063
+ * @implements IFeatureSetEditionDefault
60064
+ * @constructor
60065
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
60066
+ */
60067
+ function FeatureSetEditionDefault(properties) {
60068
+ if (properties)
60069
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60070
+ if (properties[keys[i]] != null)
60071
+ this[keys[i]] = properties[keys[i]];
60072
+ }
60073
+
60074
+ /**
60075
+ * FeatureSetEditionDefault edition.
60076
+ * @member {google.protobuf.Edition} edition
60077
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60078
+ * @instance
60079
+ */
60080
+ FeatureSetEditionDefault.prototype.edition = 0;
60081
+
60082
+ /**
60083
+ * FeatureSetEditionDefault features.
60084
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
60085
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60086
+ * @instance
60087
+ */
60088
+ FeatureSetEditionDefault.prototype.features = null;
60089
+
60090
+ /**
60091
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
60092
+ * @function create
60093
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60094
+ * @static
60095
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
60096
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance
60097
+ */
60098
+ FeatureSetEditionDefault.create = function create(properties) {
60099
+ return new FeatureSetEditionDefault(properties);
60100
+ };
60101
+
60102
+ /**
60103
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
60104
+ * @function encode
60105
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60106
+ * @static
60107
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
60108
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60109
+ * @returns {$protobuf.Writer} Writer
60110
+ */
60111
+ FeatureSetEditionDefault.encode = function encode(message, writer) {
60112
+ if (!writer)
60113
+ writer = $Writer.create();
60114
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
60115
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
60116
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
60117
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
60118
+ return writer;
60119
+ };
60120
+
60121
+ /**
60122
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
60123
+ * @function encodeDelimited
60124
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60125
+ * @static
60126
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
60127
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60128
+ * @returns {$protobuf.Writer} Writer
60129
+ */
60130
+ FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
60131
+ return this.encode(message, writer).ldelim();
60132
+ };
60133
+
60134
+ /**
60135
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
60136
+ * @function decode
60137
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60138
+ * @static
60139
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60140
+ * @param {number} [length] Message length if known beforehand
60141
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
60142
+ * @throws {Error} If the payload is not a reader or valid buffer
60143
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60144
+ */
60145
+ FeatureSetEditionDefault.decode = function decode(reader, length) {
60146
+ if (!(reader instanceof $Reader))
60147
+ reader = $Reader.create(reader);
60148
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
60149
+ while (reader.pos < end) {
60150
+ var tag = reader.uint32();
60151
+ switch (tag >>> 3) {
60152
+ case 3: {
60153
+ message.edition = reader.int32();
60154
+ break;
60155
+ }
60156
+ case 2: {
60157
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
60158
+ break;
60159
+ }
60160
+ default:
60161
+ reader.skipType(tag & 7);
60162
+ break;
60163
+ }
60164
+ }
60165
+ return message;
60166
+ };
60167
+
60168
+ /**
60169
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
60170
+ * @function decodeDelimited
60171
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60172
+ * @static
60173
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60174
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
60175
+ * @throws {Error} If the payload is not a reader or valid buffer
60176
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60177
+ */
60178
+ FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) {
60179
+ if (!(reader instanceof $Reader))
60180
+ reader = new $Reader(reader);
60181
+ return this.decode(reader, reader.uint32());
60182
+ };
60183
+
60184
+ /**
60185
+ * Verifies a FeatureSetEditionDefault message.
60186
+ * @function verify
60187
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60188
+ * @static
60189
+ * @param {Object.<string,*>} message Plain object to verify
60190
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60191
+ */
60192
+ FeatureSetEditionDefault.verify = function verify(message) {
60193
+ if (typeof message !== "object" || message === null)
60194
+ return "object expected";
60195
+ if (message.edition != null && message.hasOwnProperty("edition"))
60196
+ switch (message.edition) {
60197
+ default:
60198
+ return "edition: enum value expected";
60199
+ case 0:
60200
+ case 998:
60201
+ case 999:
60202
+ case 1000:
60203
+ case 1001:
60204
+ case 1:
60205
+ case 2:
60206
+ case 99997:
60207
+ case 99998:
60208
+ case 99999:
60209
+ case 2147483647:
60210
+ break;
60211
+ }
60212
+ if (message.features != null && message.hasOwnProperty("features")) {
60213
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
60214
+ if (error)
60215
+ return "features." + error;
60216
+ }
60217
+ return null;
60218
+ };
60219
+
60220
+ /**
60221
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
60222
+ * @function fromObject
60223
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60224
+ * @static
60225
+ * @param {Object.<string,*>} object Plain object
60226
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
60227
+ */
60228
+ FeatureSetEditionDefault.fromObject = function fromObject(object) {
60229
+ if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
60230
+ return object;
60231
+ var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
60232
+ switch (object.edition) {
60233
+ default:
60234
+ if (typeof object.edition === "number") {
60235
+ message.edition = object.edition;
60236
+ break;
60237
+ }
60238
+ break;
60239
+ case "EDITION_UNKNOWN":
60240
+ case 0:
60241
+ message.edition = 0;
60242
+ break;
60243
+ case "EDITION_PROTO2":
60244
+ case 998:
60245
+ message.edition = 998;
60246
+ break;
60247
+ case "EDITION_PROTO3":
60248
+ case 999:
60249
+ message.edition = 999;
60250
+ break;
60251
+ case "EDITION_2023":
60252
+ case 1000:
60253
+ message.edition = 1000;
60254
+ break;
60255
+ case "EDITION_2024":
60256
+ case 1001:
60257
+ message.edition = 1001;
60258
+ break;
60259
+ case "EDITION_1_TEST_ONLY":
60260
+ case 1:
60261
+ message.edition = 1;
60262
+ break;
60263
+ case "EDITION_2_TEST_ONLY":
60264
+ case 2:
60265
+ message.edition = 2;
60266
+ break;
60267
+ case "EDITION_99997_TEST_ONLY":
60268
+ case 99997:
60269
+ message.edition = 99997;
60270
+ break;
60271
+ case "EDITION_99998_TEST_ONLY":
60272
+ case 99998:
60273
+ message.edition = 99998;
60274
+ break;
60275
+ case "EDITION_99999_TEST_ONLY":
60276
+ case 99999:
60277
+ message.edition = 99999;
60278
+ break;
60279
+ case "EDITION_MAX":
60280
+ case 2147483647:
60281
+ message.edition = 2147483647;
60282
+ break;
60283
+ }
60284
+ if (object.features != null) {
60285
+ if (typeof object.features !== "object")
60286
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
60287
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
60288
+ }
60289
+ return message;
60290
+ };
60291
+
60292
+ /**
60293
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
60294
+ * @function toObject
60295
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60296
+ * @static
60297
+ * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault
60298
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60299
+ * @returns {Object.<string,*>} Plain object
60300
+ */
60301
+ FeatureSetEditionDefault.toObject = function toObject(message, options) {
60302
+ if (!options)
60303
+ options = {};
60304
+ var object = {};
60305
+ if (options.defaults) {
60306
+ object.features = null;
60307
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
60308
+ }
60309
+ if (message.features != null && message.hasOwnProperty("features"))
60310
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
60311
+ if (message.edition != null && message.hasOwnProperty("edition"))
60312
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
60313
+ return object;
60314
+ };
60315
+
60316
+ /**
60317
+ * Converts this FeatureSetEditionDefault to JSON.
60318
+ * @function toJSON
60319
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60320
+ * @instance
60321
+ * @returns {Object.<string,*>} JSON object
60322
+ */
60323
+ FeatureSetEditionDefault.prototype.toJSON = function toJSON() {
60324
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60325
+ };
60326
+
60327
+ /**
60328
+ * Gets the default type url for FeatureSetEditionDefault
60329
+ * @function getTypeUrl
60330
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
60331
+ * @static
60332
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60333
+ * @returns {string} The default type url
60334
+ */
60335
+ FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60336
+ if (typeUrlPrefix === undefined) {
60337
+ typeUrlPrefix = "type.googleapis.com";
60338
+ }
60339
+ return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
60340
+ };
60341
+
60342
+ return FeatureSetEditionDefault;
60343
+ })();
60344
+
60345
+ return FeatureSetDefaults;
60346
+ })();
60347
+
57654
60348
  protobuf.SourceCodeInfo = (function() {
57655
60349
 
57656
60350
  /**