@google-analytics/data 4.4.0 → 4.5.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.
@@ -513,6 +513,38 @@
513
513
  return FileDescriptorSet;
514
514
  })();
515
515
 
516
+ /**
517
+ * Edition enum.
518
+ * @name google.protobuf.Edition
519
+ * @enum {number}
520
+ * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
521
+ * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
522
+ * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
523
+ * @property {number} EDITION_2023=1000 EDITION_2023 value
524
+ * @property {number} EDITION_2024=1001 EDITION_2024 value
525
+ * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
526
+ * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
527
+ * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
528
+ * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
529
+ * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
530
+ * @property {number} EDITION_MAX=2147483647 EDITION_MAX value
531
+ */
532
+ protobuf.Edition = (function() {
533
+ var valuesById = {}, values = Object.create(valuesById);
534
+ values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
535
+ values[valuesById[998] = "EDITION_PROTO2"] = 998;
536
+ values[valuesById[999] = "EDITION_PROTO3"] = 999;
537
+ values[valuesById[1000] = "EDITION_2023"] = 1000;
538
+ values[valuesById[1001] = "EDITION_2024"] = 1001;
539
+ values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
540
+ values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
541
+ values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
542
+ values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
543
+ values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
544
+ values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
545
+ return values;
546
+ })();
547
+
516
548
  protobuf.FileDescriptorProto = (function() {
517
549
 
518
550
  /**
@@ -531,7 +563,7 @@
531
563
  * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
532
564
  * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
533
565
  * @property {string|null} [syntax] FileDescriptorProto syntax
534
- * @property {string|null} [edition] FileDescriptorProto edition
566
+ * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
535
567
  */
536
568
 
537
569
  /**
@@ -654,11 +686,11 @@
654
686
 
655
687
  /**
656
688
  * FileDescriptorProto edition.
657
- * @member {string} edition
689
+ * @member {google.protobuf.Edition} edition
658
690
  * @memberof google.protobuf.FileDescriptorProto
659
691
  * @instance
660
692
  */
661
- FileDescriptorProto.prototype.edition = "";
693
+ FileDescriptorProto.prototype.edition = 0;
662
694
 
663
695
  /**
664
696
  * Creates a new FileDescriptorProto instance using the specified properties.
@@ -716,7 +748,7 @@
716
748
  if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
717
749
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
718
750
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
719
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition);
751
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
720
752
  return writer;
721
753
  };
722
754
 
@@ -823,8 +855,8 @@
823
855
  message.syntax = reader.string();
824
856
  break;
825
857
  }
826
- case 13: {
827
- message.edition = reader.string();
858
+ case 14: {
859
+ message.edition = reader.int32();
828
860
  break;
829
861
  }
830
862
  default:
@@ -939,8 +971,22 @@
939
971
  if (!$util.isString(message.syntax))
940
972
  return "syntax: string expected";
941
973
  if (message.edition != null && message.hasOwnProperty("edition"))
942
- if (!$util.isString(message.edition))
943
- return "edition: string expected";
974
+ switch (message.edition) {
975
+ default:
976
+ return "edition: enum value expected";
977
+ case 0:
978
+ case 998:
979
+ case 999:
980
+ case 1000:
981
+ case 1001:
982
+ case 1:
983
+ case 2:
984
+ case 99997:
985
+ case 99998:
986
+ case 99999:
987
+ case 2147483647:
988
+ break;
989
+ }
944
990
  return null;
945
991
  };
946
992
 
@@ -1033,8 +1079,58 @@
1033
1079
  }
1034
1080
  if (object.syntax != null)
1035
1081
  message.syntax = String(object.syntax);
1036
- if (object.edition != null)
1037
- message.edition = String(object.edition);
1082
+ switch (object.edition) {
1083
+ default:
1084
+ if (typeof object.edition === "number") {
1085
+ message.edition = object.edition;
1086
+ break;
1087
+ }
1088
+ break;
1089
+ case "EDITION_UNKNOWN":
1090
+ case 0:
1091
+ message.edition = 0;
1092
+ break;
1093
+ case "EDITION_PROTO2":
1094
+ case 998:
1095
+ message.edition = 998;
1096
+ break;
1097
+ case "EDITION_PROTO3":
1098
+ case 999:
1099
+ message.edition = 999;
1100
+ break;
1101
+ case "EDITION_2023":
1102
+ case 1000:
1103
+ message.edition = 1000;
1104
+ break;
1105
+ case "EDITION_2024":
1106
+ case 1001:
1107
+ message.edition = 1001;
1108
+ break;
1109
+ case "EDITION_1_TEST_ONLY":
1110
+ case 1:
1111
+ message.edition = 1;
1112
+ break;
1113
+ case "EDITION_2_TEST_ONLY":
1114
+ case 2:
1115
+ message.edition = 2;
1116
+ break;
1117
+ case "EDITION_99997_TEST_ONLY":
1118
+ case 99997:
1119
+ message.edition = 99997;
1120
+ break;
1121
+ case "EDITION_99998_TEST_ONLY":
1122
+ case 99998:
1123
+ message.edition = 99998;
1124
+ break;
1125
+ case "EDITION_99999_TEST_ONLY":
1126
+ case 99999:
1127
+ message.edition = 99999;
1128
+ break;
1129
+ case "EDITION_MAX":
1130
+ case 2147483647:
1131
+ message.edition = 2147483647;
1132
+ break;
1133
+ }
1038
1134
  return message;
1039
1135
  };
1040
1136
 
@@ -1066,7 +1162,7 @@
1066
1162
  object.options = null;
1067
1163
  object.sourceCodeInfo = null;
1068
1164
  object.syntax = "";
1069
- object.edition = "";
1165
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
1070
1166
  }
1071
1167
  if (message.name != null && message.hasOwnProperty("name"))
1072
1168
  object.name = message.name;
@@ -1114,7 +1210,7 @@
1114
1210
  if (message.syntax != null && message.hasOwnProperty("syntax"))
1115
1211
  object.syntax = message.syntax;
1116
1212
  if (message.edition != null && message.hasOwnProperty("edition"))
1117
- object.edition = message.edition;
1213
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
1118
1214
  return object;
1119
1215
  };
1120
1216
 
@@ -2217,6 +2313,9 @@
2217
2313
  * @memberof google.protobuf
2218
2314
  * @interface IExtensionRangeOptions
2219
2315
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption
2316
+ * @property {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>|null} [declaration] ExtensionRangeOptions declaration
2317
+ * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features
2318
+ * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification
2220
2319
  */
2221
2320
 
2222
2321
  /**
@@ -2229,6 +2328,7 @@
2229
2328
  */
2230
2329
  function ExtensionRangeOptions(properties) {
2231
2330
  this.uninterpretedOption = [];
2331
+ this.declaration = [];
2232
2332
  if (properties)
2233
2333
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2234
2334
  if (properties[keys[i]] != null)
@@ -2243,6 +2343,30 @@
2243
2343
  */
2244
2344
  ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray;
2245
2345
 
2346
+ /**
2347
+ * ExtensionRangeOptions declaration.
2348
+ * @member {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>} declaration
2349
+ * @memberof google.protobuf.ExtensionRangeOptions
2350
+ * @instance
2351
+ */
2352
+ ExtensionRangeOptions.prototype.declaration = $util.emptyArray;
2353
+
2354
+ /**
2355
+ * ExtensionRangeOptions features.
2356
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
2357
+ * @memberof google.protobuf.ExtensionRangeOptions
2358
+ * @instance
2359
+ */
2360
+ ExtensionRangeOptions.prototype.features = null;
2361
+
2362
+ /**
2363
+ * ExtensionRangeOptions verification.
2364
+ * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification
2365
+ * @memberof google.protobuf.ExtensionRangeOptions
2366
+ * @instance
2367
+ */
2368
+ ExtensionRangeOptions.prototype.verification = 1;
2369
+
2246
2370
  /**
2247
2371
  * Creates a new ExtensionRangeOptions instance using the specified properties.
2248
2372
  * @function create
@@ -2267,6 +2391,13 @@
2267
2391
  ExtensionRangeOptions.encode = function encode(message, writer) {
2268
2392
  if (!writer)
2269
2393
  writer = $Writer.create();
2394
+ if (message.declaration != null && message.declaration.length)
2395
+ for (var i = 0; i < message.declaration.length; ++i)
2396
+ $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
2397
+ if (message.verification != null && Object.hasOwnProperty.call(message, "verification"))
2398
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification);
2399
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
2400
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
2270
2401
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
2271
2402
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
2272
2403
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -2310,6 +2441,20 @@
2310
2441
  message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
2311
2442
  break;
2312
2443
  }
2444
+ case 2: {
2445
+ if (!(message.declaration && message.declaration.length))
2446
+ message.declaration = [];
2447
+ message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32()));
2448
+ break;
2449
+ }
2450
+ case 50: {
2451
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
2452
+ break;
2453
+ }
2454
+ case 3: {
2455
+ message.verification = reader.int32();
2456
+ break;
2457
+ }
2313
2458
  default:
2314
2459
  reader.skipType(tag & 7);
2315
2460
  break;
@@ -2354,6 +2499,28 @@
2354
2499
  return "uninterpretedOption." + error;
2355
2500
  }
2356
2501
  }
2502
+ if (message.declaration != null && message.hasOwnProperty("declaration")) {
2503
+ if (!Array.isArray(message.declaration))
2504
+ return "declaration: array expected";
2505
+ for (var i = 0; i < message.declaration.length; ++i) {
2506
+ var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]);
2507
+ if (error)
2508
+ return "declaration." + error;
2509
+ }
2510
+ }
2511
+ if (message.features != null && message.hasOwnProperty("features")) {
2512
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
2513
+ if (error)
2514
+ return "features." + error;
2515
+ }
2516
+ if (message.verification != null && message.hasOwnProperty("verification"))
2517
+ switch (message.verification) {
2518
+ default:
2519
+ return "verification: enum value expected";
2520
+ case 0:
2521
+ case 1:
2522
+ break;
2523
+ }
2357
2524
  return null;
2358
2525
  };
2359
2526
 
@@ -2379,6 +2546,37 @@
2379
2546
  message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
2380
2547
  }
2381
2548
  }
2549
+ if (object.declaration) {
2550
+ if (!Array.isArray(object.declaration))
2551
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");
2552
+ message.declaration = [];
2553
+ for (var i = 0; i < object.declaration.length; ++i) {
2554
+ if (typeof object.declaration[i] !== "object")
2555
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");
2556
+ message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]);
2557
+ }
2558
+ }
2559
+ if (object.features != null) {
2560
+ if (typeof object.features !== "object")
2561
+ throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");
2562
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
2563
+ }
2564
+ switch (object.verification) {
2565
+ case "DECLARATION":
2566
+ case 0:
2567
+ message.verification = 0;
2568
+ break;
2569
+ default:
2570
+ if (typeof object.verification === "number") {
2571
+ message.verification = object.verification;
2572
+ break;
2573
+ }
2574
+ break;
2575
+ case "UNVERIFIED":
2576
+ case 1:
2577
+ message.verification = 1;
2578
+ break;
2579
+ }
2382
2580
  return message;
2383
2581
  };
2384
2582
 
@@ -2395,8 +2593,23 @@
2395
2593
  if (!options)
2396
2594
  options = {};
2397
2595
  var object = {};
2398
- if (options.arrays || options.defaults)
2596
+ if (options.arrays || options.defaults) {
2597
+ object.declaration = [];
2399
2598
  object.uninterpretedOption = [];
2599
+ }
2600
+ if (options.defaults) {
2601
+ object.verification = options.enums === String ? "UNVERIFIED" : 1;
2602
+ object.features = null;
2603
+ }
2604
+ if (message.declaration && message.declaration.length) {
2605
+ object.declaration = [];
2606
+ for (var j = 0; j < message.declaration.length; ++j)
2607
+ object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options);
2608
+ }
2609
+ if (message.verification != null && message.hasOwnProperty("verification"))
2610
+ object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification;
2611
+ if (message.features != null && message.hasOwnProperty("features"))
2612
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
2400
2613
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
2401
2614
  object.uninterpretedOption = [];
2402
2615
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -2431,6 +2644,316 @@
2431
2644
  return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions";
2432
2645
  };
2433
2646
 
2647
+ ExtensionRangeOptions.Declaration = (function() {
2648
+
2649
+ /**
2650
+ * Properties of a Declaration.
2651
+ * @memberof google.protobuf.ExtensionRangeOptions
2652
+ * @interface IDeclaration
2653
+ * @property {number|null} [number] Declaration number
2654
+ * @property {string|null} [fullName] Declaration fullName
2655
+ * @property {string|null} [type] Declaration type
2656
+ * @property {boolean|null} [reserved] Declaration reserved
2657
+ * @property {boolean|null} [repeated] Declaration repeated
2658
+ */
2659
+
2660
+ /**
2661
+ * Constructs a new Declaration.
2662
+ * @memberof google.protobuf.ExtensionRangeOptions
2663
+ * @classdesc Represents a Declaration.
2664
+ * @implements IDeclaration
2665
+ * @constructor
2666
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
2667
+ */
2668
+ function Declaration(properties) {
2669
+ if (properties)
2670
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2671
+ if (properties[keys[i]] != null)
2672
+ this[keys[i]] = properties[keys[i]];
2673
+ }
2674
+
2675
+ /**
2676
+ * Declaration number.
2677
+ * @member {number} number
2678
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2679
+ * @instance
2680
+ */
2681
+ Declaration.prototype.number = 0;
2682
+
2683
+ /**
2684
+ * Declaration fullName.
2685
+ * @member {string} fullName
2686
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2687
+ * @instance
2688
+ */
2689
+ Declaration.prototype.fullName = "";
2690
+
2691
+ /**
2692
+ * Declaration type.
2693
+ * @member {string} type
2694
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2695
+ * @instance
2696
+ */
2697
+ Declaration.prototype.type = "";
2698
+
2699
+ /**
2700
+ * Declaration reserved.
2701
+ * @member {boolean} reserved
2702
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2703
+ * @instance
2704
+ */
2705
+ Declaration.prototype.reserved = false;
2706
+
2707
+ /**
2708
+ * Declaration repeated.
2709
+ * @member {boolean} repeated
2710
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2711
+ * @instance
2712
+ */
2713
+ Declaration.prototype.repeated = false;
2714
+
2715
+ /**
2716
+ * Creates a new Declaration instance using the specified properties.
2717
+ * @function create
2718
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2719
+ * @static
2720
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
2721
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance
2722
+ */
2723
+ Declaration.create = function create(properties) {
2724
+ return new Declaration(properties);
2725
+ };
2726
+
2727
+ /**
2728
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
2729
+ * @function encode
2730
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2731
+ * @static
2732
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
2733
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2734
+ * @returns {$protobuf.Writer} Writer
2735
+ */
2736
+ Declaration.encode = function encode(message, writer) {
2737
+ if (!writer)
2738
+ writer = $Writer.create();
2739
+ if (message.number != null && Object.hasOwnProperty.call(message, "number"))
2740
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number);
2741
+ if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName"))
2742
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName);
2743
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
2744
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
2745
+ if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved"))
2746
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved);
2747
+ if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated"))
2748
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated);
2749
+ return writer;
2750
+ };
2751
+
2752
+ /**
2753
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
2754
+ * @function encodeDelimited
2755
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2756
+ * @static
2757
+ * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
2758
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2759
+ * @returns {$protobuf.Writer} Writer
2760
+ */
2761
+ Declaration.encodeDelimited = function encodeDelimited(message, writer) {
2762
+ return this.encode(message, writer).ldelim();
2763
+ };
2764
+
2765
+ /**
2766
+ * Decodes a Declaration message from the specified reader or buffer.
2767
+ * @function decode
2768
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2769
+ * @static
2770
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2771
+ * @param {number} [length] Message length if known beforehand
2772
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
2773
+ * @throws {Error} If the payload is not a reader or valid buffer
2774
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2775
+ */
2776
+ Declaration.decode = function decode(reader, length) {
2777
+ if (!(reader instanceof $Reader))
2778
+ reader = $Reader.create(reader);
2779
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
2780
+ while (reader.pos < end) {
2781
+ var tag = reader.uint32();
2782
+ switch (tag >>> 3) {
2783
+ case 1: {
2784
+ message.number = reader.int32();
2785
+ break;
2786
+ }
2787
+ case 2: {
2788
+ message.fullName = reader.string();
2789
+ break;
2790
+ }
2791
+ case 3: {
2792
+ message.type = reader.string();
2793
+ break;
2794
+ }
2795
+ case 5: {
2796
+ message.reserved = reader.bool();
2797
+ break;
2798
+ }
2799
+ case 6: {
2800
+ message.repeated = reader.bool();
2801
+ break;
2802
+ }
2803
+ default:
2804
+ reader.skipType(tag & 7);
2805
+ break;
2806
+ }
2807
+ }
2808
+ return message;
2809
+ };
2810
+
2811
+ /**
2812
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
2813
+ * @function decodeDelimited
2814
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2815
+ * @static
2816
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2817
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
2818
+ * @throws {Error} If the payload is not a reader or valid buffer
2819
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2820
+ */
2821
+ Declaration.decodeDelimited = function decodeDelimited(reader) {
2822
+ if (!(reader instanceof $Reader))
2823
+ reader = new $Reader(reader);
2824
+ return this.decode(reader, reader.uint32());
2825
+ };
2826
+
2827
+ /**
2828
+ * Verifies a Declaration message.
2829
+ * @function verify
2830
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2831
+ * @static
2832
+ * @param {Object.<string,*>} message Plain object to verify
2833
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2834
+ */
2835
+ Declaration.verify = function verify(message) {
2836
+ if (typeof message !== "object" || message === null)
2837
+ return "object expected";
2838
+ if (message.number != null && message.hasOwnProperty("number"))
2839
+ if (!$util.isInteger(message.number))
2840
+ return "number: integer expected";
2841
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
2842
+ if (!$util.isString(message.fullName))
2843
+ return "fullName: string expected";
2844
+ if (message.type != null && message.hasOwnProperty("type"))
2845
+ if (!$util.isString(message.type))
2846
+ return "type: string expected";
2847
+ if (message.reserved != null && message.hasOwnProperty("reserved"))
2848
+ if (typeof message.reserved !== "boolean")
2849
+ return "reserved: boolean expected";
2850
+ if (message.repeated != null && message.hasOwnProperty("repeated"))
2851
+ if (typeof message.repeated !== "boolean")
2852
+ return "repeated: boolean expected";
2853
+ return null;
2854
+ };
2855
+
2856
+ /**
2857
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
2858
+ * @function fromObject
2859
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2860
+ * @static
2861
+ * @param {Object.<string,*>} object Plain object
2862
+ * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
2863
+ */
2864
+ Declaration.fromObject = function fromObject(object) {
2865
+ if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration)
2866
+ return object;
2867
+ var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
2868
+ if (object.number != null)
2869
+ message.number = object.number | 0;
2870
+ if (object.fullName != null)
2871
+ message.fullName = String(object.fullName);
2872
+ if (object.type != null)
2873
+ message.type = String(object.type);
2874
+ if (object.reserved != null)
2875
+ message.reserved = Boolean(object.reserved);
2876
+ if (object.repeated != null)
2877
+ message.repeated = Boolean(object.repeated);
2878
+ return message;
2879
+ };
2880
+
2881
+ /**
2882
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
2883
+ * @function toObject
2884
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2885
+ * @static
2886
+ * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration
2887
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2888
+ * @returns {Object.<string,*>} Plain object
2889
+ */
2890
+ Declaration.toObject = function toObject(message, options) {
2891
+ if (!options)
2892
+ options = {};
2893
+ var object = {};
2894
+ if (options.defaults) {
2895
+ object.number = 0;
2896
+ object.fullName = "";
2897
+ object.type = "";
2898
+ object.reserved = false;
2899
+ object.repeated = false;
2900
+ }
2901
+ if (message.number != null && message.hasOwnProperty("number"))
2902
+ object.number = message.number;
2903
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
2904
+ object.fullName = message.fullName;
2905
+ if (message.type != null && message.hasOwnProperty("type"))
2906
+ object.type = message.type;
2907
+ if (message.reserved != null && message.hasOwnProperty("reserved"))
2908
+ object.reserved = message.reserved;
2909
+ if (message.repeated != null && message.hasOwnProperty("repeated"))
2910
+ object.repeated = message.repeated;
2911
+ return object;
2912
+ };
2913
+
2914
+ /**
2915
+ * Converts this Declaration to JSON.
2916
+ * @function toJSON
2917
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2918
+ * @instance
2919
+ * @returns {Object.<string,*>} JSON object
2920
+ */
2921
+ Declaration.prototype.toJSON = function toJSON() {
2922
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2923
+ };
2924
+
2925
+ /**
2926
+ * Gets the default type url for Declaration
2927
+ * @function getTypeUrl
2928
+ * @memberof google.protobuf.ExtensionRangeOptions.Declaration
2929
+ * @static
2930
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2931
+ * @returns {string} The default type url
2932
+ */
2933
+ Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2934
+ if (typeUrlPrefix === undefined) {
2935
+ typeUrlPrefix = "type.googleapis.com";
2936
+ }
2937
+ return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration";
2938
+ };
2939
+
2940
+ return Declaration;
2941
+ })();
2942
+
2943
+ /**
2944
+ * VerificationState enum.
2945
+ * @name google.protobuf.ExtensionRangeOptions.VerificationState
2946
+ * @enum {number}
2947
+ * @property {number} DECLARATION=0 DECLARATION value
2948
+ * @property {number} UNVERIFIED=1 UNVERIFIED value
2949
+ */
2950
+ ExtensionRangeOptions.VerificationState = (function() {
2951
+ var valuesById = {}, values = Object.create(valuesById);
2952
+ values[valuesById[0] = "DECLARATION"] = 0;
2953
+ values[valuesById[1] = "UNVERIFIED"] = 1;
2954
+ return values;
2955
+ })();
2956
+
2434
2957
  return ExtensionRangeOptions;
2435
2958
  })();
2436
2959
 
@@ -2726,8 +3249,8 @@
2726
3249
  default:
2727
3250
  return "label: enum value expected";
2728
3251
  case 1:
2729
- case 2:
2730
3252
  case 3:
3253
+ case 2:
2731
3254
  break;
2732
3255
  }
2733
3256
  if (message.type != null && message.hasOwnProperty("type"))
@@ -2807,14 +3330,14 @@
2807
3330
  case 1:
2808
3331
  message.label = 1;
2809
3332
  break;
2810
- case "LABEL_REQUIRED":
2811
- case 2:
2812
- message.label = 2;
2813
- break;
2814
3333
  case "LABEL_REPEATED":
2815
3334
  case 3:
2816
3335
  message.label = 3;
2817
3336
  break;
3337
+ case "LABEL_REQUIRED":
3338
+ case 2:
3339
+ message.label = 2;
3340
+ break;
2818
3341
  }
2819
3342
  switch (object.type) {
2820
3343
  default:
@@ -3044,14 +3567,14 @@
3044
3567
  * @name google.protobuf.FieldDescriptorProto.Label
3045
3568
  * @enum {number}
3046
3569
  * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value
3047
- * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
3048
3570
  * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value
3571
+ * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
3049
3572
  */
3050
3573
  FieldDescriptorProto.Label = (function() {
3051
3574
  var valuesById = {}, values = Object.create(valuesById);
3052
3575
  values[valuesById[1] = "LABEL_OPTIONAL"] = 1;
3053
- values[valuesById[2] = "LABEL_REQUIRED"] = 2;
3054
3576
  values[valuesById[3] = "LABEL_REPEATED"] = 3;
3577
+ values[valuesById[2] = "LABEL_REQUIRED"] = 2;
3055
3578
  return values;
3056
3579
  })();
3057
3580
 
@@ -4750,7 +5273,6 @@
4750
5273
  * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices
4751
5274
  * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices
4752
5275
  * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices
4753
- * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices
4754
5276
  * @property {boolean|null} [deprecated] FileOptions deprecated
4755
5277
  * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas
4756
5278
  * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix
@@ -4760,6 +5282,7 @@
4760
5282
  * @property {string|null} [phpNamespace] FileOptions phpNamespace
4761
5283
  * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace
4762
5284
  * @property {string|null} [rubyPackage] FileOptions rubyPackage
5285
+ * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features
4763
5286
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption
4764
5287
  * @property {Array.<google.api.IResourceDescriptor>|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition
4765
5288
  */
@@ -4861,14 +5384,6 @@
4861
5384
  */
4862
5385
  FileOptions.prototype.pyGenericServices = false;
4863
5386
 
4864
- /**
4865
- * FileOptions phpGenericServices.
4866
- * @member {boolean} phpGenericServices
4867
- * @memberof google.protobuf.FileOptions
4868
- * @instance
4869
- */
4870
- FileOptions.prototype.phpGenericServices = false;
4871
-
4872
5387
  /**
4873
5388
  * FileOptions deprecated.
4874
5389
  * @member {boolean} deprecated
@@ -4941,6 +5456,14 @@
4941
5456
  */
4942
5457
  FileOptions.prototype.rubyPackage = "";
4943
5458
 
5459
+ /**
5460
+ * FileOptions features.
5461
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
5462
+ * @memberof google.protobuf.FileOptions
5463
+ * @instance
5464
+ */
5465
+ FileOptions.prototype.features = null;
5466
+
4944
5467
  /**
4945
5468
  * FileOptions uninterpretedOption.
4946
5469
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -5015,12 +5538,12 @@
5015
5538
  writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix);
5016
5539
  if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace"))
5017
5540
  writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace);
5018
- if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices"))
5019
- writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices);
5020
5541
  if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace"))
5021
5542
  writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
5022
5543
  if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
5023
5544
  writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage);
5545
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
5546
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
5024
5547
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
5025
5548
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
5026
5549
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -5101,10 +5624,6 @@
5101
5624
  message.pyGenericServices = reader.bool();
5102
5625
  break;
5103
5626
  }
5104
- case 42: {
5105
- message.phpGenericServices = reader.bool();
5106
- break;
5107
- }
5108
5627
  case 23: {
5109
5628
  message.deprecated = reader.bool();
5110
5629
  break;
@@ -5141,6 +5660,10 @@
5141
5660
  message.rubyPackage = reader.string();
5142
5661
  break;
5143
5662
  }
5663
+ case 50: {
5664
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
5665
+ break;
5666
+ }
5144
5667
  case 999: {
5145
5668
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
5146
5669
  message.uninterpretedOption = [];
@@ -5224,9 +5747,6 @@
5224
5747
  if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices"))
5225
5748
  if (typeof message.pyGenericServices !== "boolean")
5226
5749
  return "pyGenericServices: boolean expected";
5227
- if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
5228
- if (typeof message.phpGenericServices !== "boolean")
5229
- return "phpGenericServices: boolean expected";
5230
5750
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
5231
5751
  if (typeof message.deprecated !== "boolean")
5232
5752
  return "deprecated: boolean expected";
@@ -5254,6 +5774,11 @@
5254
5774
  if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
5255
5775
  if (!$util.isString(message.rubyPackage))
5256
5776
  return "rubyPackage: string expected";
5777
+ if (message.features != null && message.hasOwnProperty("features")) {
5778
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
5779
+ if (error)
5780
+ return "features." + error;
5781
+ }
5257
5782
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
5258
5783
  if (!Array.isArray(message.uninterpretedOption))
5259
5784
  return "uninterpretedOption: array expected";
@@ -5325,8 +5850,6 @@
5325
5850
  message.javaGenericServices = Boolean(object.javaGenericServices);
5326
5851
  if (object.pyGenericServices != null)
5327
5852
  message.pyGenericServices = Boolean(object.pyGenericServices);
5328
- if (object.phpGenericServices != null)
5329
- message.phpGenericServices = Boolean(object.phpGenericServices);
5330
5853
  if (object.deprecated != null)
5331
5854
  message.deprecated = Boolean(object.deprecated);
5332
5855
  if (object.ccEnableArenas != null)
@@ -5345,6 +5868,11 @@
5345
5868
  message.phpMetadataNamespace = String(object.phpMetadataNamespace);
5346
5869
  if (object.rubyPackage != null)
5347
5870
  message.rubyPackage = String(object.rubyPackage);
5871
+ if (object.features != null) {
5872
+ if (typeof object.features !== "object")
5873
+ throw TypeError(".google.protobuf.FileOptions.features: object expected");
5874
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
5875
+ }
5348
5876
  if (object.uninterpretedOption) {
5349
5877
  if (!Array.isArray(object.uninterpretedOption))
5350
5878
  throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");
@@ -5403,9 +5931,9 @@
5403
5931
  object.swiftPrefix = "";
5404
5932
  object.phpClassPrefix = "";
5405
5933
  object.phpNamespace = "";
5406
- object.phpGenericServices = false;
5407
5934
  object.phpMetadataNamespace = "";
5408
5935
  object.rubyPackage = "";
5936
+ object.features = null;
5409
5937
  }
5410
5938
  if (message.javaPackage != null && message.hasOwnProperty("javaPackage"))
5411
5939
  object.javaPackage = message.javaPackage;
@@ -5441,12 +5969,12 @@
5441
5969
  object.phpClassPrefix = message.phpClassPrefix;
5442
5970
  if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace"))
5443
5971
  object.phpNamespace = message.phpNamespace;
5444
- if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
5445
- object.phpGenericServices = message.phpGenericServices;
5446
5972
  if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace"))
5447
5973
  object.phpMetadataNamespace = message.phpMetadataNamespace;
5448
5974
  if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
5449
5975
  object.rubyPackage = message.rubyPackage;
5976
+ if (message.features != null && message.hasOwnProperty("features"))
5977
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
5450
5978
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
5451
5979
  object.uninterpretedOption = [];
5452
5980
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -5516,6 +6044,7 @@
5516
6044
  * @property {boolean|null} [deprecated] MessageOptions deprecated
5517
6045
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
5518
6046
  * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
6047
+ * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features
5519
6048
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
5520
6049
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
5521
6050
  */
@@ -5576,6 +6105,14 @@
5576
6105
  */
5577
6106
  MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
5578
6107
 
6108
+ /**
6109
+ * MessageOptions features.
6110
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
6111
+ * @memberof google.protobuf.MessageOptions
6112
+ * @instance
6113
+ */
6114
+ MessageOptions.prototype.features = null;
6115
+
5579
6116
  /**
5580
6117
  * MessageOptions uninterpretedOption.
5581
6118
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -5626,6 +6163,8 @@
5626
6163
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
5627
6164
  if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
5628
6165
  writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
6166
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
6167
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
5629
6168
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
5630
6169
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
5631
6170
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -5685,6 +6224,10 @@
5685
6224
  message.deprecatedLegacyJsonFieldConflicts = reader.bool();
5686
6225
  break;
5687
6226
  }
6227
+ case 12: {
6228
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
6229
+ break;
6230
+ }
5688
6231
  case 999: {
5689
6232
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
5690
6233
  message.uninterpretedOption = [];
@@ -5745,6 +6288,11 @@
5745
6288
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
5746
6289
  if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
5747
6290
  return "deprecatedLegacyJsonFieldConflicts: boolean expected";
6291
+ if (message.features != null && message.hasOwnProperty("features")) {
6292
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
6293
+ if (error)
6294
+ return "features." + error;
6295
+ }
5748
6296
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
5749
6297
  if (!Array.isArray(message.uninterpretedOption))
5750
6298
  return "uninterpretedOption: array expected";
@@ -5784,6 +6332,11 @@
5784
6332
  message.mapEntry = Boolean(object.mapEntry);
5785
6333
  if (object.deprecatedLegacyJsonFieldConflicts != null)
5786
6334
  message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
6335
+ if (object.features != null) {
6336
+ if (typeof object.features !== "object")
6337
+ throw TypeError(".google.protobuf.MessageOptions.features: object expected");
6338
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
6339
+ }
5787
6340
  if (object.uninterpretedOption) {
5788
6341
  if (!Array.isArray(object.uninterpretedOption))
5789
6342
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -5823,6 +6376,7 @@
5823
6376
  object.deprecated = false;
5824
6377
  object.mapEntry = false;
5825
6378
  object.deprecatedLegacyJsonFieldConflicts = false;
6379
+ object.features = null;
5826
6380
  object[".google.api.resource"] = null;
5827
6381
  }
5828
6382
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -5835,6 +6389,8 @@
5835
6389
  object.mapEntry = message.mapEntry;
5836
6390
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
5837
6391
  object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
6392
+ if (message.features != null && message.hasOwnProperty("features"))
6393
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
5838
6394
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
5839
6395
  object.uninterpretedOption = [];
5840
6396
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -5889,7 +6445,9 @@
5889
6445
  * @property {boolean|null} [weak] FieldOptions weak
5890
6446
  * @property {boolean|null} [debugRedact] FieldOptions debugRedact
5891
6447
  * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
5892
- * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
6448
+ * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
6449
+ * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
6450
+ * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
5893
6451
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
5894
6452
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
5895
6453
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -5904,6 +6462,8 @@
5904
6462
  * @param {google.protobuf.IFieldOptions=} [properties] Properties to set
5905
6463
  */
5906
6464
  function FieldOptions(properties) {
6465
+ this.targets = [];
6466
+ this.editionDefaults = [];
5907
6467
  this.uninterpretedOption = [];
5908
6468
  this[".google.api.fieldBehavior"] = [];
5909
6469
  if (properties)
@@ -5985,12 +6545,28 @@
5985
6545
  FieldOptions.prototype.retention = 0;
5986
6546
 
5987
6547
  /**
5988
- * FieldOptions target.
5989
- * @member {google.protobuf.FieldOptions.OptionTargetType} target
6548
+ * FieldOptions targets.
6549
+ * @member {Array.<google.protobuf.FieldOptions.OptionTargetType>} targets
6550
+ * @memberof google.protobuf.FieldOptions
6551
+ * @instance
6552
+ */
6553
+ FieldOptions.prototype.targets = $util.emptyArray;
6554
+
6555
+ /**
6556
+ * FieldOptions editionDefaults.
6557
+ * @member {Array.<google.protobuf.FieldOptions.IEditionDefault>} editionDefaults
6558
+ * @memberof google.protobuf.FieldOptions
6559
+ * @instance
6560
+ */
6561
+ FieldOptions.prototype.editionDefaults = $util.emptyArray;
6562
+
6563
+ /**
6564
+ * FieldOptions features.
6565
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
5990
6566
  * @memberof google.protobuf.FieldOptions
5991
6567
  * @instance
5992
6568
  */
5993
- FieldOptions.prototype.target = 0;
6569
+ FieldOptions.prototype.features = null;
5994
6570
 
5995
6571
  /**
5996
6572
  * FieldOptions uninterpretedOption.
@@ -6058,8 +6634,14 @@
6058
6634
  writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
6059
6635
  if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
6060
6636
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
6061
- if (message.target != null && Object.hasOwnProperty.call(message, "target"))
6062
- writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
6637
+ if (message.targets != null && message.targets.length)
6638
+ for (var i = 0; i < message.targets.length; ++i)
6639
+ writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]);
6640
+ if (message.editionDefaults != null && message.editionDefaults.length)
6641
+ for (var i = 0; i < message.editionDefaults.length; ++i)
6642
+ $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
6643
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
6644
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
6063
6645
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6064
6646
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6065
6647
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -6141,8 +6723,25 @@
6141
6723
  message.retention = reader.int32();
6142
6724
  break;
6143
6725
  }
6144
- case 18: {
6145
- message.target = reader.int32();
6726
+ case 19: {
6727
+ if (!(message.targets && message.targets.length))
6728
+ message.targets = [];
6729
+ if ((tag & 7) === 2) {
6730
+ var end2 = reader.uint32() + reader.pos;
6731
+ while (reader.pos < end2)
6732
+ message.targets.push(reader.int32());
6733
+ } else
6734
+ message.targets.push(reader.int32());
6735
+ break;
6736
+ }
6737
+ case 20: {
6738
+ if (!(message.editionDefaults && message.editionDefaults.length))
6739
+ message.editionDefaults = [];
6740
+ message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32()));
6741
+ break;
6742
+ }
6743
+ case 21: {
6744
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
6146
6745
  break;
6147
6746
  }
6148
6747
  case 999: {
@@ -6246,22 +6845,40 @@
6246
6845
  case 2:
6247
6846
  break;
6248
6847
  }
6249
- if (message.target != null && message.hasOwnProperty("target"))
6250
- switch (message.target) {
6251
- default:
6252
- return "target: enum value expected";
6253
- case 0:
6254
- case 1:
6255
- case 2:
6256
- case 3:
6257
- case 4:
6258
- case 5:
6259
- case 6:
6260
- case 7:
6261
- case 8:
6262
- case 9:
6263
- break;
6848
+ if (message.targets != null && message.hasOwnProperty("targets")) {
6849
+ if (!Array.isArray(message.targets))
6850
+ return "targets: array expected";
6851
+ for (var i = 0; i < message.targets.length; ++i)
6852
+ switch (message.targets[i]) {
6853
+ default:
6854
+ return "targets: enum value[] expected";
6855
+ case 0:
6856
+ case 1:
6857
+ case 2:
6858
+ case 3:
6859
+ case 4:
6860
+ case 5:
6861
+ case 6:
6862
+ case 7:
6863
+ case 8:
6864
+ case 9:
6865
+ break;
6866
+ }
6867
+ }
6868
+ if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) {
6869
+ if (!Array.isArray(message.editionDefaults))
6870
+ return "editionDefaults: array expected";
6871
+ for (var i = 0; i < message.editionDefaults.length; ++i) {
6872
+ var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]);
6873
+ if (error)
6874
+ return "editionDefaults." + error;
6264
6875
  }
6876
+ }
6877
+ if (message.features != null && message.hasOwnProperty("features")) {
6878
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
6879
+ if (error)
6880
+ return "features." + error;
6881
+ }
6265
6882
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
6266
6883
  if (!Array.isArray(message.uninterpretedOption))
6267
6884
  return "uninterpretedOption: array expected";
@@ -6286,6 +6903,7 @@
6286
6903
  case 5:
6287
6904
  case 6:
6288
6905
  case 7:
6906
+ case 8:
6289
6907
  break;
6290
6908
  }
6291
6909
  }
@@ -6381,53 +6999,73 @@
6381
6999
  message.retention = 2;
6382
7000
  break;
6383
7001
  }
6384
- switch (object.target) {
6385
- default:
6386
- if (typeof object.target === "number") {
6387
- message.target = object.target;
6388
- break;
7002
+ if (object.targets) {
7003
+ if (!Array.isArray(object.targets))
7004
+ throw TypeError(".google.protobuf.FieldOptions.targets: array expected");
7005
+ message.targets = [];
7006
+ for (var i = 0; i < object.targets.length; ++i)
7007
+ switch (object.targets[i]) {
7008
+ default:
7009
+ if (typeof object.targets[i] === "number") {
7010
+ message.targets[i] = object.targets[i];
7011
+ break;
7012
+ }
7013
+ case "TARGET_TYPE_UNKNOWN":
7014
+ case 0:
7015
+ message.targets[i] = 0;
7016
+ break;
7017
+ case "TARGET_TYPE_FILE":
7018
+ case 1:
7019
+ message.targets[i] = 1;
7020
+ break;
7021
+ case "TARGET_TYPE_EXTENSION_RANGE":
7022
+ case 2:
7023
+ message.targets[i] = 2;
7024
+ break;
7025
+ case "TARGET_TYPE_MESSAGE":
7026
+ case 3:
7027
+ message.targets[i] = 3;
7028
+ break;
7029
+ case "TARGET_TYPE_FIELD":
7030
+ case 4:
7031
+ message.targets[i] = 4;
7032
+ break;
7033
+ case "TARGET_TYPE_ONEOF":
7034
+ case 5:
7035
+ message.targets[i] = 5;
7036
+ break;
7037
+ case "TARGET_TYPE_ENUM":
7038
+ case 6:
7039
+ message.targets[i] = 6;
7040
+ break;
7041
+ case "TARGET_TYPE_ENUM_ENTRY":
7042
+ case 7:
7043
+ message.targets[i] = 7;
7044
+ break;
7045
+ case "TARGET_TYPE_SERVICE":
7046
+ case 8:
7047
+ message.targets[i] = 8;
7048
+ break;
7049
+ case "TARGET_TYPE_METHOD":
7050
+ case 9:
7051
+ message.targets[i] = 9;
7052
+ break;
7053
+ }
7054
+ }
7055
+ if (object.editionDefaults) {
7056
+ if (!Array.isArray(object.editionDefaults))
7057
+ throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");
7058
+ message.editionDefaults = [];
7059
+ for (var i = 0; i < object.editionDefaults.length; ++i) {
7060
+ if (typeof object.editionDefaults[i] !== "object")
7061
+ throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");
7062
+ message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]);
6389
7063
  }
6390
- break;
6391
- case "TARGET_TYPE_UNKNOWN":
6392
- case 0:
6393
- message.target = 0;
6394
- break;
6395
- case "TARGET_TYPE_FILE":
6396
- case 1:
6397
- message.target = 1;
6398
- break;
6399
- case "TARGET_TYPE_EXTENSION_RANGE":
6400
- case 2:
6401
- message.target = 2;
6402
- break;
6403
- case "TARGET_TYPE_MESSAGE":
6404
- case 3:
6405
- message.target = 3;
6406
- break;
6407
- case "TARGET_TYPE_FIELD":
6408
- case 4:
6409
- message.target = 4;
6410
- break;
6411
- case "TARGET_TYPE_ONEOF":
6412
- case 5:
6413
- message.target = 5;
6414
- break;
6415
- case "TARGET_TYPE_ENUM":
6416
- case 6:
6417
- message.target = 6;
6418
- break;
6419
- case "TARGET_TYPE_ENUM_ENTRY":
6420
- case 7:
6421
- message.target = 7;
6422
- break;
6423
- case "TARGET_TYPE_SERVICE":
6424
- case 8:
6425
- message.target = 8;
6426
- break;
6427
- case "TARGET_TYPE_METHOD":
6428
- case 9:
6429
- message.target = 9;
6430
- break;
7064
+ }
7065
+ if (object.features != null) {
7066
+ if (typeof object.features !== "object")
7067
+ throw TypeError(".google.protobuf.FieldOptions.features: object expected");
7068
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
6431
7069
  }
6432
7070
  if (object.uninterpretedOption) {
6433
7071
  if (!Array.isArray(object.uninterpretedOption))
@@ -6482,6 +7120,10 @@
6482
7120
  case 7:
6483
7121
  message[".google.api.fieldBehavior"][i] = 7;
6484
7122
  break;
7123
+ case "IDENTIFIER":
7124
+ case 8:
7125
+ message[".google.api.fieldBehavior"][i] = 8;
7126
+ break;
6485
7127
  }
6486
7128
  }
6487
7129
  if (object[".google.api.resourceReference"] != null) {
@@ -6506,6 +7148,8 @@
6506
7148
  options = {};
6507
7149
  var object = {};
6508
7150
  if (options.arrays || options.defaults) {
7151
+ object.targets = [];
7152
+ object.editionDefaults = [];
6509
7153
  object.uninterpretedOption = [];
6510
7154
  object[".google.api.fieldBehavior"] = [];
6511
7155
  }
@@ -6519,7 +7163,7 @@
6519
7163
  object.unverifiedLazy = false;
6520
7164
  object.debugRedact = false;
6521
7165
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
6522
- object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
7166
+ object.features = null;
6523
7167
  object[".google.api.resourceReference"] = null;
6524
7168
  }
6525
7169
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -6540,8 +7184,18 @@
6540
7184
  object.debugRedact = message.debugRedact;
6541
7185
  if (message.retention != null && message.hasOwnProperty("retention"))
6542
7186
  object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
6543
- if (message.target != null && message.hasOwnProperty("target"))
6544
- object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
7187
+ if (message.targets && message.targets.length) {
7188
+ object.targets = [];
7189
+ for (var j = 0; j < message.targets.length; ++j)
7190
+ 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];
7191
+ }
7192
+ if (message.editionDefaults && message.editionDefaults.length) {
7193
+ object.editionDefaults = [];
7194
+ for (var j = 0; j < message.editionDefaults.length; ++j)
7195
+ object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options);
7196
+ }
7197
+ if (message.features != null && message.hasOwnProperty("features"))
7198
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
6545
7199
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
6546
7200
  object.uninterpretedOption = [];
6547
7201
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -6661,6 +7315,297 @@
6661
7315
  return values;
6662
7316
  })();
6663
7317
 
7318
+ FieldOptions.EditionDefault = (function() {
7319
+
7320
+ /**
7321
+ * Properties of an EditionDefault.
7322
+ * @memberof google.protobuf.FieldOptions
7323
+ * @interface IEditionDefault
7324
+ * @property {google.protobuf.Edition|null} [edition] EditionDefault edition
7325
+ * @property {string|null} [value] EditionDefault value
7326
+ */
7327
+
7328
+ /**
7329
+ * Constructs a new EditionDefault.
7330
+ * @memberof google.protobuf.FieldOptions
7331
+ * @classdesc Represents an EditionDefault.
7332
+ * @implements IEditionDefault
7333
+ * @constructor
7334
+ * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
7335
+ */
7336
+ function EditionDefault(properties) {
7337
+ if (properties)
7338
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7339
+ if (properties[keys[i]] != null)
7340
+ this[keys[i]] = properties[keys[i]];
7341
+ }
7342
+
7343
+ /**
7344
+ * EditionDefault edition.
7345
+ * @member {google.protobuf.Edition} edition
7346
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7347
+ * @instance
7348
+ */
7349
+ EditionDefault.prototype.edition = 0;
7350
+
7351
+ /**
7352
+ * EditionDefault value.
7353
+ * @member {string} value
7354
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7355
+ * @instance
7356
+ */
7357
+ EditionDefault.prototype.value = "";
7358
+
7359
+ /**
7360
+ * Creates a new EditionDefault instance using the specified properties.
7361
+ * @function create
7362
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7363
+ * @static
7364
+ * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
7365
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance
7366
+ */
7367
+ EditionDefault.create = function create(properties) {
7368
+ return new EditionDefault(properties);
7369
+ };
7370
+
7371
+ /**
7372
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
7373
+ * @function encode
7374
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7375
+ * @static
7376
+ * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
7377
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7378
+ * @returns {$protobuf.Writer} Writer
7379
+ */
7380
+ EditionDefault.encode = function encode(message, writer) {
7381
+ if (!writer)
7382
+ writer = $Writer.create();
7383
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
7384
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
7385
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
7386
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
7387
+ return writer;
7388
+ };
7389
+
7390
+ /**
7391
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
7392
+ * @function encodeDelimited
7393
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7394
+ * @static
7395
+ * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
7396
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7397
+ * @returns {$protobuf.Writer} Writer
7398
+ */
7399
+ EditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
7400
+ return this.encode(message, writer).ldelim();
7401
+ };
7402
+
7403
+ /**
7404
+ * Decodes an EditionDefault message from the specified reader or buffer.
7405
+ * @function decode
7406
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7407
+ * @static
7408
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7409
+ * @param {number} [length] Message length if known beforehand
7410
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
7411
+ * @throws {Error} If the payload is not a reader or valid buffer
7412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7413
+ */
7414
+ EditionDefault.decode = function decode(reader, length) {
7415
+ if (!(reader instanceof $Reader))
7416
+ reader = $Reader.create(reader);
7417
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
7418
+ while (reader.pos < end) {
7419
+ var tag = reader.uint32();
7420
+ switch (tag >>> 3) {
7421
+ case 3: {
7422
+ message.edition = reader.int32();
7423
+ break;
7424
+ }
7425
+ case 2: {
7426
+ message.value = reader.string();
7427
+ break;
7428
+ }
7429
+ default:
7430
+ reader.skipType(tag & 7);
7431
+ break;
7432
+ }
7433
+ }
7434
+ return message;
7435
+ };
7436
+
7437
+ /**
7438
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
7439
+ * @function decodeDelimited
7440
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7441
+ * @static
7442
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7443
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
7444
+ * @throws {Error} If the payload is not a reader or valid buffer
7445
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7446
+ */
7447
+ EditionDefault.decodeDelimited = function decodeDelimited(reader) {
7448
+ if (!(reader instanceof $Reader))
7449
+ reader = new $Reader(reader);
7450
+ return this.decode(reader, reader.uint32());
7451
+ };
7452
+
7453
+ /**
7454
+ * Verifies an EditionDefault message.
7455
+ * @function verify
7456
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7457
+ * @static
7458
+ * @param {Object.<string,*>} message Plain object to verify
7459
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7460
+ */
7461
+ EditionDefault.verify = function verify(message) {
7462
+ if (typeof message !== "object" || message === null)
7463
+ return "object expected";
7464
+ if (message.edition != null && message.hasOwnProperty("edition"))
7465
+ switch (message.edition) {
7466
+ default:
7467
+ return "edition: enum value expected";
7468
+ case 0:
7469
+ case 998:
7470
+ case 999:
7471
+ case 1000:
7472
+ case 1001:
7473
+ case 1:
7474
+ case 2:
7475
+ case 99997:
7476
+ case 99998:
7477
+ case 99999:
7478
+ case 2147483647:
7479
+ break;
7480
+ }
7481
+ if (message.value != null && message.hasOwnProperty("value"))
7482
+ if (!$util.isString(message.value))
7483
+ return "value: string expected";
7484
+ return null;
7485
+ };
7486
+
7487
+ /**
7488
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
7489
+ * @function fromObject
7490
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7491
+ * @static
7492
+ * @param {Object.<string,*>} object Plain object
7493
+ * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
7494
+ */
7495
+ EditionDefault.fromObject = function fromObject(object) {
7496
+ if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
7497
+ return object;
7498
+ var message = new $root.google.protobuf.FieldOptions.EditionDefault();
7499
+ switch (object.edition) {
7500
+ default:
7501
+ if (typeof object.edition === "number") {
7502
+ message.edition = object.edition;
7503
+ break;
7504
+ }
7505
+ break;
7506
+ case "EDITION_UNKNOWN":
7507
+ case 0:
7508
+ message.edition = 0;
7509
+ break;
7510
+ case "EDITION_PROTO2":
7511
+ case 998:
7512
+ message.edition = 998;
7513
+ break;
7514
+ case "EDITION_PROTO3":
7515
+ case 999:
7516
+ message.edition = 999;
7517
+ break;
7518
+ case "EDITION_2023":
7519
+ case 1000:
7520
+ message.edition = 1000;
7521
+ break;
7522
+ case "EDITION_2024":
7523
+ case 1001:
7524
+ message.edition = 1001;
7525
+ break;
7526
+ case "EDITION_1_TEST_ONLY":
7527
+ case 1:
7528
+ message.edition = 1;
7529
+ break;
7530
+ case "EDITION_2_TEST_ONLY":
7531
+ case 2:
7532
+ message.edition = 2;
7533
+ break;
7534
+ case "EDITION_99997_TEST_ONLY":
7535
+ case 99997:
7536
+ message.edition = 99997;
7537
+ break;
7538
+ case "EDITION_99998_TEST_ONLY":
7539
+ case 99998:
7540
+ message.edition = 99998;
7541
+ break;
7542
+ case "EDITION_99999_TEST_ONLY":
7543
+ case 99999:
7544
+ message.edition = 99999;
7545
+ break;
7546
+ case "EDITION_MAX":
7547
+ case 2147483647:
7548
+ message.edition = 2147483647;
7549
+ break;
7550
+ }
7551
+ if (object.value != null)
7552
+ message.value = String(object.value);
7553
+ return message;
7554
+ };
7555
+
7556
+ /**
7557
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
7558
+ * @function toObject
7559
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7560
+ * @static
7561
+ * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
7562
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
7563
+ * @returns {Object.<string,*>} Plain object
7564
+ */
7565
+ EditionDefault.toObject = function toObject(message, options) {
7566
+ if (!options)
7567
+ options = {};
7568
+ var object = {};
7569
+ if (options.defaults) {
7570
+ object.value = "";
7571
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
7572
+ }
7573
+ if (message.value != null && message.hasOwnProperty("value"))
7574
+ object.value = message.value;
7575
+ if (message.edition != null && message.hasOwnProperty("edition"))
7576
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
7577
+ return object;
7578
+ };
7579
+
7580
+ /**
7581
+ * Converts this EditionDefault to JSON.
7582
+ * @function toJSON
7583
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7584
+ * @instance
7585
+ * @returns {Object.<string,*>} JSON object
7586
+ */
7587
+ EditionDefault.prototype.toJSON = function toJSON() {
7588
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7589
+ };
7590
+
7591
+ /**
7592
+ * Gets the default type url for EditionDefault
7593
+ * @function getTypeUrl
7594
+ * @memberof google.protobuf.FieldOptions.EditionDefault
7595
+ * @static
7596
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7597
+ * @returns {string} The default type url
7598
+ */
7599
+ EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7600
+ if (typeUrlPrefix === undefined) {
7601
+ typeUrlPrefix = "type.googleapis.com";
7602
+ }
7603
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
7604
+ };
7605
+
7606
+ return EditionDefault;
7607
+ })();
7608
+
6664
7609
  return FieldOptions;
6665
7610
  })();
6666
7611
 
@@ -6670,6 +7615,7 @@
6670
7615
  * Properties of an OneofOptions.
6671
7616
  * @memberof google.protobuf
6672
7617
  * @interface IOneofOptions
7618
+ * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features
6673
7619
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] OneofOptions uninterpretedOption
6674
7620
  */
6675
7621
 
@@ -6689,6 +7635,14 @@
6689
7635
  this[keys[i]] = properties[keys[i]];
6690
7636
  }
6691
7637
 
7638
+ /**
7639
+ * OneofOptions features.
7640
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
7641
+ * @memberof google.protobuf.OneofOptions
7642
+ * @instance
7643
+ */
7644
+ OneofOptions.prototype.features = null;
7645
+
6692
7646
  /**
6693
7647
  * OneofOptions uninterpretedOption.
6694
7648
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -6721,6 +7675,8 @@
6721
7675
  OneofOptions.encode = function encode(message, writer) {
6722
7676
  if (!writer)
6723
7677
  writer = $Writer.create();
7678
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
7679
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
6724
7680
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6725
7681
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6726
7682
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -6758,6 +7714,10 @@
6758
7714
  while (reader.pos < end) {
6759
7715
  var tag = reader.uint32();
6760
7716
  switch (tag >>> 3) {
7717
+ case 1: {
7718
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
7719
+ break;
7720
+ }
6761
7721
  case 999: {
6762
7722
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
6763
7723
  message.uninterpretedOption = [];
@@ -6799,6 +7759,11 @@
6799
7759
  OneofOptions.verify = function verify(message) {
6800
7760
  if (typeof message !== "object" || message === null)
6801
7761
  return "object expected";
7762
+ if (message.features != null && message.hasOwnProperty("features")) {
7763
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
7764
+ if (error)
7765
+ return "features." + error;
7766
+ }
6802
7767
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
6803
7768
  if (!Array.isArray(message.uninterpretedOption))
6804
7769
  return "uninterpretedOption: array expected";
@@ -6823,6 +7788,11 @@
6823
7788
  if (object instanceof $root.google.protobuf.OneofOptions)
6824
7789
  return object;
6825
7790
  var message = new $root.google.protobuf.OneofOptions();
7791
+ if (object.features != null) {
7792
+ if (typeof object.features !== "object")
7793
+ throw TypeError(".google.protobuf.OneofOptions.features: object expected");
7794
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
7795
+ }
6826
7796
  if (object.uninterpretedOption) {
6827
7797
  if (!Array.isArray(object.uninterpretedOption))
6828
7798
  throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");
@@ -6851,6 +7821,10 @@
6851
7821
  var object = {};
6852
7822
  if (options.arrays || options.defaults)
6853
7823
  object.uninterpretedOption = [];
7824
+ if (options.defaults)
7825
+ object.features = null;
7826
+ if (message.features != null && message.hasOwnProperty("features"))
7827
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
6854
7828
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
6855
7829
  object.uninterpretedOption = [];
6856
7830
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -6897,6 +7871,7 @@
6897
7871
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
6898
7872
  * @property {boolean|null} [deprecated] EnumOptions deprecated
6899
7873
  * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
7874
+ * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features
6900
7875
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
6901
7876
  */
6902
7877
 
@@ -6940,6 +7915,14 @@
6940
7915
  */
6941
7916
  EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
6942
7917
 
7918
+ /**
7919
+ * EnumOptions features.
7920
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
7921
+ * @memberof google.protobuf.EnumOptions
7922
+ * @instance
7923
+ */
7924
+ EnumOptions.prototype.features = null;
7925
+
6943
7926
  /**
6944
7927
  * EnumOptions uninterpretedOption.
6945
7928
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -6978,6 +7961,8 @@
6978
7961
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
6979
7962
  if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
6980
7963
  writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
7964
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
7965
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
6981
7966
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6982
7967
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6983
7968
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -7027,6 +8012,10 @@
7027
8012
  message.deprecatedLegacyJsonFieldConflicts = reader.bool();
7028
8013
  break;
7029
8014
  }
8015
+ case 7: {
8016
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
8017
+ break;
8018
+ }
7030
8019
  case 999: {
7031
8020
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
7032
8021
  message.uninterpretedOption = [];
@@ -7077,6 +8066,11 @@
7077
8066
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
7078
8067
  if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
7079
8068
  return "deprecatedLegacyJsonFieldConflicts: boolean expected";
8069
+ if (message.features != null && message.hasOwnProperty("features")) {
8070
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
8071
+ if (error)
8072
+ return "features." + error;
8073
+ }
7080
8074
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
7081
8075
  if (!Array.isArray(message.uninterpretedOption))
7082
8076
  return "uninterpretedOption: array expected";
@@ -7107,6 +8101,11 @@
7107
8101
  message.deprecated = Boolean(object.deprecated);
7108
8102
  if (object.deprecatedLegacyJsonFieldConflicts != null)
7109
8103
  message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
8104
+ if (object.features != null) {
8105
+ if (typeof object.features !== "object")
8106
+ throw TypeError(".google.protobuf.EnumOptions.features: object expected");
8107
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
8108
+ }
7110
8109
  if (object.uninterpretedOption) {
7111
8110
  if (!Array.isArray(object.uninterpretedOption))
7112
8111
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -7139,6 +8138,7 @@
7139
8138
  object.allowAlias = false;
7140
8139
  object.deprecated = false;
7141
8140
  object.deprecatedLegacyJsonFieldConflicts = false;
8141
+ object.features = null;
7142
8142
  }
7143
8143
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
7144
8144
  object.allowAlias = message.allowAlias;
@@ -7146,6 +8146,8 @@
7146
8146
  object.deprecated = message.deprecated;
7147
8147
  if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
7148
8148
  object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
8149
+ if (message.features != null && message.hasOwnProperty("features"))
8150
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
7149
8151
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
7150
8152
  object.uninterpretedOption = [];
7151
8153
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -7190,6 +8192,8 @@
7190
8192
  * @memberof google.protobuf
7191
8193
  * @interface IEnumValueOptions
7192
8194
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
8195
+ * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
8196
+ * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
7193
8197
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
7194
8198
  */
7195
8199
 
@@ -7217,6 +8221,22 @@
7217
8221
  */
7218
8222
  EnumValueOptions.prototype.deprecated = false;
7219
8223
 
8224
+ /**
8225
+ * EnumValueOptions features.
8226
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
8227
+ * @memberof google.protobuf.EnumValueOptions
8228
+ * @instance
8229
+ */
8230
+ EnumValueOptions.prototype.features = null;
8231
+
8232
+ /**
8233
+ * EnumValueOptions debugRedact.
8234
+ * @member {boolean} debugRedact
8235
+ * @memberof google.protobuf.EnumValueOptions
8236
+ * @instance
8237
+ */
8238
+ EnumValueOptions.prototype.debugRedact = false;
8239
+
7220
8240
  /**
7221
8241
  * EnumValueOptions uninterpretedOption.
7222
8242
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -7251,6 +8271,10 @@
7251
8271
  writer = $Writer.create();
7252
8272
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
7253
8273
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated);
8274
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
8275
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8276
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
8277
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
7254
8278
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
7255
8279
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
7256
8280
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -7292,6 +8316,14 @@
7292
8316
  message.deprecated = reader.bool();
7293
8317
  break;
7294
8318
  }
8319
+ case 2: {
8320
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
8321
+ break;
8322
+ }
8323
+ case 3: {
8324
+ message.debugRedact = reader.bool();
8325
+ break;
8326
+ }
7295
8327
  case 999: {
7296
8328
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
7297
8329
  message.uninterpretedOption = [];
@@ -7336,6 +8368,14 @@
7336
8368
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
7337
8369
  if (typeof message.deprecated !== "boolean")
7338
8370
  return "deprecated: boolean expected";
8371
+ if (message.features != null && message.hasOwnProperty("features")) {
8372
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
8373
+ if (error)
8374
+ return "features." + error;
8375
+ }
8376
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
8377
+ if (typeof message.debugRedact !== "boolean")
8378
+ return "debugRedact: boolean expected";
7339
8379
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
7340
8380
  if (!Array.isArray(message.uninterpretedOption))
7341
8381
  return "uninterpretedOption: array expected";
@@ -7362,6 +8402,13 @@
7362
8402
  var message = new $root.google.protobuf.EnumValueOptions();
7363
8403
  if (object.deprecated != null)
7364
8404
  message.deprecated = Boolean(object.deprecated);
8405
+ if (object.features != null) {
8406
+ if (typeof object.features !== "object")
8407
+ throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");
8408
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
8409
+ }
8410
+ if (object.debugRedact != null)
8411
+ message.debugRedact = Boolean(object.debugRedact);
7365
8412
  if (object.uninterpretedOption) {
7366
8413
  if (!Array.isArray(object.uninterpretedOption))
7367
8414
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -7390,10 +8437,17 @@
7390
8437
  var object = {};
7391
8438
  if (options.arrays || options.defaults)
7392
8439
  object.uninterpretedOption = [];
7393
- if (options.defaults)
8440
+ if (options.defaults) {
7394
8441
  object.deprecated = false;
8442
+ object.features = null;
8443
+ object.debugRedact = false;
8444
+ }
7395
8445
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
7396
8446
  object.deprecated = message.deprecated;
8447
+ if (message.features != null && message.hasOwnProperty("features"))
8448
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
8449
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
8450
+ object.debugRedact = message.debugRedact;
7397
8451
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
7398
8452
  object.uninterpretedOption = [];
7399
8453
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -7437,6 +8491,7 @@
7437
8491
  * Properties of a ServiceOptions.
7438
8492
  * @memberof google.protobuf
7439
8493
  * @interface IServiceOptions
8494
+ * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features
7440
8495
  * @property {boolean|null} [deprecated] ServiceOptions deprecated
7441
8496
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
7442
8497
  * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
@@ -7459,6 +8514,14 @@
7459
8514
  this[keys[i]] = properties[keys[i]];
7460
8515
  }
7461
8516
 
8517
+ /**
8518
+ * ServiceOptions features.
8519
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
8520
+ * @memberof google.protobuf.ServiceOptions
8521
+ * @instance
8522
+ */
8523
+ ServiceOptions.prototype.features = null;
8524
+
7462
8525
  /**
7463
8526
  * ServiceOptions deprecated.
7464
8527
  * @member {boolean} deprecated
@@ -7517,6 +8580,8 @@
7517
8580
  writer = $Writer.create();
7518
8581
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
7519
8582
  writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
8583
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
8584
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
7520
8585
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
7521
8586
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
7522
8587
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -7558,6 +8623,10 @@
7558
8623
  while (reader.pos < end) {
7559
8624
  var tag = reader.uint32();
7560
8625
  switch (tag >>> 3) {
8626
+ case 34: {
8627
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
8628
+ break;
8629
+ }
7561
8630
  case 33: {
7562
8631
  message.deprecated = reader.bool();
7563
8632
  break;
@@ -7611,6 +8680,11 @@
7611
8680
  ServiceOptions.verify = function verify(message) {
7612
8681
  if (typeof message !== "object" || message === null)
7613
8682
  return "object expected";
8683
+ if (message.features != null && message.hasOwnProperty("features")) {
8684
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
8685
+ if (error)
8686
+ return "features." + error;
8687
+ }
7614
8688
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
7615
8689
  if (typeof message.deprecated !== "boolean")
7616
8690
  return "deprecated: boolean expected";
@@ -7644,6 +8718,11 @@
7644
8718
  if (object instanceof $root.google.protobuf.ServiceOptions)
7645
8719
  return object;
7646
8720
  var message = new $root.google.protobuf.ServiceOptions();
8721
+ if (object.features != null) {
8722
+ if (typeof object.features !== "object")
8723
+ throw TypeError(".google.protobuf.ServiceOptions.features: object expected");
8724
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
8725
+ }
7647
8726
  if (object.deprecated != null)
7648
8727
  message.deprecated = Boolean(object.deprecated);
7649
8728
  if (object.uninterpretedOption) {
@@ -7680,11 +8759,14 @@
7680
8759
  object.uninterpretedOption = [];
7681
8760
  if (options.defaults) {
7682
8761
  object.deprecated = false;
8762
+ object.features = null;
7683
8763
  object[".google.api.defaultHost"] = "";
7684
8764
  object[".google.api.oauthScopes"] = "";
7685
8765
  }
7686
8766
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
7687
8767
  object.deprecated = message.deprecated;
8768
+ if (message.features != null && message.hasOwnProperty("features"))
8769
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
7688
8770
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
7689
8771
  object.uninterpretedOption = [];
7690
8772
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -7734,6 +8816,7 @@
7734
8816
  * @interface IMethodOptions
7735
8817
  * @property {boolean|null} [deprecated] MethodOptions deprecated
7736
8818
  * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
8819
+ * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features
7737
8820
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption
7738
8821
  * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http
7739
8822
  * @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
@@ -7773,6 +8856,14 @@
7773
8856
  */
7774
8857
  MethodOptions.prototype.idempotencyLevel = 0;
7775
8858
 
8859
+ /**
8860
+ * MethodOptions features.
8861
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
8862
+ * @memberof google.protobuf.MethodOptions
8863
+ * @instance
8864
+ */
8865
+ MethodOptions.prototype.features = null;
8866
+
7776
8867
  /**
7777
8868
  * MethodOptions uninterpretedOption.
7778
8869
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -7833,6 +8924,8 @@
7833
8924
  writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
7834
8925
  if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel"))
7835
8926
  writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel);
8927
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
8928
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
7836
8929
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
7837
8930
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
7838
8931
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -7885,6 +8978,10 @@
7885
8978
  message.idempotencyLevel = reader.int32();
7886
8979
  break;
7887
8980
  }
8981
+ case 35: {
8982
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
8983
+ break;
8984
+ }
7888
8985
  case 999: {
7889
8986
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
7890
8987
  message.uninterpretedOption = [];
@@ -7952,6 +9049,11 @@
7952
9049
  case 2:
7953
9050
  break;
7954
9051
  }
9052
+ if (message.features != null && message.hasOwnProperty("features")) {
9053
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
9054
+ if (error)
9055
+ return "features." + error;
9056
+ }
7955
9057
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
7956
9058
  if (!Array.isArray(message.uninterpretedOption))
7957
9059
  return "uninterpretedOption: array expected";
@@ -8015,6 +9117,11 @@
8015
9117
  message.idempotencyLevel = 2;
8016
9118
  break;
8017
9119
  }
9120
+ if (object.features != null) {
9121
+ if (typeof object.features !== "object")
9122
+ throw TypeError(".google.protobuf.MethodOptions.features: object expected");
9123
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
9124
+ }
8018
9125
  if (object.uninterpretedOption) {
8019
9126
  if (!Array.isArray(object.uninterpretedOption))
8020
9127
  throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");
@@ -8065,6 +9172,7 @@
8065
9172
  if (options.defaults) {
8066
9173
  object.deprecated = false;
8067
9174
  object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0;
9175
+ object.features = null;
8068
9176
  object[".google.longrunning.operationInfo"] = null;
8069
9177
  object[".google.api.http"] = null;
8070
9178
  }
@@ -8072,6 +9180,8 @@
8072
9180
  object.deprecated = message.deprecated;
8073
9181
  if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel"))
8074
9182
  object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel;
9183
+ if (message.features != null && message.hasOwnProperty("features"))
9184
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
8075
9185
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
8076
9186
  object.uninterpretedOption = [];
8077
9187
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -8762,6 +9872,1268 @@
8762
9872
  return UninterpretedOption;
8763
9873
  })();
8764
9874
 
9875
+ protobuf.FeatureSet = (function() {
9876
+
9877
+ /**
9878
+ * Properties of a FeatureSet.
9879
+ * @memberof google.protobuf
9880
+ * @interface IFeatureSet
9881
+ * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
9882
+ * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
9883
+ * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
9884
+ * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
9885
+ * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
9886
+ * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
9887
+ */
9888
+
9889
+ /**
9890
+ * Constructs a new FeatureSet.
9891
+ * @memberof google.protobuf
9892
+ * @classdesc Represents a FeatureSet.
9893
+ * @implements IFeatureSet
9894
+ * @constructor
9895
+ * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
9896
+ */
9897
+ function FeatureSet(properties) {
9898
+ if (properties)
9899
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9900
+ if (properties[keys[i]] != null)
9901
+ this[keys[i]] = properties[keys[i]];
9902
+ }
9903
+
9904
+ /**
9905
+ * FeatureSet fieldPresence.
9906
+ * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence
9907
+ * @memberof google.protobuf.FeatureSet
9908
+ * @instance
9909
+ */
9910
+ FeatureSet.prototype.fieldPresence = 0;
9911
+
9912
+ /**
9913
+ * FeatureSet enumType.
9914
+ * @member {google.protobuf.FeatureSet.EnumType} enumType
9915
+ * @memberof google.protobuf.FeatureSet
9916
+ * @instance
9917
+ */
9918
+ FeatureSet.prototype.enumType = 0;
9919
+
9920
+ /**
9921
+ * FeatureSet repeatedFieldEncoding.
9922
+ * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding
9923
+ * @memberof google.protobuf.FeatureSet
9924
+ * @instance
9925
+ */
9926
+ FeatureSet.prototype.repeatedFieldEncoding = 0;
9927
+
9928
+ /**
9929
+ * FeatureSet utf8Validation.
9930
+ * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation
9931
+ * @memberof google.protobuf.FeatureSet
9932
+ * @instance
9933
+ */
9934
+ FeatureSet.prototype.utf8Validation = 0;
9935
+
9936
+ /**
9937
+ * FeatureSet messageEncoding.
9938
+ * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding
9939
+ * @memberof google.protobuf.FeatureSet
9940
+ * @instance
9941
+ */
9942
+ FeatureSet.prototype.messageEncoding = 0;
9943
+
9944
+ /**
9945
+ * FeatureSet jsonFormat.
9946
+ * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat
9947
+ * @memberof google.protobuf.FeatureSet
9948
+ * @instance
9949
+ */
9950
+ FeatureSet.prototype.jsonFormat = 0;
9951
+
9952
+ /**
9953
+ * Creates a new FeatureSet instance using the specified properties.
9954
+ * @function create
9955
+ * @memberof google.protobuf.FeatureSet
9956
+ * @static
9957
+ * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
9958
+ * @returns {google.protobuf.FeatureSet} FeatureSet instance
9959
+ */
9960
+ FeatureSet.create = function create(properties) {
9961
+ return new FeatureSet(properties);
9962
+ };
9963
+
9964
+ /**
9965
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
9966
+ * @function encode
9967
+ * @memberof google.protobuf.FeatureSet
9968
+ * @static
9969
+ * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
9970
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9971
+ * @returns {$protobuf.Writer} Writer
9972
+ */
9973
+ FeatureSet.encode = function encode(message, writer) {
9974
+ if (!writer)
9975
+ writer = $Writer.create();
9976
+ if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence"))
9977
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence);
9978
+ if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType"))
9979
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
9980
+ if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
9981
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
9982
+ if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation"))
9983
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation);
9984
+ if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
9985
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
9986
+ if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
9987
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
9988
+ return writer;
9989
+ };
9990
+
9991
+ /**
9992
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
9993
+ * @function encodeDelimited
9994
+ * @memberof google.protobuf.FeatureSet
9995
+ * @static
9996
+ * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
9997
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9998
+ * @returns {$protobuf.Writer} Writer
9999
+ */
10000
+ FeatureSet.encodeDelimited = function encodeDelimited(message, writer) {
10001
+ return this.encode(message, writer).ldelim();
10002
+ };
10003
+
10004
+ /**
10005
+ * Decodes a FeatureSet message from the specified reader or buffer.
10006
+ * @function decode
10007
+ * @memberof google.protobuf.FeatureSet
10008
+ * @static
10009
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10010
+ * @param {number} [length] Message length if known beforehand
10011
+ * @returns {google.protobuf.FeatureSet} FeatureSet
10012
+ * @throws {Error} If the payload is not a reader or valid buffer
10013
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10014
+ */
10015
+ FeatureSet.decode = function decode(reader, length) {
10016
+ if (!(reader instanceof $Reader))
10017
+ reader = $Reader.create(reader);
10018
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet();
10019
+ while (reader.pos < end) {
10020
+ var tag = reader.uint32();
10021
+ switch (tag >>> 3) {
10022
+ case 1: {
10023
+ message.fieldPresence = reader.int32();
10024
+ break;
10025
+ }
10026
+ case 2: {
10027
+ message.enumType = reader.int32();
10028
+ break;
10029
+ }
10030
+ case 3: {
10031
+ message.repeatedFieldEncoding = reader.int32();
10032
+ break;
10033
+ }
10034
+ case 4: {
10035
+ message.utf8Validation = reader.int32();
10036
+ break;
10037
+ }
10038
+ case 5: {
10039
+ message.messageEncoding = reader.int32();
10040
+ break;
10041
+ }
10042
+ case 6: {
10043
+ message.jsonFormat = reader.int32();
10044
+ break;
10045
+ }
10046
+ default:
10047
+ reader.skipType(tag & 7);
10048
+ break;
10049
+ }
10050
+ }
10051
+ return message;
10052
+ };
10053
+
10054
+ /**
10055
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
10056
+ * @function decodeDelimited
10057
+ * @memberof google.protobuf.FeatureSet
10058
+ * @static
10059
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10060
+ * @returns {google.protobuf.FeatureSet} FeatureSet
10061
+ * @throws {Error} If the payload is not a reader or valid buffer
10062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10063
+ */
10064
+ FeatureSet.decodeDelimited = function decodeDelimited(reader) {
10065
+ if (!(reader instanceof $Reader))
10066
+ reader = new $Reader(reader);
10067
+ return this.decode(reader, reader.uint32());
10068
+ };
10069
+
10070
+ /**
10071
+ * Verifies a FeatureSet message.
10072
+ * @function verify
10073
+ * @memberof google.protobuf.FeatureSet
10074
+ * @static
10075
+ * @param {Object.<string,*>} message Plain object to verify
10076
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10077
+ */
10078
+ FeatureSet.verify = function verify(message) {
10079
+ if (typeof message !== "object" || message === null)
10080
+ return "object expected";
10081
+ if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
10082
+ switch (message.fieldPresence) {
10083
+ default:
10084
+ return "fieldPresence: enum value expected";
10085
+ case 0:
10086
+ case 1:
10087
+ case 2:
10088
+ case 3:
10089
+ break;
10090
+ }
10091
+ if (message.enumType != null && message.hasOwnProperty("enumType"))
10092
+ switch (message.enumType) {
10093
+ default:
10094
+ return "enumType: enum value expected";
10095
+ case 0:
10096
+ case 1:
10097
+ case 2:
10098
+ break;
10099
+ }
10100
+ if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
10101
+ switch (message.repeatedFieldEncoding) {
10102
+ default:
10103
+ return "repeatedFieldEncoding: enum value expected";
10104
+ case 0:
10105
+ case 1:
10106
+ case 2:
10107
+ break;
10108
+ }
10109
+ if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
10110
+ switch (message.utf8Validation) {
10111
+ default:
10112
+ return "utf8Validation: enum value expected";
10113
+ case 0:
10114
+ case 2:
10115
+ case 3:
10116
+ break;
10117
+ }
10118
+ if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
10119
+ switch (message.messageEncoding) {
10120
+ default:
10121
+ return "messageEncoding: enum value expected";
10122
+ case 0:
10123
+ case 1:
10124
+ case 2:
10125
+ break;
10126
+ }
10127
+ if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
10128
+ switch (message.jsonFormat) {
10129
+ default:
10130
+ return "jsonFormat: enum value expected";
10131
+ case 0:
10132
+ case 1:
10133
+ case 2:
10134
+ break;
10135
+ }
10136
+ return null;
10137
+ };
10138
+
10139
+ /**
10140
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
10141
+ * @function fromObject
10142
+ * @memberof google.protobuf.FeatureSet
10143
+ * @static
10144
+ * @param {Object.<string,*>} object Plain object
10145
+ * @returns {google.protobuf.FeatureSet} FeatureSet
10146
+ */
10147
+ FeatureSet.fromObject = function fromObject(object) {
10148
+ if (object instanceof $root.google.protobuf.FeatureSet)
10149
+ return object;
10150
+ var message = new $root.google.protobuf.FeatureSet();
10151
+ switch (object.fieldPresence) {
10152
+ default:
10153
+ if (typeof object.fieldPresence === "number") {
10154
+ message.fieldPresence = object.fieldPresence;
10155
+ break;
10156
+ }
10157
+ break;
10158
+ case "FIELD_PRESENCE_UNKNOWN":
10159
+ case 0:
10160
+ message.fieldPresence = 0;
10161
+ break;
10162
+ case "EXPLICIT":
10163
+ case 1:
10164
+ message.fieldPresence = 1;
10165
+ break;
10166
+ case "IMPLICIT":
10167
+ case 2:
10168
+ message.fieldPresence = 2;
10169
+ break;
10170
+ case "LEGACY_REQUIRED":
10171
+ case 3:
10172
+ message.fieldPresence = 3;
10173
+ break;
10174
+ }
10175
+ switch (object.enumType) {
10176
+ default:
10177
+ if (typeof object.enumType === "number") {
10178
+ message.enumType = object.enumType;
10179
+ break;
10180
+ }
10181
+ break;
10182
+ case "ENUM_TYPE_UNKNOWN":
10183
+ case 0:
10184
+ message.enumType = 0;
10185
+ break;
10186
+ case "OPEN":
10187
+ case 1:
10188
+ message.enumType = 1;
10189
+ break;
10190
+ case "CLOSED":
10191
+ case 2:
10192
+ message.enumType = 2;
10193
+ break;
10194
+ }
10195
+ switch (object.repeatedFieldEncoding) {
10196
+ default:
10197
+ if (typeof object.repeatedFieldEncoding === "number") {
10198
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding;
10199
+ break;
10200
+ }
10201
+ break;
10202
+ case "REPEATED_FIELD_ENCODING_UNKNOWN":
10203
+ case 0:
10204
+ message.repeatedFieldEncoding = 0;
10205
+ break;
10206
+ case "PACKED":
10207
+ case 1:
10208
+ message.repeatedFieldEncoding = 1;
10209
+ break;
10210
+ case "EXPANDED":
10211
+ case 2:
10212
+ message.repeatedFieldEncoding = 2;
10213
+ break;
10214
+ }
10215
+ switch (object.utf8Validation) {
10216
+ default:
10217
+ if (typeof object.utf8Validation === "number") {
10218
+ message.utf8Validation = object.utf8Validation;
10219
+ break;
10220
+ }
10221
+ break;
10222
+ case "UTF8_VALIDATION_UNKNOWN":
10223
+ case 0:
10224
+ message.utf8Validation = 0;
10225
+ break;
10226
+ case "VERIFY":
10227
+ case 2:
10228
+ message.utf8Validation = 2;
10229
+ break;
10230
+ case "NONE":
10231
+ case 3:
10232
+ message.utf8Validation = 3;
10233
+ break;
10234
+ }
10235
+ switch (object.messageEncoding) {
10236
+ default:
10237
+ if (typeof object.messageEncoding === "number") {
10238
+ message.messageEncoding = object.messageEncoding;
10239
+ break;
10240
+ }
10241
+ break;
10242
+ case "MESSAGE_ENCODING_UNKNOWN":
10243
+ case 0:
10244
+ message.messageEncoding = 0;
10245
+ break;
10246
+ case "LENGTH_PREFIXED":
10247
+ case 1:
10248
+ message.messageEncoding = 1;
10249
+ break;
10250
+ case "DELIMITED":
10251
+ case 2:
10252
+ message.messageEncoding = 2;
10253
+ break;
10254
+ }
10255
+ switch (object.jsonFormat) {
10256
+ default:
10257
+ if (typeof object.jsonFormat === "number") {
10258
+ message.jsonFormat = object.jsonFormat;
10259
+ break;
10260
+ }
10261
+ break;
10262
+ case "JSON_FORMAT_UNKNOWN":
10263
+ case 0:
10264
+ message.jsonFormat = 0;
10265
+ break;
10266
+ case "ALLOW":
10267
+ case 1:
10268
+ message.jsonFormat = 1;
10269
+ break;
10270
+ case "LEGACY_BEST_EFFORT":
10271
+ case 2:
10272
+ message.jsonFormat = 2;
10273
+ break;
10274
+ }
10275
+ return message;
10276
+ };
10277
+
10278
+ /**
10279
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
10280
+ * @function toObject
10281
+ * @memberof google.protobuf.FeatureSet
10282
+ * @static
10283
+ * @param {google.protobuf.FeatureSet} message FeatureSet
10284
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10285
+ * @returns {Object.<string,*>} Plain object
10286
+ */
10287
+ FeatureSet.toObject = function toObject(message, options) {
10288
+ if (!options)
10289
+ options = {};
10290
+ var object = {};
10291
+ if (options.defaults) {
10292
+ object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
10293
+ object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
10294
+ object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
10295
+ object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
10296
+ object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
10297
+ object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
10298
+ }
10299
+ if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
10300
+ object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
10301
+ if (message.enumType != null && message.hasOwnProperty("enumType"))
10302
+ object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
10303
+ if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
10304
+ object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
10305
+ if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
10306
+ object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation;
10307
+ if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
10308
+ object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
10309
+ if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
10310
+ object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
10311
+ return object;
10312
+ };
10313
+
10314
+ /**
10315
+ * Converts this FeatureSet to JSON.
10316
+ * @function toJSON
10317
+ * @memberof google.protobuf.FeatureSet
10318
+ * @instance
10319
+ * @returns {Object.<string,*>} JSON object
10320
+ */
10321
+ FeatureSet.prototype.toJSON = function toJSON() {
10322
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10323
+ };
10324
+
10325
+ /**
10326
+ * Gets the default type url for FeatureSet
10327
+ * @function getTypeUrl
10328
+ * @memberof google.protobuf.FeatureSet
10329
+ * @static
10330
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10331
+ * @returns {string} The default type url
10332
+ */
10333
+ FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10334
+ if (typeUrlPrefix === undefined) {
10335
+ typeUrlPrefix = "type.googleapis.com";
10336
+ }
10337
+ return typeUrlPrefix + "/google.protobuf.FeatureSet";
10338
+ };
10339
+
10340
+ /**
10341
+ * FieldPresence enum.
10342
+ * @name google.protobuf.FeatureSet.FieldPresence
10343
+ * @enum {number}
10344
+ * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value
10345
+ * @property {number} EXPLICIT=1 EXPLICIT value
10346
+ * @property {number} IMPLICIT=2 IMPLICIT value
10347
+ * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value
10348
+ */
10349
+ FeatureSet.FieldPresence = (function() {
10350
+ var valuesById = {}, values = Object.create(valuesById);
10351
+ values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0;
10352
+ values[valuesById[1] = "EXPLICIT"] = 1;
10353
+ values[valuesById[2] = "IMPLICIT"] = 2;
10354
+ values[valuesById[3] = "LEGACY_REQUIRED"] = 3;
10355
+ return values;
10356
+ })();
10357
+
10358
+ /**
10359
+ * EnumType enum.
10360
+ * @name google.protobuf.FeatureSet.EnumType
10361
+ * @enum {number}
10362
+ * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value
10363
+ * @property {number} OPEN=1 OPEN value
10364
+ * @property {number} CLOSED=2 CLOSED value
10365
+ */
10366
+ FeatureSet.EnumType = (function() {
10367
+ var valuesById = {}, values = Object.create(valuesById);
10368
+ values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0;
10369
+ values[valuesById[1] = "OPEN"] = 1;
10370
+ values[valuesById[2] = "CLOSED"] = 2;
10371
+ return values;
10372
+ })();
10373
+
10374
+ /**
10375
+ * RepeatedFieldEncoding enum.
10376
+ * @name google.protobuf.FeatureSet.RepeatedFieldEncoding
10377
+ * @enum {number}
10378
+ * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value
10379
+ * @property {number} PACKED=1 PACKED value
10380
+ * @property {number} EXPANDED=2 EXPANDED value
10381
+ */
10382
+ FeatureSet.RepeatedFieldEncoding = (function() {
10383
+ var valuesById = {}, values = Object.create(valuesById);
10384
+ values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0;
10385
+ values[valuesById[1] = "PACKED"] = 1;
10386
+ values[valuesById[2] = "EXPANDED"] = 2;
10387
+ return values;
10388
+ })();
10389
+
10390
+ /**
10391
+ * Utf8Validation enum.
10392
+ * @name google.protobuf.FeatureSet.Utf8Validation
10393
+ * @enum {number}
10394
+ * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value
10395
+ * @property {number} VERIFY=2 VERIFY value
10396
+ * @property {number} NONE=3 NONE value
10397
+ */
10398
+ FeatureSet.Utf8Validation = (function() {
10399
+ var valuesById = {}, values = Object.create(valuesById);
10400
+ values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0;
10401
+ values[valuesById[2] = "VERIFY"] = 2;
10402
+ values[valuesById[3] = "NONE"] = 3;
10403
+ return values;
10404
+ })();
10405
+
10406
+ /**
10407
+ * MessageEncoding enum.
10408
+ * @name google.protobuf.FeatureSet.MessageEncoding
10409
+ * @enum {number}
10410
+ * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value
10411
+ * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value
10412
+ * @property {number} DELIMITED=2 DELIMITED value
10413
+ */
10414
+ FeatureSet.MessageEncoding = (function() {
10415
+ var valuesById = {}, values = Object.create(valuesById);
10416
+ values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0;
10417
+ values[valuesById[1] = "LENGTH_PREFIXED"] = 1;
10418
+ values[valuesById[2] = "DELIMITED"] = 2;
10419
+ return values;
10420
+ })();
10421
+
10422
+ /**
10423
+ * JsonFormat enum.
10424
+ * @name google.protobuf.FeatureSet.JsonFormat
10425
+ * @enum {number}
10426
+ * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value
10427
+ * @property {number} ALLOW=1 ALLOW value
10428
+ * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value
10429
+ */
10430
+ FeatureSet.JsonFormat = (function() {
10431
+ var valuesById = {}, values = Object.create(valuesById);
10432
+ values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0;
10433
+ values[valuesById[1] = "ALLOW"] = 1;
10434
+ values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2;
10435
+ return values;
10436
+ })();
10437
+
10438
+ return FeatureSet;
10439
+ })();
10440
+
10441
+ protobuf.FeatureSetDefaults = (function() {
10442
+
10443
+ /**
10444
+ * Properties of a FeatureSetDefaults.
10445
+ * @memberof google.protobuf
10446
+ * @interface IFeatureSetDefaults
10447
+ * @property {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>|null} [defaults] FeatureSetDefaults defaults
10448
+ * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition
10449
+ * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition
10450
+ */
10451
+
10452
+ /**
10453
+ * Constructs a new FeatureSetDefaults.
10454
+ * @memberof google.protobuf
10455
+ * @classdesc Represents a FeatureSetDefaults.
10456
+ * @implements IFeatureSetDefaults
10457
+ * @constructor
10458
+ * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
10459
+ */
10460
+ function FeatureSetDefaults(properties) {
10461
+ this.defaults = [];
10462
+ if (properties)
10463
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10464
+ if (properties[keys[i]] != null)
10465
+ this[keys[i]] = properties[keys[i]];
10466
+ }
10467
+
10468
+ /**
10469
+ * FeatureSetDefaults defaults.
10470
+ * @member {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>} defaults
10471
+ * @memberof google.protobuf.FeatureSetDefaults
10472
+ * @instance
10473
+ */
10474
+ FeatureSetDefaults.prototype.defaults = $util.emptyArray;
10475
+
10476
+ /**
10477
+ * FeatureSetDefaults minimumEdition.
10478
+ * @member {google.protobuf.Edition} minimumEdition
10479
+ * @memberof google.protobuf.FeatureSetDefaults
10480
+ * @instance
10481
+ */
10482
+ FeatureSetDefaults.prototype.minimumEdition = 0;
10483
+
10484
+ /**
10485
+ * FeatureSetDefaults maximumEdition.
10486
+ * @member {google.protobuf.Edition} maximumEdition
10487
+ * @memberof google.protobuf.FeatureSetDefaults
10488
+ * @instance
10489
+ */
10490
+ FeatureSetDefaults.prototype.maximumEdition = 0;
10491
+
10492
+ /**
10493
+ * Creates a new FeatureSetDefaults instance using the specified properties.
10494
+ * @function create
10495
+ * @memberof google.protobuf.FeatureSetDefaults
10496
+ * @static
10497
+ * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
10498
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance
10499
+ */
10500
+ FeatureSetDefaults.create = function create(properties) {
10501
+ return new FeatureSetDefaults(properties);
10502
+ };
10503
+
10504
+ /**
10505
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
10506
+ * @function encode
10507
+ * @memberof google.protobuf.FeatureSetDefaults
10508
+ * @static
10509
+ * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
10510
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10511
+ * @returns {$protobuf.Writer} Writer
10512
+ */
10513
+ FeatureSetDefaults.encode = function encode(message, writer) {
10514
+ if (!writer)
10515
+ writer = $Writer.create();
10516
+ if (message.defaults != null && message.defaults.length)
10517
+ for (var i = 0; i < message.defaults.length; ++i)
10518
+ $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
10519
+ if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition"))
10520
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition);
10521
+ if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition"))
10522
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition);
10523
+ return writer;
10524
+ };
10525
+
10526
+ /**
10527
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
10528
+ * @function encodeDelimited
10529
+ * @memberof google.protobuf.FeatureSetDefaults
10530
+ * @static
10531
+ * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
10532
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10533
+ * @returns {$protobuf.Writer} Writer
10534
+ */
10535
+ FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) {
10536
+ return this.encode(message, writer).ldelim();
10537
+ };
10538
+
10539
+ /**
10540
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
10541
+ * @function decode
10542
+ * @memberof google.protobuf.FeatureSetDefaults
10543
+ * @static
10544
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10545
+ * @param {number} [length] Message length if known beforehand
10546
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
10547
+ * @throws {Error} If the payload is not a reader or valid buffer
10548
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10549
+ */
10550
+ FeatureSetDefaults.decode = function decode(reader, length) {
10551
+ if (!(reader instanceof $Reader))
10552
+ reader = $Reader.create(reader);
10553
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
10554
+ while (reader.pos < end) {
10555
+ var tag = reader.uint32();
10556
+ switch (tag >>> 3) {
10557
+ case 1: {
10558
+ if (!(message.defaults && message.defaults.length))
10559
+ message.defaults = [];
10560
+ message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32()));
10561
+ break;
10562
+ }
10563
+ case 4: {
10564
+ message.minimumEdition = reader.int32();
10565
+ break;
10566
+ }
10567
+ case 5: {
10568
+ message.maximumEdition = reader.int32();
10569
+ break;
10570
+ }
10571
+ default:
10572
+ reader.skipType(tag & 7);
10573
+ break;
10574
+ }
10575
+ }
10576
+ return message;
10577
+ };
10578
+
10579
+ /**
10580
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
10581
+ * @function decodeDelimited
10582
+ * @memberof google.protobuf.FeatureSetDefaults
10583
+ * @static
10584
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10585
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
10586
+ * @throws {Error} If the payload is not a reader or valid buffer
10587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10588
+ */
10589
+ FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) {
10590
+ if (!(reader instanceof $Reader))
10591
+ reader = new $Reader(reader);
10592
+ return this.decode(reader, reader.uint32());
10593
+ };
10594
+
10595
+ /**
10596
+ * Verifies a FeatureSetDefaults message.
10597
+ * @function verify
10598
+ * @memberof google.protobuf.FeatureSetDefaults
10599
+ * @static
10600
+ * @param {Object.<string,*>} message Plain object to verify
10601
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10602
+ */
10603
+ FeatureSetDefaults.verify = function verify(message) {
10604
+ if (typeof message !== "object" || message === null)
10605
+ return "object expected";
10606
+ if (message.defaults != null && message.hasOwnProperty("defaults")) {
10607
+ if (!Array.isArray(message.defaults))
10608
+ return "defaults: array expected";
10609
+ for (var i = 0; i < message.defaults.length; ++i) {
10610
+ var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]);
10611
+ if (error)
10612
+ return "defaults." + error;
10613
+ }
10614
+ }
10615
+ if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
10616
+ switch (message.minimumEdition) {
10617
+ default:
10618
+ return "minimumEdition: enum value expected";
10619
+ case 0:
10620
+ case 998:
10621
+ case 999:
10622
+ case 1000:
10623
+ case 1001:
10624
+ case 1:
10625
+ case 2:
10626
+ case 99997:
10627
+ case 99998:
10628
+ case 99999:
10629
+ case 2147483647:
10630
+ break;
10631
+ }
10632
+ if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
10633
+ switch (message.maximumEdition) {
10634
+ default:
10635
+ return "maximumEdition: enum value expected";
10636
+ case 0:
10637
+ case 998:
10638
+ case 999:
10639
+ case 1000:
10640
+ case 1001:
10641
+ case 1:
10642
+ case 2:
10643
+ case 99997:
10644
+ case 99998:
10645
+ case 99999:
10646
+ case 2147483647:
10647
+ break;
10648
+ }
10649
+ return null;
10650
+ };
10651
+
10652
+ /**
10653
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
10654
+ * @function fromObject
10655
+ * @memberof google.protobuf.FeatureSetDefaults
10656
+ * @static
10657
+ * @param {Object.<string,*>} object Plain object
10658
+ * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
10659
+ */
10660
+ FeatureSetDefaults.fromObject = function fromObject(object) {
10661
+ if (object instanceof $root.google.protobuf.FeatureSetDefaults)
10662
+ return object;
10663
+ var message = new $root.google.protobuf.FeatureSetDefaults();
10664
+ if (object.defaults) {
10665
+ if (!Array.isArray(object.defaults))
10666
+ throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");
10667
+ message.defaults = [];
10668
+ for (var i = 0; i < object.defaults.length; ++i) {
10669
+ if (typeof object.defaults[i] !== "object")
10670
+ throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");
10671
+ message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]);
10672
+ }
10673
+ }
10674
+ switch (object.minimumEdition) {
10675
+ default:
10676
+ if (typeof object.minimumEdition === "number") {
10677
+ message.minimumEdition = object.minimumEdition;
10678
+ break;
10679
+ }
10680
+ break;
10681
+ case "EDITION_UNKNOWN":
10682
+ case 0:
10683
+ message.minimumEdition = 0;
10684
+ break;
10685
+ case "EDITION_PROTO2":
10686
+ case 998:
10687
+ message.minimumEdition = 998;
10688
+ break;
10689
+ case "EDITION_PROTO3":
10690
+ case 999:
10691
+ message.minimumEdition = 999;
10692
+ break;
10693
+ case "EDITION_2023":
10694
+ case 1000:
10695
+ message.minimumEdition = 1000;
10696
+ break;
10697
+ case "EDITION_2024":
10698
+ case 1001:
10699
+ message.minimumEdition = 1001;
10700
+ break;
10701
+ case "EDITION_1_TEST_ONLY":
10702
+ case 1:
10703
+ message.minimumEdition = 1;
10704
+ break;
10705
+ case "EDITION_2_TEST_ONLY":
10706
+ case 2:
10707
+ message.minimumEdition = 2;
10708
+ break;
10709
+ case "EDITION_99997_TEST_ONLY":
10710
+ case 99997:
10711
+ message.minimumEdition = 99997;
10712
+ break;
10713
+ case "EDITION_99998_TEST_ONLY":
10714
+ case 99998:
10715
+ message.minimumEdition = 99998;
10716
+ break;
10717
+ case "EDITION_99999_TEST_ONLY":
10718
+ case 99999:
10719
+ message.minimumEdition = 99999;
10720
+ break;
10721
+ case "EDITION_MAX":
10722
+ case 2147483647:
10723
+ message.minimumEdition = 2147483647;
10724
+ break;
10725
+ }
10726
+ switch (object.maximumEdition) {
10727
+ default:
10728
+ if (typeof object.maximumEdition === "number") {
10729
+ message.maximumEdition = object.maximumEdition;
10730
+ break;
10731
+ }
10732
+ break;
10733
+ case "EDITION_UNKNOWN":
10734
+ case 0:
10735
+ message.maximumEdition = 0;
10736
+ break;
10737
+ case "EDITION_PROTO2":
10738
+ case 998:
10739
+ message.maximumEdition = 998;
10740
+ break;
10741
+ case "EDITION_PROTO3":
10742
+ case 999:
10743
+ message.maximumEdition = 999;
10744
+ break;
10745
+ case "EDITION_2023":
10746
+ case 1000:
10747
+ message.maximumEdition = 1000;
10748
+ break;
10749
+ case "EDITION_2024":
10750
+ case 1001:
10751
+ message.maximumEdition = 1001;
10752
+ break;
10753
+ case "EDITION_1_TEST_ONLY":
10754
+ case 1:
10755
+ message.maximumEdition = 1;
10756
+ break;
10757
+ case "EDITION_2_TEST_ONLY":
10758
+ case 2:
10759
+ message.maximumEdition = 2;
10760
+ break;
10761
+ case "EDITION_99997_TEST_ONLY":
10762
+ case 99997:
10763
+ message.maximumEdition = 99997;
10764
+ break;
10765
+ case "EDITION_99998_TEST_ONLY":
10766
+ case 99998:
10767
+ message.maximumEdition = 99998;
10768
+ break;
10769
+ case "EDITION_99999_TEST_ONLY":
10770
+ case 99999:
10771
+ message.maximumEdition = 99999;
10772
+ break;
10773
+ case "EDITION_MAX":
10774
+ case 2147483647:
10775
+ message.maximumEdition = 2147483647;
10776
+ break;
10777
+ }
10778
+ return message;
10779
+ };
10780
+
10781
+ /**
10782
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
10783
+ * @function toObject
10784
+ * @memberof google.protobuf.FeatureSetDefaults
10785
+ * @static
10786
+ * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults
10787
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10788
+ * @returns {Object.<string,*>} Plain object
10789
+ */
10790
+ FeatureSetDefaults.toObject = function toObject(message, options) {
10791
+ if (!options)
10792
+ options = {};
10793
+ var object = {};
10794
+ if (options.arrays || options.defaults)
10795
+ object.defaults = [];
10796
+ if (options.defaults) {
10797
+ object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
10798
+ object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
10799
+ }
10800
+ if (message.defaults && message.defaults.length) {
10801
+ object.defaults = [];
10802
+ for (var j = 0; j < message.defaults.length; ++j)
10803
+ object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options);
10804
+ }
10805
+ if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
10806
+ object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition;
10807
+ if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
10808
+ object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition;
10809
+ return object;
10810
+ };
10811
+
10812
+ /**
10813
+ * Converts this FeatureSetDefaults to JSON.
10814
+ * @function toJSON
10815
+ * @memberof google.protobuf.FeatureSetDefaults
10816
+ * @instance
10817
+ * @returns {Object.<string,*>} JSON object
10818
+ */
10819
+ FeatureSetDefaults.prototype.toJSON = function toJSON() {
10820
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10821
+ };
10822
+
10823
+ /**
10824
+ * Gets the default type url for FeatureSetDefaults
10825
+ * @function getTypeUrl
10826
+ * @memberof google.protobuf.FeatureSetDefaults
10827
+ * @static
10828
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10829
+ * @returns {string} The default type url
10830
+ */
10831
+ FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10832
+ if (typeUrlPrefix === undefined) {
10833
+ typeUrlPrefix = "type.googleapis.com";
10834
+ }
10835
+ return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults";
10836
+ };
10837
+
10838
+ FeatureSetDefaults.FeatureSetEditionDefault = (function() {
10839
+
10840
+ /**
10841
+ * Properties of a FeatureSetEditionDefault.
10842
+ * @memberof google.protobuf.FeatureSetDefaults
10843
+ * @interface IFeatureSetEditionDefault
10844
+ * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
10845
+ * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
10846
+ */
10847
+
10848
+ /**
10849
+ * Constructs a new FeatureSetEditionDefault.
10850
+ * @memberof google.protobuf.FeatureSetDefaults
10851
+ * @classdesc Represents a FeatureSetEditionDefault.
10852
+ * @implements IFeatureSetEditionDefault
10853
+ * @constructor
10854
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
10855
+ */
10856
+ function FeatureSetEditionDefault(properties) {
10857
+ if (properties)
10858
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10859
+ if (properties[keys[i]] != null)
10860
+ this[keys[i]] = properties[keys[i]];
10861
+ }
10862
+
10863
+ /**
10864
+ * FeatureSetEditionDefault edition.
10865
+ * @member {google.protobuf.Edition} edition
10866
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10867
+ * @instance
10868
+ */
10869
+ FeatureSetEditionDefault.prototype.edition = 0;
10870
+
10871
+ /**
10872
+ * FeatureSetEditionDefault features.
10873
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
10874
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10875
+ * @instance
10876
+ */
10877
+ FeatureSetEditionDefault.prototype.features = null;
10878
+
10879
+ /**
10880
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
10881
+ * @function create
10882
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10883
+ * @static
10884
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
10885
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance
10886
+ */
10887
+ FeatureSetEditionDefault.create = function create(properties) {
10888
+ return new FeatureSetEditionDefault(properties);
10889
+ };
10890
+
10891
+ /**
10892
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
10893
+ * @function encode
10894
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10895
+ * @static
10896
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
10897
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10898
+ * @returns {$protobuf.Writer} Writer
10899
+ */
10900
+ FeatureSetEditionDefault.encode = function encode(message, writer) {
10901
+ if (!writer)
10902
+ writer = $Writer.create();
10903
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
10904
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10905
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
10906
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
10907
+ return writer;
10908
+ };
10909
+
10910
+ /**
10911
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
10912
+ * @function encodeDelimited
10913
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10914
+ * @static
10915
+ * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
10916
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10917
+ * @returns {$protobuf.Writer} Writer
10918
+ */
10919
+ FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
10920
+ return this.encode(message, writer).ldelim();
10921
+ };
10922
+
10923
+ /**
10924
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
10925
+ * @function decode
10926
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10927
+ * @static
10928
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10929
+ * @param {number} [length] Message length if known beforehand
10930
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
10931
+ * @throws {Error} If the payload is not a reader or valid buffer
10932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10933
+ */
10934
+ FeatureSetEditionDefault.decode = function decode(reader, length) {
10935
+ if (!(reader instanceof $Reader))
10936
+ reader = $Reader.create(reader);
10937
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
10938
+ while (reader.pos < end) {
10939
+ var tag = reader.uint32();
10940
+ switch (tag >>> 3) {
10941
+ case 3: {
10942
+ message.edition = reader.int32();
10943
+ break;
10944
+ }
10945
+ case 2: {
10946
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
10947
+ break;
10948
+ }
10949
+ default:
10950
+ reader.skipType(tag & 7);
10951
+ break;
10952
+ }
10953
+ }
10954
+ return message;
10955
+ };
10956
+
10957
+ /**
10958
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
10959
+ * @function decodeDelimited
10960
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10961
+ * @static
10962
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10963
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
10964
+ * @throws {Error} If the payload is not a reader or valid buffer
10965
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10966
+ */
10967
+ FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) {
10968
+ if (!(reader instanceof $Reader))
10969
+ reader = new $Reader(reader);
10970
+ return this.decode(reader, reader.uint32());
10971
+ };
10972
+
10973
+ /**
10974
+ * Verifies a FeatureSetEditionDefault message.
10975
+ * @function verify
10976
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10977
+ * @static
10978
+ * @param {Object.<string,*>} message Plain object to verify
10979
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10980
+ */
10981
+ FeatureSetEditionDefault.verify = function verify(message) {
10982
+ if (typeof message !== "object" || message === null)
10983
+ return "object expected";
10984
+ if (message.edition != null && message.hasOwnProperty("edition"))
10985
+ switch (message.edition) {
10986
+ default:
10987
+ return "edition: enum value expected";
10988
+ case 0:
10989
+ case 998:
10990
+ case 999:
10991
+ case 1000:
10992
+ case 1001:
10993
+ case 1:
10994
+ case 2:
10995
+ case 99997:
10996
+ case 99998:
10997
+ case 99999:
10998
+ case 2147483647:
10999
+ break;
11000
+ }
11001
+ if (message.features != null && message.hasOwnProperty("features")) {
11002
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
11003
+ if (error)
11004
+ return "features." + error;
11005
+ }
11006
+ return null;
11007
+ };
11008
+
11009
+ /**
11010
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
11011
+ * @function fromObject
11012
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
11013
+ * @static
11014
+ * @param {Object.<string,*>} object Plain object
11015
+ * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
11016
+ */
11017
+ FeatureSetEditionDefault.fromObject = function fromObject(object) {
11018
+ if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
11019
+ return object;
11020
+ var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
11021
+ switch (object.edition) {
11022
+ default:
11023
+ if (typeof object.edition === "number") {
11024
+ message.edition = object.edition;
11025
+ break;
11026
+ }
11027
+ break;
11028
+ case "EDITION_UNKNOWN":
11029
+ case 0:
11030
+ message.edition = 0;
11031
+ break;
11032
+ case "EDITION_PROTO2":
11033
+ case 998:
11034
+ message.edition = 998;
11035
+ break;
11036
+ case "EDITION_PROTO3":
11037
+ case 999:
11038
+ message.edition = 999;
11039
+ break;
11040
+ case "EDITION_2023":
11041
+ case 1000:
11042
+ message.edition = 1000;
11043
+ break;
11044
+ case "EDITION_2024":
11045
+ case 1001:
11046
+ message.edition = 1001;
11047
+ break;
11048
+ case "EDITION_1_TEST_ONLY":
11049
+ case 1:
11050
+ message.edition = 1;
11051
+ break;
11052
+ case "EDITION_2_TEST_ONLY":
11053
+ case 2:
11054
+ message.edition = 2;
11055
+ break;
11056
+ case "EDITION_99997_TEST_ONLY":
11057
+ case 99997:
11058
+ message.edition = 99997;
11059
+ break;
11060
+ case "EDITION_99998_TEST_ONLY":
11061
+ case 99998:
11062
+ message.edition = 99998;
11063
+ break;
11064
+ case "EDITION_99999_TEST_ONLY":
11065
+ case 99999:
11066
+ message.edition = 99999;
11067
+ break;
11068
+ case "EDITION_MAX":
11069
+ case 2147483647:
11070
+ message.edition = 2147483647;
11071
+ break;
11072
+ }
11073
+ if (object.features != null) {
11074
+ if (typeof object.features !== "object")
11075
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
11076
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
11077
+ }
11078
+ return message;
11079
+ };
11080
+
11081
+ /**
11082
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
11083
+ * @function toObject
11084
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
11085
+ * @static
11086
+ * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault
11087
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11088
+ * @returns {Object.<string,*>} Plain object
11089
+ */
11090
+ FeatureSetEditionDefault.toObject = function toObject(message, options) {
11091
+ if (!options)
11092
+ options = {};
11093
+ var object = {};
11094
+ if (options.defaults) {
11095
+ object.features = null;
11096
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
11097
+ }
11098
+ if (message.features != null && message.hasOwnProperty("features"))
11099
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
11100
+ if (message.edition != null && message.hasOwnProperty("edition"))
11101
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
11102
+ return object;
11103
+ };
11104
+
11105
+ /**
11106
+ * Converts this FeatureSetEditionDefault to JSON.
11107
+ * @function toJSON
11108
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
11109
+ * @instance
11110
+ * @returns {Object.<string,*>} JSON object
11111
+ */
11112
+ FeatureSetEditionDefault.prototype.toJSON = function toJSON() {
11113
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11114
+ };
11115
+
11116
+ /**
11117
+ * Gets the default type url for FeatureSetEditionDefault
11118
+ * @function getTypeUrl
11119
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
11120
+ * @static
11121
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11122
+ * @returns {string} The default type url
11123
+ */
11124
+ FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11125
+ if (typeUrlPrefix === undefined) {
11126
+ typeUrlPrefix = "type.googleapis.com";
11127
+ }
11128
+ return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
11129
+ };
11130
+
11131
+ return FeatureSetEditionDefault;
11132
+ })();
11133
+
11134
+ return FeatureSetDefaults;
11135
+ })();
11136
+
8765
11137
  protobuf.SourceCodeInfo = (function() {
8766
11138
 
8767
11139
  /**
@@ -55492,6 +57864,7 @@
55492
57864
  * @property {string|null} [docTagPrefix] Publishing docTagPrefix
55493
57865
  * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
55494
57866
  * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
57867
+ * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
55495
57868
  */
55496
57869
 
55497
57870
  /**
@@ -55584,6 +57957,14 @@
55584
57957
  */
55585
57958
  Publishing.prototype.librarySettings = $util.emptyArray;
55586
57959
 
57960
+ /**
57961
+ * Publishing protoReferenceDocumentationUri.
57962
+ * @member {string} protoReferenceDocumentationUri
57963
+ * @memberof google.api.Publishing
57964
+ * @instance
57965
+ */
57966
+ Publishing.prototype.protoReferenceDocumentationUri = "";
57967
+
55587
57968
  /**
55588
57969
  * Creates a new Publishing instance using the specified properties.
55589
57970
  * @function create
@@ -55629,6 +58010,8 @@
55629
58010
  if (message.librarySettings != null && message.librarySettings.length)
55630
58011
  for (var i = 0; i < message.librarySettings.length; ++i)
55631
58012
  $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
58013
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
58014
+ writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
55632
58015
  return writer;
55633
58016
  };
55634
58017
 
@@ -55705,6 +58088,10 @@
55705
58088
  message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
55706
58089
  break;
55707
58090
  }
58091
+ case 110: {
58092
+ message.protoReferenceDocumentationUri = reader.string();
58093
+ break;
58094
+ }
55708
58095
  default:
55709
58096
  reader.skipType(tag & 7);
55710
58097
  break;
@@ -55780,6 +58167,9 @@
55780
58167
  case 2:
55781
58168
  case 3:
55782
58169
  case 4:
58170
+ case 5:
58171
+ case 6:
58172
+ case 7:
55783
58173
  break;
55784
58174
  }
55785
58175
  if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
@@ -55791,6 +58181,9 @@
55791
58181
  return "librarySettings." + error;
55792
58182
  }
55793
58183
  }
58184
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
58185
+ if (!$util.isString(message.protoReferenceDocumentationUri))
58186
+ return "protoReferenceDocumentationUri: string expected";
55794
58187
  return null;
55795
58188
  };
55796
58189
 
@@ -55860,6 +58253,18 @@
55860
58253
  case 4:
55861
58254
  message.organization = 4;
55862
58255
  break;
58256
+ case "SHOPPING":
58257
+ case 5:
58258
+ message.organization = 5;
58259
+ break;
58260
+ case "GEO":
58261
+ case 6:
58262
+ message.organization = 6;
58263
+ break;
58264
+ case "GENERATIVE_AI":
58265
+ case 7:
58266
+ message.organization = 7;
58267
+ break;
55863
58268
  }
55864
58269
  if (object.librarySettings) {
55865
58270
  if (!Array.isArray(object.librarySettings))
@@ -55871,6 +58276,8 @@
55871
58276
  message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
55872
58277
  }
55873
58278
  }
58279
+ if (object.protoReferenceDocumentationUri != null)
58280
+ message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
55874
58281
  return message;
55875
58282
  };
55876
58283
 
@@ -55899,6 +58306,7 @@
55899
58306
  object.githubLabel = "";
55900
58307
  object.docTagPrefix = "";
55901
58308
  object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
58309
+ object.protoReferenceDocumentationUri = "";
55902
58310
  }
55903
58311
  if (message.methodSettings && message.methodSettings.length) {
55904
58312
  object.methodSettings = [];
@@ -55927,6 +58335,8 @@
55927
58335
  for (var j = 0; j < message.librarySettings.length; ++j)
55928
58336
  object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
55929
58337
  }
58338
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
58339
+ object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
55930
58340
  return object;
55931
58341
  };
55932
58342
 
@@ -57089,6 +59499,11 @@
57089
59499
  * @memberof google.api
57090
59500
  * @interface IDotnetSettings
57091
59501
  * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
59502
+ * @property {Object.<string,string>|null} [renamedServices] DotnetSettings renamedServices
59503
+ * @property {Object.<string,string>|null} [renamedResources] DotnetSettings renamedResources
59504
+ * @property {Array.<string>|null} [ignoredResources] DotnetSettings ignoredResources
59505
+ * @property {Array.<string>|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
59506
+ * @property {Array.<string>|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
57092
59507
  */
57093
59508
 
57094
59509
  /**
@@ -57100,6 +59515,11 @@
57100
59515
  * @param {google.api.IDotnetSettings=} [properties] Properties to set
57101
59516
  */
57102
59517
  function DotnetSettings(properties) {
59518
+ this.renamedServices = {};
59519
+ this.renamedResources = {};
59520
+ this.ignoredResources = [];
59521
+ this.forcedNamespaceAliases = [];
59522
+ this.handwrittenSignatures = [];
57103
59523
  if (properties)
57104
59524
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57105
59525
  if (properties[keys[i]] != null)
@@ -57114,6 +59534,46 @@
57114
59534
  */
57115
59535
  DotnetSettings.prototype.common = null;
57116
59536
 
59537
+ /**
59538
+ * DotnetSettings renamedServices.
59539
+ * @member {Object.<string,string>} renamedServices
59540
+ * @memberof google.api.DotnetSettings
59541
+ * @instance
59542
+ */
59543
+ DotnetSettings.prototype.renamedServices = $util.emptyObject;
59544
+
59545
+ /**
59546
+ * DotnetSettings renamedResources.
59547
+ * @member {Object.<string,string>} renamedResources
59548
+ * @memberof google.api.DotnetSettings
59549
+ * @instance
59550
+ */
59551
+ DotnetSettings.prototype.renamedResources = $util.emptyObject;
59552
+
59553
+ /**
59554
+ * DotnetSettings ignoredResources.
59555
+ * @member {Array.<string>} ignoredResources
59556
+ * @memberof google.api.DotnetSettings
59557
+ * @instance
59558
+ */
59559
+ DotnetSettings.prototype.ignoredResources = $util.emptyArray;
59560
+
59561
+ /**
59562
+ * DotnetSettings forcedNamespaceAliases.
59563
+ * @member {Array.<string>} forcedNamespaceAliases
59564
+ * @memberof google.api.DotnetSettings
59565
+ * @instance
59566
+ */
59567
+ DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
59568
+
59569
+ /**
59570
+ * DotnetSettings handwrittenSignatures.
59571
+ * @member {Array.<string>} handwrittenSignatures
59572
+ * @memberof google.api.DotnetSettings
59573
+ * @instance
59574
+ */
59575
+ DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
59576
+
57117
59577
  /**
57118
59578
  * Creates a new DotnetSettings instance using the specified properties.
57119
59579
  * @function create
@@ -57140,6 +59600,21 @@
57140
59600
  writer = $Writer.create();
57141
59601
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
57142
59602
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59603
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
59604
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
59605
+ 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();
59606
+ if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
59607
+ for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
59608
+ 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();
59609
+ if (message.ignoredResources != null && message.ignoredResources.length)
59610
+ for (var i = 0; i < message.ignoredResources.length; ++i)
59611
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
59612
+ if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
59613
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
59614
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
59615
+ if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
59616
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
59617
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
57143
59618
  return writer;
57144
59619
  };
57145
59620
 
@@ -57170,7 +59645,7 @@
57170
59645
  DotnetSettings.decode = function decode(reader, length) {
57171
59646
  if (!(reader instanceof $Reader))
57172
59647
  reader = $Reader.create(reader);
57173
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
59648
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
57174
59649
  while (reader.pos < end) {
57175
59650
  var tag = reader.uint32();
57176
59651
  switch (tag >>> 3) {
@@ -57178,6 +59653,70 @@
57178
59653
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
57179
59654
  break;
57180
59655
  }
59656
+ case 2: {
59657
+ if (message.renamedServices === $util.emptyObject)
59658
+ message.renamedServices = {};
59659
+ var end2 = reader.uint32() + reader.pos;
59660
+ key = "";
59661
+ value = "";
59662
+ while (reader.pos < end2) {
59663
+ var tag2 = reader.uint32();
59664
+ switch (tag2 >>> 3) {
59665
+ case 1:
59666
+ key = reader.string();
59667
+ break;
59668
+ case 2:
59669
+ value = reader.string();
59670
+ break;
59671
+ default:
59672
+ reader.skipType(tag2 & 7);
59673
+ break;
59674
+ }
59675
+ }
59676
+ message.renamedServices[key] = value;
59677
+ break;
59678
+ }
59679
+ case 3: {
59680
+ if (message.renamedResources === $util.emptyObject)
59681
+ message.renamedResources = {};
59682
+ var end2 = reader.uint32() + reader.pos;
59683
+ key = "";
59684
+ value = "";
59685
+ while (reader.pos < end2) {
59686
+ var tag2 = reader.uint32();
59687
+ switch (tag2 >>> 3) {
59688
+ case 1:
59689
+ key = reader.string();
59690
+ break;
59691
+ case 2:
59692
+ value = reader.string();
59693
+ break;
59694
+ default:
59695
+ reader.skipType(tag2 & 7);
59696
+ break;
59697
+ }
59698
+ }
59699
+ message.renamedResources[key] = value;
59700
+ break;
59701
+ }
59702
+ case 4: {
59703
+ if (!(message.ignoredResources && message.ignoredResources.length))
59704
+ message.ignoredResources = [];
59705
+ message.ignoredResources.push(reader.string());
59706
+ break;
59707
+ }
59708
+ case 5: {
59709
+ if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
59710
+ message.forcedNamespaceAliases = [];
59711
+ message.forcedNamespaceAliases.push(reader.string());
59712
+ break;
59713
+ }
59714
+ case 6: {
59715
+ if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
59716
+ message.handwrittenSignatures = [];
59717
+ message.handwrittenSignatures.push(reader.string());
59718
+ break;
59719
+ }
57181
59720
  default:
57182
59721
  reader.skipType(tag & 7);
57183
59722
  break;
@@ -57218,6 +59757,43 @@
57218
59757
  if (error)
57219
59758
  return "common." + error;
57220
59759
  }
59760
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
59761
+ if (!$util.isObject(message.renamedServices))
59762
+ return "renamedServices: object expected";
59763
+ var key = Object.keys(message.renamedServices);
59764
+ for (var i = 0; i < key.length; ++i)
59765
+ if (!$util.isString(message.renamedServices[key[i]]))
59766
+ return "renamedServices: string{k:string} expected";
59767
+ }
59768
+ if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) {
59769
+ if (!$util.isObject(message.renamedResources))
59770
+ return "renamedResources: object expected";
59771
+ var key = Object.keys(message.renamedResources);
59772
+ for (var i = 0; i < key.length; ++i)
59773
+ if (!$util.isString(message.renamedResources[key[i]]))
59774
+ return "renamedResources: string{k:string} expected";
59775
+ }
59776
+ if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) {
59777
+ if (!Array.isArray(message.ignoredResources))
59778
+ return "ignoredResources: array expected";
59779
+ for (var i = 0; i < message.ignoredResources.length; ++i)
59780
+ if (!$util.isString(message.ignoredResources[i]))
59781
+ return "ignoredResources: string[] expected";
59782
+ }
59783
+ if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) {
59784
+ if (!Array.isArray(message.forcedNamespaceAliases))
59785
+ return "forcedNamespaceAliases: array expected";
59786
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
59787
+ if (!$util.isString(message.forcedNamespaceAliases[i]))
59788
+ return "forcedNamespaceAliases: string[] expected";
59789
+ }
59790
+ if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) {
59791
+ if (!Array.isArray(message.handwrittenSignatures))
59792
+ return "handwrittenSignatures: array expected";
59793
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
59794
+ if (!$util.isString(message.handwrittenSignatures[i]))
59795
+ return "handwrittenSignatures: string[] expected";
59796
+ }
57221
59797
  return null;
57222
59798
  };
57223
59799
 
@@ -57238,6 +59814,41 @@
57238
59814
  throw TypeError(".google.api.DotnetSettings.common: object expected");
57239
59815
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
57240
59816
  }
59817
+ if (object.renamedServices) {
59818
+ if (typeof object.renamedServices !== "object")
59819
+ throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
59820
+ message.renamedServices = {};
59821
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
59822
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
59823
+ }
59824
+ if (object.renamedResources) {
59825
+ if (typeof object.renamedResources !== "object")
59826
+ throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
59827
+ message.renamedResources = {};
59828
+ for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i)
59829
+ message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
59830
+ }
59831
+ if (object.ignoredResources) {
59832
+ if (!Array.isArray(object.ignoredResources))
59833
+ throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
59834
+ message.ignoredResources = [];
59835
+ for (var i = 0; i < object.ignoredResources.length; ++i)
59836
+ message.ignoredResources[i] = String(object.ignoredResources[i]);
59837
+ }
59838
+ if (object.forcedNamespaceAliases) {
59839
+ if (!Array.isArray(object.forcedNamespaceAliases))
59840
+ throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
59841
+ message.forcedNamespaceAliases = [];
59842
+ for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
59843
+ message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
59844
+ }
59845
+ if (object.handwrittenSignatures) {
59846
+ if (!Array.isArray(object.handwrittenSignatures))
59847
+ throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
59848
+ message.handwrittenSignatures = [];
59849
+ for (var i = 0; i < object.handwrittenSignatures.length; ++i)
59850
+ message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
59851
+ }
57241
59852
  return message;
57242
59853
  };
57243
59854
 
@@ -57254,10 +59865,45 @@
57254
59865
  if (!options)
57255
59866
  options = {};
57256
59867
  var object = {};
59868
+ if (options.arrays || options.defaults) {
59869
+ object.ignoredResources = [];
59870
+ object.forcedNamespaceAliases = [];
59871
+ object.handwrittenSignatures = [];
59872
+ }
59873
+ if (options.objects || options.defaults) {
59874
+ object.renamedServices = {};
59875
+ object.renamedResources = {};
59876
+ }
57257
59877
  if (options.defaults)
57258
59878
  object.common = null;
57259
59879
  if (message.common != null && message.hasOwnProperty("common"))
57260
59880
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
59881
+ var keys2;
59882
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
59883
+ object.renamedServices = {};
59884
+ for (var j = 0; j < keys2.length; ++j)
59885
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
59886
+ }
59887
+ if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
59888
+ object.renamedResources = {};
59889
+ for (var j = 0; j < keys2.length; ++j)
59890
+ object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
59891
+ }
59892
+ if (message.ignoredResources && message.ignoredResources.length) {
59893
+ object.ignoredResources = [];
59894
+ for (var j = 0; j < message.ignoredResources.length; ++j)
59895
+ object.ignoredResources[j] = message.ignoredResources[j];
59896
+ }
59897
+ if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
59898
+ object.forcedNamespaceAliases = [];
59899
+ for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
59900
+ object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
59901
+ }
59902
+ if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
59903
+ object.handwrittenSignatures = [];
59904
+ for (var j = 0; j < message.handwrittenSignatures.length; ++j)
59905
+ object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
59906
+ }
57261
59907
  return object;
57262
59908
  };
57263
59909
 
@@ -57714,6 +60360,7 @@
57714
60360
  * @interface IMethodSettings
57715
60361
  * @property {string|null} [selector] MethodSettings selector
57716
60362
  * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
60363
+ * @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
57717
60364
  */
57718
60365
 
57719
60366
  /**
@@ -57725,6 +60372,7 @@
57725
60372
  * @param {google.api.IMethodSettings=} [properties] Properties to set
57726
60373
  */
57727
60374
  function MethodSettings(properties) {
60375
+ this.autoPopulatedFields = [];
57728
60376
  if (properties)
57729
60377
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57730
60378
  if (properties[keys[i]] != null)
@@ -57747,6 +60395,14 @@
57747
60395
  */
57748
60396
  MethodSettings.prototype.longRunning = null;
57749
60397
 
60398
+ /**
60399
+ * MethodSettings autoPopulatedFields.
60400
+ * @member {Array.<string>} autoPopulatedFields
60401
+ * @memberof google.api.MethodSettings
60402
+ * @instance
60403
+ */
60404
+ MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
60405
+
57750
60406
  /**
57751
60407
  * Creates a new MethodSettings instance using the specified properties.
57752
60408
  * @function create
@@ -57775,6 +60431,9 @@
57775
60431
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
57776
60432
  if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
57777
60433
  $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
60434
+ if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
60435
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
60436
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
57778
60437
  return writer;
57779
60438
  };
57780
60439
 
@@ -57817,6 +60476,12 @@
57817
60476
  message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
57818
60477
  break;
57819
60478
  }
60479
+ case 3: {
60480
+ if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
60481
+ message.autoPopulatedFields = [];
60482
+ message.autoPopulatedFields.push(reader.string());
60483
+ break;
60484
+ }
57820
60485
  default:
57821
60486
  reader.skipType(tag & 7);
57822
60487
  break;
@@ -57860,6 +60525,13 @@
57860
60525
  if (error)
57861
60526
  return "longRunning." + error;
57862
60527
  }
60528
+ if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
60529
+ if (!Array.isArray(message.autoPopulatedFields))
60530
+ return "autoPopulatedFields: array expected";
60531
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
60532
+ if (!$util.isString(message.autoPopulatedFields[i]))
60533
+ return "autoPopulatedFields: string[] expected";
60534
+ }
57863
60535
  return null;
57864
60536
  };
57865
60537
 
@@ -57882,6 +60554,13 @@
57882
60554
  throw TypeError(".google.api.MethodSettings.longRunning: object expected");
57883
60555
  message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
57884
60556
  }
60557
+ if (object.autoPopulatedFields) {
60558
+ if (!Array.isArray(object.autoPopulatedFields))
60559
+ throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
60560
+ message.autoPopulatedFields = [];
60561
+ for (var i = 0; i < object.autoPopulatedFields.length; ++i)
60562
+ message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
60563
+ }
57885
60564
  return message;
57886
60565
  };
57887
60566
 
@@ -57898,6 +60577,8 @@
57898
60577
  if (!options)
57899
60578
  options = {};
57900
60579
  var object = {};
60580
+ if (options.arrays || options.defaults)
60581
+ object.autoPopulatedFields = [];
57901
60582
  if (options.defaults) {
57902
60583
  object.selector = "";
57903
60584
  object.longRunning = null;
@@ -57906,6 +60587,11 @@
57906
60587
  object.selector = message.selector;
57907
60588
  if (message.longRunning != null && message.hasOwnProperty("longRunning"))
57908
60589
  object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
60590
+ if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
60591
+ object.autoPopulatedFields = [];
60592
+ for (var j = 0; j < message.autoPopulatedFields.length; ++j)
60593
+ object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
60594
+ }
57909
60595
  return object;
57910
60596
  };
57911
60597
 
@@ -58235,6 +60921,9 @@
58235
60921
  * @property {number} ADS=2 ADS value
58236
60922
  * @property {number} PHOTOS=3 PHOTOS value
58237
60923
  * @property {number} STREET_VIEW=4 STREET_VIEW value
60924
+ * @property {number} SHOPPING=5 SHOPPING value
60925
+ * @property {number} GEO=6 GEO value
60926
+ * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value
58238
60927
  */
58239
60928
  api.ClientLibraryOrganization = (function() {
58240
60929
  var valuesById = {}, values = Object.create(valuesById);
@@ -58243,6 +60932,9 @@
58243
60932
  values[valuesById[2] = "ADS"] = 2;
58244
60933
  values[valuesById[3] = "PHOTOS"] = 3;
58245
60934
  values[valuesById[4] = "STREET_VIEW"] = 4;
60935
+ values[valuesById[5] = "SHOPPING"] = 5;
60936
+ values[valuesById[6] = "GEO"] = 6;
60937
+ values[valuesById[7] = "GENERATIVE_AI"] = 7;
58246
60938
  return values;
58247
60939
  })();
58248
60940
 
@@ -58300,6 +60992,7 @@
58300
60992
  * @property {number} IMMUTABLE=5 IMMUTABLE value
58301
60993
  * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
58302
60994
  * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
60995
+ * @property {number} IDENTIFIER=8 IDENTIFIER value
58303
60996
  */
58304
60997
  api.FieldBehavior = (function() {
58305
60998
  var valuesById = {}, values = Object.create(valuesById);
@@ -58311,6 +61004,7 @@
58311
61004
  values[valuesById[5] = "IMMUTABLE"] = 5;
58312
61005
  values[valuesById[6] = "UNORDERED_LIST"] = 6;
58313
61006
  values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
61007
+ values[valuesById[8] = "IDENTIFIER"] = 8;
58314
61008
  return values;
58315
61009
  })();
58316
61010