@google-shopping/lfp 0.9.0 → 0.10.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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -11903,6 +11903,12 @@
11903
11903
  * @property {number} FREE_LISTINGS=4 FREE_LISTINGS value
11904
11904
  * @property {number} FREE_LOCAL_LISTINGS=5 FREE_LOCAL_LISTINGS value
11905
11905
  * @property {number} YOUTUBE_SHOPPING=6 YOUTUBE_SHOPPING value
11906
+ * @property {number} YOUTUBE_SHOPPING_CHECKOUT=7 YOUTUBE_SHOPPING_CHECKOUT value
11907
+ * @property {number} YOUTUBE_AFFILIATE=8 YOUTUBE_AFFILIATE value
11908
+ * @property {number} FREE_VEHICLE_LISTINGS=9 FREE_VEHICLE_LISTINGS value
11909
+ * @property {number} VEHICLE_ADS=10 VEHICLE_ADS value
11910
+ * @property {number} CLOUD_RETAIL=11 CLOUD_RETAIL value
11911
+ * @property {number} LOCAL_CLOUD_RETAIL=12 LOCAL_CLOUD_RETAIL value
11906
11912
  */
11907
11913
  Destination.DestinationEnum = (function() {
11908
11914
  var valuesById = {}, values = Object.create(valuesById);
@@ -11913,6 +11919,12 @@
11913
11919
  values[valuesById[4] = "FREE_LISTINGS"] = 4;
11914
11920
  values[valuesById[5] = "FREE_LOCAL_LISTINGS"] = 5;
11915
11921
  values[valuesById[6] = "YOUTUBE_SHOPPING"] = 6;
11922
+ values[valuesById[7] = "YOUTUBE_SHOPPING_CHECKOUT"] = 7;
11923
+ values[valuesById[8] = "YOUTUBE_AFFILIATE"] = 8;
11924
+ values[valuesById[9] = "FREE_VEHICLE_LISTINGS"] = 9;
11925
+ values[valuesById[10] = "VEHICLE_ADS"] = 10;
11926
+ values[valuesById[11] = "CLOUD_RETAIL"] = 11;
11927
+ values[valuesById[12] = "LOCAL_CLOUD_RETAIL"] = 12;
11916
11928
  return values;
11917
11929
  })();
11918
11930
 
@@ -12107,11 +12119,16 @@
12107
12119
  * @property {number} LOCAL_INVENTORY_ADS=5 LOCAL_INVENTORY_ADS value
12108
12120
  * @property {number} VEHICLE_INVENTORY_ADS=6 VEHICLE_INVENTORY_ADS value
12109
12121
  * @property {number} FREE_LISTINGS=7 FREE_LISTINGS value
12122
+ * @property {number} FREE_LISTINGS_UCP_CHECKOUT=19 FREE_LISTINGS_UCP_CHECKOUT value
12110
12123
  * @property {number} FREE_LOCAL_LISTINGS=8 FREE_LOCAL_LISTINGS value
12111
12124
  * @property {number} FREE_LOCAL_VEHICLE_LISTINGS=9 FREE_LOCAL_VEHICLE_LISTINGS value
12125
+ * @property {number} YOUTUBE_AFFILIATE=18 YOUTUBE_AFFILIATE value
12112
12126
  * @property {number} YOUTUBE_SHOPPING=10 YOUTUBE_SHOPPING value
12113
12127
  * @property {number} CLOUD_RETAIL=11 CLOUD_RETAIL value
12114
12128
  * @property {number} LOCAL_CLOUD_RETAIL=12 LOCAL_CLOUD_RETAIL value
12129
+ * @property {number} PRODUCT_REVIEWS=15 PRODUCT_REVIEWS value
12130
+ * @property {number} MERCHANT_REVIEWS=16 MERCHANT_REVIEWS value
12131
+ * @property {number} YOUTUBE_CHECKOUT=17 YOUTUBE_CHECKOUT value
12115
12132
  */
12116
12133
  ReportingContext.ReportingContextEnum = (function() {
12117
12134
  var valuesById = {}, values = Object.create(valuesById);
@@ -12125,11 +12142,16 @@
12125
12142
  values[valuesById[5] = "LOCAL_INVENTORY_ADS"] = 5;
12126
12143
  values[valuesById[6] = "VEHICLE_INVENTORY_ADS"] = 6;
12127
12144
  values[valuesById[7] = "FREE_LISTINGS"] = 7;
12145
+ values[valuesById[19] = "FREE_LISTINGS_UCP_CHECKOUT"] = 19;
12128
12146
  values[valuesById[8] = "FREE_LOCAL_LISTINGS"] = 8;
12129
12147
  values[valuesById[9] = "FREE_LOCAL_VEHICLE_LISTINGS"] = 9;
12148
+ values[valuesById[18] = "YOUTUBE_AFFILIATE"] = 18;
12130
12149
  values[valuesById[10] = "YOUTUBE_SHOPPING"] = 10;
12131
12150
  values[valuesById[11] = "CLOUD_RETAIL"] = 11;
12132
12151
  values[valuesById[12] = "LOCAL_CLOUD_RETAIL"] = 12;
12152
+ values[valuesById[15] = "PRODUCT_REVIEWS"] = 15;
12153
+ values[valuesById[16] = "MERCHANT_REVIEWS"] = 16;
12154
+ values[valuesById[17] = "YOUTUBE_CHECKOUT"] = 17;
12133
12155
  return values;
12134
12156
  })();
12135
12157
 
@@ -13321,7 +13343,6 @@
13321
13343
  * @interface ICommonLanguageSettings
13322
13344
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
13323
13345
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
13324
- * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
13325
13346
  */
13326
13347
 
13327
13348
  /**
@@ -13356,14 +13377,6 @@
13356
13377
  */
13357
13378
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
13358
13379
 
13359
- /**
13360
- * CommonLanguageSettings selectiveGapicGeneration.
13361
- * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
13362
- * @memberof google.api.CommonLanguageSettings
13363
- * @instance
13364
- */
13365
- CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
13366
-
13367
13380
  /**
13368
13381
  * Creates a new CommonLanguageSettings instance using the specified properties.
13369
13382
  * @function create
@@ -13396,8 +13409,6 @@
13396
13409
  writer.int32(message.destinations[i]);
13397
13410
  writer.ldelim();
13398
13411
  }
13399
- if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
13400
- $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
13401
13412
  return writer;
13402
13413
  };
13403
13414
 
@@ -13449,10 +13460,6 @@
13449
13460
  message.destinations.push(reader.int32());
13450
13461
  break;
13451
13462
  }
13452
- case 3: {
13453
- message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
13454
- break;
13455
- }
13456
13463
  default:
13457
13464
  reader.skipType(tag & 7);
13458
13465
  break;
@@ -13504,11 +13511,6 @@
13504
13511
  break;
13505
13512
  }
13506
13513
  }
13507
- if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
13508
- var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
13509
- if (error)
13510
- return "selectiveGapicGeneration." + error;
13511
- }
13512
13514
  return null;
13513
13515
  };
13514
13516
 
@@ -13551,11 +13553,6 @@
13551
13553
  break;
13552
13554
  }
13553
13555
  }
13554
- if (object.selectiveGapicGeneration != null) {
13555
- if (typeof object.selectiveGapicGeneration !== "object")
13556
- throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
13557
- message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
13558
- }
13559
13556
  return message;
13560
13557
  };
13561
13558
 
@@ -13574,10 +13571,8 @@
13574
13571
  var object = {};
13575
13572
  if (options.arrays || options.defaults)
13576
13573
  object.destinations = [];
13577
- if (options.defaults) {
13574
+ if (options.defaults)
13578
13575
  object.referenceDocsUri = "";
13579
- object.selectiveGapicGeneration = null;
13580
- }
13581
13576
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
13582
13577
  object.referenceDocsUri = message.referenceDocsUri;
13583
13578
  if (message.destinations && message.destinations.length) {
@@ -13585,8 +13580,6 @@
13585
13580
  for (var j = 0; j < message.destinations.length; ++j)
13586
13581
  object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
13587
13582
  }
13588
- if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
13589
- object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
13590
13583
  return object;
13591
13584
  };
13592
13585
 
@@ -15409,7 +15402,6 @@
15409
15402
  * @memberof google.api
15410
15403
  * @interface IPythonSettings
15411
15404
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
15412
- * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
15413
15405
  */
15414
15406
 
15415
15407
  /**
@@ -15435,14 +15427,6 @@
15435
15427
  */
15436
15428
  PythonSettings.prototype.common = null;
15437
15429
 
15438
- /**
15439
- * PythonSettings experimentalFeatures.
15440
- * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
15441
- * @memberof google.api.PythonSettings
15442
- * @instance
15443
- */
15444
- PythonSettings.prototype.experimentalFeatures = null;
15445
-
15446
15430
  /**
15447
15431
  * Creates a new PythonSettings instance using the specified properties.
15448
15432
  * @function create
@@ -15469,8 +15453,6 @@
15469
15453
  writer = $Writer.create();
15470
15454
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
15471
15455
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15472
- if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
15473
- $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
15474
15456
  return writer;
15475
15457
  };
15476
15458
 
@@ -15511,10 +15493,6 @@
15511
15493
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
15512
15494
  break;
15513
15495
  }
15514
- case 2: {
15515
- message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
15516
- break;
15517
- }
15518
15496
  default:
15519
15497
  reader.skipType(tag & 7);
15520
15498
  break;
@@ -15555,11 +15533,6 @@
15555
15533
  if (error)
15556
15534
  return "common." + error;
15557
15535
  }
15558
- if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
15559
- var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
15560
- if (error)
15561
- return "experimentalFeatures." + error;
15562
- }
15563
15536
  return null;
15564
15537
  };
15565
15538
 
@@ -15580,11 +15553,6 @@
15580
15553
  throw TypeError(".google.api.PythonSettings.common: object expected");
15581
15554
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
15582
15555
  }
15583
- if (object.experimentalFeatures != null) {
15584
- if (typeof object.experimentalFeatures !== "object")
15585
- throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
15586
- message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
15587
- }
15588
15556
  return message;
15589
15557
  };
15590
15558
 
@@ -15601,14 +15569,10 @@
15601
15569
  if (!options)
15602
15570
  options = {};
15603
15571
  var object = {};
15604
- if (options.defaults) {
15572
+ if (options.defaults)
15605
15573
  object.common = null;
15606
- object.experimentalFeatures = null;
15607
- }
15608
15574
  if (message.common != null && message.hasOwnProperty("common"))
15609
15575
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
15610
- if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
15611
- object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
15612
15576
  return object;
15613
15577
  };
15614
15578
 
@@ -15638,258 +15602,6 @@
15638
15602
  return typeUrlPrefix + "/google.api.PythonSettings";
15639
15603
  };
15640
15604
 
15641
- PythonSettings.ExperimentalFeatures = (function() {
15642
-
15643
- /**
15644
- * Properties of an ExperimentalFeatures.
15645
- * @memberof google.api.PythonSettings
15646
- * @interface IExperimentalFeatures
15647
- * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
15648
- * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
15649
- * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
15650
- */
15651
-
15652
- /**
15653
- * Constructs a new ExperimentalFeatures.
15654
- * @memberof google.api.PythonSettings
15655
- * @classdesc Represents an ExperimentalFeatures.
15656
- * @implements IExperimentalFeatures
15657
- * @constructor
15658
- * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
15659
- */
15660
- function ExperimentalFeatures(properties) {
15661
- if (properties)
15662
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15663
- if (properties[keys[i]] != null)
15664
- this[keys[i]] = properties[keys[i]];
15665
- }
15666
-
15667
- /**
15668
- * ExperimentalFeatures restAsyncIoEnabled.
15669
- * @member {boolean} restAsyncIoEnabled
15670
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15671
- * @instance
15672
- */
15673
- ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
15674
-
15675
- /**
15676
- * ExperimentalFeatures protobufPythonicTypesEnabled.
15677
- * @member {boolean} protobufPythonicTypesEnabled
15678
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15679
- * @instance
15680
- */
15681
- ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
15682
-
15683
- /**
15684
- * ExperimentalFeatures unversionedPackageDisabled.
15685
- * @member {boolean} unversionedPackageDisabled
15686
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15687
- * @instance
15688
- */
15689
- ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
15690
-
15691
- /**
15692
- * Creates a new ExperimentalFeatures instance using the specified properties.
15693
- * @function create
15694
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15695
- * @static
15696
- * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
15697
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
15698
- */
15699
- ExperimentalFeatures.create = function create(properties) {
15700
- return new ExperimentalFeatures(properties);
15701
- };
15702
-
15703
- /**
15704
- * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
15705
- * @function encode
15706
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15707
- * @static
15708
- * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
15709
- * @param {$protobuf.Writer} [writer] Writer to encode to
15710
- * @returns {$protobuf.Writer} Writer
15711
- */
15712
- ExperimentalFeatures.encode = function encode(message, writer) {
15713
- if (!writer)
15714
- writer = $Writer.create();
15715
- if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
15716
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
15717
- if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
15718
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
15719
- if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
15720
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
15721
- return writer;
15722
- };
15723
-
15724
- /**
15725
- * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
15726
- * @function encodeDelimited
15727
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15728
- * @static
15729
- * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
15730
- * @param {$protobuf.Writer} [writer] Writer to encode to
15731
- * @returns {$protobuf.Writer} Writer
15732
- */
15733
- ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
15734
- return this.encode(message, writer).ldelim();
15735
- };
15736
-
15737
- /**
15738
- * Decodes an ExperimentalFeatures message from the specified reader or buffer.
15739
- * @function decode
15740
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15741
- * @static
15742
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15743
- * @param {number} [length] Message length if known beforehand
15744
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
15745
- * @throws {Error} If the payload is not a reader or valid buffer
15746
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
15747
- */
15748
- ExperimentalFeatures.decode = function decode(reader, length, error) {
15749
- if (!(reader instanceof $Reader))
15750
- reader = $Reader.create(reader);
15751
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
15752
- while (reader.pos < end) {
15753
- var tag = reader.uint32();
15754
- if (tag === error)
15755
- break;
15756
- switch (tag >>> 3) {
15757
- case 1: {
15758
- message.restAsyncIoEnabled = reader.bool();
15759
- break;
15760
- }
15761
- case 2: {
15762
- message.protobufPythonicTypesEnabled = reader.bool();
15763
- break;
15764
- }
15765
- case 3: {
15766
- message.unversionedPackageDisabled = reader.bool();
15767
- break;
15768
- }
15769
- default:
15770
- reader.skipType(tag & 7);
15771
- break;
15772
- }
15773
- }
15774
- return message;
15775
- };
15776
-
15777
- /**
15778
- * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
15779
- * @function decodeDelimited
15780
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15781
- * @static
15782
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15783
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
15784
- * @throws {Error} If the payload is not a reader or valid buffer
15785
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
15786
- */
15787
- ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
15788
- if (!(reader instanceof $Reader))
15789
- reader = new $Reader(reader);
15790
- return this.decode(reader, reader.uint32());
15791
- };
15792
-
15793
- /**
15794
- * Verifies an ExperimentalFeatures message.
15795
- * @function verify
15796
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15797
- * @static
15798
- * @param {Object.<string,*>} message Plain object to verify
15799
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
15800
- */
15801
- ExperimentalFeatures.verify = function verify(message) {
15802
- if (typeof message !== "object" || message === null)
15803
- return "object expected";
15804
- if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
15805
- if (typeof message.restAsyncIoEnabled !== "boolean")
15806
- return "restAsyncIoEnabled: boolean expected";
15807
- if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
15808
- if (typeof message.protobufPythonicTypesEnabled !== "boolean")
15809
- return "protobufPythonicTypesEnabled: boolean expected";
15810
- if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
15811
- if (typeof message.unversionedPackageDisabled !== "boolean")
15812
- return "unversionedPackageDisabled: boolean expected";
15813
- return null;
15814
- };
15815
-
15816
- /**
15817
- * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
15818
- * @function fromObject
15819
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15820
- * @static
15821
- * @param {Object.<string,*>} object Plain object
15822
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
15823
- */
15824
- ExperimentalFeatures.fromObject = function fromObject(object) {
15825
- if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
15826
- return object;
15827
- var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
15828
- if (object.restAsyncIoEnabled != null)
15829
- message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
15830
- if (object.protobufPythonicTypesEnabled != null)
15831
- message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
15832
- if (object.unversionedPackageDisabled != null)
15833
- message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
15834
- return message;
15835
- };
15836
-
15837
- /**
15838
- * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
15839
- * @function toObject
15840
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15841
- * @static
15842
- * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
15843
- * @param {$protobuf.IConversionOptions} [options] Conversion options
15844
- * @returns {Object.<string,*>} Plain object
15845
- */
15846
- ExperimentalFeatures.toObject = function toObject(message, options) {
15847
- if (!options)
15848
- options = {};
15849
- var object = {};
15850
- if (options.defaults) {
15851
- object.restAsyncIoEnabled = false;
15852
- object.protobufPythonicTypesEnabled = false;
15853
- object.unversionedPackageDisabled = false;
15854
- }
15855
- if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
15856
- object.restAsyncIoEnabled = message.restAsyncIoEnabled;
15857
- if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
15858
- object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
15859
- if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
15860
- object.unversionedPackageDisabled = message.unversionedPackageDisabled;
15861
- return object;
15862
- };
15863
-
15864
- /**
15865
- * Converts this ExperimentalFeatures to JSON.
15866
- * @function toJSON
15867
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15868
- * @instance
15869
- * @returns {Object.<string,*>} JSON object
15870
- */
15871
- ExperimentalFeatures.prototype.toJSON = function toJSON() {
15872
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15873
- };
15874
-
15875
- /**
15876
- * Gets the default type url for ExperimentalFeatures
15877
- * @function getTypeUrl
15878
- * @memberof google.api.PythonSettings.ExperimentalFeatures
15879
- * @static
15880
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15881
- * @returns {string} The default type url
15882
- */
15883
- ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15884
- if (typeUrlPrefix === undefined) {
15885
- typeUrlPrefix = "type.googleapis.com";
15886
- }
15887
- return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
15888
- };
15889
-
15890
- return ExperimentalFeatures;
15891
- })();
15892
-
15893
15605
  return PythonSettings;
15894
15606
  })();
15895
15607
 
@@ -16766,7 +16478,6 @@
16766
16478
  * @memberof google.api
16767
16479
  * @interface IGoSettings
16768
16480
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
16769
- * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
16770
16481
  */
16771
16482
 
16772
16483
  /**
@@ -16778,7 +16489,6 @@
16778
16489
  * @param {google.api.IGoSettings=} [properties] Properties to set
16779
16490
  */
16780
16491
  function GoSettings(properties) {
16781
- this.renamedServices = {};
16782
16492
  if (properties)
16783
16493
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16784
16494
  if (properties[keys[i]] != null)
@@ -16793,14 +16503,6 @@
16793
16503
  */
16794
16504
  GoSettings.prototype.common = null;
16795
16505
 
16796
- /**
16797
- * GoSettings renamedServices.
16798
- * @member {Object.<string,string>} renamedServices
16799
- * @memberof google.api.GoSettings
16800
- * @instance
16801
- */
16802
- GoSettings.prototype.renamedServices = $util.emptyObject;
16803
-
16804
16506
  /**
16805
16507
  * Creates a new GoSettings instance using the specified properties.
16806
16508
  * @function create
@@ -16827,9 +16529,6 @@
16827
16529
  writer = $Writer.create();
16828
16530
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
16829
16531
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16830
- if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
16831
- for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
16832
- 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();
16833
16532
  return writer;
16834
16533
  };
16835
16534
 
@@ -16860,7 +16559,7 @@
16860
16559
  GoSettings.decode = function decode(reader, length, error) {
16861
16560
  if (!(reader instanceof $Reader))
16862
16561
  reader = $Reader.create(reader);
16863
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
16562
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
16864
16563
  while (reader.pos < end) {
16865
16564
  var tag = reader.uint32();
16866
16565
  if (tag === error)
@@ -16870,29 +16569,6 @@
16870
16569
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
16871
16570
  break;
16872
16571
  }
16873
- case 2: {
16874
- if (message.renamedServices === $util.emptyObject)
16875
- message.renamedServices = {};
16876
- var end2 = reader.uint32() + reader.pos;
16877
- key = "";
16878
- value = "";
16879
- while (reader.pos < end2) {
16880
- var tag2 = reader.uint32();
16881
- switch (tag2 >>> 3) {
16882
- case 1:
16883
- key = reader.string();
16884
- break;
16885
- case 2:
16886
- value = reader.string();
16887
- break;
16888
- default:
16889
- reader.skipType(tag2 & 7);
16890
- break;
16891
- }
16892
- }
16893
- message.renamedServices[key] = value;
16894
- break;
16895
- }
16896
16572
  default:
16897
16573
  reader.skipType(tag & 7);
16898
16574
  break;
@@ -16933,14 +16609,6 @@
16933
16609
  if (error)
16934
16610
  return "common." + error;
16935
16611
  }
16936
- if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
16937
- if (!$util.isObject(message.renamedServices))
16938
- return "renamedServices: object expected";
16939
- var key = Object.keys(message.renamedServices);
16940
- for (var i = 0; i < key.length; ++i)
16941
- if (!$util.isString(message.renamedServices[key[i]]))
16942
- return "renamedServices: string{k:string} expected";
16943
- }
16944
16612
  return null;
16945
16613
  };
16946
16614
 
@@ -16961,13 +16629,6 @@
16961
16629
  throw TypeError(".google.api.GoSettings.common: object expected");
16962
16630
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
16963
16631
  }
16964
- if (object.renamedServices) {
16965
- if (typeof object.renamedServices !== "object")
16966
- throw TypeError(".google.api.GoSettings.renamedServices: object expected");
16967
- message.renamedServices = {};
16968
- for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
16969
- message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
16970
- }
16971
16632
  return message;
16972
16633
  };
16973
16634
 
@@ -16984,18 +16645,10 @@
16984
16645
  if (!options)
16985
16646
  options = {};
16986
16647
  var object = {};
16987
- if (options.objects || options.defaults)
16988
- object.renamedServices = {};
16989
16648
  if (options.defaults)
16990
16649
  object.common = null;
16991
16650
  if (message.common != null && message.hasOwnProperty("common"))
16992
16651
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
16993
- var keys2;
16994
- if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
16995
- object.renamedServices = {};
16996
- for (var j = 0; j < keys2.length; ++j)
16997
- object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
16998
- }
16999
16652
  return object;
17000
16653
  };
17001
16654
 
@@ -17634,251 +17287,6 @@
17634
17287
  return values;
17635
17288
  })();
17636
17289
 
17637
- api.SelectiveGapicGeneration = (function() {
17638
-
17639
- /**
17640
- * Properties of a SelectiveGapicGeneration.
17641
- * @memberof google.api
17642
- * @interface ISelectiveGapicGeneration
17643
- * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
17644
- * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
17645
- */
17646
-
17647
- /**
17648
- * Constructs a new SelectiveGapicGeneration.
17649
- * @memberof google.api
17650
- * @classdesc Represents a SelectiveGapicGeneration.
17651
- * @implements ISelectiveGapicGeneration
17652
- * @constructor
17653
- * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
17654
- */
17655
- function SelectiveGapicGeneration(properties) {
17656
- this.methods = [];
17657
- if (properties)
17658
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17659
- if (properties[keys[i]] != null)
17660
- this[keys[i]] = properties[keys[i]];
17661
- }
17662
-
17663
- /**
17664
- * SelectiveGapicGeneration methods.
17665
- * @member {Array.<string>} methods
17666
- * @memberof google.api.SelectiveGapicGeneration
17667
- * @instance
17668
- */
17669
- SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
17670
-
17671
- /**
17672
- * SelectiveGapicGeneration generateOmittedAsInternal.
17673
- * @member {boolean} generateOmittedAsInternal
17674
- * @memberof google.api.SelectiveGapicGeneration
17675
- * @instance
17676
- */
17677
- SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
17678
-
17679
- /**
17680
- * Creates a new SelectiveGapicGeneration instance using the specified properties.
17681
- * @function create
17682
- * @memberof google.api.SelectiveGapicGeneration
17683
- * @static
17684
- * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
17685
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
17686
- */
17687
- SelectiveGapicGeneration.create = function create(properties) {
17688
- return new SelectiveGapicGeneration(properties);
17689
- };
17690
-
17691
- /**
17692
- * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
17693
- * @function encode
17694
- * @memberof google.api.SelectiveGapicGeneration
17695
- * @static
17696
- * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
17697
- * @param {$protobuf.Writer} [writer] Writer to encode to
17698
- * @returns {$protobuf.Writer} Writer
17699
- */
17700
- SelectiveGapicGeneration.encode = function encode(message, writer) {
17701
- if (!writer)
17702
- writer = $Writer.create();
17703
- if (message.methods != null && message.methods.length)
17704
- for (var i = 0; i < message.methods.length; ++i)
17705
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
17706
- if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
17707
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
17708
- return writer;
17709
- };
17710
-
17711
- /**
17712
- * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
17713
- * @function encodeDelimited
17714
- * @memberof google.api.SelectiveGapicGeneration
17715
- * @static
17716
- * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
17717
- * @param {$protobuf.Writer} [writer] Writer to encode to
17718
- * @returns {$protobuf.Writer} Writer
17719
- */
17720
- SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
17721
- return this.encode(message, writer).ldelim();
17722
- };
17723
-
17724
- /**
17725
- * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
17726
- * @function decode
17727
- * @memberof google.api.SelectiveGapicGeneration
17728
- * @static
17729
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17730
- * @param {number} [length] Message length if known beforehand
17731
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
17732
- * @throws {Error} If the payload is not a reader or valid buffer
17733
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
17734
- */
17735
- SelectiveGapicGeneration.decode = function decode(reader, length, error) {
17736
- if (!(reader instanceof $Reader))
17737
- reader = $Reader.create(reader);
17738
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
17739
- while (reader.pos < end) {
17740
- var tag = reader.uint32();
17741
- if (tag === error)
17742
- break;
17743
- switch (tag >>> 3) {
17744
- case 1: {
17745
- if (!(message.methods && message.methods.length))
17746
- message.methods = [];
17747
- message.methods.push(reader.string());
17748
- break;
17749
- }
17750
- case 2: {
17751
- message.generateOmittedAsInternal = reader.bool();
17752
- break;
17753
- }
17754
- default:
17755
- reader.skipType(tag & 7);
17756
- break;
17757
- }
17758
- }
17759
- return message;
17760
- };
17761
-
17762
- /**
17763
- * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
17764
- * @function decodeDelimited
17765
- * @memberof google.api.SelectiveGapicGeneration
17766
- * @static
17767
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17768
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
17769
- * @throws {Error} If the payload is not a reader or valid buffer
17770
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
17771
- */
17772
- SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
17773
- if (!(reader instanceof $Reader))
17774
- reader = new $Reader(reader);
17775
- return this.decode(reader, reader.uint32());
17776
- };
17777
-
17778
- /**
17779
- * Verifies a SelectiveGapicGeneration message.
17780
- * @function verify
17781
- * @memberof google.api.SelectiveGapicGeneration
17782
- * @static
17783
- * @param {Object.<string,*>} message Plain object to verify
17784
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
17785
- */
17786
- SelectiveGapicGeneration.verify = function verify(message) {
17787
- if (typeof message !== "object" || message === null)
17788
- return "object expected";
17789
- if (message.methods != null && message.hasOwnProperty("methods")) {
17790
- if (!Array.isArray(message.methods))
17791
- return "methods: array expected";
17792
- for (var i = 0; i < message.methods.length; ++i)
17793
- if (!$util.isString(message.methods[i]))
17794
- return "methods: string[] expected";
17795
- }
17796
- if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
17797
- if (typeof message.generateOmittedAsInternal !== "boolean")
17798
- return "generateOmittedAsInternal: boolean expected";
17799
- return null;
17800
- };
17801
-
17802
- /**
17803
- * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
17804
- * @function fromObject
17805
- * @memberof google.api.SelectiveGapicGeneration
17806
- * @static
17807
- * @param {Object.<string,*>} object Plain object
17808
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
17809
- */
17810
- SelectiveGapicGeneration.fromObject = function fromObject(object) {
17811
- if (object instanceof $root.google.api.SelectiveGapicGeneration)
17812
- return object;
17813
- var message = new $root.google.api.SelectiveGapicGeneration();
17814
- if (object.methods) {
17815
- if (!Array.isArray(object.methods))
17816
- throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
17817
- message.methods = [];
17818
- for (var i = 0; i < object.methods.length; ++i)
17819
- message.methods[i] = String(object.methods[i]);
17820
- }
17821
- if (object.generateOmittedAsInternal != null)
17822
- message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
17823
- return message;
17824
- };
17825
-
17826
- /**
17827
- * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
17828
- * @function toObject
17829
- * @memberof google.api.SelectiveGapicGeneration
17830
- * @static
17831
- * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
17832
- * @param {$protobuf.IConversionOptions} [options] Conversion options
17833
- * @returns {Object.<string,*>} Plain object
17834
- */
17835
- SelectiveGapicGeneration.toObject = function toObject(message, options) {
17836
- if (!options)
17837
- options = {};
17838
- var object = {};
17839
- if (options.arrays || options.defaults)
17840
- object.methods = [];
17841
- if (options.defaults)
17842
- object.generateOmittedAsInternal = false;
17843
- if (message.methods && message.methods.length) {
17844
- object.methods = [];
17845
- for (var j = 0; j < message.methods.length; ++j)
17846
- object.methods[j] = message.methods[j];
17847
- }
17848
- if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
17849
- object.generateOmittedAsInternal = message.generateOmittedAsInternal;
17850
- return object;
17851
- };
17852
-
17853
- /**
17854
- * Converts this SelectiveGapicGeneration to JSON.
17855
- * @function toJSON
17856
- * @memberof google.api.SelectiveGapicGeneration
17857
- * @instance
17858
- * @returns {Object.<string,*>} JSON object
17859
- */
17860
- SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
17861
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17862
- };
17863
-
17864
- /**
17865
- * Gets the default type url for SelectiveGapicGeneration
17866
- * @function getTypeUrl
17867
- * @memberof google.api.SelectiveGapicGeneration
17868
- * @static
17869
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17870
- * @returns {string} The default type url
17871
- */
17872
- SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17873
- if (typeUrlPrefix === undefined) {
17874
- typeUrlPrefix = "type.googleapis.com";
17875
- }
17876
- return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
17877
- };
17878
-
17879
- return SelectiveGapicGeneration;
17880
- })();
17881
-
17882
17290
  /**
17883
17291
  * LaunchStage enum.
17884
17292
  * @name google.api.LaunchStage
@@ -18628,7 +18036,6 @@
18628
18036
  * @memberof google.api
18629
18037
  * @interface IFieldInfo
18630
18038
  * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format
18631
- * @property {Array.<google.api.ITypeReference>|null} [referencedTypes] FieldInfo referencedTypes
18632
18039
  */
18633
18040
 
18634
18041
  /**
@@ -18640,7 +18047,6 @@
18640
18047
  * @param {google.api.IFieldInfo=} [properties] Properties to set
18641
18048
  */
18642
18049
  function FieldInfo(properties) {
18643
- this.referencedTypes = [];
18644
18050
  if (properties)
18645
18051
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18646
18052
  if (properties[keys[i]] != null)
@@ -18655,14 +18061,6 @@
18655
18061
  */
18656
18062
  FieldInfo.prototype.format = 0;
18657
18063
 
18658
- /**
18659
- * FieldInfo referencedTypes.
18660
- * @member {Array.<google.api.ITypeReference>} referencedTypes
18661
- * @memberof google.api.FieldInfo
18662
- * @instance
18663
- */
18664
- FieldInfo.prototype.referencedTypes = $util.emptyArray;
18665
-
18666
18064
  /**
18667
18065
  * Creates a new FieldInfo instance using the specified properties.
18668
18066
  * @function create
@@ -18689,9 +18087,6 @@
18689
18087
  writer = $Writer.create();
18690
18088
  if (message.format != null && Object.hasOwnProperty.call(message, "format"))
18691
18089
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format);
18692
- if (message.referencedTypes != null && message.referencedTypes.length)
18693
- for (var i = 0; i < message.referencedTypes.length; ++i)
18694
- $root.google.api.TypeReference.encode(message.referencedTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18695
18090
  return writer;
18696
18091
  };
18697
18092
 
@@ -18732,12 +18127,6 @@
18732
18127
  message.format = reader.int32();
18733
18128
  break;
18734
18129
  }
18735
- case 2: {
18736
- if (!(message.referencedTypes && message.referencedTypes.length))
18737
- message.referencedTypes = [];
18738
- message.referencedTypes.push($root.google.api.TypeReference.decode(reader, reader.uint32()));
18739
- break;
18740
- }
18741
18130
  default:
18742
18131
  reader.skipType(tag & 7);
18743
18132
  break;
@@ -18784,15 +18173,6 @@
18784
18173
  case 4:
18785
18174
  break;
18786
18175
  }
18787
- if (message.referencedTypes != null && message.hasOwnProperty("referencedTypes")) {
18788
- if (!Array.isArray(message.referencedTypes))
18789
- return "referencedTypes: array expected";
18790
- for (var i = 0; i < message.referencedTypes.length; ++i) {
18791
- var error = $root.google.api.TypeReference.verify(message.referencedTypes[i]);
18792
- if (error)
18793
- return "referencedTypes." + error;
18794
- }
18795
- }
18796
18176
  return null;
18797
18177
  };
18798
18178
 
@@ -18836,16 +18216,6 @@
18836
18216
  message.format = 4;
18837
18217
  break;
18838
18218
  }
18839
- if (object.referencedTypes) {
18840
- if (!Array.isArray(object.referencedTypes))
18841
- throw TypeError(".google.api.FieldInfo.referencedTypes: array expected");
18842
- message.referencedTypes = [];
18843
- for (var i = 0; i < object.referencedTypes.length; ++i) {
18844
- if (typeof object.referencedTypes[i] !== "object")
18845
- throw TypeError(".google.api.FieldInfo.referencedTypes: object expected");
18846
- message.referencedTypes[i] = $root.google.api.TypeReference.fromObject(object.referencedTypes[i]);
18847
- }
18848
- }
18849
18219
  return message;
18850
18220
  };
18851
18221
 
@@ -18862,17 +18232,10 @@
18862
18232
  if (!options)
18863
18233
  options = {};
18864
18234
  var object = {};
18865
- if (options.arrays || options.defaults)
18866
- object.referencedTypes = [];
18867
18235
  if (options.defaults)
18868
18236
  object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
18869
18237
  if (message.format != null && message.hasOwnProperty("format"))
18870
18238
  object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format;
18871
- if (message.referencedTypes && message.referencedTypes.length) {
18872
- object.referencedTypes = [];
18873
- for (var j = 0; j < message.referencedTypes.length; ++j)
18874
- object.referencedTypes[j] = $root.google.api.TypeReference.toObject(message.referencedTypes[j], options);
18875
- }
18876
18239
  return object;
18877
18240
  };
18878
18241
 
@@ -18925,24 +18288,37 @@
18925
18288
  return FieldInfo;
18926
18289
  })();
18927
18290
 
18928
- api.TypeReference = (function() {
18291
+ return api;
18292
+ })();
18293
+
18294
+ google.protobuf = (function() {
18295
+
18296
+ /**
18297
+ * Namespace protobuf.
18298
+ * @memberof google
18299
+ * @namespace
18300
+ */
18301
+ var protobuf = {};
18302
+
18303
+ protobuf.FileDescriptorSet = (function() {
18929
18304
 
18930
18305
  /**
18931
- * Properties of a TypeReference.
18932
- * @memberof google.api
18933
- * @interface ITypeReference
18934
- * @property {string|null} [typeName] TypeReference typeName
18306
+ * Properties of a FileDescriptorSet.
18307
+ * @memberof google.protobuf
18308
+ * @interface IFileDescriptorSet
18309
+ * @property {Array.<google.protobuf.IFileDescriptorProto>|null} [file] FileDescriptorSet file
18935
18310
  */
18936
18311
 
18937
18312
  /**
18938
- * Constructs a new TypeReference.
18939
- * @memberof google.api
18940
- * @classdesc Represents a TypeReference.
18941
- * @implements ITypeReference
18313
+ * Constructs a new FileDescriptorSet.
18314
+ * @memberof google.protobuf
18315
+ * @classdesc Represents a FileDescriptorSet.
18316
+ * @implements IFileDescriptorSet
18942
18317
  * @constructor
18943
- * @param {google.api.ITypeReference=} [properties] Properties to set
18318
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
18944
18319
  */
18945
- function TypeReference(properties) {
18320
+ function FileDescriptorSet(properties) {
18321
+ this.file = [];
18946
18322
  if (properties)
18947
18323
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18948
18324
  if (properties[keys[i]] != null)
@@ -18950,77 +18326,80 @@
18950
18326
  }
18951
18327
 
18952
18328
  /**
18953
- * TypeReference typeName.
18954
- * @member {string} typeName
18955
- * @memberof google.api.TypeReference
18329
+ * FileDescriptorSet file.
18330
+ * @member {Array.<google.protobuf.IFileDescriptorProto>} file
18331
+ * @memberof google.protobuf.FileDescriptorSet
18956
18332
  * @instance
18957
18333
  */
18958
- TypeReference.prototype.typeName = "";
18334
+ FileDescriptorSet.prototype.file = $util.emptyArray;
18959
18335
 
18960
18336
  /**
18961
- * Creates a new TypeReference instance using the specified properties.
18337
+ * Creates a new FileDescriptorSet instance using the specified properties.
18962
18338
  * @function create
18963
- * @memberof google.api.TypeReference
18339
+ * @memberof google.protobuf.FileDescriptorSet
18964
18340
  * @static
18965
- * @param {google.api.ITypeReference=} [properties] Properties to set
18966
- * @returns {google.api.TypeReference} TypeReference instance
18341
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
18342
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance
18967
18343
  */
18968
- TypeReference.create = function create(properties) {
18969
- return new TypeReference(properties);
18344
+ FileDescriptorSet.create = function create(properties) {
18345
+ return new FileDescriptorSet(properties);
18970
18346
  };
18971
18347
 
18972
18348
  /**
18973
- * Encodes the specified TypeReference message. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
18349
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
18974
18350
  * @function encode
18975
- * @memberof google.api.TypeReference
18351
+ * @memberof google.protobuf.FileDescriptorSet
18976
18352
  * @static
18977
- * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
18353
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
18978
18354
  * @param {$protobuf.Writer} [writer] Writer to encode to
18979
18355
  * @returns {$protobuf.Writer} Writer
18980
18356
  */
18981
- TypeReference.encode = function encode(message, writer) {
18357
+ FileDescriptorSet.encode = function encode(message, writer) {
18982
18358
  if (!writer)
18983
18359
  writer = $Writer.create();
18984
- if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName"))
18985
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.typeName);
18360
+ if (message.file != null && message.file.length)
18361
+ for (var i = 0; i < message.file.length; ++i)
18362
+ $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18986
18363
  return writer;
18987
18364
  };
18988
18365
 
18989
18366
  /**
18990
- * Encodes the specified TypeReference message, length delimited. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
18367
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
18991
18368
  * @function encodeDelimited
18992
- * @memberof google.api.TypeReference
18369
+ * @memberof google.protobuf.FileDescriptorSet
18993
18370
  * @static
18994
- * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
18371
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
18995
18372
  * @param {$protobuf.Writer} [writer] Writer to encode to
18996
18373
  * @returns {$protobuf.Writer} Writer
18997
18374
  */
18998
- TypeReference.encodeDelimited = function encodeDelimited(message, writer) {
18375
+ FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) {
18999
18376
  return this.encode(message, writer).ldelim();
19000
18377
  };
19001
18378
 
19002
18379
  /**
19003
- * Decodes a TypeReference message from the specified reader or buffer.
18380
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
19004
18381
  * @function decode
19005
- * @memberof google.api.TypeReference
18382
+ * @memberof google.protobuf.FileDescriptorSet
19006
18383
  * @static
19007
18384
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19008
18385
  * @param {number} [length] Message length if known beforehand
19009
- * @returns {google.api.TypeReference} TypeReference
18386
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19010
18387
  * @throws {Error} If the payload is not a reader or valid buffer
19011
18388
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19012
18389
  */
19013
- TypeReference.decode = function decode(reader, length, error) {
18390
+ FileDescriptorSet.decode = function decode(reader, length, error) {
19014
18391
  if (!(reader instanceof $Reader))
19015
18392
  reader = $Reader.create(reader);
19016
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.TypeReference();
18393
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
19017
18394
  while (reader.pos < end) {
19018
18395
  var tag = reader.uint32();
19019
18396
  if (tag === error)
19020
18397
  break;
19021
18398
  switch (tag >>> 3) {
19022
18399
  case 1: {
19023
- message.typeName = reader.string();
18400
+ if (!(message.file && message.file.length))
18401
+ message.file = [];
18402
+ message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32()));
19024
18403
  break;
19025
18404
  }
19026
18405
  default:
@@ -19032,328 +18411,107 @@
19032
18411
  };
19033
18412
 
19034
18413
  /**
19035
- * Decodes a TypeReference message from the specified reader or buffer, length delimited.
18414
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
19036
18415
  * @function decodeDelimited
19037
- * @memberof google.api.TypeReference
18416
+ * @memberof google.protobuf.FileDescriptorSet
19038
18417
  * @static
19039
18418
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19040
- * @returns {google.api.TypeReference} TypeReference
18419
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19041
18420
  * @throws {Error} If the payload is not a reader or valid buffer
19042
18421
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19043
18422
  */
19044
- TypeReference.decodeDelimited = function decodeDelimited(reader) {
18423
+ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) {
19045
18424
  if (!(reader instanceof $Reader))
19046
18425
  reader = new $Reader(reader);
19047
18426
  return this.decode(reader, reader.uint32());
19048
18427
  };
19049
18428
 
19050
18429
  /**
19051
- * Verifies a TypeReference message.
18430
+ * Verifies a FileDescriptorSet message.
19052
18431
  * @function verify
19053
- * @memberof google.api.TypeReference
18432
+ * @memberof google.protobuf.FileDescriptorSet
19054
18433
  * @static
19055
18434
  * @param {Object.<string,*>} message Plain object to verify
19056
18435
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
19057
18436
  */
19058
- TypeReference.verify = function verify(message) {
18437
+ FileDescriptorSet.verify = function verify(message) {
19059
18438
  if (typeof message !== "object" || message === null)
19060
18439
  return "object expected";
19061
- if (message.typeName != null && message.hasOwnProperty("typeName"))
19062
- if (!$util.isString(message.typeName))
19063
- return "typeName: string expected";
18440
+ if (message.file != null && message.hasOwnProperty("file")) {
18441
+ if (!Array.isArray(message.file))
18442
+ return "file: array expected";
18443
+ for (var i = 0; i < message.file.length; ++i) {
18444
+ var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]);
18445
+ if (error)
18446
+ return "file." + error;
18447
+ }
18448
+ }
19064
18449
  return null;
19065
18450
  };
19066
18451
 
19067
18452
  /**
19068
- * Creates a TypeReference message from a plain object. Also converts values to their respective internal types.
18453
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
19069
18454
  * @function fromObject
19070
- * @memberof google.api.TypeReference
18455
+ * @memberof google.protobuf.FileDescriptorSet
19071
18456
  * @static
19072
18457
  * @param {Object.<string,*>} object Plain object
19073
- * @returns {google.api.TypeReference} TypeReference
18458
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19074
18459
  */
19075
- TypeReference.fromObject = function fromObject(object) {
19076
- if (object instanceof $root.google.api.TypeReference)
18460
+ FileDescriptorSet.fromObject = function fromObject(object) {
18461
+ if (object instanceof $root.google.protobuf.FileDescriptorSet)
19077
18462
  return object;
19078
- var message = new $root.google.api.TypeReference();
19079
- if (object.typeName != null)
19080
- message.typeName = String(object.typeName);
18463
+ var message = new $root.google.protobuf.FileDescriptorSet();
18464
+ if (object.file) {
18465
+ if (!Array.isArray(object.file))
18466
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
18467
+ message.file = [];
18468
+ for (var i = 0; i < object.file.length; ++i) {
18469
+ if (typeof object.file[i] !== "object")
18470
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
18471
+ message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
18472
+ }
18473
+ }
19081
18474
  return message;
19082
18475
  };
19083
18476
 
19084
18477
  /**
19085
- * Creates a plain object from a TypeReference message. Also converts values to other types if specified.
18478
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
19086
18479
  * @function toObject
19087
- * @memberof google.api.TypeReference
18480
+ * @memberof google.protobuf.FileDescriptorSet
19088
18481
  * @static
19089
- * @param {google.api.TypeReference} message TypeReference
18482
+ * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
19090
18483
  * @param {$protobuf.IConversionOptions} [options] Conversion options
19091
18484
  * @returns {Object.<string,*>} Plain object
19092
18485
  */
19093
- TypeReference.toObject = function toObject(message, options) {
18486
+ FileDescriptorSet.toObject = function toObject(message, options) {
19094
18487
  if (!options)
19095
18488
  options = {};
19096
18489
  var object = {};
19097
- if (options.defaults)
19098
- object.typeName = "";
19099
- if (message.typeName != null && message.hasOwnProperty("typeName"))
19100
- object.typeName = message.typeName;
18490
+ if (options.arrays || options.defaults)
18491
+ object.file = [];
18492
+ if (message.file && message.file.length) {
18493
+ object.file = [];
18494
+ for (var j = 0; j < message.file.length; ++j)
18495
+ object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
18496
+ }
19101
18497
  return object;
19102
18498
  };
19103
18499
 
19104
18500
  /**
19105
- * Converts this TypeReference to JSON.
18501
+ * Converts this FileDescriptorSet to JSON.
19106
18502
  * @function toJSON
19107
- * @memberof google.api.TypeReference
18503
+ * @memberof google.protobuf.FileDescriptorSet
19108
18504
  * @instance
19109
18505
  * @returns {Object.<string,*>} JSON object
19110
18506
  */
19111
- TypeReference.prototype.toJSON = function toJSON() {
18507
+ FileDescriptorSet.prototype.toJSON = function toJSON() {
19112
18508
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19113
18509
  };
19114
18510
 
19115
18511
  /**
19116
- * Gets the default type url for TypeReference
18512
+ * Gets the default type url for FileDescriptorSet
19117
18513
  * @function getTypeUrl
19118
- * @memberof google.api.TypeReference
19119
- * @static
19120
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19121
- * @returns {string} The default type url
19122
- */
19123
- TypeReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19124
- if (typeUrlPrefix === undefined) {
19125
- typeUrlPrefix = "type.googleapis.com";
19126
- }
19127
- return typeUrlPrefix + "/google.api.TypeReference";
19128
- };
19129
-
19130
- return TypeReference;
19131
- })();
19132
-
19133
- return api;
19134
- })();
19135
-
19136
- google.protobuf = (function() {
19137
-
19138
- /**
19139
- * Namespace protobuf.
19140
- * @memberof google
19141
- * @namespace
19142
- */
19143
- var protobuf = {};
19144
-
19145
- protobuf.FileDescriptorSet = (function() {
19146
-
19147
- /**
19148
- * Properties of a FileDescriptorSet.
19149
- * @memberof google.protobuf
19150
- * @interface IFileDescriptorSet
19151
- * @property {Array.<google.protobuf.IFileDescriptorProto>|null} [file] FileDescriptorSet file
19152
- */
19153
-
19154
- /**
19155
- * Constructs a new FileDescriptorSet.
19156
- * @memberof google.protobuf
19157
- * @classdesc Represents a FileDescriptorSet.
19158
- * @implements IFileDescriptorSet
19159
- * @constructor
19160
- * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
19161
- */
19162
- function FileDescriptorSet(properties) {
19163
- this.file = [];
19164
- if (properties)
19165
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19166
- if (properties[keys[i]] != null)
19167
- this[keys[i]] = properties[keys[i]];
19168
- }
19169
-
19170
- /**
19171
- * FileDescriptorSet file.
19172
- * @member {Array.<google.protobuf.IFileDescriptorProto>} file
19173
- * @memberof google.protobuf.FileDescriptorSet
19174
- * @instance
19175
- */
19176
- FileDescriptorSet.prototype.file = $util.emptyArray;
19177
-
19178
- /**
19179
- * Creates a new FileDescriptorSet instance using the specified properties.
19180
- * @function create
19181
- * @memberof google.protobuf.FileDescriptorSet
19182
- * @static
19183
- * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
19184
- * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance
19185
- */
19186
- FileDescriptorSet.create = function create(properties) {
19187
- return new FileDescriptorSet(properties);
19188
- };
19189
-
19190
- /**
19191
- * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
19192
- * @function encode
19193
- * @memberof google.protobuf.FileDescriptorSet
19194
- * @static
19195
- * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
19196
- * @param {$protobuf.Writer} [writer] Writer to encode to
19197
- * @returns {$protobuf.Writer} Writer
19198
- */
19199
- FileDescriptorSet.encode = function encode(message, writer) {
19200
- if (!writer)
19201
- writer = $Writer.create();
19202
- if (message.file != null && message.file.length)
19203
- for (var i = 0; i < message.file.length; ++i)
19204
- $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
19205
- return writer;
19206
- };
19207
-
19208
- /**
19209
- * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
19210
- * @function encodeDelimited
19211
- * @memberof google.protobuf.FileDescriptorSet
19212
- * @static
19213
- * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
19214
- * @param {$protobuf.Writer} [writer] Writer to encode to
19215
- * @returns {$protobuf.Writer} Writer
19216
- */
19217
- FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) {
19218
- return this.encode(message, writer).ldelim();
19219
- };
19220
-
19221
- /**
19222
- * Decodes a FileDescriptorSet message from the specified reader or buffer.
19223
- * @function decode
19224
- * @memberof google.protobuf.FileDescriptorSet
19225
- * @static
19226
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19227
- * @param {number} [length] Message length if known beforehand
19228
- * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19229
- * @throws {Error} If the payload is not a reader or valid buffer
19230
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19231
- */
19232
- FileDescriptorSet.decode = function decode(reader, length, error) {
19233
- if (!(reader instanceof $Reader))
19234
- reader = $Reader.create(reader);
19235
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
19236
- while (reader.pos < end) {
19237
- var tag = reader.uint32();
19238
- if (tag === error)
19239
- break;
19240
- switch (tag >>> 3) {
19241
- case 1: {
19242
- if (!(message.file && message.file.length))
19243
- message.file = [];
19244
- message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32()));
19245
- break;
19246
- }
19247
- default:
19248
- reader.skipType(tag & 7);
19249
- break;
19250
- }
19251
- }
19252
- return message;
19253
- };
19254
-
19255
- /**
19256
- * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
19257
- * @function decodeDelimited
19258
- * @memberof google.protobuf.FileDescriptorSet
19259
- * @static
19260
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19261
- * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19262
- * @throws {Error} If the payload is not a reader or valid buffer
19263
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19264
- */
19265
- FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) {
19266
- if (!(reader instanceof $Reader))
19267
- reader = new $Reader(reader);
19268
- return this.decode(reader, reader.uint32());
19269
- };
19270
-
19271
- /**
19272
- * Verifies a FileDescriptorSet message.
19273
- * @function verify
19274
- * @memberof google.protobuf.FileDescriptorSet
19275
- * @static
19276
- * @param {Object.<string,*>} message Plain object to verify
19277
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
19278
- */
19279
- FileDescriptorSet.verify = function verify(message) {
19280
- if (typeof message !== "object" || message === null)
19281
- return "object expected";
19282
- if (message.file != null && message.hasOwnProperty("file")) {
19283
- if (!Array.isArray(message.file))
19284
- return "file: array expected";
19285
- for (var i = 0; i < message.file.length; ++i) {
19286
- var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]);
19287
- if (error)
19288
- return "file." + error;
19289
- }
19290
- }
19291
- return null;
19292
- };
19293
-
19294
- /**
19295
- * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
19296
- * @function fromObject
19297
- * @memberof google.protobuf.FileDescriptorSet
19298
- * @static
19299
- * @param {Object.<string,*>} object Plain object
19300
- * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
19301
- */
19302
- FileDescriptorSet.fromObject = function fromObject(object) {
19303
- if (object instanceof $root.google.protobuf.FileDescriptorSet)
19304
- return object;
19305
- var message = new $root.google.protobuf.FileDescriptorSet();
19306
- if (object.file) {
19307
- if (!Array.isArray(object.file))
19308
- throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
19309
- message.file = [];
19310
- for (var i = 0; i < object.file.length; ++i) {
19311
- if (typeof object.file[i] !== "object")
19312
- throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
19313
- message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
19314
- }
19315
- }
19316
- return message;
19317
- };
19318
-
19319
- /**
19320
- * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
19321
- * @function toObject
19322
- * @memberof google.protobuf.FileDescriptorSet
19323
- * @static
19324
- * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
19325
- * @param {$protobuf.IConversionOptions} [options] Conversion options
19326
- * @returns {Object.<string,*>} Plain object
19327
- */
19328
- FileDescriptorSet.toObject = function toObject(message, options) {
19329
- if (!options)
19330
- options = {};
19331
- var object = {};
19332
- if (options.arrays || options.defaults)
19333
- object.file = [];
19334
- if (message.file && message.file.length) {
19335
- object.file = [];
19336
- for (var j = 0; j < message.file.length; ++j)
19337
- object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
19338
- }
19339
- return object;
19340
- };
19341
-
19342
- /**
19343
- * Converts this FileDescriptorSet to JSON.
19344
- * @function toJSON
19345
- * @memberof google.protobuf.FileDescriptorSet
19346
- * @instance
19347
- * @returns {Object.<string,*>} JSON object
19348
- */
19349
- FileDescriptorSet.prototype.toJSON = function toJSON() {
19350
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19351
- };
19352
-
19353
- /**
19354
- * Gets the default type url for FileDescriptorSet
19355
- * @function getTypeUrl
19356
- * @memberof google.protobuf.FileDescriptorSet
18514
+ * @memberof google.protobuf.FileDescriptorSet
19357
18515
  * @static
19358
18516
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19359
18517
  * @returns {string} The default type url
@@ -19373,7 +18531,6 @@
19373
18531
  * @name google.protobuf.Edition
19374
18532
  * @enum {number}
19375
18533
  * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
19376
- * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
19377
18534
  * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
19378
18535
  * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
19379
18536
  * @property {number} EDITION_2023=1000 EDITION_2023 value
@@ -19388,7 +18545,6 @@
19388
18545
  protobuf.Edition = (function() {
19389
18546
  var valuesById = {}, values = Object.create(valuesById);
19390
18547
  values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
19391
- values[valuesById[900] = "EDITION_LEGACY"] = 900;
19392
18548
  values[valuesById[998] = "EDITION_PROTO2"] = 998;
19393
18549
  values[valuesById[999] = "EDITION_PROTO3"] = 999;
19394
18550
  values[valuesById[1000] = "EDITION_2023"] = 1000;
@@ -19413,7 +18569,6 @@
19413
18569
  * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
19414
18570
  * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
19415
18571
  * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
19416
- * @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
19417
18572
  * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
19418
18573
  * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
19419
18574
  * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
@@ -19436,7 +18591,6 @@
19436
18591
  this.dependency = [];
19437
18592
  this.publicDependency = [];
19438
18593
  this.weakDependency = [];
19439
- this.optionDependency = [];
19440
18594
  this.messageType = [];
19441
18595
  this.enumType = [];
19442
18596
  this.service = [];
@@ -19487,14 +18641,6 @@
19487
18641
  */
19488
18642
  FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
19489
18643
 
19490
- /**
19491
- * FileDescriptorProto optionDependency.
19492
- * @member {Array.<string>} optionDependency
19493
- * @memberof google.protobuf.FileDescriptorProto
19494
- * @instance
19495
- */
19496
- FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
19497
-
19498
18644
  /**
19499
18645
  * FileDescriptorProto messageType.
19500
18646
  * @member {Array.<google.protobuf.IDescriptorProto>} messageType
@@ -19616,9 +18762,6 @@
19616
18762
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
19617
18763
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
19618
18764
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
19619
- if (message.optionDependency != null && message.optionDependency.length)
19620
- for (var i = 0; i < message.optionDependency.length; ++i)
19621
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
19622
18765
  return writer;
19623
18766
  };
19624
18767
 
@@ -19691,12 +18834,6 @@
19691
18834
  message.weakDependency.push(reader.int32());
19692
18835
  break;
19693
18836
  }
19694
- case 15: {
19695
- if (!(message.optionDependency && message.optionDependency.length))
19696
- message.optionDependency = [];
19697
- message.optionDependency.push(reader.string());
19698
- break;
19699
- }
19700
18837
  case 4: {
19701
18838
  if (!(message.messageType && message.messageType.length))
19702
18839
  message.messageType = [];
@@ -19799,13 +18936,6 @@
19799
18936
  if (!$util.isInteger(message.weakDependency[i]))
19800
18937
  return "weakDependency: integer[] expected";
19801
18938
  }
19802
- if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
19803
- if (!Array.isArray(message.optionDependency))
19804
- return "optionDependency: array expected";
19805
- for (var i = 0; i < message.optionDependency.length; ++i)
19806
- if (!$util.isString(message.optionDependency[i]))
19807
- return "optionDependency: string[] expected";
19808
- }
19809
18939
  if (message.messageType != null && message.hasOwnProperty("messageType")) {
19810
18940
  if (!Array.isArray(message.messageType))
19811
18941
  return "messageType: array expected";
@@ -19860,7 +18990,6 @@
19860
18990
  default:
19861
18991
  return "edition: enum value expected";
19862
18992
  case 0:
19863
- case 900:
19864
18993
  case 998:
19865
18994
  case 999:
19866
18995
  case 1000:
@@ -19913,13 +19042,6 @@
19913
19042
  for (var i = 0; i < object.weakDependency.length; ++i)
19914
19043
  message.weakDependency[i] = object.weakDependency[i] | 0;
19915
19044
  }
19916
- if (object.optionDependency) {
19917
- if (!Array.isArray(object.optionDependency))
19918
- throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
19919
- message.optionDependency = [];
19920
- for (var i = 0; i < object.optionDependency.length; ++i)
19921
- message.optionDependency[i] = String(object.optionDependency[i]);
19922
- }
19923
19045
  if (object.messageType) {
19924
19046
  if (!Array.isArray(object.messageType))
19925
19047
  throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
@@ -19983,10 +19105,6 @@
19983
19105
  case 0:
19984
19106
  message.edition = 0;
19985
19107
  break;
19986
- case "EDITION_LEGACY":
19987
- case 900:
19988
- message.edition = 900;
19989
- break;
19990
19108
  case "EDITION_PROTO2":
19991
19109
  case 998:
19992
19110
  message.edition = 998;
@@ -20052,7 +19170,6 @@
20052
19170
  object.extension = [];
20053
19171
  object.publicDependency = [];
20054
19172
  object.weakDependency = [];
20055
- object.optionDependency = [];
20056
19173
  }
20057
19174
  if (options.defaults) {
20058
19175
  object.name = "";
@@ -20109,11 +19226,6 @@
20109
19226
  object.syntax = message.syntax;
20110
19227
  if (message.edition != null && message.hasOwnProperty("edition"))
20111
19228
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
20112
- if (message.optionDependency && message.optionDependency.length) {
20113
- object.optionDependency = [];
20114
- for (var j = 0; j < message.optionDependency.length; ++j)
20115
- object.optionDependency[j] = message.optionDependency[j];
20116
- }
20117
19229
  return object;
20118
19230
  };
20119
19231
 
@@ -20162,7 +19274,6 @@
20162
19274
  * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
20163
19275
  * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
20164
19276
  * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
20165
- * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
20166
19277
  */
20167
19278
 
20168
19279
  /**
@@ -20268,14 +19379,6 @@
20268
19379
  */
20269
19380
  DescriptorProto.prototype.reservedName = $util.emptyArray;
20270
19381
 
20271
- /**
20272
- * DescriptorProto visibility.
20273
- * @member {google.protobuf.SymbolVisibility} visibility
20274
- * @memberof google.protobuf.DescriptorProto
20275
- * @instance
20276
- */
20277
- DescriptorProto.prototype.visibility = 0;
20278
-
20279
19382
  /**
20280
19383
  * Creates a new DescriptorProto instance using the specified properties.
20281
19384
  * @function create
@@ -20328,8 +19431,6 @@
20328
19431
  if (message.reservedName != null && message.reservedName.length)
20329
19432
  for (var i = 0; i < message.reservedName.length; ++i)
20330
19433
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
20331
- if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
20332
- writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
20333
19434
  return writer;
20334
19435
  };
20335
19436
 
@@ -20422,10 +19523,6 @@
20422
19523
  message.reservedName.push(reader.string());
20423
19524
  break;
20424
19525
  }
20425
- case 11: {
20426
- message.visibility = reader.int32();
20427
- break;
20428
- }
20429
19526
  default:
20430
19527
  reader.skipType(tag & 7);
20431
19528
  break;
@@ -20539,15 +19636,6 @@
20539
19636
  if (!$util.isString(message.reservedName[i]))
20540
19637
  return "reservedName: string[] expected";
20541
19638
  }
20542
- if (message.visibility != null && message.hasOwnProperty("visibility"))
20543
- switch (message.visibility) {
20544
- default:
20545
- return "visibility: enum value expected";
20546
- case 0:
20547
- case 1:
20548
- case 2:
20549
- break;
20550
- }
20551
19639
  return null;
20552
19640
  };
20553
19641
 
@@ -20647,26 +19735,6 @@
20647
19735
  for (var i = 0; i < object.reservedName.length; ++i)
20648
19736
  message.reservedName[i] = String(object.reservedName[i]);
20649
19737
  }
20650
- switch (object.visibility) {
20651
- default:
20652
- if (typeof object.visibility === "number") {
20653
- message.visibility = object.visibility;
20654
- break;
20655
- }
20656
- break;
20657
- case "VISIBILITY_UNSET":
20658
- case 0:
20659
- message.visibility = 0;
20660
- break;
20661
- case "VISIBILITY_LOCAL":
20662
- case 1:
20663
- message.visibility = 1;
20664
- break;
20665
- case "VISIBILITY_EXPORT":
20666
- case 2:
20667
- message.visibility = 2;
20668
- break;
20669
- }
20670
19738
  return message;
20671
19739
  };
20672
19740
 
@@ -20696,7 +19764,6 @@
20696
19764
  if (options.defaults) {
20697
19765
  object.name = "";
20698
19766
  object.options = null;
20699
- object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
20700
19767
  }
20701
19768
  if (message.name != null && message.hasOwnProperty("name"))
20702
19769
  object.name = message.name;
@@ -20742,8 +19809,6 @@
20742
19809
  for (var j = 0; j < message.reservedName.length; ++j)
20743
19810
  object.reservedName[j] = message.reservedName[j];
20744
19811
  }
20745
- if (message.visibility != null && message.hasOwnProperty("visibility"))
20746
- object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
20747
19812
  return object;
20748
19813
  };
20749
19814
 
@@ -22788,7 +21853,6 @@
22788
21853
  * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
22789
21854
  * @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
22790
21855
  * @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
22791
- * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
22792
21856
  */
22793
21857
 
22794
21858
  /**
@@ -22849,14 +21913,6 @@
22849
21913
  */
22850
21914
  EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
22851
21915
 
22852
- /**
22853
- * EnumDescriptorProto visibility.
22854
- * @member {google.protobuf.SymbolVisibility} visibility
22855
- * @memberof google.protobuf.EnumDescriptorProto
22856
- * @instance
22857
- */
22858
- EnumDescriptorProto.prototype.visibility = 0;
22859
-
22860
21916
  /**
22861
21917
  * Creates a new EnumDescriptorProto instance using the specified properties.
22862
21918
  * @function create
@@ -22894,8 +21950,6 @@
22894
21950
  if (message.reservedName != null && message.reservedName.length)
22895
21951
  for (var i = 0; i < message.reservedName.length; ++i)
22896
21952
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
22897
- if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
22898
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
22899
21953
  return writer;
22900
21954
  };
22901
21955
 
@@ -22958,10 +22012,6 @@
22958
22012
  message.reservedName.push(reader.string());
22959
22013
  break;
22960
22014
  }
22961
- case 6: {
22962
- message.visibility = reader.int32();
22963
- break;
22964
- }
22965
22015
  default:
22966
22016
  reader.skipType(tag & 7);
22967
22017
  break;
@@ -23030,15 +22080,6 @@
23030
22080
  if (!$util.isString(message.reservedName[i]))
23031
22081
  return "reservedName: string[] expected";
23032
22082
  }
23033
- if (message.visibility != null && message.hasOwnProperty("visibility"))
23034
- switch (message.visibility) {
23035
- default:
23036
- return "visibility: enum value expected";
23037
- case 0:
23038
- case 1:
23039
- case 2:
23040
- break;
23041
- }
23042
22083
  return null;
23043
22084
  };
23044
22085
 
@@ -23088,26 +22129,6 @@
23088
22129
  for (var i = 0; i < object.reservedName.length; ++i)
23089
22130
  message.reservedName[i] = String(object.reservedName[i]);
23090
22131
  }
23091
- switch (object.visibility) {
23092
- default:
23093
- if (typeof object.visibility === "number") {
23094
- message.visibility = object.visibility;
23095
- break;
23096
- }
23097
- break;
23098
- case "VISIBILITY_UNSET":
23099
- case 0:
23100
- message.visibility = 0;
23101
- break;
23102
- case "VISIBILITY_LOCAL":
23103
- case 1:
23104
- message.visibility = 1;
23105
- break;
23106
- case "VISIBILITY_EXPORT":
23107
- case 2:
23108
- message.visibility = 2;
23109
- break;
23110
- }
23111
22132
  return message;
23112
22133
  };
23113
22134
 
@@ -23132,7 +22153,6 @@
23132
22153
  if (options.defaults) {
23133
22154
  object.name = "";
23134
22155
  object.options = null;
23135
- object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
23136
22156
  }
23137
22157
  if (message.name != null && message.hasOwnProperty("name"))
23138
22158
  object.name = message.name;
@@ -23153,8 +22173,6 @@
23153
22173
  for (var j = 0; j < message.reservedName.length; ++j)
23154
22174
  object.reservedName[j] = message.reservedName[j];
23155
22175
  }
23156
- if (message.visibility != null && message.hasOwnProperty("visibility"))
23157
- object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
23158
22176
  return object;
23159
22177
  };
23160
22178
 
@@ -25473,7 +24491,6 @@
25473
24491
  * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
25474
24492
  * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
25475
24493
  * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
25476
- * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
25477
24494
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
25478
24495
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
25479
24496
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -25595,14 +24612,6 @@
25595
24612
  */
25596
24613
  FieldOptions.prototype.features = null;
25597
24614
 
25598
- /**
25599
- * FieldOptions featureSupport.
25600
- * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
25601
- * @memberof google.protobuf.FieldOptions
25602
- * @instance
25603
- */
25604
- FieldOptions.prototype.featureSupport = null;
25605
-
25606
24615
  /**
25607
24616
  * FieldOptions uninterpretedOption.
25608
24617
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -25685,8 +24694,6 @@
25685
24694
  $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
25686
24695
  if (message.features != null && Object.hasOwnProperty.call(message, "features"))
25687
24696
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
25688
- if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
25689
- $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
25690
24697
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
25691
24698
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
25692
24699
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -25790,10 +24797,6 @@
25790
24797
  message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
25791
24798
  break;
25792
24799
  }
25793
- case 22: {
25794
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
25795
- break;
25796
- }
25797
24800
  case 999: {
25798
24801
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
25799
24802
  message.uninterpretedOption = [];
@@ -25933,11 +24936,6 @@
25933
24936
  if (error)
25934
24937
  return "features." + error;
25935
24938
  }
25936
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
25937
- var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
25938
- if (error)
25939
- return "featureSupport." + error;
25940
- }
25941
24939
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
25942
24940
  if (!Array.isArray(message.uninterpretedOption))
25943
24941
  return "uninterpretedOption: array expected";
@@ -26131,11 +25129,6 @@
26131
25129
  throw TypeError(".google.protobuf.FieldOptions.features: object expected");
26132
25130
  message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
26133
25131
  }
26134
- if (object.featureSupport != null) {
26135
- if (typeof object.featureSupport !== "object")
26136
- throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
26137
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
26138
- }
26139
25132
  if (object.uninterpretedOption) {
26140
25133
  if (!Array.isArray(object.uninterpretedOption))
26141
25134
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -26238,7 +25231,6 @@
26238
25231
  object.debugRedact = false;
26239
25232
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
26240
25233
  object.features = null;
26241
- object.featureSupport = null;
26242
25234
  object[".google.api.resourceReference"] = null;
26243
25235
  object[".google.api.fieldInfo"] = null;
26244
25236
  }
@@ -26272,8 +25264,6 @@
26272
25264
  }
26273
25265
  if (message.features != null && message.hasOwnProperty("features"))
26274
25266
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
26275
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
26276
- object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
26277
25267
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
26278
25268
  object.uninterpretedOption = [];
26279
25269
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -26548,7 +25538,6 @@
26548
25538
  default:
26549
25539
  return "edition: enum value expected";
26550
25540
  case 0:
26551
- case 900:
26552
25541
  case 998:
26553
25542
  case 999:
26554
25543
  case 1000:
@@ -26590,589 +25579,103 @@
26590
25579
  case 0:
26591
25580
  message.edition = 0;
26592
25581
  break;
26593
- case "EDITION_LEGACY":
26594
- case 900:
26595
- message.edition = 900;
26596
- break;
26597
25582
  case "EDITION_PROTO2":
26598
25583
  case 998:
26599
25584
  message.edition = 998;
26600
25585
  break;
26601
25586
  case "EDITION_PROTO3":
26602
25587
  case 999:
26603
- message.edition = 999;
26604
- break;
26605
- case "EDITION_2023":
26606
- case 1000:
26607
- message.edition = 1000;
26608
- break;
26609
- case "EDITION_2024":
26610
- case 1001:
26611
- message.edition = 1001;
26612
- break;
26613
- case "EDITION_1_TEST_ONLY":
26614
- case 1:
26615
- message.edition = 1;
26616
- break;
26617
- case "EDITION_2_TEST_ONLY":
26618
- case 2:
26619
- message.edition = 2;
26620
- break;
26621
- case "EDITION_99997_TEST_ONLY":
26622
- case 99997:
26623
- message.edition = 99997;
26624
- break;
26625
- case "EDITION_99998_TEST_ONLY":
26626
- case 99998:
26627
- message.edition = 99998;
26628
- break;
26629
- case "EDITION_99999_TEST_ONLY":
26630
- case 99999:
26631
- message.edition = 99999;
26632
- break;
26633
- case "EDITION_MAX":
26634
- case 2147483647:
26635
- message.edition = 2147483647;
26636
- break;
26637
- }
26638
- if (object.value != null)
26639
- message.value = String(object.value);
26640
- return message;
26641
- };
26642
-
26643
- /**
26644
- * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
26645
- * @function toObject
26646
- * @memberof google.protobuf.FieldOptions.EditionDefault
26647
- * @static
26648
- * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
26649
- * @param {$protobuf.IConversionOptions} [options] Conversion options
26650
- * @returns {Object.<string,*>} Plain object
26651
- */
26652
- EditionDefault.toObject = function toObject(message, options) {
26653
- if (!options)
26654
- options = {};
26655
- var object = {};
26656
- if (options.defaults) {
26657
- object.value = "";
26658
- object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
26659
- }
26660
- if (message.value != null && message.hasOwnProperty("value"))
26661
- object.value = message.value;
26662
- if (message.edition != null && message.hasOwnProperty("edition"))
26663
- object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
26664
- return object;
26665
- };
26666
-
26667
- /**
26668
- * Converts this EditionDefault to JSON.
26669
- * @function toJSON
26670
- * @memberof google.protobuf.FieldOptions.EditionDefault
26671
- * @instance
26672
- * @returns {Object.<string,*>} JSON object
26673
- */
26674
- EditionDefault.prototype.toJSON = function toJSON() {
26675
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26676
- };
26677
-
26678
- /**
26679
- * Gets the default type url for EditionDefault
26680
- * @function getTypeUrl
26681
- * @memberof google.protobuf.FieldOptions.EditionDefault
26682
- * @static
26683
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26684
- * @returns {string} The default type url
26685
- */
26686
- EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26687
- if (typeUrlPrefix === undefined) {
26688
- typeUrlPrefix = "type.googleapis.com";
26689
- }
26690
- return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
26691
- };
26692
-
26693
- return EditionDefault;
26694
- })();
26695
-
26696
- FieldOptions.FeatureSupport = (function() {
26697
-
26698
- /**
26699
- * Properties of a FeatureSupport.
26700
- * @memberof google.protobuf.FieldOptions
26701
- * @interface IFeatureSupport
26702
- * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
26703
- * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
26704
- * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
26705
- * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
26706
- */
26707
-
26708
- /**
26709
- * Constructs a new FeatureSupport.
26710
- * @memberof google.protobuf.FieldOptions
26711
- * @classdesc Represents a FeatureSupport.
26712
- * @implements IFeatureSupport
26713
- * @constructor
26714
- * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
26715
- */
26716
- function FeatureSupport(properties) {
26717
- if (properties)
26718
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26719
- if (properties[keys[i]] != null)
26720
- this[keys[i]] = properties[keys[i]];
26721
- }
26722
-
26723
- /**
26724
- * FeatureSupport editionIntroduced.
26725
- * @member {google.protobuf.Edition} editionIntroduced
26726
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26727
- * @instance
26728
- */
26729
- FeatureSupport.prototype.editionIntroduced = 0;
26730
-
26731
- /**
26732
- * FeatureSupport editionDeprecated.
26733
- * @member {google.protobuf.Edition} editionDeprecated
26734
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26735
- * @instance
26736
- */
26737
- FeatureSupport.prototype.editionDeprecated = 0;
26738
-
26739
- /**
26740
- * FeatureSupport deprecationWarning.
26741
- * @member {string} deprecationWarning
26742
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26743
- * @instance
26744
- */
26745
- FeatureSupport.prototype.deprecationWarning = "";
26746
-
26747
- /**
26748
- * FeatureSupport editionRemoved.
26749
- * @member {google.protobuf.Edition} editionRemoved
26750
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26751
- * @instance
26752
- */
26753
- FeatureSupport.prototype.editionRemoved = 0;
26754
-
26755
- /**
26756
- * Creates a new FeatureSupport instance using the specified properties.
26757
- * @function create
26758
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26759
- * @static
26760
- * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
26761
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
26762
- */
26763
- FeatureSupport.create = function create(properties) {
26764
- return new FeatureSupport(properties);
26765
- };
26766
-
26767
- /**
26768
- * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
26769
- * @function encode
26770
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26771
- * @static
26772
- * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
26773
- * @param {$protobuf.Writer} [writer] Writer to encode to
26774
- * @returns {$protobuf.Writer} Writer
26775
- */
26776
- FeatureSupport.encode = function encode(message, writer) {
26777
- if (!writer)
26778
- writer = $Writer.create();
26779
- if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
26780
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
26781
- if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
26782
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
26783
- if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
26784
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
26785
- if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
26786
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
26787
- return writer;
26788
- };
26789
-
26790
- /**
26791
- * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
26792
- * @function encodeDelimited
26793
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26794
- * @static
26795
- * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
26796
- * @param {$protobuf.Writer} [writer] Writer to encode to
26797
- * @returns {$protobuf.Writer} Writer
26798
- */
26799
- FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
26800
- return this.encode(message, writer).ldelim();
26801
- };
26802
-
26803
- /**
26804
- * Decodes a FeatureSupport message from the specified reader or buffer.
26805
- * @function decode
26806
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26807
- * @static
26808
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26809
- * @param {number} [length] Message length if known beforehand
26810
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
26811
- * @throws {Error} If the payload is not a reader or valid buffer
26812
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
26813
- */
26814
- FeatureSupport.decode = function decode(reader, length, error) {
26815
- if (!(reader instanceof $Reader))
26816
- reader = $Reader.create(reader);
26817
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
26818
- while (reader.pos < end) {
26819
- var tag = reader.uint32();
26820
- if (tag === error)
26821
- break;
26822
- switch (tag >>> 3) {
26823
- case 1: {
26824
- message.editionIntroduced = reader.int32();
26825
- break;
26826
- }
26827
- case 2: {
26828
- message.editionDeprecated = reader.int32();
26829
- break;
26830
- }
26831
- case 3: {
26832
- message.deprecationWarning = reader.string();
26833
- break;
26834
- }
26835
- case 4: {
26836
- message.editionRemoved = reader.int32();
26837
- break;
26838
- }
26839
- default:
26840
- reader.skipType(tag & 7);
26841
- break;
26842
- }
26843
- }
26844
- return message;
26845
- };
26846
-
26847
- /**
26848
- * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
26849
- * @function decodeDelimited
26850
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26851
- * @static
26852
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26853
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
26854
- * @throws {Error} If the payload is not a reader or valid buffer
26855
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
26856
- */
26857
- FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
26858
- if (!(reader instanceof $Reader))
26859
- reader = new $Reader(reader);
26860
- return this.decode(reader, reader.uint32());
26861
- };
26862
-
26863
- /**
26864
- * Verifies a FeatureSupport message.
26865
- * @function verify
26866
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26867
- * @static
26868
- * @param {Object.<string,*>} message Plain object to verify
26869
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
26870
- */
26871
- FeatureSupport.verify = function verify(message) {
26872
- if (typeof message !== "object" || message === null)
26873
- return "object expected";
26874
- if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
26875
- switch (message.editionIntroduced) {
26876
- default:
26877
- return "editionIntroduced: enum value expected";
26878
- case 0:
26879
- case 900:
26880
- case 998:
26881
- case 999:
26882
- case 1000:
26883
- case 1001:
26884
- case 1:
26885
- case 2:
26886
- case 99997:
26887
- case 99998:
26888
- case 99999:
26889
- case 2147483647:
26890
- break;
26891
- }
26892
- if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
26893
- switch (message.editionDeprecated) {
26894
- default:
26895
- return "editionDeprecated: enum value expected";
26896
- case 0:
26897
- case 900:
26898
- case 998:
26899
- case 999:
26900
- case 1000:
26901
- case 1001:
26902
- case 1:
26903
- case 2:
26904
- case 99997:
26905
- case 99998:
26906
- case 99999:
26907
- case 2147483647:
26908
- break;
26909
- }
26910
- if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
26911
- if (!$util.isString(message.deprecationWarning))
26912
- return "deprecationWarning: string expected";
26913
- if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
26914
- switch (message.editionRemoved) {
26915
- default:
26916
- return "editionRemoved: enum value expected";
26917
- case 0:
26918
- case 900:
26919
- case 998:
26920
- case 999:
26921
- case 1000:
26922
- case 1001:
26923
- case 1:
26924
- case 2:
26925
- case 99997:
26926
- case 99998:
26927
- case 99999:
26928
- case 2147483647:
26929
- break;
26930
- }
26931
- return null;
26932
- };
26933
-
26934
- /**
26935
- * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
26936
- * @function fromObject
26937
- * @memberof google.protobuf.FieldOptions.FeatureSupport
26938
- * @static
26939
- * @param {Object.<string,*>} object Plain object
26940
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
26941
- */
26942
- FeatureSupport.fromObject = function fromObject(object) {
26943
- if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
26944
- return object;
26945
- var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
26946
- switch (object.editionIntroduced) {
26947
- default:
26948
- if (typeof object.editionIntroduced === "number") {
26949
- message.editionIntroduced = object.editionIntroduced;
26950
- break;
26951
- }
26952
- break;
26953
- case "EDITION_UNKNOWN":
26954
- case 0:
26955
- message.editionIntroduced = 0;
26956
- break;
26957
- case "EDITION_LEGACY":
26958
- case 900:
26959
- message.editionIntroduced = 900;
26960
- break;
26961
- case "EDITION_PROTO2":
26962
- case 998:
26963
- message.editionIntroduced = 998;
26964
- break;
26965
- case "EDITION_PROTO3":
26966
- case 999:
26967
- message.editionIntroduced = 999;
26968
- break;
26969
- case "EDITION_2023":
26970
- case 1000:
26971
- message.editionIntroduced = 1000;
26972
- break;
26973
- case "EDITION_2024":
26974
- case 1001:
26975
- message.editionIntroduced = 1001;
26976
- break;
26977
- case "EDITION_1_TEST_ONLY":
26978
- case 1:
26979
- message.editionIntroduced = 1;
26980
- break;
26981
- case "EDITION_2_TEST_ONLY":
26982
- case 2:
26983
- message.editionIntroduced = 2;
26984
- break;
26985
- case "EDITION_99997_TEST_ONLY":
26986
- case 99997:
26987
- message.editionIntroduced = 99997;
26988
- break;
26989
- case "EDITION_99998_TEST_ONLY":
26990
- case 99998:
26991
- message.editionIntroduced = 99998;
26992
- break;
26993
- case "EDITION_99999_TEST_ONLY":
26994
- case 99999:
26995
- message.editionIntroduced = 99999;
26996
- break;
26997
- case "EDITION_MAX":
26998
- case 2147483647:
26999
- message.editionIntroduced = 2147483647;
27000
- break;
27001
- }
27002
- switch (object.editionDeprecated) {
27003
- default:
27004
- if (typeof object.editionDeprecated === "number") {
27005
- message.editionDeprecated = object.editionDeprecated;
27006
- break;
27007
- }
27008
- break;
27009
- case "EDITION_UNKNOWN":
27010
- case 0:
27011
- message.editionDeprecated = 0;
27012
- break;
27013
- case "EDITION_LEGACY":
27014
- case 900:
27015
- message.editionDeprecated = 900;
27016
- break;
27017
- case "EDITION_PROTO2":
27018
- case 998:
27019
- message.editionDeprecated = 998;
27020
- break;
27021
- case "EDITION_PROTO3":
27022
- case 999:
27023
- message.editionDeprecated = 999;
27024
- break;
27025
- case "EDITION_2023":
27026
- case 1000:
27027
- message.editionDeprecated = 1000;
27028
- break;
27029
- case "EDITION_2024":
27030
- case 1001:
27031
- message.editionDeprecated = 1001;
27032
- break;
27033
- case "EDITION_1_TEST_ONLY":
27034
- case 1:
27035
- message.editionDeprecated = 1;
27036
- break;
27037
- case "EDITION_2_TEST_ONLY":
27038
- case 2:
27039
- message.editionDeprecated = 2;
27040
- break;
27041
- case "EDITION_99997_TEST_ONLY":
27042
- case 99997:
27043
- message.editionDeprecated = 99997;
27044
- break;
27045
- case "EDITION_99998_TEST_ONLY":
27046
- case 99998:
27047
- message.editionDeprecated = 99998;
27048
- break;
27049
- case "EDITION_99999_TEST_ONLY":
27050
- case 99999:
27051
- message.editionDeprecated = 99999;
27052
- break;
27053
- case "EDITION_MAX":
27054
- case 2147483647:
27055
- message.editionDeprecated = 2147483647;
27056
- break;
27057
- }
27058
- if (object.deprecationWarning != null)
27059
- message.deprecationWarning = String(object.deprecationWarning);
27060
- switch (object.editionRemoved) {
27061
- default:
27062
- if (typeof object.editionRemoved === "number") {
27063
- message.editionRemoved = object.editionRemoved;
27064
- break;
27065
- }
27066
- break;
27067
- case "EDITION_UNKNOWN":
27068
- case 0:
27069
- message.editionRemoved = 0;
27070
- break;
27071
- case "EDITION_LEGACY":
27072
- case 900:
27073
- message.editionRemoved = 900;
27074
- break;
27075
- case "EDITION_PROTO2":
27076
- case 998:
27077
- message.editionRemoved = 998;
27078
- break;
27079
- case "EDITION_PROTO3":
27080
- case 999:
27081
- message.editionRemoved = 999;
25588
+ message.edition = 999;
27082
25589
  break;
27083
25590
  case "EDITION_2023":
27084
25591
  case 1000:
27085
- message.editionRemoved = 1000;
25592
+ message.edition = 1000;
27086
25593
  break;
27087
25594
  case "EDITION_2024":
27088
25595
  case 1001:
27089
- message.editionRemoved = 1001;
25596
+ message.edition = 1001;
27090
25597
  break;
27091
25598
  case "EDITION_1_TEST_ONLY":
27092
25599
  case 1:
27093
- message.editionRemoved = 1;
25600
+ message.edition = 1;
27094
25601
  break;
27095
25602
  case "EDITION_2_TEST_ONLY":
27096
25603
  case 2:
27097
- message.editionRemoved = 2;
25604
+ message.edition = 2;
27098
25605
  break;
27099
25606
  case "EDITION_99997_TEST_ONLY":
27100
25607
  case 99997:
27101
- message.editionRemoved = 99997;
25608
+ message.edition = 99997;
27102
25609
  break;
27103
25610
  case "EDITION_99998_TEST_ONLY":
27104
25611
  case 99998:
27105
- message.editionRemoved = 99998;
25612
+ message.edition = 99998;
27106
25613
  break;
27107
25614
  case "EDITION_99999_TEST_ONLY":
27108
25615
  case 99999:
27109
- message.editionRemoved = 99999;
25616
+ message.edition = 99999;
27110
25617
  break;
27111
25618
  case "EDITION_MAX":
27112
25619
  case 2147483647:
27113
- message.editionRemoved = 2147483647;
25620
+ message.edition = 2147483647;
27114
25621
  break;
27115
25622
  }
25623
+ if (object.value != null)
25624
+ message.value = String(object.value);
27116
25625
  return message;
27117
25626
  };
27118
25627
 
27119
25628
  /**
27120
- * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
25629
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
27121
25630
  * @function toObject
27122
- * @memberof google.protobuf.FieldOptions.FeatureSupport
25631
+ * @memberof google.protobuf.FieldOptions.EditionDefault
27123
25632
  * @static
27124
- * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
25633
+ * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
27125
25634
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27126
25635
  * @returns {Object.<string,*>} Plain object
27127
25636
  */
27128
- FeatureSupport.toObject = function toObject(message, options) {
25637
+ EditionDefault.toObject = function toObject(message, options) {
27129
25638
  if (!options)
27130
25639
  options = {};
27131
25640
  var object = {};
27132
25641
  if (options.defaults) {
27133
- object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
27134
- object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
27135
- object.deprecationWarning = "";
27136
- object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
25642
+ object.value = "";
25643
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
27137
25644
  }
27138
- if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
27139
- object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
27140
- if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
27141
- object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
27142
- if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
27143
- object.deprecationWarning = message.deprecationWarning;
27144
- if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
27145
- object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
25645
+ if (message.value != null && message.hasOwnProperty("value"))
25646
+ object.value = message.value;
25647
+ if (message.edition != null && message.hasOwnProperty("edition"))
25648
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
27146
25649
  return object;
27147
25650
  };
27148
25651
 
27149
25652
  /**
27150
- * Converts this FeatureSupport to JSON.
25653
+ * Converts this EditionDefault to JSON.
27151
25654
  * @function toJSON
27152
- * @memberof google.protobuf.FieldOptions.FeatureSupport
25655
+ * @memberof google.protobuf.FieldOptions.EditionDefault
27153
25656
  * @instance
27154
25657
  * @returns {Object.<string,*>} JSON object
27155
25658
  */
27156
- FeatureSupport.prototype.toJSON = function toJSON() {
25659
+ EditionDefault.prototype.toJSON = function toJSON() {
27157
25660
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27158
25661
  };
27159
25662
 
27160
25663
  /**
27161
- * Gets the default type url for FeatureSupport
25664
+ * Gets the default type url for EditionDefault
27162
25665
  * @function getTypeUrl
27163
- * @memberof google.protobuf.FieldOptions.FeatureSupport
25666
+ * @memberof google.protobuf.FieldOptions.EditionDefault
27164
25667
  * @static
27165
25668
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
27166
25669
  * @returns {string} The default type url
27167
25670
  */
27168
- FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25671
+ EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27169
25672
  if (typeUrlPrefix === undefined) {
27170
25673
  typeUrlPrefix = "type.googleapis.com";
27171
25674
  }
27172
- return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
25675
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
27173
25676
  };
27174
25677
 
27175
- return FeatureSupport;
25678
+ return EditionDefault;
27176
25679
  })();
27177
25680
 
27178
25681
  return FieldOptions;
@@ -27767,7 +26270,6 @@
27767
26270
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
27768
26271
  * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
27769
26272
  * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
27770
- * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
27771
26273
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
27772
26274
  */
27773
26275
 
@@ -27811,14 +26313,6 @@
27811
26313
  */
27812
26314
  EnumValueOptions.prototype.debugRedact = false;
27813
26315
 
27814
- /**
27815
- * EnumValueOptions featureSupport.
27816
- * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
27817
- * @memberof google.protobuf.EnumValueOptions
27818
- * @instance
27819
- */
27820
- EnumValueOptions.prototype.featureSupport = null;
27821
-
27822
26316
  /**
27823
26317
  * EnumValueOptions uninterpretedOption.
27824
26318
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -27857,8 +26351,6 @@
27857
26351
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
27858
26352
  if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
27859
26353
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
27860
- if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
27861
- $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
27862
26354
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
27863
26355
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
27864
26356
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -27910,10 +26402,6 @@
27910
26402
  message.debugRedact = reader.bool();
27911
26403
  break;
27912
26404
  }
27913
- case 4: {
27914
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
27915
- break;
27916
- }
27917
26405
  case 999: {
27918
26406
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
27919
26407
  message.uninterpretedOption = [];
@@ -27966,11 +26454,6 @@
27966
26454
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
27967
26455
  if (typeof message.debugRedact !== "boolean")
27968
26456
  return "debugRedact: boolean expected";
27969
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
27970
- var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
27971
- if (error)
27972
- return "featureSupport." + error;
27973
- }
27974
26457
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
27975
26458
  if (!Array.isArray(message.uninterpretedOption))
27976
26459
  return "uninterpretedOption: array expected";
@@ -28004,11 +26487,6 @@
28004
26487
  }
28005
26488
  if (object.debugRedact != null)
28006
26489
  message.debugRedact = Boolean(object.debugRedact);
28007
- if (object.featureSupport != null) {
28008
- if (typeof object.featureSupport !== "object")
28009
- throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
28010
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
28011
- }
28012
26490
  if (object.uninterpretedOption) {
28013
26491
  if (!Array.isArray(object.uninterpretedOption))
28014
26492
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -28041,7 +26519,6 @@
28041
26519
  object.deprecated = false;
28042
26520
  object.features = null;
28043
26521
  object.debugRedact = false;
28044
- object.featureSupport = null;
28045
26522
  }
28046
26523
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
28047
26524
  object.deprecated = message.deprecated;
@@ -28049,8 +26526,6 @@
28049
26526
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
28050
26527
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
28051
26528
  object.debugRedact = message.debugRedact;
28052
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
28053
- object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
28054
26529
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
28055
26530
  object.uninterpretedOption = [];
28056
26531
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -29490,8 +27965,6 @@
29490
27965
  * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
29491
27966
  * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
29492
27967
  * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
29493
- * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
29494
- * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
29495
27968
  */
29496
27969
 
29497
27970
  /**
@@ -29557,22 +28030,6 @@
29557
28030
  */
29558
28031
  FeatureSet.prototype.jsonFormat = 0;
29559
28032
 
29560
- /**
29561
- * FeatureSet enforceNamingStyle.
29562
- * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
29563
- * @memberof google.protobuf.FeatureSet
29564
- * @instance
29565
- */
29566
- FeatureSet.prototype.enforceNamingStyle = 0;
29567
-
29568
- /**
29569
- * FeatureSet defaultSymbolVisibility.
29570
- * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
29571
- * @memberof google.protobuf.FeatureSet
29572
- * @instance
29573
- */
29574
- FeatureSet.prototype.defaultSymbolVisibility = 0;
29575
-
29576
28033
  /**
29577
28034
  * Creates a new FeatureSet instance using the specified properties.
29578
28035
  * @function create
@@ -29609,10 +28066,6 @@
29609
28066
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
29610
28067
  if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
29611
28068
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
29612
- if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
29613
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
29614
- if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
29615
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
29616
28069
  return writer;
29617
28070
  };
29618
28071
 
@@ -29673,14 +28126,6 @@
29673
28126
  message.jsonFormat = reader.int32();
29674
28127
  break;
29675
28128
  }
29676
- case 7: {
29677
- message.enforceNamingStyle = reader.int32();
29678
- break;
29679
- }
29680
- case 8: {
29681
- message.defaultSymbolVisibility = reader.int32();
29682
- break;
29683
- }
29684
28129
  default:
29685
28130
  reader.skipType(tag & 7);
29686
28131
  break;
@@ -29771,26 +28216,6 @@
29771
28216
  case 2:
29772
28217
  break;
29773
28218
  }
29774
- if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
29775
- switch (message.enforceNamingStyle) {
29776
- default:
29777
- return "enforceNamingStyle: enum value expected";
29778
- case 0:
29779
- case 1:
29780
- case 2:
29781
- break;
29782
- }
29783
- if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
29784
- switch (message.defaultSymbolVisibility) {
29785
- default:
29786
- return "defaultSymbolVisibility: enum value expected";
29787
- case 0:
29788
- case 1:
29789
- case 2:
29790
- case 3:
29791
- case 4:
29792
- break;
29793
- }
29794
28219
  return null;
29795
28220
  };
29796
28221
 
@@ -29930,54 +28355,6 @@
29930
28355
  message.jsonFormat = 2;
29931
28356
  break;
29932
28357
  }
29933
- switch (object.enforceNamingStyle) {
29934
- default:
29935
- if (typeof object.enforceNamingStyle === "number") {
29936
- message.enforceNamingStyle = object.enforceNamingStyle;
29937
- break;
29938
- }
29939
- break;
29940
- case "ENFORCE_NAMING_STYLE_UNKNOWN":
29941
- case 0:
29942
- message.enforceNamingStyle = 0;
29943
- break;
29944
- case "STYLE2024":
29945
- case 1:
29946
- message.enforceNamingStyle = 1;
29947
- break;
29948
- case "STYLE_LEGACY":
29949
- case 2:
29950
- message.enforceNamingStyle = 2;
29951
- break;
29952
- }
29953
- switch (object.defaultSymbolVisibility) {
29954
- default:
29955
- if (typeof object.defaultSymbolVisibility === "number") {
29956
- message.defaultSymbolVisibility = object.defaultSymbolVisibility;
29957
- break;
29958
- }
29959
- break;
29960
- case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
29961
- case 0:
29962
- message.defaultSymbolVisibility = 0;
29963
- break;
29964
- case "EXPORT_ALL":
29965
- case 1:
29966
- message.defaultSymbolVisibility = 1;
29967
- break;
29968
- case "EXPORT_TOP_LEVEL":
29969
- case 2:
29970
- message.defaultSymbolVisibility = 2;
29971
- break;
29972
- case "LOCAL_ALL":
29973
- case 3:
29974
- message.defaultSymbolVisibility = 3;
29975
- break;
29976
- case "STRICT":
29977
- case 4:
29978
- message.defaultSymbolVisibility = 4;
29979
- break;
29980
- }
29981
28358
  return message;
29982
28359
  };
29983
28360
 
@@ -30001,8 +28378,6 @@
30001
28378
  object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
30002
28379
  object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
30003
28380
  object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
30004
- object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
30005
- object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
30006
28381
  }
30007
28382
  if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
30008
28383
  object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
@@ -30016,10 +28391,6 @@
30016
28391
  object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
30017
28392
  if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
30018
28393
  object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
30019
- if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
30020
- object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
30021
- if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
30022
- object.defaultSymbolVisibility = options.enums === String ? $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] === undefined ? message.defaultSymbolVisibility : $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] : message.defaultSymbolVisibility;
30023
28394
  return object;
30024
28395
  };
30025
28396
 
@@ -30147,219 +28518,6 @@
30147
28518
  return values;
30148
28519
  })();
30149
28520
 
30150
- /**
30151
- * EnforceNamingStyle enum.
30152
- * @name google.protobuf.FeatureSet.EnforceNamingStyle
30153
- * @enum {number}
30154
- * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
30155
- * @property {number} STYLE2024=1 STYLE2024 value
30156
- * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
30157
- */
30158
- FeatureSet.EnforceNamingStyle = (function() {
30159
- var valuesById = {}, values = Object.create(valuesById);
30160
- values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
30161
- values[valuesById[1] = "STYLE2024"] = 1;
30162
- values[valuesById[2] = "STYLE_LEGACY"] = 2;
30163
- return values;
30164
- })();
30165
-
30166
- FeatureSet.VisibilityFeature = (function() {
30167
-
30168
- /**
30169
- * Properties of a VisibilityFeature.
30170
- * @memberof google.protobuf.FeatureSet
30171
- * @interface IVisibilityFeature
30172
- */
30173
-
30174
- /**
30175
- * Constructs a new VisibilityFeature.
30176
- * @memberof google.protobuf.FeatureSet
30177
- * @classdesc Represents a VisibilityFeature.
30178
- * @implements IVisibilityFeature
30179
- * @constructor
30180
- * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
30181
- */
30182
- function VisibilityFeature(properties) {
30183
- if (properties)
30184
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30185
- if (properties[keys[i]] != null)
30186
- this[keys[i]] = properties[keys[i]];
30187
- }
30188
-
30189
- /**
30190
- * Creates a new VisibilityFeature instance using the specified properties.
30191
- * @function create
30192
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30193
- * @static
30194
- * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
30195
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
30196
- */
30197
- VisibilityFeature.create = function create(properties) {
30198
- return new VisibilityFeature(properties);
30199
- };
30200
-
30201
- /**
30202
- * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
30203
- * @function encode
30204
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30205
- * @static
30206
- * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
30207
- * @param {$protobuf.Writer} [writer] Writer to encode to
30208
- * @returns {$protobuf.Writer} Writer
30209
- */
30210
- VisibilityFeature.encode = function encode(message, writer) {
30211
- if (!writer)
30212
- writer = $Writer.create();
30213
- return writer;
30214
- };
30215
-
30216
- /**
30217
- * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
30218
- * @function encodeDelimited
30219
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30220
- * @static
30221
- * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
30222
- * @param {$protobuf.Writer} [writer] Writer to encode to
30223
- * @returns {$protobuf.Writer} Writer
30224
- */
30225
- VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
30226
- return this.encode(message, writer).ldelim();
30227
- };
30228
-
30229
- /**
30230
- * Decodes a VisibilityFeature message from the specified reader or buffer.
30231
- * @function decode
30232
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30233
- * @static
30234
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30235
- * @param {number} [length] Message length if known beforehand
30236
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
30237
- * @throws {Error} If the payload is not a reader or valid buffer
30238
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
30239
- */
30240
- VisibilityFeature.decode = function decode(reader, length, error) {
30241
- if (!(reader instanceof $Reader))
30242
- reader = $Reader.create(reader);
30243
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
30244
- while (reader.pos < end) {
30245
- var tag = reader.uint32();
30246
- if (tag === error)
30247
- break;
30248
- switch (tag >>> 3) {
30249
- default:
30250
- reader.skipType(tag & 7);
30251
- break;
30252
- }
30253
- }
30254
- return message;
30255
- };
30256
-
30257
- /**
30258
- * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
30259
- * @function decodeDelimited
30260
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30261
- * @static
30262
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30263
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
30264
- * @throws {Error} If the payload is not a reader or valid buffer
30265
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
30266
- */
30267
- VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
30268
- if (!(reader instanceof $Reader))
30269
- reader = new $Reader(reader);
30270
- return this.decode(reader, reader.uint32());
30271
- };
30272
-
30273
- /**
30274
- * Verifies a VisibilityFeature message.
30275
- * @function verify
30276
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30277
- * @static
30278
- * @param {Object.<string,*>} message Plain object to verify
30279
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
30280
- */
30281
- VisibilityFeature.verify = function verify(message) {
30282
- if (typeof message !== "object" || message === null)
30283
- return "object expected";
30284
- return null;
30285
- };
30286
-
30287
- /**
30288
- * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
30289
- * @function fromObject
30290
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30291
- * @static
30292
- * @param {Object.<string,*>} object Plain object
30293
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
30294
- */
30295
- VisibilityFeature.fromObject = function fromObject(object) {
30296
- if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
30297
- return object;
30298
- return new $root.google.protobuf.FeatureSet.VisibilityFeature();
30299
- };
30300
-
30301
- /**
30302
- * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
30303
- * @function toObject
30304
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30305
- * @static
30306
- * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
30307
- * @param {$protobuf.IConversionOptions} [options] Conversion options
30308
- * @returns {Object.<string,*>} Plain object
30309
- */
30310
- VisibilityFeature.toObject = function toObject() {
30311
- return {};
30312
- };
30313
-
30314
- /**
30315
- * Converts this VisibilityFeature to JSON.
30316
- * @function toJSON
30317
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30318
- * @instance
30319
- * @returns {Object.<string,*>} JSON object
30320
- */
30321
- VisibilityFeature.prototype.toJSON = function toJSON() {
30322
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30323
- };
30324
-
30325
- /**
30326
- * Gets the default type url for VisibilityFeature
30327
- * @function getTypeUrl
30328
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
30329
- * @static
30330
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
30331
- * @returns {string} The default type url
30332
- */
30333
- VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
30334
- if (typeUrlPrefix === undefined) {
30335
- typeUrlPrefix = "type.googleapis.com";
30336
- }
30337
- return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
30338
- };
30339
-
30340
- /**
30341
- * DefaultSymbolVisibility enum.
30342
- * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
30343
- * @enum {number}
30344
- * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
30345
- * @property {number} EXPORT_ALL=1 EXPORT_ALL value
30346
- * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
30347
- * @property {number} LOCAL_ALL=3 LOCAL_ALL value
30348
- * @property {number} STRICT=4 STRICT value
30349
- */
30350
- VisibilityFeature.DefaultSymbolVisibility = (function() {
30351
- var valuesById = {}, values = Object.create(valuesById);
30352
- values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
30353
- values[valuesById[1] = "EXPORT_ALL"] = 1;
30354
- values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
30355
- values[valuesById[3] = "LOCAL_ALL"] = 3;
30356
- values[valuesById[4] = "STRICT"] = 4;
30357
- return values;
30358
- })();
30359
-
30360
- return VisibilityFeature;
30361
- })();
30362
-
30363
28521
  return FeatureSet;
30364
28522
  })();
30365
28523
 
@@ -30544,7 +28702,6 @@
30544
28702
  default:
30545
28703
  return "minimumEdition: enum value expected";
30546
28704
  case 0:
30547
- case 900:
30548
28705
  case 998:
30549
28706
  case 999:
30550
28707
  case 1000:
@@ -30562,7 +28719,6 @@
30562
28719
  default:
30563
28720
  return "maximumEdition: enum value expected";
30564
28721
  case 0:
30565
- case 900:
30566
28722
  case 998:
30567
28723
  case 999:
30568
28724
  case 1000:
@@ -30611,10 +28767,6 @@
30611
28767
  case 0:
30612
28768
  message.minimumEdition = 0;
30613
28769
  break;
30614
- case "EDITION_LEGACY":
30615
- case 900:
30616
- message.minimumEdition = 900;
30617
- break;
30618
28770
  case "EDITION_PROTO2":
30619
28771
  case 998:
30620
28772
  message.minimumEdition = 998;
@@ -30667,10 +28819,6 @@
30667
28819
  case 0:
30668
28820
  message.maximumEdition = 0;
30669
28821
  break;
30670
- case "EDITION_LEGACY":
30671
- case 900:
30672
- message.maximumEdition = 900;
30673
- break;
30674
28822
  case "EDITION_PROTO2":
30675
28823
  case 998:
30676
28824
  message.maximumEdition = 998;
@@ -30779,8 +28927,7 @@
30779
28927
  * @memberof google.protobuf.FeatureSetDefaults
30780
28928
  * @interface IFeatureSetEditionDefault
30781
28929
  * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
30782
- * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
30783
- * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
28930
+ * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
30784
28931
  */
30785
28932
 
30786
28933
  /**
@@ -30807,20 +28954,12 @@
30807
28954
  FeatureSetEditionDefault.prototype.edition = 0;
30808
28955
 
30809
28956
  /**
30810
- * FeatureSetEditionDefault overridableFeatures.
30811
- * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
30812
- * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
30813
- * @instance
30814
- */
30815
- FeatureSetEditionDefault.prototype.overridableFeatures = null;
30816
-
30817
- /**
30818
- * FeatureSetEditionDefault fixedFeatures.
30819
- * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
28957
+ * FeatureSetEditionDefault features.
28958
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
30820
28959
  * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
30821
28960
  * @instance
30822
28961
  */
30823
- FeatureSetEditionDefault.prototype.fixedFeatures = null;
28962
+ FeatureSetEditionDefault.prototype.features = null;
30824
28963
 
30825
28964
  /**
30826
28965
  * Creates a new FeatureSetEditionDefault instance using the specified properties.
@@ -30846,12 +28985,10 @@
30846
28985
  FeatureSetEditionDefault.encode = function encode(message, writer) {
30847
28986
  if (!writer)
30848
28987
  writer = $Writer.create();
28988
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
28989
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
30849
28990
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
30850
28991
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
30851
- if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
30852
- $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
30853
- if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
30854
- $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
30855
28992
  return writer;
30856
28993
  };
30857
28994
 
@@ -30892,12 +29029,8 @@
30892
29029
  message.edition = reader.int32();
30893
29030
  break;
30894
29031
  }
30895
- case 4: {
30896
- message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
30897
- break;
30898
- }
30899
- case 5: {
30900
- message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
29032
+ case 2: {
29033
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
30901
29034
  break;
30902
29035
  }
30903
29036
  default:
@@ -30940,7 +29073,6 @@
30940
29073
  default:
30941
29074
  return "edition: enum value expected";
30942
29075
  case 0:
30943
- case 900:
30944
29076
  case 998:
30945
29077
  case 999:
30946
29078
  case 1000:
@@ -30953,15 +29085,10 @@
30953
29085
  case 2147483647:
30954
29086
  break;
30955
29087
  }
30956
- if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
30957
- var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
30958
- if (error)
30959
- return "overridableFeatures." + error;
30960
- }
30961
- if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
30962
- var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
29088
+ if (message.features != null && message.hasOwnProperty("features")) {
29089
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
30963
29090
  if (error)
30964
- return "fixedFeatures." + error;
29091
+ return "features." + error;
30965
29092
  }
30966
29093
  return null;
30967
29094
  };
@@ -30989,10 +29116,6 @@
30989
29116
  case 0:
30990
29117
  message.edition = 0;
30991
29118
  break;
30992
- case "EDITION_LEGACY":
30993
- case 900:
30994
- message.edition = 900;
30995
- break;
30996
29119
  case "EDITION_PROTO2":
30997
29120
  case 998:
30998
29121
  message.edition = 998;
@@ -31034,15 +29157,10 @@
31034
29157
  message.edition = 2147483647;
31035
29158
  break;
31036
29159
  }
31037
- if (object.overridableFeatures != null) {
31038
- if (typeof object.overridableFeatures !== "object")
31039
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
31040
- message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
31041
- }
31042
- if (object.fixedFeatures != null) {
31043
- if (typeof object.fixedFeatures !== "object")
31044
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
31045
- message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
29160
+ if (object.features != null) {
29161
+ if (typeof object.features !== "object")
29162
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
29163
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
31046
29164
  }
31047
29165
  return message;
31048
29166
  };
@@ -31061,16 +29179,13 @@
31061
29179
  options = {};
31062
29180
  var object = {};
31063
29181
  if (options.defaults) {
29182
+ object.features = null;
31064
29183
  object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
31065
- object.overridableFeatures = null;
31066
- object.fixedFeatures = null;
31067
29184
  }
29185
+ if (message.features != null && message.hasOwnProperty("features"))
29186
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
31068
29187
  if (message.edition != null && message.hasOwnProperty("edition"))
31069
29188
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
31070
- if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
31071
- object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
31072
- if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
31073
- object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
31074
29189
  return object;
31075
29190
  };
31076
29191
 
@@ -32285,22 +30400,6 @@
32285
30400
  return GeneratedCodeInfo;
32286
30401
  })();
32287
30402
 
32288
- /**
32289
- * SymbolVisibility enum.
32290
- * @name google.protobuf.SymbolVisibility
32291
- * @enum {number}
32292
- * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
32293
- * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
32294
- * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
32295
- */
32296
- protobuf.SymbolVisibility = (function() {
32297
- var valuesById = {}, values = Object.create(valuesById);
32298
- values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
32299
- values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
32300
- values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
32301
- return values;
32302
- })();
32303
-
32304
30403
  protobuf.Duration = (function() {
32305
30404
 
32306
30405
  /**