@googlemaps/solar 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.
@@ -7779,7 +7779,6 @@
7779
7779
  * @interface ICommonLanguageSettings
7780
7780
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
7781
7781
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
7782
- * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
7783
7782
  */
7784
7783
 
7785
7784
  /**
@@ -7814,14 +7813,6 @@
7814
7813
  */
7815
7814
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
7816
7815
 
7817
- /**
7818
- * CommonLanguageSettings selectiveGapicGeneration.
7819
- * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
7820
- * @memberof google.api.CommonLanguageSettings
7821
- * @instance
7822
- */
7823
- CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
7824
-
7825
7816
  /**
7826
7817
  * Creates a new CommonLanguageSettings instance using the specified properties.
7827
7818
  * @function create
@@ -7854,8 +7845,6 @@
7854
7845
  writer.int32(message.destinations[i]);
7855
7846
  writer.ldelim();
7856
7847
  }
7857
- if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
7858
- $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
7859
7848
  return writer;
7860
7849
  };
7861
7850
 
@@ -7907,10 +7896,6 @@
7907
7896
  message.destinations.push(reader.int32());
7908
7897
  break;
7909
7898
  }
7910
- case 3: {
7911
- message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
7912
- break;
7913
- }
7914
7899
  default:
7915
7900
  reader.skipType(tag & 7);
7916
7901
  break;
@@ -7962,11 +7947,6 @@
7962
7947
  break;
7963
7948
  }
7964
7949
  }
7965
- if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
7966
- var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
7967
- if (error)
7968
- return "selectiveGapicGeneration." + error;
7969
- }
7970
7950
  return null;
7971
7951
  };
7972
7952
 
@@ -8009,11 +7989,6 @@
8009
7989
  break;
8010
7990
  }
8011
7991
  }
8012
- if (object.selectiveGapicGeneration != null) {
8013
- if (typeof object.selectiveGapicGeneration !== "object")
8014
- throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
8015
- message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
8016
- }
8017
7992
  return message;
8018
7993
  };
8019
7994
 
@@ -8032,10 +8007,8 @@
8032
8007
  var object = {};
8033
8008
  if (options.arrays || options.defaults)
8034
8009
  object.destinations = [];
8035
- if (options.defaults) {
8010
+ if (options.defaults)
8036
8011
  object.referenceDocsUri = "";
8037
- object.selectiveGapicGeneration = null;
8038
- }
8039
8012
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
8040
8013
  object.referenceDocsUri = message.referenceDocsUri;
8041
8014
  if (message.destinations && message.destinations.length) {
@@ -8043,8 +8016,6 @@
8043
8016
  for (var j = 0; j < message.destinations.length; ++j)
8044
8017
  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];
8045
8018
  }
8046
- if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
8047
- object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
8048
8019
  return object;
8049
8020
  };
8050
8021
 
@@ -9867,7 +9838,6 @@
9867
9838
  * @memberof google.api
9868
9839
  * @interface IPythonSettings
9869
9840
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
9870
- * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
9871
9841
  */
9872
9842
 
9873
9843
  /**
@@ -9893,14 +9863,6 @@
9893
9863
  */
9894
9864
  PythonSettings.prototype.common = null;
9895
9865
 
9896
- /**
9897
- * PythonSettings experimentalFeatures.
9898
- * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
9899
- * @memberof google.api.PythonSettings
9900
- * @instance
9901
- */
9902
- PythonSettings.prototype.experimentalFeatures = null;
9903
-
9904
9866
  /**
9905
9867
  * Creates a new PythonSettings instance using the specified properties.
9906
9868
  * @function create
@@ -9927,8 +9889,6 @@
9927
9889
  writer = $Writer.create();
9928
9890
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
9929
9891
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9930
- if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
9931
- $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
9932
9892
  return writer;
9933
9893
  };
9934
9894
 
@@ -9969,10 +9929,6 @@
9969
9929
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
9970
9930
  break;
9971
9931
  }
9972
- case 2: {
9973
- message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
9974
- break;
9975
- }
9976
9932
  default:
9977
9933
  reader.skipType(tag & 7);
9978
9934
  break;
@@ -10013,11 +9969,6 @@
10013
9969
  if (error)
10014
9970
  return "common." + error;
10015
9971
  }
10016
- if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
10017
- var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
10018
- if (error)
10019
- return "experimentalFeatures." + error;
10020
- }
10021
9972
  return null;
10022
9973
  };
10023
9974
 
@@ -10038,11 +9989,6 @@
10038
9989
  throw TypeError(".google.api.PythonSettings.common: object expected");
10039
9990
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
10040
9991
  }
10041
- if (object.experimentalFeatures != null) {
10042
- if (typeof object.experimentalFeatures !== "object")
10043
- throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
10044
- message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
10045
- }
10046
9992
  return message;
10047
9993
  };
10048
9994
 
@@ -10059,14 +10005,10 @@
10059
10005
  if (!options)
10060
10006
  options = {};
10061
10007
  var object = {};
10062
- if (options.defaults) {
10008
+ if (options.defaults)
10063
10009
  object.common = null;
10064
- object.experimentalFeatures = null;
10065
- }
10066
10010
  if (message.common != null && message.hasOwnProperty("common"))
10067
10011
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
10068
- if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
10069
- object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
10070
10012
  return object;
10071
10013
  };
10072
10014
 
@@ -10096,258 +10038,6 @@
10096
10038
  return typeUrlPrefix + "/google.api.PythonSettings";
10097
10039
  };
10098
10040
 
10099
- PythonSettings.ExperimentalFeatures = (function() {
10100
-
10101
- /**
10102
- * Properties of an ExperimentalFeatures.
10103
- * @memberof google.api.PythonSettings
10104
- * @interface IExperimentalFeatures
10105
- * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
10106
- * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
10107
- * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
10108
- */
10109
-
10110
- /**
10111
- * Constructs a new ExperimentalFeatures.
10112
- * @memberof google.api.PythonSettings
10113
- * @classdesc Represents an ExperimentalFeatures.
10114
- * @implements IExperimentalFeatures
10115
- * @constructor
10116
- * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
10117
- */
10118
- function ExperimentalFeatures(properties) {
10119
- if (properties)
10120
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10121
- if (properties[keys[i]] != null)
10122
- this[keys[i]] = properties[keys[i]];
10123
- }
10124
-
10125
- /**
10126
- * ExperimentalFeatures restAsyncIoEnabled.
10127
- * @member {boolean} restAsyncIoEnabled
10128
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10129
- * @instance
10130
- */
10131
- ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
10132
-
10133
- /**
10134
- * ExperimentalFeatures protobufPythonicTypesEnabled.
10135
- * @member {boolean} protobufPythonicTypesEnabled
10136
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10137
- * @instance
10138
- */
10139
- ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
10140
-
10141
- /**
10142
- * ExperimentalFeatures unversionedPackageDisabled.
10143
- * @member {boolean} unversionedPackageDisabled
10144
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10145
- * @instance
10146
- */
10147
- ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
10148
-
10149
- /**
10150
- * Creates a new ExperimentalFeatures instance using the specified properties.
10151
- * @function create
10152
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10153
- * @static
10154
- * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
10155
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
10156
- */
10157
- ExperimentalFeatures.create = function create(properties) {
10158
- return new ExperimentalFeatures(properties);
10159
- };
10160
-
10161
- /**
10162
- * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
10163
- * @function encode
10164
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10165
- * @static
10166
- * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
10167
- * @param {$protobuf.Writer} [writer] Writer to encode to
10168
- * @returns {$protobuf.Writer} Writer
10169
- */
10170
- ExperimentalFeatures.encode = function encode(message, writer) {
10171
- if (!writer)
10172
- writer = $Writer.create();
10173
- if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
10174
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
10175
- if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
10176
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
10177
- if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
10178
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
10179
- return writer;
10180
- };
10181
-
10182
- /**
10183
- * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
10184
- * @function encodeDelimited
10185
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10186
- * @static
10187
- * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
10188
- * @param {$protobuf.Writer} [writer] Writer to encode to
10189
- * @returns {$protobuf.Writer} Writer
10190
- */
10191
- ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
10192
- return this.encode(message, writer).ldelim();
10193
- };
10194
-
10195
- /**
10196
- * Decodes an ExperimentalFeatures message from the specified reader or buffer.
10197
- * @function decode
10198
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10199
- * @static
10200
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10201
- * @param {number} [length] Message length if known beforehand
10202
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
10203
- * @throws {Error} If the payload is not a reader or valid buffer
10204
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
10205
- */
10206
- ExperimentalFeatures.decode = function decode(reader, length, error) {
10207
- if (!(reader instanceof $Reader))
10208
- reader = $Reader.create(reader);
10209
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
10210
- while (reader.pos < end) {
10211
- var tag = reader.uint32();
10212
- if (tag === error)
10213
- break;
10214
- switch (tag >>> 3) {
10215
- case 1: {
10216
- message.restAsyncIoEnabled = reader.bool();
10217
- break;
10218
- }
10219
- case 2: {
10220
- message.protobufPythonicTypesEnabled = reader.bool();
10221
- break;
10222
- }
10223
- case 3: {
10224
- message.unversionedPackageDisabled = reader.bool();
10225
- break;
10226
- }
10227
- default:
10228
- reader.skipType(tag & 7);
10229
- break;
10230
- }
10231
- }
10232
- return message;
10233
- };
10234
-
10235
- /**
10236
- * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
10237
- * @function decodeDelimited
10238
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10239
- * @static
10240
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10241
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
10242
- * @throws {Error} If the payload is not a reader or valid buffer
10243
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
10244
- */
10245
- ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
10246
- if (!(reader instanceof $Reader))
10247
- reader = new $Reader(reader);
10248
- return this.decode(reader, reader.uint32());
10249
- };
10250
-
10251
- /**
10252
- * Verifies an ExperimentalFeatures message.
10253
- * @function verify
10254
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10255
- * @static
10256
- * @param {Object.<string,*>} message Plain object to verify
10257
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
10258
- */
10259
- ExperimentalFeatures.verify = function verify(message) {
10260
- if (typeof message !== "object" || message === null)
10261
- return "object expected";
10262
- if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
10263
- if (typeof message.restAsyncIoEnabled !== "boolean")
10264
- return "restAsyncIoEnabled: boolean expected";
10265
- if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
10266
- if (typeof message.protobufPythonicTypesEnabled !== "boolean")
10267
- return "protobufPythonicTypesEnabled: boolean expected";
10268
- if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
10269
- if (typeof message.unversionedPackageDisabled !== "boolean")
10270
- return "unversionedPackageDisabled: boolean expected";
10271
- return null;
10272
- };
10273
-
10274
- /**
10275
- * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
10276
- * @function fromObject
10277
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10278
- * @static
10279
- * @param {Object.<string,*>} object Plain object
10280
- * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
10281
- */
10282
- ExperimentalFeatures.fromObject = function fromObject(object) {
10283
- if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
10284
- return object;
10285
- var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
10286
- if (object.restAsyncIoEnabled != null)
10287
- message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
10288
- if (object.protobufPythonicTypesEnabled != null)
10289
- message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
10290
- if (object.unversionedPackageDisabled != null)
10291
- message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
10292
- return message;
10293
- };
10294
-
10295
- /**
10296
- * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
10297
- * @function toObject
10298
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10299
- * @static
10300
- * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
10301
- * @param {$protobuf.IConversionOptions} [options] Conversion options
10302
- * @returns {Object.<string,*>} Plain object
10303
- */
10304
- ExperimentalFeatures.toObject = function toObject(message, options) {
10305
- if (!options)
10306
- options = {};
10307
- var object = {};
10308
- if (options.defaults) {
10309
- object.restAsyncIoEnabled = false;
10310
- object.protobufPythonicTypesEnabled = false;
10311
- object.unversionedPackageDisabled = false;
10312
- }
10313
- if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
10314
- object.restAsyncIoEnabled = message.restAsyncIoEnabled;
10315
- if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
10316
- object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
10317
- if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
10318
- object.unversionedPackageDisabled = message.unversionedPackageDisabled;
10319
- return object;
10320
- };
10321
-
10322
- /**
10323
- * Converts this ExperimentalFeatures to JSON.
10324
- * @function toJSON
10325
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10326
- * @instance
10327
- * @returns {Object.<string,*>} JSON object
10328
- */
10329
- ExperimentalFeatures.prototype.toJSON = function toJSON() {
10330
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10331
- };
10332
-
10333
- /**
10334
- * Gets the default type url for ExperimentalFeatures
10335
- * @function getTypeUrl
10336
- * @memberof google.api.PythonSettings.ExperimentalFeatures
10337
- * @static
10338
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10339
- * @returns {string} The default type url
10340
- */
10341
- ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10342
- if (typeUrlPrefix === undefined) {
10343
- typeUrlPrefix = "type.googleapis.com";
10344
- }
10345
- return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
10346
- };
10347
-
10348
- return ExperimentalFeatures;
10349
- })();
10350
-
10351
10041
  return PythonSettings;
10352
10042
  })();
10353
10043
 
@@ -11224,7 +10914,6 @@
11224
10914
  * @memberof google.api
11225
10915
  * @interface IGoSettings
11226
10916
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
11227
- * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
11228
10917
  */
11229
10918
 
11230
10919
  /**
@@ -11236,7 +10925,6 @@
11236
10925
  * @param {google.api.IGoSettings=} [properties] Properties to set
11237
10926
  */
11238
10927
  function GoSettings(properties) {
11239
- this.renamedServices = {};
11240
10928
  if (properties)
11241
10929
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11242
10930
  if (properties[keys[i]] != null)
@@ -11251,14 +10939,6 @@
11251
10939
  */
11252
10940
  GoSettings.prototype.common = null;
11253
10941
 
11254
- /**
11255
- * GoSettings renamedServices.
11256
- * @member {Object.<string,string>} renamedServices
11257
- * @memberof google.api.GoSettings
11258
- * @instance
11259
- */
11260
- GoSettings.prototype.renamedServices = $util.emptyObject;
11261
-
11262
10942
  /**
11263
10943
  * Creates a new GoSettings instance using the specified properties.
11264
10944
  * @function create
@@ -11285,9 +10965,6 @@
11285
10965
  writer = $Writer.create();
11286
10966
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
11287
10967
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
11288
- if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
11289
- for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
11290
- 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();
11291
10968
  return writer;
11292
10969
  };
11293
10970
 
@@ -11318,7 +10995,7 @@
11318
10995
  GoSettings.decode = function decode(reader, length, error) {
11319
10996
  if (!(reader instanceof $Reader))
11320
10997
  reader = $Reader.create(reader);
11321
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
10998
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
11322
10999
  while (reader.pos < end) {
11323
11000
  var tag = reader.uint32();
11324
11001
  if (tag === error)
@@ -11328,29 +11005,6 @@
11328
11005
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
11329
11006
  break;
11330
11007
  }
11331
- case 2: {
11332
- if (message.renamedServices === $util.emptyObject)
11333
- message.renamedServices = {};
11334
- var end2 = reader.uint32() + reader.pos;
11335
- key = "";
11336
- value = "";
11337
- while (reader.pos < end2) {
11338
- var tag2 = reader.uint32();
11339
- switch (tag2 >>> 3) {
11340
- case 1:
11341
- key = reader.string();
11342
- break;
11343
- case 2:
11344
- value = reader.string();
11345
- break;
11346
- default:
11347
- reader.skipType(tag2 & 7);
11348
- break;
11349
- }
11350
- }
11351
- message.renamedServices[key] = value;
11352
- break;
11353
- }
11354
11008
  default:
11355
11009
  reader.skipType(tag & 7);
11356
11010
  break;
@@ -11391,14 +11045,6 @@
11391
11045
  if (error)
11392
11046
  return "common." + error;
11393
11047
  }
11394
- if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
11395
- if (!$util.isObject(message.renamedServices))
11396
- return "renamedServices: object expected";
11397
- var key = Object.keys(message.renamedServices);
11398
- for (var i = 0; i < key.length; ++i)
11399
- if (!$util.isString(message.renamedServices[key[i]]))
11400
- return "renamedServices: string{k:string} expected";
11401
- }
11402
11048
  return null;
11403
11049
  };
11404
11050
 
@@ -11419,13 +11065,6 @@
11419
11065
  throw TypeError(".google.api.GoSettings.common: object expected");
11420
11066
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
11421
11067
  }
11422
- if (object.renamedServices) {
11423
- if (typeof object.renamedServices !== "object")
11424
- throw TypeError(".google.api.GoSettings.renamedServices: object expected");
11425
- message.renamedServices = {};
11426
- for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
11427
- message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
11428
- }
11429
11068
  return message;
11430
11069
  };
11431
11070
 
@@ -11442,18 +11081,10 @@
11442
11081
  if (!options)
11443
11082
  options = {};
11444
11083
  var object = {};
11445
- if (options.objects || options.defaults)
11446
- object.renamedServices = {};
11447
11084
  if (options.defaults)
11448
11085
  object.common = null;
11449
11086
  if (message.common != null && message.hasOwnProperty("common"))
11450
11087
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
11451
- var keys2;
11452
- if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
11453
- object.renamedServices = {};
11454
- for (var j = 0; j < keys2.length; ++j)
11455
- object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
11456
- }
11457
11088
  return object;
11458
11089
  };
11459
11090
 
@@ -12092,251 +11723,6 @@
12092
11723
  return values;
12093
11724
  })();
12094
11725
 
12095
- api.SelectiveGapicGeneration = (function() {
12096
-
12097
- /**
12098
- * Properties of a SelectiveGapicGeneration.
12099
- * @memberof google.api
12100
- * @interface ISelectiveGapicGeneration
12101
- * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
12102
- * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
12103
- */
12104
-
12105
- /**
12106
- * Constructs a new SelectiveGapicGeneration.
12107
- * @memberof google.api
12108
- * @classdesc Represents a SelectiveGapicGeneration.
12109
- * @implements ISelectiveGapicGeneration
12110
- * @constructor
12111
- * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
12112
- */
12113
- function SelectiveGapicGeneration(properties) {
12114
- this.methods = [];
12115
- if (properties)
12116
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12117
- if (properties[keys[i]] != null)
12118
- this[keys[i]] = properties[keys[i]];
12119
- }
12120
-
12121
- /**
12122
- * SelectiveGapicGeneration methods.
12123
- * @member {Array.<string>} methods
12124
- * @memberof google.api.SelectiveGapicGeneration
12125
- * @instance
12126
- */
12127
- SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
12128
-
12129
- /**
12130
- * SelectiveGapicGeneration generateOmittedAsInternal.
12131
- * @member {boolean} generateOmittedAsInternal
12132
- * @memberof google.api.SelectiveGapicGeneration
12133
- * @instance
12134
- */
12135
- SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
12136
-
12137
- /**
12138
- * Creates a new SelectiveGapicGeneration instance using the specified properties.
12139
- * @function create
12140
- * @memberof google.api.SelectiveGapicGeneration
12141
- * @static
12142
- * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
12143
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
12144
- */
12145
- SelectiveGapicGeneration.create = function create(properties) {
12146
- return new SelectiveGapicGeneration(properties);
12147
- };
12148
-
12149
- /**
12150
- * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
12151
- * @function encode
12152
- * @memberof google.api.SelectiveGapicGeneration
12153
- * @static
12154
- * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
12155
- * @param {$protobuf.Writer} [writer] Writer to encode to
12156
- * @returns {$protobuf.Writer} Writer
12157
- */
12158
- SelectiveGapicGeneration.encode = function encode(message, writer) {
12159
- if (!writer)
12160
- writer = $Writer.create();
12161
- if (message.methods != null && message.methods.length)
12162
- for (var i = 0; i < message.methods.length; ++i)
12163
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
12164
- if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
12165
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
12166
- return writer;
12167
- };
12168
-
12169
- /**
12170
- * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
12171
- * @function encodeDelimited
12172
- * @memberof google.api.SelectiveGapicGeneration
12173
- * @static
12174
- * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
12175
- * @param {$protobuf.Writer} [writer] Writer to encode to
12176
- * @returns {$protobuf.Writer} Writer
12177
- */
12178
- SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
12179
- return this.encode(message, writer).ldelim();
12180
- };
12181
-
12182
- /**
12183
- * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
12184
- * @function decode
12185
- * @memberof google.api.SelectiveGapicGeneration
12186
- * @static
12187
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12188
- * @param {number} [length] Message length if known beforehand
12189
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
12190
- * @throws {Error} If the payload is not a reader or valid buffer
12191
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12192
- */
12193
- SelectiveGapicGeneration.decode = function decode(reader, length, error) {
12194
- if (!(reader instanceof $Reader))
12195
- reader = $Reader.create(reader);
12196
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
12197
- while (reader.pos < end) {
12198
- var tag = reader.uint32();
12199
- if (tag === error)
12200
- break;
12201
- switch (tag >>> 3) {
12202
- case 1: {
12203
- if (!(message.methods && message.methods.length))
12204
- message.methods = [];
12205
- message.methods.push(reader.string());
12206
- break;
12207
- }
12208
- case 2: {
12209
- message.generateOmittedAsInternal = reader.bool();
12210
- break;
12211
- }
12212
- default:
12213
- reader.skipType(tag & 7);
12214
- break;
12215
- }
12216
- }
12217
- return message;
12218
- };
12219
-
12220
- /**
12221
- * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
12222
- * @function decodeDelimited
12223
- * @memberof google.api.SelectiveGapicGeneration
12224
- * @static
12225
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12226
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
12227
- * @throws {Error} If the payload is not a reader or valid buffer
12228
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12229
- */
12230
- SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
12231
- if (!(reader instanceof $Reader))
12232
- reader = new $Reader(reader);
12233
- return this.decode(reader, reader.uint32());
12234
- };
12235
-
12236
- /**
12237
- * Verifies a SelectiveGapicGeneration message.
12238
- * @function verify
12239
- * @memberof google.api.SelectiveGapicGeneration
12240
- * @static
12241
- * @param {Object.<string,*>} message Plain object to verify
12242
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
12243
- */
12244
- SelectiveGapicGeneration.verify = function verify(message) {
12245
- if (typeof message !== "object" || message === null)
12246
- return "object expected";
12247
- if (message.methods != null && message.hasOwnProperty("methods")) {
12248
- if (!Array.isArray(message.methods))
12249
- return "methods: array expected";
12250
- for (var i = 0; i < message.methods.length; ++i)
12251
- if (!$util.isString(message.methods[i]))
12252
- return "methods: string[] expected";
12253
- }
12254
- if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
12255
- if (typeof message.generateOmittedAsInternal !== "boolean")
12256
- return "generateOmittedAsInternal: boolean expected";
12257
- return null;
12258
- };
12259
-
12260
- /**
12261
- * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
12262
- * @function fromObject
12263
- * @memberof google.api.SelectiveGapicGeneration
12264
- * @static
12265
- * @param {Object.<string,*>} object Plain object
12266
- * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
12267
- */
12268
- SelectiveGapicGeneration.fromObject = function fromObject(object) {
12269
- if (object instanceof $root.google.api.SelectiveGapicGeneration)
12270
- return object;
12271
- var message = new $root.google.api.SelectiveGapicGeneration();
12272
- if (object.methods) {
12273
- if (!Array.isArray(object.methods))
12274
- throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
12275
- message.methods = [];
12276
- for (var i = 0; i < object.methods.length; ++i)
12277
- message.methods[i] = String(object.methods[i]);
12278
- }
12279
- if (object.generateOmittedAsInternal != null)
12280
- message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
12281
- return message;
12282
- };
12283
-
12284
- /**
12285
- * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
12286
- * @function toObject
12287
- * @memberof google.api.SelectiveGapicGeneration
12288
- * @static
12289
- * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
12290
- * @param {$protobuf.IConversionOptions} [options] Conversion options
12291
- * @returns {Object.<string,*>} Plain object
12292
- */
12293
- SelectiveGapicGeneration.toObject = function toObject(message, options) {
12294
- if (!options)
12295
- options = {};
12296
- var object = {};
12297
- if (options.arrays || options.defaults)
12298
- object.methods = [];
12299
- if (options.defaults)
12300
- object.generateOmittedAsInternal = false;
12301
- if (message.methods && message.methods.length) {
12302
- object.methods = [];
12303
- for (var j = 0; j < message.methods.length; ++j)
12304
- object.methods[j] = message.methods[j];
12305
- }
12306
- if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
12307
- object.generateOmittedAsInternal = message.generateOmittedAsInternal;
12308
- return object;
12309
- };
12310
-
12311
- /**
12312
- * Converts this SelectiveGapicGeneration to JSON.
12313
- * @function toJSON
12314
- * @memberof google.api.SelectiveGapicGeneration
12315
- * @instance
12316
- * @returns {Object.<string,*>} JSON object
12317
- */
12318
- SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
12319
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12320
- };
12321
-
12322
- /**
12323
- * Gets the default type url for SelectiveGapicGeneration
12324
- * @function getTypeUrl
12325
- * @memberof google.api.SelectiveGapicGeneration
12326
- * @static
12327
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12328
- * @returns {string} The default type url
12329
- */
12330
- SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12331
- if (typeUrlPrefix === undefined) {
12332
- typeUrlPrefix = "type.googleapis.com";
12333
- }
12334
- return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
12335
- };
12336
-
12337
- return SelectiveGapicGeneration;
12338
- })();
12339
-
12340
11726
  /**
12341
11727
  * LaunchStage enum.
12342
11728
  * @name google.api.LaunchStage
@@ -12917,7 +12303,6 @@
12917
12303
  * @name google.protobuf.Edition
12918
12304
  * @enum {number}
12919
12305
  * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
12920
- * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
12921
12306
  * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
12922
12307
  * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
12923
12308
  * @property {number} EDITION_2023=1000 EDITION_2023 value
@@ -12932,7 +12317,6 @@
12932
12317
  protobuf.Edition = (function() {
12933
12318
  var valuesById = {}, values = Object.create(valuesById);
12934
12319
  values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
12935
- values[valuesById[900] = "EDITION_LEGACY"] = 900;
12936
12320
  values[valuesById[998] = "EDITION_PROTO2"] = 998;
12937
12321
  values[valuesById[999] = "EDITION_PROTO3"] = 999;
12938
12322
  values[valuesById[1000] = "EDITION_2023"] = 1000;
@@ -12957,7 +12341,6 @@
12957
12341
  * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
12958
12342
  * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
12959
12343
  * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
12960
- * @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
12961
12344
  * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
12962
12345
  * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
12963
12346
  * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
@@ -12980,7 +12363,6 @@
12980
12363
  this.dependency = [];
12981
12364
  this.publicDependency = [];
12982
12365
  this.weakDependency = [];
12983
- this.optionDependency = [];
12984
12366
  this.messageType = [];
12985
12367
  this.enumType = [];
12986
12368
  this.service = [];
@@ -13031,14 +12413,6 @@
13031
12413
  */
13032
12414
  FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
13033
12415
 
13034
- /**
13035
- * FileDescriptorProto optionDependency.
13036
- * @member {Array.<string>} optionDependency
13037
- * @memberof google.protobuf.FileDescriptorProto
13038
- * @instance
13039
- */
13040
- FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
13041
-
13042
12416
  /**
13043
12417
  * FileDescriptorProto messageType.
13044
12418
  * @member {Array.<google.protobuf.IDescriptorProto>} messageType
@@ -13160,9 +12534,6 @@
13160
12534
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
13161
12535
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
13162
12536
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
13163
- if (message.optionDependency != null && message.optionDependency.length)
13164
- for (var i = 0; i < message.optionDependency.length; ++i)
13165
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
13166
12537
  return writer;
13167
12538
  };
13168
12539
 
@@ -13235,12 +12606,6 @@
13235
12606
  message.weakDependency.push(reader.int32());
13236
12607
  break;
13237
12608
  }
13238
- case 15: {
13239
- if (!(message.optionDependency && message.optionDependency.length))
13240
- message.optionDependency = [];
13241
- message.optionDependency.push(reader.string());
13242
- break;
13243
- }
13244
12609
  case 4: {
13245
12610
  if (!(message.messageType && message.messageType.length))
13246
12611
  message.messageType = [];
@@ -13343,13 +12708,6 @@
13343
12708
  if (!$util.isInteger(message.weakDependency[i]))
13344
12709
  return "weakDependency: integer[] expected";
13345
12710
  }
13346
- if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
13347
- if (!Array.isArray(message.optionDependency))
13348
- return "optionDependency: array expected";
13349
- for (var i = 0; i < message.optionDependency.length; ++i)
13350
- if (!$util.isString(message.optionDependency[i]))
13351
- return "optionDependency: string[] expected";
13352
- }
13353
12711
  if (message.messageType != null && message.hasOwnProperty("messageType")) {
13354
12712
  if (!Array.isArray(message.messageType))
13355
12713
  return "messageType: array expected";
@@ -13404,7 +12762,6 @@
13404
12762
  default:
13405
12763
  return "edition: enum value expected";
13406
12764
  case 0:
13407
- case 900:
13408
12765
  case 998:
13409
12766
  case 999:
13410
12767
  case 1000:
@@ -13457,13 +12814,6 @@
13457
12814
  for (var i = 0; i < object.weakDependency.length; ++i)
13458
12815
  message.weakDependency[i] = object.weakDependency[i] | 0;
13459
12816
  }
13460
- if (object.optionDependency) {
13461
- if (!Array.isArray(object.optionDependency))
13462
- throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
13463
- message.optionDependency = [];
13464
- for (var i = 0; i < object.optionDependency.length; ++i)
13465
- message.optionDependency[i] = String(object.optionDependency[i]);
13466
- }
13467
12817
  if (object.messageType) {
13468
12818
  if (!Array.isArray(object.messageType))
13469
12819
  throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
@@ -13527,10 +12877,6 @@
13527
12877
  case 0:
13528
12878
  message.edition = 0;
13529
12879
  break;
13530
- case "EDITION_LEGACY":
13531
- case 900:
13532
- message.edition = 900;
13533
- break;
13534
12880
  case "EDITION_PROTO2":
13535
12881
  case 998:
13536
12882
  message.edition = 998;
@@ -13596,7 +12942,6 @@
13596
12942
  object.extension = [];
13597
12943
  object.publicDependency = [];
13598
12944
  object.weakDependency = [];
13599
- object.optionDependency = [];
13600
12945
  }
13601
12946
  if (options.defaults) {
13602
12947
  object.name = "";
@@ -13653,11 +12998,6 @@
13653
12998
  object.syntax = message.syntax;
13654
12999
  if (message.edition != null && message.hasOwnProperty("edition"))
13655
13000
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
13656
- if (message.optionDependency && message.optionDependency.length) {
13657
- object.optionDependency = [];
13658
- for (var j = 0; j < message.optionDependency.length; ++j)
13659
- object.optionDependency[j] = message.optionDependency[j];
13660
- }
13661
13001
  return object;
13662
13002
  };
13663
13003
 
@@ -13706,7 +13046,6 @@
13706
13046
  * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
13707
13047
  * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
13708
13048
  * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
13709
- * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
13710
13049
  */
13711
13050
 
13712
13051
  /**
@@ -13812,14 +13151,6 @@
13812
13151
  */
13813
13152
  DescriptorProto.prototype.reservedName = $util.emptyArray;
13814
13153
 
13815
- /**
13816
- * DescriptorProto visibility.
13817
- * @member {google.protobuf.SymbolVisibility} visibility
13818
- * @memberof google.protobuf.DescriptorProto
13819
- * @instance
13820
- */
13821
- DescriptorProto.prototype.visibility = 0;
13822
-
13823
13154
  /**
13824
13155
  * Creates a new DescriptorProto instance using the specified properties.
13825
13156
  * @function create
@@ -13872,8 +13203,6 @@
13872
13203
  if (message.reservedName != null && message.reservedName.length)
13873
13204
  for (var i = 0; i < message.reservedName.length; ++i)
13874
13205
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
13875
- if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
13876
- writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
13877
13206
  return writer;
13878
13207
  };
13879
13208
 
@@ -13966,10 +13295,6 @@
13966
13295
  message.reservedName.push(reader.string());
13967
13296
  break;
13968
13297
  }
13969
- case 11: {
13970
- message.visibility = reader.int32();
13971
- break;
13972
- }
13973
13298
  default:
13974
13299
  reader.skipType(tag & 7);
13975
13300
  break;
@@ -14083,15 +13408,6 @@
14083
13408
  if (!$util.isString(message.reservedName[i]))
14084
13409
  return "reservedName: string[] expected";
14085
13410
  }
14086
- if (message.visibility != null && message.hasOwnProperty("visibility"))
14087
- switch (message.visibility) {
14088
- default:
14089
- return "visibility: enum value expected";
14090
- case 0:
14091
- case 1:
14092
- case 2:
14093
- break;
14094
- }
14095
13411
  return null;
14096
13412
  };
14097
13413
 
@@ -14191,26 +13507,6 @@
14191
13507
  for (var i = 0; i < object.reservedName.length; ++i)
14192
13508
  message.reservedName[i] = String(object.reservedName[i]);
14193
13509
  }
14194
- switch (object.visibility) {
14195
- default:
14196
- if (typeof object.visibility === "number") {
14197
- message.visibility = object.visibility;
14198
- break;
14199
- }
14200
- break;
14201
- case "VISIBILITY_UNSET":
14202
- case 0:
14203
- message.visibility = 0;
14204
- break;
14205
- case "VISIBILITY_LOCAL":
14206
- case 1:
14207
- message.visibility = 1;
14208
- break;
14209
- case "VISIBILITY_EXPORT":
14210
- case 2:
14211
- message.visibility = 2;
14212
- break;
14213
- }
14214
13510
  return message;
14215
13511
  };
14216
13512
 
@@ -14240,7 +13536,6 @@
14240
13536
  if (options.defaults) {
14241
13537
  object.name = "";
14242
13538
  object.options = null;
14243
- object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
14244
13539
  }
14245
13540
  if (message.name != null && message.hasOwnProperty("name"))
14246
13541
  object.name = message.name;
@@ -14286,8 +13581,6 @@
14286
13581
  for (var j = 0; j < message.reservedName.length; ++j)
14287
13582
  object.reservedName[j] = message.reservedName[j];
14288
13583
  }
14289
- if (message.visibility != null && message.hasOwnProperty("visibility"))
14290
- object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
14291
13584
  return object;
14292
13585
  };
14293
13586
 
@@ -16332,7 +15625,6 @@
16332
15625
  * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
16333
15626
  * @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
16334
15627
  * @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
16335
- * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
16336
15628
  */
16337
15629
 
16338
15630
  /**
@@ -16393,14 +15685,6 @@
16393
15685
  */
16394
15686
  EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
16395
15687
 
16396
- /**
16397
- * EnumDescriptorProto visibility.
16398
- * @member {google.protobuf.SymbolVisibility} visibility
16399
- * @memberof google.protobuf.EnumDescriptorProto
16400
- * @instance
16401
- */
16402
- EnumDescriptorProto.prototype.visibility = 0;
16403
-
16404
15688
  /**
16405
15689
  * Creates a new EnumDescriptorProto instance using the specified properties.
16406
15690
  * @function create
@@ -16438,8 +15722,6 @@
16438
15722
  if (message.reservedName != null && message.reservedName.length)
16439
15723
  for (var i = 0; i < message.reservedName.length; ++i)
16440
15724
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
16441
- if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
16442
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
16443
15725
  return writer;
16444
15726
  };
16445
15727
 
@@ -16502,10 +15784,6 @@
16502
15784
  message.reservedName.push(reader.string());
16503
15785
  break;
16504
15786
  }
16505
- case 6: {
16506
- message.visibility = reader.int32();
16507
- break;
16508
- }
16509
15787
  default:
16510
15788
  reader.skipType(tag & 7);
16511
15789
  break;
@@ -16574,15 +15852,6 @@
16574
15852
  if (!$util.isString(message.reservedName[i]))
16575
15853
  return "reservedName: string[] expected";
16576
15854
  }
16577
- if (message.visibility != null && message.hasOwnProperty("visibility"))
16578
- switch (message.visibility) {
16579
- default:
16580
- return "visibility: enum value expected";
16581
- case 0:
16582
- case 1:
16583
- case 2:
16584
- break;
16585
- }
16586
15855
  return null;
16587
15856
  };
16588
15857
 
@@ -16632,26 +15901,6 @@
16632
15901
  for (var i = 0; i < object.reservedName.length; ++i)
16633
15902
  message.reservedName[i] = String(object.reservedName[i]);
16634
15903
  }
16635
- switch (object.visibility) {
16636
- default:
16637
- if (typeof object.visibility === "number") {
16638
- message.visibility = object.visibility;
16639
- break;
16640
- }
16641
- break;
16642
- case "VISIBILITY_UNSET":
16643
- case 0:
16644
- message.visibility = 0;
16645
- break;
16646
- case "VISIBILITY_LOCAL":
16647
- case 1:
16648
- message.visibility = 1;
16649
- break;
16650
- case "VISIBILITY_EXPORT":
16651
- case 2:
16652
- message.visibility = 2;
16653
- break;
16654
- }
16655
15904
  return message;
16656
15905
  };
16657
15906
 
@@ -16676,7 +15925,6 @@
16676
15925
  if (options.defaults) {
16677
15926
  object.name = "";
16678
15927
  object.options = null;
16679
- object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
16680
15928
  }
16681
15929
  if (message.name != null && message.hasOwnProperty("name"))
16682
15930
  object.name = message.name;
@@ -16697,8 +15945,6 @@
16697
15945
  for (var j = 0; j < message.reservedName.length; ++j)
16698
15946
  object.reservedName[j] = message.reservedName[j];
16699
15947
  }
16700
- if (message.visibility != null && message.hasOwnProperty("visibility"))
16701
- object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
16702
15948
  return object;
16703
15949
  };
16704
15950
 
@@ -18944,7 +18190,6 @@
18944
18190
  * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
18945
18191
  * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
18946
18192
  * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
18947
- * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
18948
18193
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
18949
18194
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
18950
18195
  */
@@ -19064,14 +18309,6 @@
19064
18309
  */
19065
18310
  FieldOptions.prototype.features = null;
19066
18311
 
19067
- /**
19068
- * FieldOptions featureSupport.
19069
- * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
19070
- * @memberof google.protobuf.FieldOptions
19071
- * @instance
19072
- */
19073
- FieldOptions.prototype.featureSupport = null;
19074
-
19075
18312
  /**
19076
18313
  * FieldOptions uninterpretedOption.
19077
18314
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -19138,8 +18375,6 @@
19138
18375
  $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
19139
18376
  if (message.features != null && Object.hasOwnProperty.call(message, "features"))
19140
18377
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
19141
- if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
19142
- $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
19143
18378
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
19144
18379
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
19145
18380
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -19239,10 +18474,6 @@
19239
18474
  message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
19240
18475
  break;
19241
18476
  }
19242
- case 22: {
19243
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
19244
- break;
19245
- }
19246
18477
  case 999: {
19247
18478
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
19248
18479
  message.uninterpretedOption = [];
@@ -19374,11 +18605,6 @@
19374
18605
  if (error)
19375
18606
  return "features." + error;
19376
18607
  }
19377
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
19378
- var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
19379
- if (error)
19380
- return "featureSupport." + error;
19381
- }
19382
18608
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
19383
18609
  if (!Array.isArray(message.uninterpretedOption))
19384
18610
  return "uninterpretedOption: array expected";
@@ -19562,11 +18788,6 @@
19562
18788
  throw TypeError(".google.protobuf.FieldOptions.features: object expected");
19563
18789
  message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
19564
18790
  }
19565
- if (object.featureSupport != null) {
19566
- if (typeof object.featureSupport !== "object")
19567
- throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
19568
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
19569
- }
19570
18791
  if (object.uninterpretedOption) {
19571
18792
  if (!Array.isArray(object.uninterpretedOption))
19572
18793
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -19659,7 +18880,6 @@
19659
18880
  object.debugRedact = false;
19660
18881
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
19661
18882
  object.features = null;
19662
- object.featureSupport = null;
19663
18883
  }
19664
18884
  if (message.ctype != null && message.hasOwnProperty("ctype"))
19665
18885
  object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype;
@@ -19691,8 +18911,6 @@
19691
18911
  }
19692
18912
  if (message.features != null && message.hasOwnProperty("features"))
19693
18913
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
19694
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
19695
- object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
19696
18914
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
19697
18915
  object.uninterpretedOption = [];
19698
18916
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -19963,7 +19181,6 @@
19963
19181
  default:
19964
19182
  return "edition: enum value expected";
19965
19183
  case 0:
19966
- case 900:
19967
19184
  case 998:
19968
19185
  case 999:
19969
19186
  case 1000:
@@ -20005,589 +19222,103 @@
20005
19222
  case 0:
20006
19223
  message.edition = 0;
20007
19224
  break;
20008
- case "EDITION_LEGACY":
20009
- case 900:
20010
- message.edition = 900;
20011
- break;
20012
- case "EDITION_PROTO2":
20013
- case 998:
20014
- message.edition = 998;
20015
- break;
20016
- case "EDITION_PROTO3":
20017
- case 999:
20018
- message.edition = 999;
20019
- break;
20020
- case "EDITION_2023":
20021
- case 1000:
20022
- message.edition = 1000;
20023
- break;
20024
- case "EDITION_2024":
20025
- case 1001:
20026
- message.edition = 1001;
20027
- break;
20028
- case "EDITION_1_TEST_ONLY":
20029
- case 1:
20030
- message.edition = 1;
20031
- break;
20032
- case "EDITION_2_TEST_ONLY":
20033
- case 2:
20034
- message.edition = 2;
20035
- break;
20036
- case "EDITION_99997_TEST_ONLY":
20037
- case 99997:
20038
- message.edition = 99997;
20039
- break;
20040
- case "EDITION_99998_TEST_ONLY":
20041
- case 99998:
20042
- message.edition = 99998;
20043
- break;
20044
- case "EDITION_99999_TEST_ONLY":
20045
- case 99999:
20046
- message.edition = 99999;
20047
- break;
20048
- case "EDITION_MAX":
20049
- case 2147483647:
20050
- message.edition = 2147483647;
20051
- break;
20052
- }
20053
- if (object.value != null)
20054
- message.value = String(object.value);
20055
- return message;
20056
- };
20057
-
20058
- /**
20059
- * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
20060
- * @function toObject
20061
- * @memberof google.protobuf.FieldOptions.EditionDefault
20062
- * @static
20063
- * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
20064
- * @param {$protobuf.IConversionOptions} [options] Conversion options
20065
- * @returns {Object.<string,*>} Plain object
20066
- */
20067
- EditionDefault.toObject = function toObject(message, options) {
20068
- if (!options)
20069
- options = {};
20070
- var object = {};
20071
- if (options.defaults) {
20072
- object.value = "";
20073
- object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
20074
- }
20075
- if (message.value != null && message.hasOwnProperty("value"))
20076
- object.value = message.value;
20077
- if (message.edition != null && message.hasOwnProperty("edition"))
20078
- object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
20079
- return object;
20080
- };
20081
-
20082
- /**
20083
- * Converts this EditionDefault to JSON.
20084
- * @function toJSON
20085
- * @memberof google.protobuf.FieldOptions.EditionDefault
20086
- * @instance
20087
- * @returns {Object.<string,*>} JSON object
20088
- */
20089
- EditionDefault.prototype.toJSON = function toJSON() {
20090
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20091
- };
20092
-
20093
- /**
20094
- * Gets the default type url for EditionDefault
20095
- * @function getTypeUrl
20096
- * @memberof google.protobuf.FieldOptions.EditionDefault
20097
- * @static
20098
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20099
- * @returns {string} The default type url
20100
- */
20101
- EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20102
- if (typeUrlPrefix === undefined) {
20103
- typeUrlPrefix = "type.googleapis.com";
20104
- }
20105
- return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
20106
- };
20107
-
20108
- return EditionDefault;
20109
- })();
20110
-
20111
- FieldOptions.FeatureSupport = (function() {
20112
-
20113
- /**
20114
- * Properties of a FeatureSupport.
20115
- * @memberof google.protobuf.FieldOptions
20116
- * @interface IFeatureSupport
20117
- * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
20118
- * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
20119
- * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
20120
- * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
20121
- */
20122
-
20123
- /**
20124
- * Constructs a new FeatureSupport.
20125
- * @memberof google.protobuf.FieldOptions
20126
- * @classdesc Represents a FeatureSupport.
20127
- * @implements IFeatureSupport
20128
- * @constructor
20129
- * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
20130
- */
20131
- function FeatureSupport(properties) {
20132
- if (properties)
20133
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20134
- if (properties[keys[i]] != null)
20135
- this[keys[i]] = properties[keys[i]];
20136
- }
20137
-
20138
- /**
20139
- * FeatureSupport editionIntroduced.
20140
- * @member {google.protobuf.Edition} editionIntroduced
20141
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20142
- * @instance
20143
- */
20144
- FeatureSupport.prototype.editionIntroduced = 0;
20145
-
20146
- /**
20147
- * FeatureSupport editionDeprecated.
20148
- * @member {google.protobuf.Edition} editionDeprecated
20149
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20150
- * @instance
20151
- */
20152
- FeatureSupport.prototype.editionDeprecated = 0;
20153
-
20154
- /**
20155
- * FeatureSupport deprecationWarning.
20156
- * @member {string} deprecationWarning
20157
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20158
- * @instance
20159
- */
20160
- FeatureSupport.prototype.deprecationWarning = "";
20161
-
20162
- /**
20163
- * FeatureSupport editionRemoved.
20164
- * @member {google.protobuf.Edition} editionRemoved
20165
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20166
- * @instance
20167
- */
20168
- FeatureSupport.prototype.editionRemoved = 0;
20169
-
20170
- /**
20171
- * Creates a new FeatureSupport instance using the specified properties.
20172
- * @function create
20173
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20174
- * @static
20175
- * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
20176
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
20177
- */
20178
- FeatureSupport.create = function create(properties) {
20179
- return new FeatureSupport(properties);
20180
- };
20181
-
20182
- /**
20183
- * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
20184
- * @function encode
20185
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20186
- * @static
20187
- * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
20188
- * @param {$protobuf.Writer} [writer] Writer to encode to
20189
- * @returns {$protobuf.Writer} Writer
20190
- */
20191
- FeatureSupport.encode = function encode(message, writer) {
20192
- if (!writer)
20193
- writer = $Writer.create();
20194
- if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
20195
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
20196
- if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
20197
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
20198
- if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
20199
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
20200
- if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
20201
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
20202
- return writer;
20203
- };
20204
-
20205
- /**
20206
- * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
20207
- * @function encodeDelimited
20208
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20209
- * @static
20210
- * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
20211
- * @param {$protobuf.Writer} [writer] Writer to encode to
20212
- * @returns {$protobuf.Writer} Writer
20213
- */
20214
- FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
20215
- return this.encode(message, writer).ldelim();
20216
- };
20217
-
20218
- /**
20219
- * Decodes a FeatureSupport message from the specified reader or buffer.
20220
- * @function decode
20221
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20222
- * @static
20223
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20224
- * @param {number} [length] Message length if known beforehand
20225
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
20226
- * @throws {Error} If the payload is not a reader or valid buffer
20227
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20228
- */
20229
- FeatureSupport.decode = function decode(reader, length, error) {
20230
- if (!(reader instanceof $Reader))
20231
- reader = $Reader.create(reader);
20232
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
20233
- while (reader.pos < end) {
20234
- var tag = reader.uint32();
20235
- if (tag === error)
20236
- break;
20237
- switch (tag >>> 3) {
20238
- case 1: {
20239
- message.editionIntroduced = reader.int32();
20240
- break;
20241
- }
20242
- case 2: {
20243
- message.editionDeprecated = reader.int32();
20244
- break;
20245
- }
20246
- case 3: {
20247
- message.deprecationWarning = reader.string();
20248
- break;
20249
- }
20250
- case 4: {
20251
- message.editionRemoved = reader.int32();
20252
- break;
20253
- }
20254
- default:
20255
- reader.skipType(tag & 7);
20256
- break;
20257
- }
20258
- }
20259
- return message;
20260
- };
20261
-
20262
- /**
20263
- * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
20264
- * @function decodeDelimited
20265
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20266
- * @static
20267
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20268
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
20269
- * @throws {Error} If the payload is not a reader or valid buffer
20270
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20271
- */
20272
- FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
20273
- if (!(reader instanceof $Reader))
20274
- reader = new $Reader(reader);
20275
- return this.decode(reader, reader.uint32());
20276
- };
20277
-
20278
- /**
20279
- * Verifies a FeatureSupport message.
20280
- * @function verify
20281
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20282
- * @static
20283
- * @param {Object.<string,*>} message Plain object to verify
20284
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
20285
- */
20286
- FeatureSupport.verify = function verify(message) {
20287
- if (typeof message !== "object" || message === null)
20288
- return "object expected";
20289
- if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
20290
- switch (message.editionIntroduced) {
20291
- default:
20292
- return "editionIntroduced: enum value expected";
20293
- case 0:
20294
- case 900:
20295
- case 998:
20296
- case 999:
20297
- case 1000:
20298
- case 1001:
20299
- case 1:
20300
- case 2:
20301
- case 99997:
20302
- case 99998:
20303
- case 99999:
20304
- case 2147483647:
20305
- break;
20306
- }
20307
- if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
20308
- switch (message.editionDeprecated) {
20309
- default:
20310
- return "editionDeprecated: enum value expected";
20311
- case 0:
20312
- case 900:
20313
- case 998:
20314
- case 999:
20315
- case 1000:
20316
- case 1001:
20317
- case 1:
20318
- case 2:
20319
- case 99997:
20320
- case 99998:
20321
- case 99999:
20322
- case 2147483647:
20323
- break;
20324
- }
20325
- if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
20326
- if (!$util.isString(message.deprecationWarning))
20327
- return "deprecationWarning: string expected";
20328
- if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
20329
- switch (message.editionRemoved) {
20330
- default:
20331
- return "editionRemoved: enum value expected";
20332
- case 0:
20333
- case 900:
20334
- case 998:
20335
- case 999:
20336
- case 1000:
20337
- case 1001:
20338
- case 1:
20339
- case 2:
20340
- case 99997:
20341
- case 99998:
20342
- case 99999:
20343
- case 2147483647:
20344
- break;
20345
- }
20346
- return null;
20347
- };
20348
-
20349
- /**
20350
- * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
20351
- * @function fromObject
20352
- * @memberof google.protobuf.FieldOptions.FeatureSupport
20353
- * @static
20354
- * @param {Object.<string,*>} object Plain object
20355
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
20356
- */
20357
- FeatureSupport.fromObject = function fromObject(object) {
20358
- if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
20359
- return object;
20360
- var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
20361
- switch (object.editionIntroduced) {
20362
- default:
20363
- if (typeof object.editionIntroduced === "number") {
20364
- message.editionIntroduced = object.editionIntroduced;
20365
- break;
20366
- }
20367
- break;
20368
- case "EDITION_UNKNOWN":
20369
- case 0:
20370
- message.editionIntroduced = 0;
20371
- break;
20372
- case "EDITION_LEGACY":
20373
- case 900:
20374
- message.editionIntroduced = 900;
20375
- break;
20376
- case "EDITION_PROTO2":
20377
- case 998:
20378
- message.editionIntroduced = 998;
20379
- break;
20380
- case "EDITION_PROTO3":
20381
- case 999:
20382
- message.editionIntroduced = 999;
20383
- break;
20384
- case "EDITION_2023":
20385
- case 1000:
20386
- message.editionIntroduced = 1000;
20387
- break;
20388
- case "EDITION_2024":
20389
- case 1001:
20390
- message.editionIntroduced = 1001;
20391
- break;
20392
- case "EDITION_1_TEST_ONLY":
20393
- case 1:
20394
- message.editionIntroduced = 1;
20395
- break;
20396
- case "EDITION_2_TEST_ONLY":
20397
- case 2:
20398
- message.editionIntroduced = 2;
20399
- break;
20400
- case "EDITION_99997_TEST_ONLY":
20401
- case 99997:
20402
- message.editionIntroduced = 99997;
20403
- break;
20404
- case "EDITION_99998_TEST_ONLY":
20405
- case 99998:
20406
- message.editionIntroduced = 99998;
20407
- break;
20408
- case "EDITION_99999_TEST_ONLY":
20409
- case 99999:
20410
- message.editionIntroduced = 99999;
20411
- break;
20412
- case "EDITION_MAX":
20413
- case 2147483647:
20414
- message.editionIntroduced = 2147483647;
20415
- break;
20416
- }
20417
- switch (object.editionDeprecated) {
20418
- default:
20419
- if (typeof object.editionDeprecated === "number") {
20420
- message.editionDeprecated = object.editionDeprecated;
20421
- break;
20422
- }
20423
- break;
20424
- case "EDITION_UNKNOWN":
20425
- case 0:
20426
- message.editionDeprecated = 0;
20427
- break;
20428
- case "EDITION_LEGACY":
20429
- case 900:
20430
- message.editionDeprecated = 900;
20431
- break;
20432
- case "EDITION_PROTO2":
20433
- case 998:
20434
- message.editionDeprecated = 998;
20435
- break;
20436
- case "EDITION_PROTO3":
20437
- case 999:
20438
- message.editionDeprecated = 999;
20439
- break;
20440
- case "EDITION_2023":
20441
- case 1000:
20442
- message.editionDeprecated = 1000;
20443
- break;
20444
- case "EDITION_2024":
20445
- case 1001:
20446
- message.editionDeprecated = 1001;
20447
- break;
20448
- case "EDITION_1_TEST_ONLY":
20449
- case 1:
20450
- message.editionDeprecated = 1;
20451
- break;
20452
- case "EDITION_2_TEST_ONLY":
20453
- case 2:
20454
- message.editionDeprecated = 2;
20455
- break;
20456
- case "EDITION_99997_TEST_ONLY":
20457
- case 99997:
20458
- message.editionDeprecated = 99997;
20459
- break;
20460
- case "EDITION_99998_TEST_ONLY":
20461
- case 99998:
20462
- message.editionDeprecated = 99998;
20463
- break;
20464
- case "EDITION_99999_TEST_ONLY":
20465
- case 99999:
20466
- message.editionDeprecated = 99999;
20467
- break;
20468
- case "EDITION_MAX":
20469
- case 2147483647:
20470
- message.editionDeprecated = 2147483647;
20471
- break;
20472
- }
20473
- if (object.deprecationWarning != null)
20474
- message.deprecationWarning = String(object.deprecationWarning);
20475
- switch (object.editionRemoved) {
20476
- default:
20477
- if (typeof object.editionRemoved === "number") {
20478
- message.editionRemoved = object.editionRemoved;
20479
- break;
20480
- }
20481
- break;
20482
- case "EDITION_UNKNOWN":
20483
- case 0:
20484
- message.editionRemoved = 0;
20485
- break;
20486
- case "EDITION_LEGACY":
20487
- case 900:
20488
- message.editionRemoved = 900;
20489
- break;
20490
19225
  case "EDITION_PROTO2":
20491
19226
  case 998:
20492
- message.editionRemoved = 998;
19227
+ message.edition = 998;
20493
19228
  break;
20494
19229
  case "EDITION_PROTO3":
20495
19230
  case 999:
20496
- message.editionRemoved = 999;
19231
+ message.edition = 999;
20497
19232
  break;
20498
19233
  case "EDITION_2023":
20499
19234
  case 1000:
20500
- message.editionRemoved = 1000;
19235
+ message.edition = 1000;
20501
19236
  break;
20502
19237
  case "EDITION_2024":
20503
19238
  case 1001:
20504
- message.editionRemoved = 1001;
19239
+ message.edition = 1001;
20505
19240
  break;
20506
19241
  case "EDITION_1_TEST_ONLY":
20507
19242
  case 1:
20508
- message.editionRemoved = 1;
19243
+ message.edition = 1;
20509
19244
  break;
20510
19245
  case "EDITION_2_TEST_ONLY":
20511
19246
  case 2:
20512
- message.editionRemoved = 2;
19247
+ message.edition = 2;
20513
19248
  break;
20514
19249
  case "EDITION_99997_TEST_ONLY":
20515
19250
  case 99997:
20516
- message.editionRemoved = 99997;
19251
+ message.edition = 99997;
20517
19252
  break;
20518
19253
  case "EDITION_99998_TEST_ONLY":
20519
19254
  case 99998:
20520
- message.editionRemoved = 99998;
19255
+ message.edition = 99998;
20521
19256
  break;
20522
19257
  case "EDITION_99999_TEST_ONLY":
20523
19258
  case 99999:
20524
- message.editionRemoved = 99999;
19259
+ message.edition = 99999;
20525
19260
  break;
20526
19261
  case "EDITION_MAX":
20527
19262
  case 2147483647:
20528
- message.editionRemoved = 2147483647;
19263
+ message.edition = 2147483647;
20529
19264
  break;
20530
19265
  }
19266
+ if (object.value != null)
19267
+ message.value = String(object.value);
20531
19268
  return message;
20532
19269
  };
20533
19270
 
20534
19271
  /**
20535
- * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
19272
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
20536
19273
  * @function toObject
20537
- * @memberof google.protobuf.FieldOptions.FeatureSupport
19274
+ * @memberof google.protobuf.FieldOptions.EditionDefault
20538
19275
  * @static
20539
- * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
19276
+ * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
20540
19277
  * @param {$protobuf.IConversionOptions} [options] Conversion options
20541
19278
  * @returns {Object.<string,*>} Plain object
20542
19279
  */
20543
- FeatureSupport.toObject = function toObject(message, options) {
19280
+ EditionDefault.toObject = function toObject(message, options) {
20544
19281
  if (!options)
20545
19282
  options = {};
20546
19283
  var object = {};
20547
19284
  if (options.defaults) {
20548
- object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
20549
- object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
20550
- object.deprecationWarning = "";
20551
- object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
19285
+ object.value = "";
19286
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
20552
19287
  }
20553
- if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
20554
- object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
20555
- if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
20556
- object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
20557
- if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
20558
- object.deprecationWarning = message.deprecationWarning;
20559
- if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
20560
- object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
19288
+ if (message.value != null && message.hasOwnProperty("value"))
19289
+ object.value = message.value;
19290
+ if (message.edition != null && message.hasOwnProperty("edition"))
19291
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
20561
19292
  return object;
20562
19293
  };
20563
19294
 
20564
19295
  /**
20565
- * Converts this FeatureSupport to JSON.
19296
+ * Converts this EditionDefault to JSON.
20566
19297
  * @function toJSON
20567
- * @memberof google.protobuf.FieldOptions.FeatureSupport
19298
+ * @memberof google.protobuf.FieldOptions.EditionDefault
20568
19299
  * @instance
20569
19300
  * @returns {Object.<string,*>} JSON object
20570
19301
  */
20571
- FeatureSupport.prototype.toJSON = function toJSON() {
19302
+ EditionDefault.prototype.toJSON = function toJSON() {
20572
19303
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20573
19304
  };
20574
19305
 
20575
19306
  /**
20576
- * Gets the default type url for FeatureSupport
19307
+ * Gets the default type url for EditionDefault
20577
19308
  * @function getTypeUrl
20578
- * @memberof google.protobuf.FieldOptions.FeatureSupport
19309
+ * @memberof google.protobuf.FieldOptions.EditionDefault
20579
19310
  * @static
20580
19311
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20581
19312
  * @returns {string} The default type url
20582
19313
  */
20583
- FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19314
+ EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20584
19315
  if (typeUrlPrefix === undefined) {
20585
19316
  typeUrlPrefix = "type.googleapis.com";
20586
19317
  }
20587
- return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
19318
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
20588
19319
  };
20589
19320
 
20590
- return FeatureSupport;
19321
+ return EditionDefault;
20591
19322
  })();
20592
19323
 
20593
19324
  return FieldOptions;
@@ -21182,7 +19913,6 @@
21182
19913
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
21183
19914
  * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
21184
19915
  * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
21185
- * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
21186
19916
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
21187
19917
  */
21188
19918
 
@@ -21226,14 +19956,6 @@
21226
19956
  */
21227
19957
  EnumValueOptions.prototype.debugRedact = false;
21228
19958
 
21229
- /**
21230
- * EnumValueOptions featureSupport.
21231
- * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
21232
- * @memberof google.protobuf.EnumValueOptions
21233
- * @instance
21234
- */
21235
- EnumValueOptions.prototype.featureSupport = null;
21236
-
21237
19959
  /**
21238
19960
  * EnumValueOptions uninterpretedOption.
21239
19961
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -21272,8 +19994,6 @@
21272
19994
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
21273
19995
  if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
21274
19996
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
21275
- if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
21276
- $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
21277
19997
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
21278
19998
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
21279
19999
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -21325,10 +20045,6 @@
21325
20045
  message.debugRedact = reader.bool();
21326
20046
  break;
21327
20047
  }
21328
- case 4: {
21329
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
21330
- break;
21331
- }
21332
20048
  case 999: {
21333
20049
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
21334
20050
  message.uninterpretedOption = [];
@@ -21381,11 +20097,6 @@
21381
20097
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
21382
20098
  if (typeof message.debugRedact !== "boolean")
21383
20099
  return "debugRedact: boolean expected";
21384
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
21385
- var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
21386
- if (error)
21387
- return "featureSupport." + error;
21388
- }
21389
20100
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
21390
20101
  if (!Array.isArray(message.uninterpretedOption))
21391
20102
  return "uninterpretedOption: array expected";
@@ -21419,11 +20130,6 @@
21419
20130
  }
21420
20131
  if (object.debugRedact != null)
21421
20132
  message.debugRedact = Boolean(object.debugRedact);
21422
- if (object.featureSupport != null) {
21423
- if (typeof object.featureSupport !== "object")
21424
- throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
21425
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
21426
- }
21427
20133
  if (object.uninterpretedOption) {
21428
20134
  if (!Array.isArray(object.uninterpretedOption))
21429
20135
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -21456,7 +20162,6 @@
21456
20162
  object.deprecated = false;
21457
20163
  object.features = null;
21458
20164
  object.debugRedact = false;
21459
- object.featureSupport = null;
21460
20165
  }
21461
20166
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
21462
20167
  object.deprecated = message.deprecated;
@@ -21464,8 +20169,6 @@
21464
20169
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
21465
20170
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
21466
20171
  object.debugRedact = message.debugRedact;
21467
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
21468
- object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
21469
20172
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
21470
20173
  object.uninterpretedOption = [];
21471
20174
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -22905,8 +21608,6 @@
22905
21608
  * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
22906
21609
  * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
22907
21610
  * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
22908
- * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
22909
- * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
22910
21611
  */
22911
21612
 
22912
21613
  /**
@@ -22972,22 +21673,6 @@
22972
21673
  */
22973
21674
  FeatureSet.prototype.jsonFormat = 0;
22974
21675
 
22975
- /**
22976
- * FeatureSet enforceNamingStyle.
22977
- * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
22978
- * @memberof google.protobuf.FeatureSet
22979
- * @instance
22980
- */
22981
- FeatureSet.prototype.enforceNamingStyle = 0;
22982
-
22983
- /**
22984
- * FeatureSet defaultSymbolVisibility.
22985
- * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
22986
- * @memberof google.protobuf.FeatureSet
22987
- * @instance
22988
- */
22989
- FeatureSet.prototype.defaultSymbolVisibility = 0;
22990
-
22991
21676
  /**
22992
21677
  * Creates a new FeatureSet instance using the specified properties.
22993
21678
  * @function create
@@ -23024,10 +21709,6 @@
23024
21709
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
23025
21710
  if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
23026
21711
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
23027
- if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
23028
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
23029
- if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
23030
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
23031
21712
  return writer;
23032
21713
  };
23033
21714
 
@@ -23088,14 +21769,6 @@
23088
21769
  message.jsonFormat = reader.int32();
23089
21770
  break;
23090
21771
  }
23091
- case 7: {
23092
- message.enforceNamingStyle = reader.int32();
23093
- break;
23094
- }
23095
- case 8: {
23096
- message.defaultSymbolVisibility = reader.int32();
23097
- break;
23098
- }
23099
21772
  default:
23100
21773
  reader.skipType(tag & 7);
23101
21774
  break;
@@ -23186,26 +21859,6 @@
23186
21859
  case 2:
23187
21860
  break;
23188
21861
  }
23189
- if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
23190
- switch (message.enforceNamingStyle) {
23191
- default:
23192
- return "enforceNamingStyle: enum value expected";
23193
- case 0:
23194
- case 1:
23195
- case 2:
23196
- break;
23197
- }
23198
- if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
23199
- switch (message.defaultSymbolVisibility) {
23200
- default:
23201
- return "defaultSymbolVisibility: enum value expected";
23202
- case 0:
23203
- case 1:
23204
- case 2:
23205
- case 3:
23206
- case 4:
23207
- break;
23208
- }
23209
21862
  return null;
23210
21863
  };
23211
21864
 
@@ -23345,54 +21998,6 @@
23345
21998
  message.jsonFormat = 2;
23346
21999
  break;
23347
22000
  }
23348
- switch (object.enforceNamingStyle) {
23349
- default:
23350
- if (typeof object.enforceNamingStyle === "number") {
23351
- message.enforceNamingStyle = object.enforceNamingStyle;
23352
- break;
23353
- }
23354
- break;
23355
- case "ENFORCE_NAMING_STYLE_UNKNOWN":
23356
- case 0:
23357
- message.enforceNamingStyle = 0;
23358
- break;
23359
- case "STYLE2024":
23360
- case 1:
23361
- message.enforceNamingStyle = 1;
23362
- break;
23363
- case "STYLE_LEGACY":
23364
- case 2:
23365
- message.enforceNamingStyle = 2;
23366
- break;
23367
- }
23368
- switch (object.defaultSymbolVisibility) {
23369
- default:
23370
- if (typeof object.defaultSymbolVisibility === "number") {
23371
- message.defaultSymbolVisibility = object.defaultSymbolVisibility;
23372
- break;
23373
- }
23374
- break;
23375
- case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
23376
- case 0:
23377
- message.defaultSymbolVisibility = 0;
23378
- break;
23379
- case "EXPORT_ALL":
23380
- case 1:
23381
- message.defaultSymbolVisibility = 1;
23382
- break;
23383
- case "EXPORT_TOP_LEVEL":
23384
- case 2:
23385
- message.defaultSymbolVisibility = 2;
23386
- break;
23387
- case "LOCAL_ALL":
23388
- case 3:
23389
- message.defaultSymbolVisibility = 3;
23390
- break;
23391
- case "STRICT":
23392
- case 4:
23393
- message.defaultSymbolVisibility = 4;
23394
- break;
23395
- }
23396
22001
  return message;
23397
22002
  };
23398
22003
 
@@ -23416,8 +22021,6 @@
23416
22021
  object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
23417
22022
  object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
23418
22023
  object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
23419
- object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
23420
- object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
23421
22024
  }
23422
22025
  if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
23423
22026
  object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
@@ -23431,10 +22034,6 @@
23431
22034
  object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
23432
22035
  if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
23433
22036
  object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
23434
- if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
23435
- object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
23436
- if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
23437
- 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;
23438
22037
  return object;
23439
22038
  };
23440
22039
 
@@ -23562,219 +22161,6 @@
23562
22161
  return values;
23563
22162
  })();
23564
22163
 
23565
- /**
23566
- * EnforceNamingStyle enum.
23567
- * @name google.protobuf.FeatureSet.EnforceNamingStyle
23568
- * @enum {number}
23569
- * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
23570
- * @property {number} STYLE2024=1 STYLE2024 value
23571
- * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
23572
- */
23573
- FeatureSet.EnforceNamingStyle = (function() {
23574
- var valuesById = {}, values = Object.create(valuesById);
23575
- values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
23576
- values[valuesById[1] = "STYLE2024"] = 1;
23577
- values[valuesById[2] = "STYLE_LEGACY"] = 2;
23578
- return values;
23579
- })();
23580
-
23581
- FeatureSet.VisibilityFeature = (function() {
23582
-
23583
- /**
23584
- * Properties of a VisibilityFeature.
23585
- * @memberof google.protobuf.FeatureSet
23586
- * @interface IVisibilityFeature
23587
- */
23588
-
23589
- /**
23590
- * Constructs a new VisibilityFeature.
23591
- * @memberof google.protobuf.FeatureSet
23592
- * @classdesc Represents a VisibilityFeature.
23593
- * @implements IVisibilityFeature
23594
- * @constructor
23595
- * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
23596
- */
23597
- function VisibilityFeature(properties) {
23598
- if (properties)
23599
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23600
- if (properties[keys[i]] != null)
23601
- this[keys[i]] = properties[keys[i]];
23602
- }
23603
-
23604
- /**
23605
- * Creates a new VisibilityFeature instance using the specified properties.
23606
- * @function create
23607
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23608
- * @static
23609
- * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
23610
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
23611
- */
23612
- VisibilityFeature.create = function create(properties) {
23613
- return new VisibilityFeature(properties);
23614
- };
23615
-
23616
- /**
23617
- * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
23618
- * @function encode
23619
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23620
- * @static
23621
- * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
23622
- * @param {$protobuf.Writer} [writer] Writer to encode to
23623
- * @returns {$protobuf.Writer} Writer
23624
- */
23625
- VisibilityFeature.encode = function encode(message, writer) {
23626
- if (!writer)
23627
- writer = $Writer.create();
23628
- return writer;
23629
- };
23630
-
23631
- /**
23632
- * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
23633
- * @function encodeDelimited
23634
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23635
- * @static
23636
- * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
23637
- * @param {$protobuf.Writer} [writer] Writer to encode to
23638
- * @returns {$protobuf.Writer} Writer
23639
- */
23640
- VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
23641
- return this.encode(message, writer).ldelim();
23642
- };
23643
-
23644
- /**
23645
- * Decodes a VisibilityFeature message from the specified reader or buffer.
23646
- * @function decode
23647
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23648
- * @static
23649
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23650
- * @param {number} [length] Message length if known beforehand
23651
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
23652
- * @throws {Error} If the payload is not a reader or valid buffer
23653
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
23654
- */
23655
- VisibilityFeature.decode = function decode(reader, length, error) {
23656
- if (!(reader instanceof $Reader))
23657
- reader = $Reader.create(reader);
23658
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
23659
- while (reader.pos < end) {
23660
- var tag = reader.uint32();
23661
- if (tag === error)
23662
- break;
23663
- switch (tag >>> 3) {
23664
- default:
23665
- reader.skipType(tag & 7);
23666
- break;
23667
- }
23668
- }
23669
- return message;
23670
- };
23671
-
23672
- /**
23673
- * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
23674
- * @function decodeDelimited
23675
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23676
- * @static
23677
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23678
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
23679
- * @throws {Error} If the payload is not a reader or valid buffer
23680
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
23681
- */
23682
- VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
23683
- if (!(reader instanceof $Reader))
23684
- reader = new $Reader(reader);
23685
- return this.decode(reader, reader.uint32());
23686
- };
23687
-
23688
- /**
23689
- * Verifies a VisibilityFeature message.
23690
- * @function verify
23691
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23692
- * @static
23693
- * @param {Object.<string,*>} message Plain object to verify
23694
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
23695
- */
23696
- VisibilityFeature.verify = function verify(message) {
23697
- if (typeof message !== "object" || message === null)
23698
- return "object expected";
23699
- return null;
23700
- };
23701
-
23702
- /**
23703
- * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
23704
- * @function fromObject
23705
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23706
- * @static
23707
- * @param {Object.<string,*>} object Plain object
23708
- * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
23709
- */
23710
- VisibilityFeature.fromObject = function fromObject(object) {
23711
- if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
23712
- return object;
23713
- return new $root.google.protobuf.FeatureSet.VisibilityFeature();
23714
- };
23715
-
23716
- /**
23717
- * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
23718
- * @function toObject
23719
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23720
- * @static
23721
- * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
23722
- * @param {$protobuf.IConversionOptions} [options] Conversion options
23723
- * @returns {Object.<string,*>} Plain object
23724
- */
23725
- VisibilityFeature.toObject = function toObject() {
23726
- return {};
23727
- };
23728
-
23729
- /**
23730
- * Converts this VisibilityFeature to JSON.
23731
- * @function toJSON
23732
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23733
- * @instance
23734
- * @returns {Object.<string,*>} JSON object
23735
- */
23736
- VisibilityFeature.prototype.toJSON = function toJSON() {
23737
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23738
- };
23739
-
23740
- /**
23741
- * Gets the default type url for VisibilityFeature
23742
- * @function getTypeUrl
23743
- * @memberof google.protobuf.FeatureSet.VisibilityFeature
23744
- * @static
23745
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23746
- * @returns {string} The default type url
23747
- */
23748
- VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23749
- if (typeUrlPrefix === undefined) {
23750
- typeUrlPrefix = "type.googleapis.com";
23751
- }
23752
- return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
23753
- };
23754
-
23755
- /**
23756
- * DefaultSymbolVisibility enum.
23757
- * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
23758
- * @enum {number}
23759
- * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
23760
- * @property {number} EXPORT_ALL=1 EXPORT_ALL value
23761
- * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
23762
- * @property {number} LOCAL_ALL=3 LOCAL_ALL value
23763
- * @property {number} STRICT=4 STRICT value
23764
- */
23765
- VisibilityFeature.DefaultSymbolVisibility = (function() {
23766
- var valuesById = {}, values = Object.create(valuesById);
23767
- values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
23768
- values[valuesById[1] = "EXPORT_ALL"] = 1;
23769
- values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
23770
- values[valuesById[3] = "LOCAL_ALL"] = 3;
23771
- values[valuesById[4] = "STRICT"] = 4;
23772
- return values;
23773
- })();
23774
-
23775
- return VisibilityFeature;
23776
- })();
23777
-
23778
22164
  return FeatureSet;
23779
22165
  })();
23780
22166
 
@@ -23959,7 +22345,6 @@
23959
22345
  default:
23960
22346
  return "minimumEdition: enum value expected";
23961
22347
  case 0:
23962
- case 900:
23963
22348
  case 998:
23964
22349
  case 999:
23965
22350
  case 1000:
@@ -23977,7 +22362,6 @@
23977
22362
  default:
23978
22363
  return "maximumEdition: enum value expected";
23979
22364
  case 0:
23980
- case 900:
23981
22365
  case 998:
23982
22366
  case 999:
23983
22367
  case 1000:
@@ -24026,10 +22410,6 @@
24026
22410
  case 0:
24027
22411
  message.minimumEdition = 0;
24028
22412
  break;
24029
- case "EDITION_LEGACY":
24030
- case 900:
24031
- message.minimumEdition = 900;
24032
- break;
24033
22413
  case "EDITION_PROTO2":
24034
22414
  case 998:
24035
22415
  message.minimumEdition = 998;
@@ -24082,10 +22462,6 @@
24082
22462
  case 0:
24083
22463
  message.maximumEdition = 0;
24084
22464
  break;
24085
- case "EDITION_LEGACY":
24086
- case 900:
24087
- message.maximumEdition = 900;
24088
- break;
24089
22465
  case "EDITION_PROTO2":
24090
22466
  case 998:
24091
22467
  message.maximumEdition = 998;
@@ -24194,8 +22570,7 @@
24194
22570
  * @memberof google.protobuf.FeatureSetDefaults
24195
22571
  * @interface IFeatureSetEditionDefault
24196
22572
  * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
24197
- * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
24198
- * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
22573
+ * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
24199
22574
  */
24200
22575
 
24201
22576
  /**
@@ -24222,20 +22597,12 @@
24222
22597
  FeatureSetEditionDefault.prototype.edition = 0;
24223
22598
 
24224
22599
  /**
24225
- * FeatureSetEditionDefault overridableFeatures.
24226
- * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
24227
- * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
24228
- * @instance
24229
- */
24230
- FeatureSetEditionDefault.prototype.overridableFeatures = null;
24231
-
24232
- /**
24233
- * FeatureSetEditionDefault fixedFeatures.
24234
- * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
22600
+ * FeatureSetEditionDefault features.
22601
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
24235
22602
  * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
24236
22603
  * @instance
24237
22604
  */
24238
- FeatureSetEditionDefault.prototype.fixedFeatures = null;
22605
+ FeatureSetEditionDefault.prototype.features = null;
24239
22606
 
24240
22607
  /**
24241
22608
  * Creates a new FeatureSetEditionDefault instance using the specified properties.
@@ -24261,12 +22628,10 @@
24261
22628
  FeatureSetEditionDefault.encode = function encode(message, writer) {
24262
22629
  if (!writer)
24263
22630
  writer = $Writer.create();
22631
+ if (message.features != null && Object.hasOwnProperty.call(message, "features"))
22632
+ $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
24264
22633
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
24265
22634
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
24266
- if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
24267
- $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
24268
- if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
24269
- $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
24270
22635
  return writer;
24271
22636
  };
24272
22637
 
@@ -24307,12 +22672,8 @@
24307
22672
  message.edition = reader.int32();
24308
22673
  break;
24309
22674
  }
24310
- case 4: {
24311
- message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
24312
- break;
24313
- }
24314
- case 5: {
24315
- message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
22675
+ case 2: {
22676
+ message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
24316
22677
  break;
24317
22678
  }
24318
22679
  default:
@@ -24355,7 +22716,6 @@
24355
22716
  default:
24356
22717
  return "edition: enum value expected";
24357
22718
  case 0:
24358
- case 900:
24359
22719
  case 998:
24360
22720
  case 999:
24361
22721
  case 1000:
@@ -24368,15 +22728,10 @@
24368
22728
  case 2147483647:
24369
22729
  break;
24370
22730
  }
24371
- if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
24372
- var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
24373
- if (error)
24374
- return "overridableFeatures." + error;
24375
- }
24376
- if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
24377
- var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
22731
+ if (message.features != null && message.hasOwnProperty("features")) {
22732
+ var error = $root.google.protobuf.FeatureSet.verify(message.features);
24378
22733
  if (error)
24379
- return "fixedFeatures." + error;
22734
+ return "features." + error;
24380
22735
  }
24381
22736
  return null;
24382
22737
  };
@@ -24404,10 +22759,6 @@
24404
22759
  case 0:
24405
22760
  message.edition = 0;
24406
22761
  break;
24407
- case "EDITION_LEGACY":
24408
- case 900:
24409
- message.edition = 900;
24410
- break;
24411
22762
  case "EDITION_PROTO2":
24412
22763
  case 998:
24413
22764
  message.edition = 998;
@@ -24449,15 +22800,10 @@
24449
22800
  message.edition = 2147483647;
24450
22801
  break;
24451
22802
  }
24452
- if (object.overridableFeatures != null) {
24453
- if (typeof object.overridableFeatures !== "object")
24454
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
24455
- message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
24456
- }
24457
- if (object.fixedFeatures != null) {
24458
- if (typeof object.fixedFeatures !== "object")
24459
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
24460
- message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
22803
+ if (object.features != null) {
22804
+ if (typeof object.features !== "object")
22805
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
22806
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
24461
22807
  }
24462
22808
  return message;
24463
22809
  };
@@ -24476,16 +22822,13 @@
24476
22822
  options = {};
24477
22823
  var object = {};
24478
22824
  if (options.defaults) {
22825
+ object.features = null;
24479
22826
  object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
24480
- object.overridableFeatures = null;
24481
- object.fixedFeatures = null;
24482
22827
  }
22828
+ if (message.features != null && message.hasOwnProperty("features"))
22829
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
24483
22830
  if (message.edition != null && message.hasOwnProperty("edition"))
24484
22831
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
24485
- if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
24486
- object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
24487
- if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
24488
- object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
24489
22832
  return object;
24490
22833
  };
24491
22834
 
@@ -25700,22 +24043,6 @@
25700
24043
  return GeneratedCodeInfo;
25701
24044
  })();
25702
24045
 
25703
- /**
25704
- * SymbolVisibility enum.
25705
- * @name google.protobuf.SymbolVisibility
25706
- * @enum {number}
25707
- * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
25708
- * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
25709
- * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
25710
- */
25711
- protobuf.SymbolVisibility = (function() {
25712
- var valuesById = {}, values = Object.create(valuesById);
25713
- values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
25714
- values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
25715
- values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
25716
- return values;
25717
- })();
25718
-
25719
24046
  protobuf.Duration = (function() {
25720
24047
 
25721
24048
  /**