@googlemaps/fleetengine 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1564,6 +1564,10 @@
1564
1564
  * @property {google.protobuf.ITimestamp|null} [rawLocationTime] VehicleLocation rawLocationTime
1565
1565
  * @property {maps.fleetengine.v1.LocationSensor|null} [rawLocationSensor] VehicleLocation rawLocationSensor
1566
1566
  * @property {google.protobuf.IDoubleValue|null} [rawLocationAccuracy] VehicleLocation rawLocationAccuracy
1567
+ * @property {google.type.ILatLng|null} [flpLocation] VehicleLocation flpLocation
1568
+ * @property {google.protobuf.ITimestamp|null} [flpUpdateTime] VehicleLocation flpUpdateTime
1569
+ * @property {google.protobuf.IDoubleValue|null} [flpLatlngAccuracyMeters] VehicleLocation flpLatlngAccuracyMeters
1570
+ * @property {google.protobuf.IInt32Value|null} [flpHeadingDegrees] VehicleLocation flpHeadingDegrees
1567
1571
  * @property {google.type.ILatLng|null} [supplementalLocation] VehicleLocation supplementalLocation
1568
1572
  * @property {google.protobuf.ITimestamp|null} [supplementalLocationTime] VehicleLocation supplementalLocationTime
1569
1573
  * @property {maps.fleetengine.v1.LocationSensor|null} [supplementalLocationSensor] VehicleLocation supplementalLocationSensor
@@ -1770,6 +1774,38 @@
1770
1774
  */
1771
1775
  VehicleLocation.prototype.rawLocationAccuracy = null;
1772
1776
 
1777
+ /**
1778
+ * VehicleLocation flpLocation.
1779
+ * @member {google.type.ILatLng|null|undefined} flpLocation
1780
+ * @memberof maps.fleetengine.v1.VehicleLocation
1781
+ * @instance
1782
+ */
1783
+ VehicleLocation.prototype.flpLocation = null;
1784
+
1785
+ /**
1786
+ * VehicleLocation flpUpdateTime.
1787
+ * @member {google.protobuf.ITimestamp|null|undefined} flpUpdateTime
1788
+ * @memberof maps.fleetengine.v1.VehicleLocation
1789
+ * @instance
1790
+ */
1791
+ VehicleLocation.prototype.flpUpdateTime = null;
1792
+
1793
+ /**
1794
+ * VehicleLocation flpLatlngAccuracyMeters.
1795
+ * @member {google.protobuf.IDoubleValue|null|undefined} flpLatlngAccuracyMeters
1796
+ * @memberof maps.fleetengine.v1.VehicleLocation
1797
+ * @instance
1798
+ */
1799
+ VehicleLocation.prototype.flpLatlngAccuracyMeters = null;
1800
+
1801
+ /**
1802
+ * VehicleLocation flpHeadingDegrees.
1803
+ * @member {google.protobuf.IInt32Value|null|undefined} flpHeadingDegrees
1804
+ * @memberof maps.fleetengine.v1.VehicleLocation
1805
+ * @instance
1806
+ */
1807
+ VehicleLocation.prototype.flpHeadingDegrees = null;
1808
+
1773
1809
  /**
1774
1810
  * VehicleLocation supplementalLocation.
1775
1811
  * @member {google.type.ILatLng|null|undefined} supplementalLocation
@@ -1890,6 +1926,14 @@
1890
1926
  $root.google.protobuf.BoolValue.encode(message.isRoadSnapped, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
1891
1927
  if (message.rawLocationSensor != null && Object.hasOwnProperty.call(message, "rawLocationSensor"))
1892
1928
  writer.uint32(/* id 28, wireType 0 =*/224).int32(message.rawLocationSensor);
1929
+ if (message.flpLocation != null && Object.hasOwnProperty.call(message, "flpLocation"))
1930
+ $root.google.type.LatLng.encode(message.flpLocation, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
1931
+ if (message.flpUpdateTime != null && Object.hasOwnProperty.call(message, "flpUpdateTime"))
1932
+ $root.google.protobuf.Timestamp.encode(message.flpUpdateTime, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
1933
+ if (message.flpLatlngAccuracyMeters != null && Object.hasOwnProperty.call(message, "flpLatlngAccuracyMeters"))
1934
+ $root.google.protobuf.DoubleValue.encode(message.flpLatlngAccuracyMeters, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
1935
+ if (message.flpHeadingDegrees != null && Object.hasOwnProperty.call(message, "flpHeadingDegrees"))
1936
+ $root.google.protobuf.Int32Value.encode(message.flpHeadingDegrees, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
1893
1937
  return writer;
1894
1938
  };
1895
1939
 
@@ -2018,6 +2062,22 @@
2018
2062
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
2019
2063
  break;
2020
2064
  }
2065
+ case 29: {
2066
+ message.flpLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
2067
+ break;
2068
+ }
2069
+ case 30: {
2070
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
2071
+ break;
2072
+ }
2073
+ case 31: {
2074
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
2075
+ break;
2076
+ }
2077
+ case 32: {
2078
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.decode(reader, reader.uint32());
2079
+ break;
2080
+ }
2021
2081
  case 18: {
2022
2082
  message.supplementalLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
2023
2083
  break;
@@ -2208,6 +2268,26 @@
2208
2268
  if (error)
2209
2269
  return "rawLocationAccuracy." + error;
2210
2270
  }
2271
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation")) {
2272
+ var error = $root.google.type.LatLng.verify(message.flpLocation);
2273
+ if (error)
2274
+ return "flpLocation." + error;
2275
+ }
2276
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime")) {
2277
+ var error = $root.google.protobuf.Timestamp.verify(message.flpUpdateTime);
2278
+ if (error)
2279
+ return "flpUpdateTime." + error;
2280
+ }
2281
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters")) {
2282
+ var error = $root.google.protobuf.DoubleValue.verify(message.flpLatlngAccuracyMeters);
2283
+ if (error)
2284
+ return "flpLatlngAccuracyMeters." + error;
2285
+ }
2286
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees")) {
2287
+ var error = $root.google.protobuf.Int32Value.verify(message.flpHeadingDegrees);
2288
+ if (error)
2289
+ return "flpHeadingDegrees." + error;
2290
+ }
2211
2291
  if (message.supplementalLocation != null && message.hasOwnProperty("supplementalLocation")) {
2212
2292
  var error = $root.google.type.LatLng.verify(message.supplementalLocation);
2213
2293
  if (error)
@@ -2449,6 +2529,26 @@
2449
2529
  throw TypeError(".maps.fleetengine.v1.VehicleLocation.rawLocationAccuracy: object expected");
2450
2530
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.fromObject(object.rawLocationAccuracy);
2451
2531
  }
2532
+ if (object.flpLocation != null) {
2533
+ if (typeof object.flpLocation !== "object")
2534
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpLocation: object expected");
2535
+ message.flpLocation = $root.google.type.LatLng.fromObject(object.flpLocation);
2536
+ }
2537
+ if (object.flpUpdateTime != null) {
2538
+ if (typeof object.flpUpdateTime !== "object")
2539
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpUpdateTime: object expected");
2540
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.flpUpdateTime);
2541
+ }
2542
+ if (object.flpLatlngAccuracyMeters != null) {
2543
+ if (typeof object.flpLatlngAccuracyMeters !== "object")
2544
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpLatlngAccuracyMeters: object expected");
2545
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.fromObject(object.flpLatlngAccuracyMeters);
2546
+ }
2547
+ if (object.flpHeadingDegrees != null) {
2548
+ if (typeof object.flpHeadingDegrees !== "object")
2549
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpHeadingDegrees: object expected");
2550
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.fromObject(object.flpHeadingDegrees);
2551
+ }
2452
2552
  if (object.supplementalLocation != null) {
2453
2553
  if (typeof object.supplementalLocation !== "object")
2454
2554
  throw TypeError(".maps.fleetengine.v1.VehicleLocation.supplementalLocation: object expected");
@@ -2555,6 +2655,10 @@
2555
2655
  object.roadSnapped = false;
2556
2656
  object.isRoadSnapped = null;
2557
2657
  object.rawLocationSensor = options.enums === String ? "UNKNOWN_SENSOR" : 0;
2658
+ object.flpLocation = null;
2659
+ object.flpUpdateTime = null;
2660
+ object.flpLatlngAccuracyMeters = null;
2661
+ object.flpHeadingDegrees = null;
2558
2662
  }
2559
2663
  if (message.location != null && message.hasOwnProperty("location"))
2560
2664
  object.location = $root.google.type.LatLng.toObject(message.location, options);
@@ -2612,6 +2716,14 @@
2612
2716
  object.isRoadSnapped = $root.google.protobuf.BoolValue.toObject(message.isRoadSnapped, options);
2613
2717
  if (message.rawLocationSensor != null && message.hasOwnProperty("rawLocationSensor"))
2614
2718
  object.rawLocationSensor = options.enums === String ? $root.maps.fleetengine.v1.LocationSensor[message.rawLocationSensor] === undefined ? message.rawLocationSensor : $root.maps.fleetengine.v1.LocationSensor[message.rawLocationSensor] : message.rawLocationSensor;
2719
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation"))
2720
+ object.flpLocation = $root.google.type.LatLng.toObject(message.flpLocation, options);
2721
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime"))
2722
+ object.flpUpdateTime = $root.google.protobuf.Timestamp.toObject(message.flpUpdateTime, options);
2723
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters"))
2724
+ object.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.toObject(message.flpLatlngAccuracyMeters, options);
2725
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees"))
2726
+ object.flpHeadingDegrees = $root.google.protobuf.Int32Value.toObject(message.flpHeadingDegrees, options);
2615
2727
  return object;
2616
2728
  };
2617
2729
 
@@ -2672,6 +2784,311 @@
2672
2784
  return values;
2673
2785
  })();
2674
2786
 
2787
+ v1.TripAttribute = (function() {
2788
+
2789
+ /**
2790
+ * Properties of a TripAttribute.
2791
+ * @memberof maps.fleetengine.v1
2792
+ * @interface ITripAttribute
2793
+ * @property {string|null} [key] TripAttribute key
2794
+ * @property {string|null} [stringValue] TripAttribute stringValue
2795
+ * @property {boolean|null} [boolValue] TripAttribute boolValue
2796
+ * @property {number|null} [numberValue] TripAttribute numberValue
2797
+ */
2798
+
2799
+ /**
2800
+ * Constructs a new TripAttribute.
2801
+ * @memberof maps.fleetengine.v1
2802
+ * @classdesc Represents a TripAttribute.
2803
+ * @implements ITripAttribute
2804
+ * @constructor
2805
+ * @param {maps.fleetengine.v1.ITripAttribute=} [properties] Properties to set
2806
+ */
2807
+ function TripAttribute(properties) {
2808
+ if (properties)
2809
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2810
+ if (properties[keys[i]] != null)
2811
+ this[keys[i]] = properties[keys[i]];
2812
+ }
2813
+
2814
+ /**
2815
+ * TripAttribute key.
2816
+ * @member {string} key
2817
+ * @memberof maps.fleetengine.v1.TripAttribute
2818
+ * @instance
2819
+ */
2820
+ TripAttribute.prototype.key = "";
2821
+
2822
+ /**
2823
+ * TripAttribute stringValue.
2824
+ * @member {string|null|undefined} stringValue
2825
+ * @memberof maps.fleetengine.v1.TripAttribute
2826
+ * @instance
2827
+ */
2828
+ TripAttribute.prototype.stringValue = null;
2829
+
2830
+ /**
2831
+ * TripAttribute boolValue.
2832
+ * @member {boolean|null|undefined} boolValue
2833
+ * @memberof maps.fleetengine.v1.TripAttribute
2834
+ * @instance
2835
+ */
2836
+ TripAttribute.prototype.boolValue = null;
2837
+
2838
+ /**
2839
+ * TripAttribute numberValue.
2840
+ * @member {number|null|undefined} numberValue
2841
+ * @memberof maps.fleetengine.v1.TripAttribute
2842
+ * @instance
2843
+ */
2844
+ TripAttribute.prototype.numberValue = null;
2845
+
2846
+ // OneOf field names bound to virtual getters and setters
2847
+ var $oneOfFields;
2848
+
2849
+ /**
2850
+ * TripAttribute tripAttributeValue.
2851
+ * @member {"stringValue"|"boolValue"|"numberValue"|undefined} tripAttributeValue
2852
+ * @memberof maps.fleetengine.v1.TripAttribute
2853
+ * @instance
2854
+ */
2855
+ Object.defineProperty(TripAttribute.prototype, "tripAttributeValue", {
2856
+ get: $util.oneOfGetter($oneOfFields = ["stringValue", "boolValue", "numberValue"]),
2857
+ set: $util.oneOfSetter($oneOfFields)
2858
+ });
2859
+
2860
+ /**
2861
+ * Creates a new TripAttribute instance using the specified properties.
2862
+ * @function create
2863
+ * @memberof maps.fleetengine.v1.TripAttribute
2864
+ * @static
2865
+ * @param {maps.fleetengine.v1.ITripAttribute=} [properties] Properties to set
2866
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute instance
2867
+ */
2868
+ TripAttribute.create = function create(properties) {
2869
+ return new TripAttribute(properties);
2870
+ };
2871
+
2872
+ /**
2873
+ * Encodes the specified TripAttribute message. Does not implicitly {@link maps.fleetengine.v1.TripAttribute.verify|verify} messages.
2874
+ * @function encode
2875
+ * @memberof maps.fleetengine.v1.TripAttribute
2876
+ * @static
2877
+ * @param {maps.fleetengine.v1.ITripAttribute} message TripAttribute message or plain object to encode
2878
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2879
+ * @returns {$protobuf.Writer} Writer
2880
+ */
2881
+ TripAttribute.encode = function encode(message, writer) {
2882
+ if (!writer)
2883
+ writer = $Writer.create();
2884
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
2885
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
2886
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
2887
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.stringValue);
2888
+ if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue"))
2889
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.boolValue);
2890
+ if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue"))
2891
+ writer.uint32(/* id 4, wireType 1 =*/33).double(message.numberValue);
2892
+ return writer;
2893
+ };
2894
+
2895
+ /**
2896
+ * Encodes the specified TripAttribute message, length delimited. Does not implicitly {@link maps.fleetengine.v1.TripAttribute.verify|verify} messages.
2897
+ * @function encodeDelimited
2898
+ * @memberof maps.fleetengine.v1.TripAttribute
2899
+ * @static
2900
+ * @param {maps.fleetengine.v1.ITripAttribute} message TripAttribute message or plain object to encode
2901
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2902
+ * @returns {$protobuf.Writer} Writer
2903
+ */
2904
+ TripAttribute.encodeDelimited = function encodeDelimited(message, writer) {
2905
+ return this.encode(message, writer).ldelim();
2906
+ };
2907
+
2908
+ /**
2909
+ * Decodes a TripAttribute message from the specified reader or buffer.
2910
+ * @function decode
2911
+ * @memberof maps.fleetengine.v1.TripAttribute
2912
+ * @static
2913
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2914
+ * @param {number} [length] Message length if known beforehand
2915
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
2916
+ * @throws {Error} If the payload is not a reader or valid buffer
2917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2918
+ */
2919
+ TripAttribute.decode = function decode(reader, length, error) {
2920
+ if (!(reader instanceof $Reader))
2921
+ reader = $Reader.create(reader);
2922
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.maps.fleetengine.v1.TripAttribute();
2923
+ while (reader.pos < end) {
2924
+ var tag = reader.uint32();
2925
+ if (tag === error)
2926
+ break;
2927
+ switch (tag >>> 3) {
2928
+ case 1: {
2929
+ message.key = reader.string();
2930
+ break;
2931
+ }
2932
+ case 2: {
2933
+ message.stringValue = reader.string();
2934
+ break;
2935
+ }
2936
+ case 3: {
2937
+ message.boolValue = reader.bool();
2938
+ break;
2939
+ }
2940
+ case 4: {
2941
+ message.numberValue = reader.double();
2942
+ break;
2943
+ }
2944
+ default:
2945
+ reader.skipType(tag & 7);
2946
+ break;
2947
+ }
2948
+ }
2949
+ return message;
2950
+ };
2951
+
2952
+ /**
2953
+ * Decodes a TripAttribute message from the specified reader or buffer, length delimited.
2954
+ * @function decodeDelimited
2955
+ * @memberof maps.fleetengine.v1.TripAttribute
2956
+ * @static
2957
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2958
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
2959
+ * @throws {Error} If the payload is not a reader or valid buffer
2960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2961
+ */
2962
+ TripAttribute.decodeDelimited = function decodeDelimited(reader) {
2963
+ if (!(reader instanceof $Reader))
2964
+ reader = new $Reader(reader);
2965
+ return this.decode(reader, reader.uint32());
2966
+ };
2967
+
2968
+ /**
2969
+ * Verifies a TripAttribute message.
2970
+ * @function verify
2971
+ * @memberof maps.fleetengine.v1.TripAttribute
2972
+ * @static
2973
+ * @param {Object.<string,*>} message Plain object to verify
2974
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2975
+ */
2976
+ TripAttribute.verify = function verify(message) {
2977
+ if (typeof message !== "object" || message === null)
2978
+ return "object expected";
2979
+ var properties = {};
2980
+ if (message.key != null && message.hasOwnProperty("key"))
2981
+ if (!$util.isString(message.key))
2982
+ return "key: string expected";
2983
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
2984
+ properties.tripAttributeValue = 1;
2985
+ if (!$util.isString(message.stringValue))
2986
+ return "stringValue: string expected";
2987
+ }
2988
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
2989
+ if (properties.tripAttributeValue === 1)
2990
+ return "tripAttributeValue: multiple values";
2991
+ properties.tripAttributeValue = 1;
2992
+ if (typeof message.boolValue !== "boolean")
2993
+ return "boolValue: boolean expected";
2994
+ }
2995
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
2996
+ if (properties.tripAttributeValue === 1)
2997
+ return "tripAttributeValue: multiple values";
2998
+ properties.tripAttributeValue = 1;
2999
+ if (typeof message.numberValue !== "number")
3000
+ return "numberValue: number expected";
3001
+ }
3002
+ return null;
3003
+ };
3004
+
3005
+ /**
3006
+ * Creates a TripAttribute message from a plain object. Also converts values to their respective internal types.
3007
+ * @function fromObject
3008
+ * @memberof maps.fleetengine.v1.TripAttribute
3009
+ * @static
3010
+ * @param {Object.<string,*>} object Plain object
3011
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
3012
+ */
3013
+ TripAttribute.fromObject = function fromObject(object) {
3014
+ if (object instanceof $root.maps.fleetengine.v1.TripAttribute)
3015
+ return object;
3016
+ var message = new $root.maps.fleetengine.v1.TripAttribute();
3017
+ if (object.key != null)
3018
+ message.key = String(object.key);
3019
+ if (object.stringValue != null)
3020
+ message.stringValue = String(object.stringValue);
3021
+ if (object.boolValue != null)
3022
+ message.boolValue = Boolean(object.boolValue);
3023
+ if (object.numberValue != null)
3024
+ message.numberValue = Number(object.numberValue);
3025
+ return message;
3026
+ };
3027
+
3028
+ /**
3029
+ * Creates a plain object from a TripAttribute message. Also converts values to other types if specified.
3030
+ * @function toObject
3031
+ * @memberof maps.fleetengine.v1.TripAttribute
3032
+ * @static
3033
+ * @param {maps.fleetengine.v1.TripAttribute} message TripAttribute
3034
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3035
+ * @returns {Object.<string,*>} Plain object
3036
+ */
3037
+ TripAttribute.toObject = function toObject(message, options) {
3038
+ if (!options)
3039
+ options = {};
3040
+ var object = {};
3041
+ if (options.defaults)
3042
+ object.key = "";
3043
+ if (message.key != null && message.hasOwnProperty("key"))
3044
+ object.key = message.key;
3045
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
3046
+ object.stringValue = message.stringValue;
3047
+ if (options.oneofs)
3048
+ object.tripAttributeValue = "stringValue";
3049
+ }
3050
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
3051
+ object.boolValue = message.boolValue;
3052
+ if (options.oneofs)
3053
+ object.tripAttributeValue = "boolValue";
3054
+ }
3055
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
3056
+ object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue;
3057
+ if (options.oneofs)
3058
+ object.tripAttributeValue = "numberValue";
3059
+ }
3060
+ return object;
3061
+ };
3062
+
3063
+ /**
3064
+ * Converts this TripAttribute to JSON.
3065
+ * @function toJSON
3066
+ * @memberof maps.fleetengine.v1.TripAttribute
3067
+ * @instance
3068
+ * @returns {Object.<string,*>} JSON object
3069
+ */
3070
+ TripAttribute.prototype.toJSON = function toJSON() {
3071
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3072
+ };
3073
+
3074
+ /**
3075
+ * Gets the default type url for TripAttribute
3076
+ * @function getTypeUrl
3077
+ * @memberof maps.fleetengine.v1.TripAttribute
3078
+ * @static
3079
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3080
+ * @returns {string} The default type url
3081
+ */
3082
+ TripAttribute.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3083
+ if (typeUrlPrefix === undefined) {
3084
+ typeUrlPrefix = "type.googleapis.com";
3085
+ }
3086
+ return typeUrlPrefix + "/maps.fleetengine.v1.TripAttribute";
3087
+ };
3088
+
3089
+ return TripAttribute;
3090
+ })();
3091
+
2675
3092
  v1.SpeedReadingInterval = (function() {
2676
3093
 
2677
3094
  /**
@@ -6286,6 +6703,7 @@
6286
6703
  * @property {maps.fleetengine.v1.IVehicleLocation|null} [lastLocation] Trip lastLocation
6287
6704
  * @property {boolean|null} [lastLocationSnappable] Trip lastLocationSnappable
6288
6705
  * @property {maps.fleetengine.v1.TripView|null} [view] Trip view
6706
+ * @property {Array.<maps.fleetengine.v1.ITripAttribute>|null} [attributes] Trip attributes
6289
6707
  */
6290
6708
 
6291
6709
  /**
@@ -6303,6 +6721,7 @@
6303
6721
  this.remainingWaypoints = [];
6304
6722
  this.vehicleWaypoints = [];
6305
6723
  this.route = [];
6724
+ this.attributes = [];
6306
6725
  if (properties)
6307
6726
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6308
6727
  if (properties[keys[i]] != null)
@@ -6573,6 +6992,14 @@
6573
6992
  */
6574
6993
  Trip.prototype.view = 0;
6575
6994
 
6995
+ /**
6996
+ * Trip attributes.
6997
+ * @member {Array.<maps.fleetengine.v1.ITripAttribute>} attributes
6998
+ * @memberof maps.fleetengine.v1.Trip
6999
+ * @instance
7000
+ */
7001
+ Trip.prototype.attributes = $util.emptyArray;
7002
+
6576
7003
  /**
6577
7004
  * Creates a new Trip instance using the specified properties.
6578
7005
  * @function create
@@ -6669,6 +7096,9 @@
6669
7096
  if (message.actualIntermediateDestinations != null && message.actualIntermediateDestinations.length)
6670
7097
  for (var i = 0; i < message.actualIntermediateDestinations.length; ++i)
6671
7098
  $root.maps.fleetengine.v1.StopLocation.encode(message.actualIntermediateDestinations[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
7099
+ if (message.attributes != null && message.attributes.length)
7100
+ for (var i = 0; i < message.attributes.length; ++i)
7101
+ $root.maps.fleetengine.v1.TripAttribute.encode(message.attributes[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
6672
7102
  return writer;
6673
7103
  };
6674
7104
 
@@ -6849,6 +7279,12 @@
6849
7279
  message.view = reader.int32();
6850
7280
  break;
6851
7281
  }
7282
+ case 35: {
7283
+ if (!(message.attributes && message.attributes.length))
7284
+ message.attributes = [];
7285
+ message.attributes.push($root.maps.fleetengine.v1.TripAttribute.decode(reader, reader.uint32()));
7286
+ break;
7287
+ }
6852
7288
  default:
6853
7289
  reader.skipType(tag & 7);
6854
7290
  break;
@@ -7079,6 +7515,15 @@
7079
7515
  case 2:
7080
7516
  break;
7081
7517
  }
7518
+ if (message.attributes != null && message.hasOwnProperty("attributes")) {
7519
+ if (!Array.isArray(message.attributes))
7520
+ return "attributes: array expected";
7521
+ for (var i = 0; i < message.attributes.length; ++i) {
7522
+ var error = $root.maps.fleetengine.v1.TripAttribute.verify(message.attributes[i]);
7523
+ if (error)
7524
+ return "attributes." + error;
7525
+ }
7526
+ }
7082
7527
  return null;
7083
7528
  };
7084
7529
 
@@ -7340,6 +7785,16 @@
7340
7785
  message.view = 2;
7341
7786
  break;
7342
7787
  }
7788
+ if (object.attributes) {
7789
+ if (!Array.isArray(object.attributes))
7790
+ throw TypeError(".maps.fleetengine.v1.Trip.attributes: array expected");
7791
+ message.attributes = [];
7792
+ for (var i = 0; i < object.attributes.length; ++i) {
7793
+ if (typeof object.attributes[i] !== "object")
7794
+ throw TypeError(".maps.fleetengine.v1.Trip.attributes: object expected");
7795
+ message.attributes[i] = $root.maps.fleetengine.v1.TripAttribute.fromObject(object.attributes[i]);
7796
+ }
7797
+ }
7343
7798
  return message;
7344
7799
  };
7345
7800
 
@@ -7363,6 +7818,7 @@
7363
7818
  object.vehicleWaypoints = [];
7364
7819
  object.actualIntermediateDestinationArrivalPoints = [];
7365
7820
  object.actualIntermediateDestinations = [];
7821
+ object.attributes = [];
7366
7822
  }
7367
7823
  if (options.defaults) {
7368
7824
  object.name = "";
@@ -7477,6 +7933,11 @@
7477
7933
  for (var j = 0; j < message.actualIntermediateDestinations.length; ++j)
7478
7934
  object.actualIntermediateDestinations[j] = $root.maps.fleetengine.v1.StopLocation.toObject(message.actualIntermediateDestinations[j], options);
7479
7935
  }
7936
+ if (message.attributes && message.attributes.length) {
7937
+ object.attributes = [];
7938
+ for (var j = 0; j < message.attributes.length; ++j)
7939
+ object.attributes[j] = $root.maps.fleetengine.v1.TripAttribute.toObject(message.attributes[j], options);
7940
+ }
7480
7941
  return object;
7481
7942
  };
7482
7943
 
@@ -18078,6 +18539,7 @@
18078
18539
  * @interface ICommonLanguageSettings
18079
18540
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
18080
18541
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
18542
+ * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
18081
18543
  */
18082
18544
 
18083
18545
  /**
@@ -18112,6 +18574,14 @@
18112
18574
  */
18113
18575
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
18114
18576
 
18577
+ /**
18578
+ * CommonLanguageSettings selectiveGapicGeneration.
18579
+ * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
18580
+ * @memberof google.api.CommonLanguageSettings
18581
+ * @instance
18582
+ */
18583
+ CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
18584
+
18115
18585
  /**
18116
18586
  * Creates a new CommonLanguageSettings instance using the specified properties.
18117
18587
  * @function create
@@ -18144,6 +18614,8 @@
18144
18614
  writer.int32(message.destinations[i]);
18145
18615
  writer.ldelim();
18146
18616
  }
18617
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
18618
+ $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
18147
18619
  return writer;
18148
18620
  };
18149
18621
 
@@ -18195,6 +18667,10 @@
18195
18667
  message.destinations.push(reader.int32());
18196
18668
  break;
18197
18669
  }
18670
+ case 3: {
18671
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
18672
+ break;
18673
+ }
18198
18674
  default:
18199
18675
  reader.skipType(tag & 7);
18200
18676
  break;
@@ -18246,6 +18722,11 @@
18246
18722
  break;
18247
18723
  }
18248
18724
  }
18725
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
18726
+ var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
18727
+ if (error)
18728
+ return "selectiveGapicGeneration." + error;
18729
+ }
18249
18730
  return null;
18250
18731
  };
18251
18732
 
@@ -18288,6 +18769,11 @@
18288
18769
  break;
18289
18770
  }
18290
18771
  }
18772
+ if (object.selectiveGapicGeneration != null) {
18773
+ if (typeof object.selectiveGapicGeneration !== "object")
18774
+ throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
18775
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
18776
+ }
18291
18777
  return message;
18292
18778
  };
18293
18779
 
@@ -18306,8 +18792,10 @@
18306
18792
  var object = {};
18307
18793
  if (options.arrays || options.defaults)
18308
18794
  object.destinations = [];
18309
- if (options.defaults)
18795
+ if (options.defaults) {
18310
18796
  object.referenceDocsUri = "";
18797
+ object.selectiveGapicGeneration = null;
18798
+ }
18311
18799
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
18312
18800
  object.referenceDocsUri = message.referenceDocsUri;
18313
18801
  if (message.destinations && message.destinations.length) {
@@ -18315,6 +18803,8 @@
18315
18803
  for (var j = 0; j < message.destinations.length; ++j)
18316
18804
  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];
18317
18805
  }
18806
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
18807
+ object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
18318
18808
  return object;
18319
18809
  };
18320
18810
 
@@ -20137,6 +20627,7 @@
20137
20627
  * @memberof google.api
20138
20628
  * @interface IPythonSettings
20139
20629
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
20630
+ * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
20140
20631
  */
20141
20632
 
20142
20633
  /**
@@ -20162,6 +20653,14 @@
20162
20653
  */
20163
20654
  PythonSettings.prototype.common = null;
20164
20655
 
20656
+ /**
20657
+ * PythonSettings experimentalFeatures.
20658
+ * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
20659
+ * @memberof google.api.PythonSettings
20660
+ * @instance
20661
+ */
20662
+ PythonSettings.prototype.experimentalFeatures = null;
20663
+
20165
20664
  /**
20166
20665
  * Creates a new PythonSettings instance using the specified properties.
20167
20666
  * @function create
@@ -20188,6 +20687,8 @@
20188
20687
  writer = $Writer.create();
20189
20688
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
20190
20689
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
20690
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
20691
+ $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
20191
20692
  return writer;
20192
20693
  };
20193
20694
 
@@ -20228,6 +20729,10 @@
20228
20729
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
20229
20730
  break;
20230
20731
  }
20732
+ case 2: {
20733
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
20734
+ break;
20735
+ }
20231
20736
  default:
20232
20737
  reader.skipType(tag & 7);
20233
20738
  break;
@@ -20268,6 +20773,11 @@
20268
20773
  if (error)
20269
20774
  return "common." + error;
20270
20775
  }
20776
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
20777
+ var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
20778
+ if (error)
20779
+ return "experimentalFeatures." + error;
20780
+ }
20271
20781
  return null;
20272
20782
  };
20273
20783
 
@@ -20288,6 +20798,11 @@
20288
20798
  throw TypeError(".google.api.PythonSettings.common: object expected");
20289
20799
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
20290
20800
  }
20801
+ if (object.experimentalFeatures != null) {
20802
+ if (typeof object.experimentalFeatures !== "object")
20803
+ throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
20804
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
20805
+ }
20291
20806
  return message;
20292
20807
  };
20293
20808
 
@@ -20304,10 +20819,14 @@
20304
20819
  if (!options)
20305
20820
  options = {};
20306
20821
  var object = {};
20307
- if (options.defaults)
20822
+ if (options.defaults) {
20308
20823
  object.common = null;
20824
+ object.experimentalFeatures = null;
20825
+ }
20309
20826
  if (message.common != null && message.hasOwnProperty("common"))
20310
20827
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
20828
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
20829
+ object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
20311
20830
  return object;
20312
20831
  };
20313
20832
 
@@ -20337,6 +20856,258 @@
20337
20856
  return typeUrlPrefix + "/google.api.PythonSettings";
20338
20857
  };
20339
20858
 
20859
+ PythonSettings.ExperimentalFeatures = (function() {
20860
+
20861
+ /**
20862
+ * Properties of an ExperimentalFeatures.
20863
+ * @memberof google.api.PythonSettings
20864
+ * @interface IExperimentalFeatures
20865
+ * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
20866
+ * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
20867
+ * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
20868
+ */
20869
+
20870
+ /**
20871
+ * Constructs a new ExperimentalFeatures.
20872
+ * @memberof google.api.PythonSettings
20873
+ * @classdesc Represents an ExperimentalFeatures.
20874
+ * @implements IExperimentalFeatures
20875
+ * @constructor
20876
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
20877
+ */
20878
+ function ExperimentalFeatures(properties) {
20879
+ if (properties)
20880
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20881
+ if (properties[keys[i]] != null)
20882
+ this[keys[i]] = properties[keys[i]];
20883
+ }
20884
+
20885
+ /**
20886
+ * ExperimentalFeatures restAsyncIoEnabled.
20887
+ * @member {boolean} restAsyncIoEnabled
20888
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20889
+ * @instance
20890
+ */
20891
+ ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
20892
+
20893
+ /**
20894
+ * ExperimentalFeatures protobufPythonicTypesEnabled.
20895
+ * @member {boolean} protobufPythonicTypesEnabled
20896
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20897
+ * @instance
20898
+ */
20899
+ ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
20900
+
20901
+ /**
20902
+ * ExperimentalFeatures unversionedPackageDisabled.
20903
+ * @member {boolean} unversionedPackageDisabled
20904
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20905
+ * @instance
20906
+ */
20907
+ ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
20908
+
20909
+ /**
20910
+ * Creates a new ExperimentalFeatures instance using the specified properties.
20911
+ * @function create
20912
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20913
+ * @static
20914
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
20915
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
20916
+ */
20917
+ ExperimentalFeatures.create = function create(properties) {
20918
+ return new ExperimentalFeatures(properties);
20919
+ };
20920
+
20921
+ /**
20922
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
20923
+ * @function encode
20924
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20925
+ * @static
20926
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
20927
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20928
+ * @returns {$protobuf.Writer} Writer
20929
+ */
20930
+ ExperimentalFeatures.encode = function encode(message, writer) {
20931
+ if (!writer)
20932
+ writer = $Writer.create();
20933
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
20934
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
20935
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
20936
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
20937
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
20938
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
20939
+ return writer;
20940
+ };
20941
+
20942
+ /**
20943
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
20944
+ * @function encodeDelimited
20945
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20946
+ * @static
20947
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
20948
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20949
+ * @returns {$protobuf.Writer} Writer
20950
+ */
20951
+ ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
20952
+ return this.encode(message, writer).ldelim();
20953
+ };
20954
+
20955
+ /**
20956
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
20957
+ * @function decode
20958
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20959
+ * @static
20960
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20961
+ * @param {number} [length] Message length if known beforehand
20962
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
20963
+ * @throws {Error} If the payload is not a reader or valid buffer
20964
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20965
+ */
20966
+ ExperimentalFeatures.decode = function decode(reader, length, error) {
20967
+ if (!(reader instanceof $Reader))
20968
+ reader = $Reader.create(reader);
20969
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
20970
+ while (reader.pos < end) {
20971
+ var tag = reader.uint32();
20972
+ if (tag === error)
20973
+ break;
20974
+ switch (tag >>> 3) {
20975
+ case 1: {
20976
+ message.restAsyncIoEnabled = reader.bool();
20977
+ break;
20978
+ }
20979
+ case 2: {
20980
+ message.protobufPythonicTypesEnabled = reader.bool();
20981
+ break;
20982
+ }
20983
+ case 3: {
20984
+ message.unversionedPackageDisabled = reader.bool();
20985
+ break;
20986
+ }
20987
+ default:
20988
+ reader.skipType(tag & 7);
20989
+ break;
20990
+ }
20991
+ }
20992
+ return message;
20993
+ };
20994
+
20995
+ /**
20996
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
20997
+ * @function decodeDelimited
20998
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
20999
+ * @static
21000
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21001
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
21002
+ * @throws {Error} If the payload is not a reader or valid buffer
21003
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21004
+ */
21005
+ ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
21006
+ if (!(reader instanceof $Reader))
21007
+ reader = new $Reader(reader);
21008
+ return this.decode(reader, reader.uint32());
21009
+ };
21010
+
21011
+ /**
21012
+ * Verifies an ExperimentalFeatures message.
21013
+ * @function verify
21014
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
21015
+ * @static
21016
+ * @param {Object.<string,*>} message Plain object to verify
21017
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
21018
+ */
21019
+ ExperimentalFeatures.verify = function verify(message) {
21020
+ if (typeof message !== "object" || message === null)
21021
+ return "object expected";
21022
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
21023
+ if (typeof message.restAsyncIoEnabled !== "boolean")
21024
+ return "restAsyncIoEnabled: boolean expected";
21025
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
21026
+ if (typeof message.protobufPythonicTypesEnabled !== "boolean")
21027
+ return "protobufPythonicTypesEnabled: boolean expected";
21028
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
21029
+ if (typeof message.unversionedPackageDisabled !== "boolean")
21030
+ return "unversionedPackageDisabled: boolean expected";
21031
+ return null;
21032
+ };
21033
+
21034
+ /**
21035
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
21036
+ * @function fromObject
21037
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
21038
+ * @static
21039
+ * @param {Object.<string,*>} object Plain object
21040
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
21041
+ */
21042
+ ExperimentalFeatures.fromObject = function fromObject(object) {
21043
+ if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
21044
+ return object;
21045
+ var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
21046
+ if (object.restAsyncIoEnabled != null)
21047
+ message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
21048
+ if (object.protobufPythonicTypesEnabled != null)
21049
+ message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
21050
+ if (object.unversionedPackageDisabled != null)
21051
+ message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
21052
+ return message;
21053
+ };
21054
+
21055
+ /**
21056
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
21057
+ * @function toObject
21058
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
21059
+ * @static
21060
+ * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
21061
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21062
+ * @returns {Object.<string,*>} Plain object
21063
+ */
21064
+ ExperimentalFeatures.toObject = function toObject(message, options) {
21065
+ if (!options)
21066
+ options = {};
21067
+ var object = {};
21068
+ if (options.defaults) {
21069
+ object.restAsyncIoEnabled = false;
21070
+ object.protobufPythonicTypesEnabled = false;
21071
+ object.unversionedPackageDisabled = false;
21072
+ }
21073
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
21074
+ object.restAsyncIoEnabled = message.restAsyncIoEnabled;
21075
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
21076
+ object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
21077
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
21078
+ object.unversionedPackageDisabled = message.unversionedPackageDisabled;
21079
+ return object;
21080
+ };
21081
+
21082
+ /**
21083
+ * Converts this ExperimentalFeatures to JSON.
21084
+ * @function toJSON
21085
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
21086
+ * @instance
21087
+ * @returns {Object.<string,*>} JSON object
21088
+ */
21089
+ ExperimentalFeatures.prototype.toJSON = function toJSON() {
21090
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21091
+ };
21092
+
21093
+ /**
21094
+ * Gets the default type url for ExperimentalFeatures
21095
+ * @function getTypeUrl
21096
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
21097
+ * @static
21098
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21099
+ * @returns {string} The default type url
21100
+ */
21101
+ ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21102
+ if (typeUrlPrefix === undefined) {
21103
+ typeUrlPrefix = "type.googleapis.com";
21104
+ }
21105
+ return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
21106
+ };
21107
+
21108
+ return ExperimentalFeatures;
21109
+ })();
21110
+
20340
21111
  return PythonSettings;
20341
21112
  })();
20342
21113
 
@@ -21213,6 +21984,7 @@
21213
21984
  * @memberof google.api
21214
21985
  * @interface IGoSettings
21215
21986
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
21987
+ * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
21216
21988
  */
21217
21989
 
21218
21990
  /**
@@ -21224,6 +21996,7 @@
21224
21996
  * @param {google.api.IGoSettings=} [properties] Properties to set
21225
21997
  */
21226
21998
  function GoSettings(properties) {
21999
+ this.renamedServices = {};
21227
22000
  if (properties)
21228
22001
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21229
22002
  if (properties[keys[i]] != null)
@@ -21238,6 +22011,14 @@
21238
22011
  */
21239
22012
  GoSettings.prototype.common = null;
21240
22013
 
22014
+ /**
22015
+ * GoSettings renamedServices.
22016
+ * @member {Object.<string,string>} renamedServices
22017
+ * @memberof google.api.GoSettings
22018
+ * @instance
22019
+ */
22020
+ GoSettings.prototype.renamedServices = $util.emptyObject;
22021
+
21241
22022
  /**
21242
22023
  * Creates a new GoSettings instance using the specified properties.
21243
22024
  * @function create
@@ -21264,6 +22045,9 @@
21264
22045
  writer = $Writer.create();
21265
22046
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
21266
22047
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
22048
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
22049
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
22050
+ 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();
21267
22051
  return writer;
21268
22052
  };
21269
22053
 
@@ -21294,7 +22078,7 @@
21294
22078
  GoSettings.decode = function decode(reader, length, error) {
21295
22079
  if (!(reader instanceof $Reader))
21296
22080
  reader = $Reader.create(reader);
21297
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
22081
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
21298
22082
  while (reader.pos < end) {
21299
22083
  var tag = reader.uint32();
21300
22084
  if (tag === error)
@@ -21304,6 +22088,29 @@
21304
22088
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
21305
22089
  break;
21306
22090
  }
22091
+ case 2: {
22092
+ if (message.renamedServices === $util.emptyObject)
22093
+ message.renamedServices = {};
22094
+ var end2 = reader.uint32() + reader.pos;
22095
+ key = "";
22096
+ value = "";
22097
+ while (reader.pos < end2) {
22098
+ var tag2 = reader.uint32();
22099
+ switch (tag2 >>> 3) {
22100
+ case 1:
22101
+ key = reader.string();
22102
+ break;
22103
+ case 2:
22104
+ value = reader.string();
22105
+ break;
22106
+ default:
22107
+ reader.skipType(tag2 & 7);
22108
+ break;
22109
+ }
22110
+ }
22111
+ message.renamedServices[key] = value;
22112
+ break;
22113
+ }
21307
22114
  default:
21308
22115
  reader.skipType(tag & 7);
21309
22116
  break;
@@ -21344,6 +22151,14 @@
21344
22151
  if (error)
21345
22152
  return "common." + error;
21346
22153
  }
22154
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
22155
+ if (!$util.isObject(message.renamedServices))
22156
+ return "renamedServices: object expected";
22157
+ var key = Object.keys(message.renamedServices);
22158
+ for (var i = 0; i < key.length; ++i)
22159
+ if (!$util.isString(message.renamedServices[key[i]]))
22160
+ return "renamedServices: string{k:string} expected";
22161
+ }
21347
22162
  return null;
21348
22163
  };
21349
22164
 
@@ -21364,6 +22179,13 @@
21364
22179
  throw TypeError(".google.api.GoSettings.common: object expected");
21365
22180
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
21366
22181
  }
22182
+ if (object.renamedServices) {
22183
+ if (typeof object.renamedServices !== "object")
22184
+ throw TypeError(".google.api.GoSettings.renamedServices: object expected");
22185
+ message.renamedServices = {};
22186
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
22187
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
22188
+ }
21367
22189
  return message;
21368
22190
  };
21369
22191
 
@@ -21380,10 +22202,18 @@
21380
22202
  if (!options)
21381
22203
  options = {};
21382
22204
  var object = {};
22205
+ if (options.objects || options.defaults)
22206
+ object.renamedServices = {};
21383
22207
  if (options.defaults)
21384
22208
  object.common = null;
21385
22209
  if (message.common != null && message.hasOwnProperty("common"))
21386
22210
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
22211
+ var keys2;
22212
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
22213
+ object.renamedServices = {};
22214
+ for (var j = 0; j < keys2.length; ++j)
22215
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
22216
+ }
21387
22217
  return object;
21388
22218
  };
21389
22219
 
@@ -22022,6 +22852,251 @@
22022
22852
  return values;
22023
22853
  })();
22024
22854
 
22855
+ api.SelectiveGapicGeneration = (function() {
22856
+
22857
+ /**
22858
+ * Properties of a SelectiveGapicGeneration.
22859
+ * @memberof google.api
22860
+ * @interface ISelectiveGapicGeneration
22861
+ * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
22862
+ * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
22863
+ */
22864
+
22865
+ /**
22866
+ * Constructs a new SelectiveGapicGeneration.
22867
+ * @memberof google.api
22868
+ * @classdesc Represents a SelectiveGapicGeneration.
22869
+ * @implements ISelectiveGapicGeneration
22870
+ * @constructor
22871
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
22872
+ */
22873
+ function SelectiveGapicGeneration(properties) {
22874
+ this.methods = [];
22875
+ if (properties)
22876
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22877
+ if (properties[keys[i]] != null)
22878
+ this[keys[i]] = properties[keys[i]];
22879
+ }
22880
+
22881
+ /**
22882
+ * SelectiveGapicGeneration methods.
22883
+ * @member {Array.<string>} methods
22884
+ * @memberof google.api.SelectiveGapicGeneration
22885
+ * @instance
22886
+ */
22887
+ SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
22888
+
22889
+ /**
22890
+ * SelectiveGapicGeneration generateOmittedAsInternal.
22891
+ * @member {boolean} generateOmittedAsInternal
22892
+ * @memberof google.api.SelectiveGapicGeneration
22893
+ * @instance
22894
+ */
22895
+ SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
22896
+
22897
+ /**
22898
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
22899
+ * @function create
22900
+ * @memberof google.api.SelectiveGapicGeneration
22901
+ * @static
22902
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
22903
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
22904
+ */
22905
+ SelectiveGapicGeneration.create = function create(properties) {
22906
+ return new SelectiveGapicGeneration(properties);
22907
+ };
22908
+
22909
+ /**
22910
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
22911
+ * @function encode
22912
+ * @memberof google.api.SelectiveGapicGeneration
22913
+ * @static
22914
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
22915
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22916
+ * @returns {$protobuf.Writer} Writer
22917
+ */
22918
+ SelectiveGapicGeneration.encode = function encode(message, writer) {
22919
+ if (!writer)
22920
+ writer = $Writer.create();
22921
+ if (message.methods != null && message.methods.length)
22922
+ for (var i = 0; i < message.methods.length; ++i)
22923
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
22924
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
22925
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
22926
+ return writer;
22927
+ };
22928
+
22929
+ /**
22930
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
22931
+ * @function encodeDelimited
22932
+ * @memberof google.api.SelectiveGapicGeneration
22933
+ * @static
22934
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
22935
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22936
+ * @returns {$protobuf.Writer} Writer
22937
+ */
22938
+ SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
22939
+ return this.encode(message, writer).ldelim();
22940
+ };
22941
+
22942
+ /**
22943
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
22944
+ * @function decode
22945
+ * @memberof google.api.SelectiveGapicGeneration
22946
+ * @static
22947
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22948
+ * @param {number} [length] Message length if known beforehand
22949
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
22950
+ * @throws {Error} If the payload is not a reader or valid buffer
22951
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22952
+ */
22953
+ SelectiveGapicGeneration.decode = function decode(reader, length, error) {
22954
+ if (!(reader instanceof $Reader))
22955
+ reader = $Reader.create(reader);
22956
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
22957
+ while (reader.pos < end) {
22958
+ var tag = reader.uint32();
22959
+ if (tag === error)
22960
+ break;
22961
+ switch (tag >>> 3) {
22962
+ case 1: {
22963
+ if (!(message.methods && message.methods.length))
22964
+ message.methods = [];
22965
+ message.methods.push(reader.string());
22966
+ break;
22967
+ }
22968
+ case 2: {
22969
+ message.generateOmittedAsInternal = reader.bool();
22970
+ break;
22971
+ }
22972
+ default:
22973
+ reader.skipType(tag & 7);
22974
+ break;
22975
+ }
22976
+ }
22977
+ return message;
22978
+ };
22979
+
22980
+ /**
22981
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
22982
+ * @function decodeDelimited
22983
+ * @memberof google.api.SelectiveGapicGeneration
22984
+ * @static
22985
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22986
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
22987
+ * @throws {Error} If the payload is not a reader or valid buffer
22988
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22989
+ */
22990
+ SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
22991
+ if (!(reader instanceof $Reader))
22992
+ reader = new $Reader(reader);
22993
+ return this.decode(reader, reader.uint32());
22994
+ };
22995
+
22996
+ /**
22997
+ * Verifies a SelectiveGapicGeneration message.
22998
+ * @function verify
22999
+ * @memberof google.api.SelectiveGapicGeneration
23000
+ * @static
23001
+ * @param {Object.<string,*>} message Plain object to verify
23002
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23003
+ */
23004
+ SelectiveGapicGeneration.verify = function verify(message) {
23005
+ if (typeof message !== "object" || message === null)
23006
+ return "object expected";
23007
+ if (message.methods != null && message.hasOwnProperty("methods")) {
23008
+ if (!Array.isArray(message.methods))
23009
+ return "methods: array expected";
23010
+ for (var i = 0; i < message.methods.length; ++i)
23011
+ if (!$util.isString(message.methods[i]))
23012
+ return "methods: string[] expected";
23013
+ }
23014
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
23015
+ if (typeof message.generateOmittedAsInternal !== "boolean")
23016
+ return "generateOmittedAsInternal: boolean expected";
23017
+ return null;
23018
+ };
23019
+
23020
+ /**
23021
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
23022
+ * @function fromObject
23023
+ * @memberof google.api.SelectiveGapicGeneration
23024
+ * @static
23025
+ * @param {Object.<string,*>} object Plain object
23026
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
23027
+ */
23028
+ SelectiveGapicGeneration.fromObject = function fromObject(object) {
23029
+ if (object instanceof $root.google.api.SelectiveGapicGeneration)
23030
+ return object;
23031
+ var message = new $root.google.api.SelectiveGapicGeneration();
23032
+ if (object.methods) {
23033
+ if (!Array.isArray(object.methods))
23034
+ throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
23035
+ message.methods = [];
23036
+ for (var i = 0; i < object.methods.length; ++i)
23037
+ message.methods[i] = String(object.methods[i]);
23038
+ }
23039
+ if (object.generateOmittedAsInternal != null)
23040
+ message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
23041
+ return message;
23042
+ };
23043
+
23044
+ /**
23045
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
23046
+ * @function toObject
23047
+ * @memberof google.api.SelectiveGapicGeneration
23048
+ * @static
23049
+ * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
23050
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23051
+ * @returns {Object.<string,*>} Plain object
23052
+ */
23053
+ SelectiveGapicGeneration.toObject = function toObject(message, options) {
23054
+ if (!options)
23055
+ options = {};
23056
+ var object = {};
23057
+ if (options.arrays || options.defaults)
23058
+ object.methods = [];
23059
+ if (options.defaults)
23060
+ object.generateOmittedAsInternal = false;
23061
+ if (message.methods && message.methods.length) {
23062
+ object.methods = [];
23063
+ for (var j = 0; j < message.methods.length; ++j)
23064
+ object.methods[j] = message.methods[j];
23065
+ }
23066
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
23067
+ object.generateOmittedAsInternal = message.generateOmittedAsInternal;
23068
+ return object;
23069
+ };
23070
+
23071
+ /**
23072
+ * Converts this SelectiveGapicGeneration to JSON.
23073
+ * @function toJSON
23074
+ * @memberof google.api.SelectiveGapicGeneration
23075
+ * @instance
23076
+ * @returns {Object.<string,*>} JSON object
23077
+ */
23078
+ SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
23079
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23080
+ };
23081
+
23082
+ /**
23083
+ * Gets the default type url for SelectiveGapicGeneration
23084
+ * @function getTypeUrl
23085
+ * @memberof google.api.SelectiveGapicGeneration
23086
+ * @static
23087
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23088
+ * @returns {string} The default type url
23089
+ */
23090
+ SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23091
+ if (typeUrlPrefix === undefined) {
23092
+ typeUrlPrefix = "type.googleapis.com";
23093
+ }
23094
+ return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
23095
+ };
23096
+
23097
+ return SelectiveGapicGeneration;
23098
+ })();
23099
+
22025
23100
  /**
22026
23101
  * LaunchStage enum.
22027
23102
  * @name google.api.LaunchStage
@@ -22746,6 +23821,7 @@
22746
23821
  * @name google.protobuf.Edition
22747
23822
  * @enum {number}
22748
23823
  * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
23824
+ * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
22749
23825
  * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
22750
23826
  * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
22751
23827
  * @property {number} EDITION_2023=1000 EDITION_2023 value
@@ -22760,6 +23836,7 @@
22760
23836
  protobuf.Edition = (function() {
22761
23837
  var valuesById = {}, values = Object.create(valuesById);
22762
23838
  values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
23839
+ values[valuesById[900] = "EDITION_LEGACY"] = 900;
22763
23840
  values[valuesById[998] = "EDITION_PROTO2"] = 998;
22764
23841
  values[valuesById[999] = "EDITION_PROTO3"] = 999;
22765
23842
  values[valuesById[1000] = "EDITION_2023"] = 1000;
@@ -22784,6 +23861,7 @@
22784
23861
  * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
22785
23862
  * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
22786
23863
  * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
23864
+ * @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
22787
23865
  * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
22788
23866
  * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
22789
23867
  * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
@@ -22806,6 +23884,7 @@
22806
23884
  this.dependency = [];
22807
23885
  this.publicDependency = [];
22808
23886
  this.weakDependency = [];
23887
+ this.optionDependency = [];
22809
23888
  this.messageType = [];
22810
23889
  this.enumType = [];
22811
23890
  this.service = [];
@@ -22856,6 +23935,14 @@
22856
23935
  */
22857
23936
  FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
22858
23937
 
23938
+ /**
23939
+ * FileDescriptorProto optionDependency.
23940
+ * @member {Array.<string>} optionDependency
23941
+ * @memberof google.protobuf.FileDescriptorProto
23942
+ * @instance
23943
+ */
23944
+ FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
23945
+
22859
23946
  /**
22860
23947
  * FileDescriptorProto messageType.
22861
23948
  * @member {Array.<google.protobuf.IDescriptorProto>} messageType
@@ -22977,6 +24064,9 @@
22977
24064
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
22978
24065
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
22979
24066
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
24067
+ if (message.optionDependency != null && message.optionDependency.length)
24068
+ for (var i = 0; i < message.optionDependency.length; ++i)
24069
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
22980
24070
  return writer;
22981
24071
  };
22982
24072
 
@@ -23049,6 +24139,12 @@
23049
24139
  message.weakDependency.push(reader.int32());
23050
24140
  break;
23051
24141
  }
24142
+ case 15: {
24143
+ if (!(message.optionDependency && message.optionDependency.length))
24144
+ message.optionDependency = [];
24145
+ message.optionDependency.push(reader.string());
24146
+ break;
24147
+ }
23052
24148
  case 4: {
23053
24149
  if (!(message.messageType && message.messageType.length))
23054
24150
  message.messageType = [];
@@ -23151,6 +24247,13 @@
23151
24247
  if (!$util.isInteger(message.weakDependency[i]))
23152
24248
  return "weakDependency: integer[] expected";
23153
24249
  }
24250
+ if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
24251
+ if (!Array.isArray(message.optionDependency))
24252
+ return "optionDependency: array expected";
24253
+ for (var i = 0; i < message.optionDependency.length; ++i)
24254
+ if (!$util.isString(message.optionDependency[i]))
24255
+ return "optionDependency: string[] expected";
24256
+ }
23154
24257
  if (message.messageType != null && message.hasOwnProperty("messageType")) {
23155
24258
  if (!Array.isArray(message.messageType))
23156
24259
  return "messageType: array expected";
@@ -23205,6 +24308,7 @@
23205
24308
  default:
23206
24309
  return "edition: enum value expected";
23207
24310
  case 0:
24311
+ case 900:
23208
24312
  case 998:
23209
24313
  case 999:
23210
24314
  case 1000:
@@ -23257,6 +24361,13 @@
23257
24361
  for (var i = 0; i < object.weakDependency.length; ++i)
23258
24362
  message.weakDependency[i] = object.weakDependency[i] | 0;
23259
24363
  }
24364
+ if (object.optionDependency) {
24365
+ if (!Array.isArray(object.optionDependency))
24366
+ throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
24367
+ message.optionDependency = [];
24368
+ for (var i = 0; i < object.optionDependency.length; ++i)
24369
+ message.optionDependency[i] = String(object.optionDependency[i]);
24370
+ }
23260
24371
  if (object.messageType) {
23261
24372
  if (!Array.isArray(object.messageType))
23262
24373
  throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
@@ -23320,6 +24431,10 @@
23320
24431
  case 0:
23321
24432
  message.edition = 0;
23322
24433
  break;
24434
+ case "EDITION_LEGACY":
24435
+ case 900:
24436
+ message.edition = 900;
24437
+ break;
23323
24438
  case "EDITION_PROTO2":
23324
24439
  case 998:
23325
24440
  message.edition = 998;
@@ -23385,6 +24500,7 @@
23385
24500
  object.extension = [];
23386
24501
  object.publicDependency = [];
23387
24502
  object.weakDependency = [];
24503
+ object.optionDependency = [];
23388
24504
  }
23389
24505
  if (options.defaults) {
23390
24506
  object.name = "";
@@ -23441,6 +24557,11 @@
23441
24557
  object.syntax = message.syntax;
23442
24558
  if (message.edition != null && message.hasOwnProperty("edition"))
23443
24559
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
24560
+ if (message.optionDependency && message.optionDependency.length) {
24561
+ object.optionDependency = [];
24562
+ for (var j = 0; j < message.optionDependency.length; ++j)
24563
+ object.optionDependency[j] = message.optionDependency[j];
24564
+ }
23444
24565
  return object;
23445
24566
  };
23446
24567
 
@@ -23489,6 +24610,7 @@
23489
24610
  * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
23490
24611
  * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
23491
24612
  * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
24613
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
23492
24614
  */
23493
24615
 
23494
24616
  /**
@@ -23594,6 +24716,14 @@
23594
24716
  */
23595
24717
  DescriptorProto.prototype.reservedName = $util.emptyArray;
23596
24718
 
24719
+ /**
24720
+ * DescriptorProto visibility.
24721
+ * @member {google.protobuf.SymbolVisibility} visibility
24722
+ * @memberof google.protobuf.DescriptorProto
24723
+ * @instance
24724
+ */
24725
+ DescriptorProto.prototype.visibility = 0;
24726
+
23597
24727
  /**
23598
24728
  * Creates a new DescriptorProto instance using the specified properties.
23599
24729
  * @function create
@@ -23646,6 +24776,8 @@
23646
24776
  if (message.reservedName != null && message.reservedName.length)
23647
24777
  for (var i = 0; i < message.reservedName.length; ++i)
23648
24778
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
24779
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
24780
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
23649
24781
  return writer;
23650
24782
  };
23651
24783
 
@@ -23738,6 +24870,10 @@
23738
24870
  message.reservedName.push(reader.string());
23739
24871
  break;
23740
24872
  }
24873
+ case 11: {
24874
+ message.visibility = reader.int32();
24875
+ break;
24876
+ }
23741
24877
  default:
23742
24878
  reader.skipType(tag & 7);
23743
24879
  break;
@@ -23851,6 +24987,15 @@
23851
24987
  if (!$util.isString(message.reservedName[i]))
23852
24988
  return "reservedName: string[] expected";
23853
24989
  }
24990
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
24991
+ switch (message.visibility) {
24992
+ default:
24993
+ return "visibility: enum value expected";
24994
+ case 0:
24995
+ case 1:
24996
+ case 2:
24997
+ break;
24998
+ }
23854
24999
  return null;
23855
25000
  };
23856
25001
 
@@ -23950,6 +25095,26 @@
23950
25095
  for (var i = 0; i < object.reservedName.length; ++i)
23951
25096
  message.reservedName[i] = String(object.reservedName[i]);
23952
25097
  }
25098
+ switch (object.visibility) {
25099
+ default:
25100
+ if (typeof object.visibility === "number") {
25101
+ message.visibility = object.visibility;
25102
+ break;
25103
+ }
25104
+ break;
25105
+ case "VISIBILITY_UNSET":
25106
+ case 0:
25107
+ message.visibility = 0;
25108
+ break;
25109
+ case "VISIBILITY_LOCAL":
25110
+ case 1:
25111
+ message.visibility = 1;
25112
+ break;
25113
+ case "VISIBILITY_EXPORT":
25114
+ case 2:
25115
+ message.visibility = 2;
25116
+ break;
25117
+ }
23953
25118
  return message;
23954
25119
  };
23955
25120
 
@@ -23979,6 +25144,7 @@
23979
25144
  if (options.defaults) {
23980
25145
  object.name = "";
23981
25146
  object.options = null;
25147
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
23982
25148
  }
23983
25149
  if (message.name != null && message.hasOwnProperty("name"))
23984
25150
  object.name = message.name;
@@ -24024,6 +25190,8 @@
24024
25190
  for (var j = 0; j < message.reservedName.length; ++j)
24025
25191
  object.reservedName[j] = message.reservedName[j];
24026
25192
  }
25193
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
25194
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
24027
25195
  return object;
24028
25196
  };
24029
25197
 
@@ -26068,6 +27236,7 @@
26068
27236
  * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
26069
27237
  * @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
26070
27238
  * @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
27239
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
26071
27240
  */
26072
27241
 
26073
27242
  /**
@@ -26128,6 +27297,14 @@
26128
27297
  */
26129
27298
  EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
26130
27299
 
27300
+ /**
27301
+ * EnumDescriptorProto visibility.
27302
+ * @member {google.protobuf.SymbolVisibility} visibility
27303
+ * @memberof google.protobuf.EnumDescriptorProto
27304
+ * @instance
27305
+ */
27306
+ EnumDescriptorProto.prototype.visibility = 0;
27307
+
26131
27308
  /**
26132
27309
  * Creates a new EnumDescriptorProto instance using the specified properties.
26133
27310
  * @function create
@@ -26165,6 +27342,8 @@
26165
27342
  if (message.reservedName != null && message.reservedName.length)
26166
27343
  for (var i = 0; i < message.reservedName.length; ++i)
26167
27344
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
27345
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
27346
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
26168
27347
  return writer;
26169
27348
  };
26170
27349
 
@@ -26227,6 +27406,10 @@
26227
27406
  message.reservedName.push(reader.string());
26228
27407
  break;
26229
27408
  }
27409
+ case 6: {
27410
+ message.visibility = reader.int32();
27411
+ break;
27412
+ }
26230
27413
  default:
26231
27414
  reader.skipType(tag & 7);
26232
27415
  break;
@@ -26295,6 +27478,15 @@
26295
27478
  if (!$util.isString(message.reservedName[i]))
26296
27479
  return "reservedName: string[] expected";
26297
27480
  }
27481
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
27482
+ switch (message.visibility) {
27483
+ default:
27484
+ return "visibility: enum value expected";
27485
+ case 0:
27486
+ case 1:
27487
+ case 2:
27488
+ break;
27489
+ }
26298
27490
  return null;
26299
27491
  };
26300
27492
 
@@ -26344,6 +27536,26 @@
26344
27536
  for (var i = 0; i < object.reservedName.length; ++i)
26345
27537
  message.reservedName[i] = String(object.reservedName[i]);
26346
27538
  }
27539
+ switch (object.visibility) {
27540
+ default:
27541
+ if (typeof object.visibility === "number") {
27542
+ message.visibility = object.visibility;
27543
+ break;
27544
+ }
27545
+ break;
27546
+ case "VISIBILITY_UNSET":
27547
+ case 0:
27548
+ message.visibility = 0;
27549
+ break;
27550
+ case "VISIBILITY_LOCAL":
27551
+ case 1:
27552
+ message.visibility = 1;
27553
+ break;
27554
+ case "VISIBILITY_EXPORT":
27555
+ case 2:
27556
+ message.visibility = 2;
27557
+ break;
27558
+ }
26347
27559
  return message;
26348
27560
  };
26349
27561
 
@@ -26368,6 +27580,7 @@
26368
27580
  if (options.defaults) {
26369
27581
  object.name = "";
26370
27582
  object.options = null;
27583
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
26371
27584
  }
26372
27585
  if (message.name != null && message.hasOwnProperty("name"))
26373
27586
  object.name = message.name;
@@ -26388,6 +27601,8 @@
26388
27601
  for (var j = 0; j < message.reservedName.length; ++j)
26389
27602
  object.reservedName[j] = message.reservedName[j];
26390
27603
  }
27604
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
27605
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
26391
27606
  return object;
26392
27607
  };
26393
27608
 
@@ -28706,6 +29921,7 @@
28706
29921
  * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
28707
29922
  * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
28708
29923
  * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
29924
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
28709
29925
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
28710
29926
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
28711
29927
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -28826,6 +30042,14 @@
28826
30042
  */
28827
30043
  FieldOptions.prototype.features = null;
28828
30044
 
30045
+ /**
30046
+ * FieldOptions featureSupport.
30047
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
30048
+ * @memberof google.protobuf.FieldOptions
30049
+ * @instance
30050
+ */
30051
+ FieldOptions.prototype.featureSupport = null;
30052
+
28829
30053
  /**
28830
30054
  * FieldOptions uninterpretedOption.
28831
30055
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -28900,6 +30124,8 @@
28900
30124
  $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
28901
30125
  if (message.features != null && Object.hasOwnProperty.call(message, "features"))
28902
30126
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
30127
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
30128
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
28903
30129
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
28904
30130
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
28905
30131
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -29001,6 +30227,10 @@
29001
30227
  message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
29002
30228
  break;
29003
30229
  }
30230
+ case 22: {
30231
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
30232
+ break;
30233
+ }
29004
30234
  case 999: {
29005
30235
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
29006
30236
  message.uninterpretedOption = [];
@@ -29136,6 +30366,11 @@
29136
30366
  if (error)
29137
30367
  return "features." + error;
29138
30368
  }
30369
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
30370
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
30371
+ if (error)
30372
+ return "featureSupport." + error;
30373
+ }
29139
30374
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
29140
30375
  if (!Array.isArray(message.uninterpretedOption))
29141
30376
  return "uninterpretedOption: array expected";
@@ -29324,6 +30559,11 @@
29324
30559
  throw TypeError(".google.protobuf.FieldOptions.features: object expected");
29325
30560
  message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
29326
30561
  }
30562
+ if (object.featureSupport != null) {
30563
+ if (typeof object.featureSupport !== "object")
30564
+ throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
30565
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
30566
+ }
29327
30567
  if (object.uninterpretedOption) {
29328
30568
  if (!Array.isArray(object.uninterpretedOption))
29329
30569
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -29421,6 +30661,7 @@
29421
30661
  object.debugRedact = false;
29422
30662
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
29423
30663
  object.features = null;
30664
+ object.featureSupport = null;
29424
30665
  object[".google.api.resourceReference"] = null;
29425
30666
  }
29426
30667
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -29453,6 +30694,8 @@
29453
30694
  }
29454
30695
  if (message.features != null && message.hasOwnProperty("features"))
29455
30696
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
30697
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
30698
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
29456
30699
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
29457
30700
  object.uninterpretedOption = [];
29458
30701
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -29725,6 +30968,7 @@
29725
30968
  default:
29726
30969
  return "edition: enum value expected";
29727
30970
  case 0:
30971
+ case 900:
29728
30972
  case 998:
29729
30973
  case 999:
29730
30974
  case 1000:
@@ -29766,6 +31010,10 @@
29766
31010
  case 0:
29767
31011
  message.edition = 0;
29768
31012
  break;
31013
+ case "EDITION_LEGACY":
31014
+ case 900:
31015
+ message.edition = 900;
31016
+ break;
29769
31017
  case "EDITION_PROTO2":
29770
31018
  case 998:
29771
31019
  message.edition = 998;
@@ -29865,6 +31113,488 @@
29865
31113
  return EditionDefault;
29866
31114
  })();
29867
31115
 
31116
+ FieldOptions.FeatureSupport = (function() {
31117
+
31118
+ /**
31119
+ * Properties of a FeatureSupport.
31120
+ * @memberof google.protobuf.FieldOptions
31121
+ * @interface IFeatureSupport
31122
+ * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
31123
+ * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
31124
+ * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
31125
+ * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
31126
+ */
31127
+
31128
+ /**
31129
+ * Constructs a new FeatureSupport.
31130
+ * @memberof google.protobuf.FieldOptions
31131
+ * @classdesc Represents a FeatureSupport.
31132
+ * @implements IFeatureSupport
31133
+ * @constructor
31134
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
31135
+ */
31136
+ function FeatureSupport(properties) {
31137
+ if (properties)
31138
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31139
+ if (properties[keys[i]] != null)
31140
+ this[keys[i]] = properties[keys[i]];
31141
+ }
31142
+
31143
+ /**
31144
+ * FeatureSupport editionIntroduced.
31145
+ * @member {google.protobuf.Edition} editionIntroduced
31146
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31147
+ * @instance
31148
+ */
31149
+ FeatureSupport.prototype.editionIntroduced = 0;
31150
+
31151
+ /**
31152
+ * FeatureSupport editionDeprecated.
31153
+ * @member {google.protobuf.Edition} editionDeprecated
31154
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31155
+ * @instance
31156
+ */
31157
+ FeatureSupport.prototype.editionDeprecated = 0;
31158
+
31159
+ /**
31160
+ * FeatureSupport deprecationWarning.
31161
+ * @member {string} deprecationWarning
31162
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31163
+ * @instance
31164
+ */
31165
+ FeatureSupport.prototype.deprecationWarning = "";
31166
+
31167
+ /**
31168
+ * FeatureSupport editionRemoved.
31169
+ * @member {google.protobuf.Edition} editionRemoved
31170
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31171
+ * @instance
31172
+ */
31173
+ FeatureSupport.prototype.editionRemoved = 0;
31174
+
31175
+ /**
31176
+ * Creates a new FeatureSupport instance using the specified properties.
31177
+ * @function create
31178
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31179
+ * @static
31180
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
31181
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
31182
+ */
31183
+ FeatureSupport.create = function create(properties) {
31184
+ return new FeatureSupport(properties);
31185
+ };
31186
+
31187
+ /**
31188
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
31189
+ * @function encode
31190
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31191
+ * @static
31192
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
31193
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31194
+ * @returns {$protobuf.Writer} Writer
31195
+ */
31196
+ FeatureSupport.encode = function encode(message, writer) {
31197
+ if (!writer)
31198
+ writer = $Writer.create();
31199
+ if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
31200
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
31201
+ if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
31202
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
31203
+ if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
31204
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
31205
+ if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
31206
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
31207
+ return writer;
31208
+ };
31209
+
31210
+ /**
31211
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
31212
+ * @function encodeDelimited
31213
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31214
+ * @static
31215
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
31216
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31217
+ * @returns {$protobuf.Writer} Writer
31218
+ */
31219
+ FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
31220
+ return this.encode(message, writer).ldelim();
31221
+ };
31222
+
31223
+ /**
31224
+ * Decodes a FeatureSupport message from the specified reader or buffer.
31225
+ * @function decode
31226
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31227
+ * @static
31228
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31229
+ * @param {number} [length] Message length if known beforehand
31230
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
31231
+ * @throws {Error} If the payload is not a reader or valid buffer
31232
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31233
+ */
31234
+ FeatureSupport.decode = function decode(reader, length, error) {
31235
+ if (!(reader instanceof $Reader))
31236
+ reader = $Reader.create(reader);
31237
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
31238
+ while (reader.pos < end) {
31239
+ var tag = reader.uint32();
31240
+ if (tag === error)
31241
+ break;
31242
+ switch (tag >>> 3) {
31243
+ case 1: {
31244
+ message.editionIntroduced = reader.int32();
31245
+ break;
31246
+ }
31247
+ case 2: {
31248
+ message.editionDeprecated = reader.int32();
31249
+ break;
31250
+ }
31251
+ case 3: {
31252
+ message.deprecationWarning = reader.string();
31253
+ break;
31254
+ }
31255
+ case 4: {
31256
+ message.editionRemoved = reader.int32();
31257
+ break;
31258
+ }
31259
+ default:
31260
+ reader.skipType(tag & 7);
31261
+ break;
31262
+ }
31263
+ }
31264
+ return message;
31265
+ };
31266
+
31267
+ /**
31268
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
31269
+ * @function decodeDelimited
31270
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31271
+ * @static
31272
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31273
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
31274
+ * @throws {Error} If the payload is not a reader or valid buffer
31275
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31276
+ */
31277
+ FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
31278
+ if (!(reader instanceof $Reader))
31279
+ reader = new $Reader(reader);
31280
+ return this.decode(reader, reader.uint32());
31281
+ };
31282
+
31283
+ /**
31284
+ * Verifies a FeatureSupport message.
31285
+ * @function verify
31286
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31287
+ * @static
31288
+ * @param {Object.<string,*>} message Plain object to verify
31289
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
31290
+ */
31291
+ FeatureSupport.verify = function verify(message) {
31292
+ if (typeof message !== "object" || message === null)
31293
+ return "object expected";
31294
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
31295
+ switch (message.editionIntroduced) {
31296
+ default:
31297
+ return "editionIntroduced: enum value expected";
31298
+ case 0:
31299
+ case 900:
31300
+ case 998:
31301
+ case 999:
31302
+ case 1000:
31303
+ case 1001:
31304
+ case 1:
31305
+ case 2:
31306
+ case 99997:
31307
+ case 99998:
31308
+ case 99999:
31309
+ case 2147483647:
31310
+ break;
31311
+ }
31312
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
31313
+ switch (message.editionDeprecated) {
31314
+ default:
31315
+ return "editionDeprecated: enum value expected";
31316
+ case 0:
31317
+ case 900:
31318
+ case 998:
31319
+ case 999:
31320
+ case 1000:
31321
+ case 1001:
31322
+ case 1:
31323
+ case 2:
31324
+ case 99997:
31325
+ case 99998:
31326
+ case 99999:
31327
+ case 2147483647:
31328
+ break;
31329
+ }
31330
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
31331
+ if (!$util.isString(message.deprecationWarning))
31332
+ return "deprecationWarning: string expected";
31333
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
31334
+ switch (message.editionRemoved) {
31335
+ default:
31336
+ return "editionRemoved: enum value expected";
31337
+ case 0:
31338
+ case 900:
31339
+ case 998:
31340
+ case 999:
31341
+ case 1000:
31342
+ case 1001:
31343
+ case 1:
31344
+ case 2:
31345
+ case 99997:
31346
+ case 99998:
31347
+ case 99999:
31348
+ case 2147483647:
31349
+ break;
31350
+ }
31351
+ return null;
31352
+ };
31353
+
31354
+ /**
31355
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
31356
+ * @function fromObject
31357
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31358
+ * @static
31359
+ * @param {Object.<string,*>} object Plain object
31360
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
31361
+ */
31362
+ FeatureSupport.fromObject = function fromObject(object) {
31363
+ if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
31364
+ return object;
31365
+ var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
31366
+ switch (object.editionIntroduced) {
31367
+ default:
31368
+ if (typeof object.editionIntroduced === "number") {
31369
+ message.editionIntroduced = object.editionIntroduced;
31370
+ break;
31371
+ }
31372
+ break;
31373
+ case "EDITION_UNKNOWN":
31374
+ case 0:
31375
+ message.editionIntroduced = 0;
31376
+ break;
31377
+ case "EDITION_LEGACY":
31378
+ case 900:
31379
+ message.editionIntroduced = 900;
31380
+ break;
31381
+ case "EDITION_PROTO2":
31382
+ case 998:
31383
+ message.editionIntroduced = 998;
31384
+ break;
31385
+ case "EDITION_PROTO3":
31386
+ case 999:
31387
+ message.editionIntroduced = 999;
31388
+ break;
31389
+ case "EDITION_2023":
31390
+ case 1000:
31391
+ message.editionIntroduced = 1000;
31392
+ break;
31393
+ case "EDITION_2024":
31394
+ case 1001:
31395
+ message.editionIntroduced = 1001;
31396
+ break;
31397
+ case "EDITION_1_TEST_ONLY":
31398
+ case 1:
31399
+ message.editionIntroduced = 1;
31400
+ break;
31401
+ case "EDITION_2_TEST_ONLY":
31402
+ case 2:
31403
+ message.editionIntroduced = 2;
31404
+ break;
31405
+ case "EDITION_99997_TEST_ONLY":
31406
+ case 99997:
31407
+ message.editionIntroduced = 99997;
31408
+ break;
31409
+ case "EDITION_99998_TEST_ONLY":
31410
+ case 99998:
31411
+ message.editionIntroduced = 99998;
31412
+ break;
31413
+ case "EDITION_99999_TEST_ONLY":
31414
+ case 99999:
31415
+ message.editionIntroduced = 99999;
31416
+ break;
31417
+ case "EDITION_MAX":
31418
+ case 2147483647:
31419
+ message.editionIntroduced = 2147483647;
31420
+ break;
31421
+ }
31422
+ switch (object.editionDeprecated) {
31423
+ default:
31424
+ if (typeof object.editionDeprecated === "number") {
31425
+ message.editionDeprecated = object.editionDeprecated;
31426
+ break;
31427
+ }
31428
+ break;
31429
+ case "EDITION_UNKNOWN":
31430
+ case 0:
31431
+ message.editionDeprecated = 0;
31432
+ break;
31433
+ case "EDITION_LEGACY":
31434
+ case 900:
31435
+ message.editionDeprecated = 900;
31436
+ break;
31437
+ case "EDITION_PROTO2":
31438
+ case 998:
31439
+ message.editionDeprecated = 998;
31440
+ break;
31441
+ case "EDITION_PROTO3":
31442
+ case 999:
31443
+ message.editionDeprecated = 999;
31444
+ break;
31445
+ case "EDITION_2023":
31446
+ case 1000:
31447
+ message.editionDeprecated = 1000;
31448
+ break;
31449
+ case "EDITION_2024":
31450
+ case 1001:
31451
+ message.editionDeprecated = 1001;
31452
+ break;
31453
+ case "EDITION_1_TEST_ONLY":
31454
+ case 1:
31455
+ message.editionDeprecated = 1;
31456
+ break;
31457
+ case "EDITION_2_TEST_ONLY":
31458
+ case 2:
31459
+ message.editionDeprecated = 2;
31460
+ break;
31461
+ case "EDITION_99997_TEST_ONLY":
31462
+ case 99997:
31463
+ message.editionDeprecated = 99997;
31464
+ break;
31465
+ case "EDITION_99998_TEST_ONLY":
31466
+ case 99998:
31467
+ message.editionDeprecated = 99998;
31468
+ break;
31469
+ case "EDITION_99999_TEST_ONLY":
31470
+ case 99999:
31471
+ message.editionDeprecated = 99999;
31472
+ break;
31473
+ case "EDITION_MAX":
31474
+ case 2147483647:
31475
+ message.editionDeprecated = 2147483647;
31476
+ break;
31477
+ }
31478
+ if (object.deprecationWarning != null)
31479
+ message.deprecationWarning = String(object.deprecationWarning);
31480
+ switch (object.editionRemoved) {
31481
+ default:
31482
+ if (typeof object.editionRemoved === "number") {
31483
+ message.editionRemoved = object.editionRemoved;
31484
+ break;
31485
+ }
31486
+ break;
31487
+ case "EDITION_UNKNOWN":
31488
+ case 0:
31489
+ message.editionRemoved = 0;
31490
+ break;
31491
+ case "EDITION_LEGACY":
31492
+ case 900:
31493
+ message.editionRemoved = 900;
31494
+ break;
31495
+ case "EDITION_PROTO2":
31496
+ case 998:
31497
+ message.editionRemoved = 998;
31498
+ break;
31499
+ case "EDITION_PROTO3":
31500
+ case 999:
31501
+ message.editionRemoved = 999;
31502
+ break;
31503
+ case "EDITION_2023":
31504
+ case 1000:
31505
+ message.editionRemoved = 1000;
31506
+ break;
31507
+ case "EDITION_2024":
31508
+ case 1001:
31509
+ message.editionRemoved = 1001;
31510
+ break;
31511
+ case "EDITION_1_TEST_ONLY":
31512
+ case 1:
31513
+ message.editionRemoved = 1;
31514
+ break;
31515
+ case "EDITION_2_TEST_ONLY":
31516
+ case 2:
31517
+ message.editionRemoved = 2;
31518
+ break;
31519
+ case "EDITION_99997_TEST_ONLY":
31520
+ case 99997:
31521
+ message.editionRemoved = 99997;
31522
+ break;
31523
+ case "EDITION_99998_TEST_ONLY":
31524
+ case 99998:
31525
+ message.editionRemoved = 99998;
31526
+ break;
31527
+ case "EDITION_99999_TEST_ONLY":
31528
+ case 99999:
31529
+ message.editionRemoved = 99999;
31530
+ break;
31531
+ case "EDITION_MAX":
31532
+ case 2147483647:
31533
+ message.editionRemoved = 2147483647;
31534
+ break;
31535
+ }
31536
+ return message;
31537
+ };
31538
+
31539
+ /**
31540
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
31541
+ * @function toObject
31542
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31543
+ * @static
31544
+ * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
31545
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
31546
+ * @returns {Object.<string,*>} Plain object
31547
+ */
31548
+ FeatureSupport.toObject = function toObject(message, options) {
31549
+ if (!options)
31550
+ options = {};
31551
+ var object = {};
31552
+ if (options.defaults) {
31553
+ object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
31554
+ object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
31555
+ object.deprecationWarning = "";
31556
+ object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
31557
+ }
31558
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
31559
+ object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
31560
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
31561
+ object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
31562
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
31563
+ object.deprecationWarning = message.deprecationWarning;
31564
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
31565
+ object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
31566
+ return object;
31567
+ };
31568
+
31569
+ /**
31570
+ * Converts this FeatureSupport to JSON.
31571
+ * @function toJSON
31572
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31573
+ * @instance
31574
+ * @returns {Object.<string,*>} JSON object
31575
+ */
31576
+ FeatureSupport.prototype.toJSON = function toJSON() {
31577
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31578
+ };
31579
+
31580
+ /**
31581
+ * Gets the default type url for FeatureSupport
31582
+ * @function getTypeUrl
31583
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
31584
+ * @static
31585
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31586
+ * @returns {string} The default type url
31587
+ */
31588
+ FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
31589
+ if (typeUrlPrefix === undefined) {
31590
+ typeUrlPrefix = "type.googleapis.com";
31591
+ }
31592
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
31593
+ };
31594
+
31595
+ return FeatureSupport;
31596
+ })();
31597
+
29868
31598
  return FieldOptions;
29869
31599
  })();
29870
31600
 
@@ -30457,6 +32187,7 @@
30457
32187
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
30458
32188
  * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
30459
32189
  * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
32190
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
30460
32191
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
30461
32192
  */
30462
32193
 
@@ -30500,6 +32231,14 @@
30500
32231
  */
30501
32232
  EnumValueOptions.prototype.debugRedact = false;
30502
32233
 
32234
+ /**
32235
+ * EnumValueOptions featureSupport.
32236
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
32237
+ * @memberof google.protobuf.EnumValueOptions
32238
+ * @instance
32239
+ */
32240
+ EnumValueOptions.prototype.featureSupport = null;
32241
+
30503
32242
  /**
30504
32243
  * EnumValueOptions uninterpretedOption.
30505
32244
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -30538,6 +32277,8 @@
30538
32277
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
30539
32278
  if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
30540
32279
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
32280
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
32281
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
30541
32282
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
30542
32283
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
30543
32284
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -30589,6 +32330,10 @@
30589
32330
  message.debugRedact = reader.bool();
30590
32331
  break;
30591
32332
  }
32333
+ case 4: {
32334
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
32335
+ break;
32336
+ }
30592
32337
  case 999: {
30593
32338
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
30594
32339
  message.uninterpretedOption = [];
@@ -30641,6 +32386,11 @@
30641
32386
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
30642
32387
  if (typeof message.debugRedact !== "boolean")
30643
32388
  return "debugRedact: boolean expected";
32389
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
32390
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
32391
+ if (error)
32392
+ return "featureSupport." + error;
32393
+ }
30644
32394
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
30645
32395
  if (!Array.isArray(message.uninterpretedOption))
30646
32396
  return "uninterpretedOption: array expected";
@@ -30674,6 +32424,11 @@
30674
32424
  }
30675
32425
  if (object.debugRedact != null)
30676
32426
  message.debugRedact = Boolean(object.debugRedact);
32427
+ if (object.featureSupport != null) {
32428
+ if (typeof object.featureSupport !== "object")
32429
+ throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
32430
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
32431
+ }
30677
32432
  if (object.uninterpretedOption) {
30678
32433
  if (!Array.isArray(object.uninterpretedOption))
30679
32434
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -30706,6 +32461,7 @@
30706
32461
  object.deprecated = false;
30707
32462
  object.features = null;
30708
32463
  object.debugRedact = false;
32464
+ object.featureSupport = null;
30709
32465
  }
30710
32466
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
30711
32467
  object.deprecated = message.deprecated;
@@ -30713,6 +32469,8 @@
30713
32469
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
30714
32470
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
30715
32471
  object.debugRedact = message.debugRedact;
32472
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
32473
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
30716
32474
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
30717
32475
  object.uninterpretedOption = [];
30718
32476
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -32180,6 +33938,8 @@
32180
33938
  * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
32181
33939
  * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
32182
33940
  * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
33941
+ * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
33942
+ * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
32183
33943
  */
32184
33944
 
32185
33945
  /**
@@ -32245,6 +34005,22 @@
32245
34005
  */
32246
34006
  FeatureSet.prototype.jsonFormat = 0;
32247
34007
 
34008
+ /**
34009
+ * FeatureSet enforceNamingStyle.
34010
+ * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
34011
+ * @memberof google.protobuf.FeatureSet
34012
+ * @instance
34013
+ */
34014
+ FeatureSet.prototype.enforceNamingStyle = 0;
34015
+
34016
+ /**
34017
+ * FeatureSet defaultSymbolVisibility.
34018
+ * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
34019
+ * @memberof google.protobuf.FeatureSet
34020
+ * @instance
34021
+ */
34022
+ FeatureSet.prototype.defaultSymbolVisibility = 0;
34023
+
32248
34024
  /**
32249
34025
  * Creates a new FeatureSet instance using the specified properties.
32250
34026
  * @function create
@@ -32281,6 +34057,10 @@
32281
34057
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
32282
34058
  if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
32283
34059
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
34060
+ if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
34061
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
34062
+ if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
34063
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
32284
34064
  return writer;
32285
34065
  };
32286
34066
 
@@ -32341,6 +34121,14 @@
32341
34121
  message.jsonFormat = reader.int32();
32342
34122
  break;
32343
34123
  }
34124
+ case 7: {
34125
+ message.enforceNamingStyle = reader.int32();
34126
+ break;
34127
+ }
34128
+ case 8: {
34129
+ message.defaultSymbolVisibility = reader.int32();
34130
+ break;
34131
+ }
32344
34132
  default:
32345
34133
  reader.skipType(tag & 7);
32346
34134
  break;
@@ -32431,6 +34219,26 @@
32431
34219
  case 2:
32432
34220
  break;
32433
34221
  }
34222
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
34223
+ switch (message.enforceNamingStyle) {
34224
+ default:
34225
+ return "enforceNamingStyle: enum value expected";
34226
+ case 0:
34227
+ case 1:
34228
+ case 2:
34229
+ break;
34230
+ }
34231
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
34232
+ switch (message.defaultSymbolVisibility) {
34233
+ default:
34234
+ return "defaultSymbolVisibility: enum value expected";
34235
+ case 0:
34236
+ case 1:
34237
+ case 2:
34238
+ case 3:
34239
+ case 4:
34240
+ break;
34241
+ }
32434
34242
  return null;
32435
34243
  };
32436
34244
 
@@ -32570,6 +34378,54 @@
32570
34378
  message.jsonFormat = 2;
32571
34379
  break;
32572
34380
  }
34381
+ switch (object.enforceNamingStyle) {
34382
+ default:
34383
+ if (typeof object.enforceNamingStyle === "number") {
34384
+ message.enforceNamingStyle = object.enforceNamingStyle;
34385
+ break;
34386
+ }
34387
+ break;
34388
+ case "ENFORCE_NAMING_STYLE_UNKNOWN":
34389
+ case 0:
34390
+ message.enforceNamingStyle = 0;
34391
+ break;
34392
+ case "STYLE2024":
34393
+ case 1:
34394
+ message.enforceNamingStyle = 1;
34395
+ break;
34396
+ case "STYLE_LEGACY":
34397
+ case 2:
34398
+ message.enforceNamingStyle = 2;
34399
+ break;
34400
+ }
34401
+ switch (object.defaultSymbolVisibility) {
34402
+ default:
34403
+ if (typeof object.defaultSymbolVisibility === "number") {
34404
+ message.defaultSymbolVisibility = object.defaultSymbolVisibility;
34405
+ break;
34406
+ }
34407
+ break;
34408
+ case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
34409
+ case 0:
34410
+ message.defaultSymbolVisibility = 0;
34411
+ break;
34412
+ case "EXPORT_ALL":
34413
+ case 1:
34414
+ message.defaultSymbolVisibility = 1;
34415
+ break;
34416
+ case "EXPORT_TOP_LEVEL":
34417
+ case 2:
34418
+ message.defaultSymbolVisibility = 2;
34419
+ break;
34420
+ case "LOCAL_ALL":
34421
+ case 3:
34422
+ message.defaultSymbolVisibility = 3;
34423
+ break;
34424
+ case "STRICT":
34425
+ case 4:
34426
+ message.defaultSymbolVisibility = 4;
34427
+ break;
34428
+ }
32573
34429
  return message;
32574
34430
  };
32575
34431
 
@@ -32593,6 +34449,8 @@
32593
34449
  object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
32594
34450
  object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
32595
34451
  object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
34452
+ object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
34453
+ object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
32596
34454
  }
32597
34455
  if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
32598
34456
  object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
@@ -32606,6 +34464,10 @@
32606
34464
  object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
32607
34465
  if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
32608
34466
  object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
34467
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
34468
+ object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
34469
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
34470
+ 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;
32609
34471
  return object;
32610
34472
  };
32611
34473
 
@@ -32733,6 +34595,219 @@
32733
34595
  return values;
32734
34596
  })();
32735
34597
 
34598
+ /**
34599
+ * EnforceNamingStyle enum.
34600
+ * @name google.protobuf.FeatureSet.EnforceNamingStyle
34601
+ * @enum {number}
34602
+ * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
34603
+ * @property {number} STYLE2024=1 STYLE2024 value
34604
+ * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
34605
+ */
34606
+ FeatureSet.EnforceNamingStyle = (function() {
34607
+ var valuesById = {}, values = Object.create(valuesById);
34608
+ values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
34609
+ values[valuesById[1] = "STYLE2024"] = 1;
34610
+ values[valuesById[2] = "STYLE_LEGACY"] = 2;
34611
+ return values;
34612
+ })();
34613
+
34614
+ FeatureSet.VisibilityFeature = (function() {
34615
+
34616
+ /**
34617
+ * Properties of a VisibilityFeature.
34618
+ * @memberof google.protobuf.FeatureSet
34619
+ * @interface IVisibilityFeature
34620
+ */
34621
+
34622
+ /**
34623
+ * Constructs a new VisibilityFeature.
34624
+ * @memberof google.protobuf.FeatureSet
34625
+ * @classdesc Represents a VisibilityFeature.
34626
+ * @implements IVisibilityFeature
34627
+ * @constructor
34628
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
34629
+ */
34630
+ function VisibilityFeature(properties) {
34631
+ if (properties)
34632
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34633
+ if (properties[keys[i]] != null)
34634
+ this[keys[i]] = properties[keys[i]];
34635
+ }
34636
+
34637
+ /**
34638
+ * Creates a new VisibilityFeature instance using the specified properties.
34639
+ * @function create
34640
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34641
+ * @static
34642
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
34643
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
34644
+ */
34645
+ VisibilityFeature.create = function create(properties) {
34646
+ return new VisibilityFeature(properties);
34647
+ };
34648
+
34649
+ /**
34650
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
34651
+ * @function encode
34652
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34653
+ * @static
34654
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
34655
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34656
+ * @returns {$protobuf.Writer} Writer
34657
+ */
34658
+ VisibilityFeature.encode = function encode(message, writer) {
34659
+ if (!writer)
34660
+ writer = $Writer.create();
34661
+ return writer;
34662
+ };
34663
+
34664
+ /**
34665
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
34666
+ * @function encodeDelimited
34667
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34668
+ * @static
34669
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
34670
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34671
+ * @returns {$protobuf.Writer} Writer
34672
+ */
34673
+ VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
34674
+ return this.encode(message, writer).ldelim();
34675
+ };
34676
+
34677
+ /**
34678
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
34679
+ * @function decode
34680
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34681
+ * @static
34682
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34683
+ * @param {number} [length] Message length if known beforehand
34684
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
34685
+ * @throws {Error} If the payload is not a reader or valid buffer
34686
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34687
+ */
34688
+ VisibilityFeature.decode = function decode(reader, length, error) {
34689
+ if (!(reader instanceof $Reader))
34690
+ reader = $Reader.create(reader);
34691
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
34692
+ while (reader.pos < end) {
34693
+ var tag = reader.uint32();
34694
+ if (tag === error)
34695
+ break;
34696
+ switch (tag >>> 3) {
34697
+ default:
34698
+ reader.skipType(tag & 7);
34699
+ break;
34700
+ }
34701
+ }
34702
+ return message;
34703
+ };
34704
+
34705
+ /**
34706
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
34707
+ * @function decodeDelimited
34708
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34709
+ * @static
34710
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34711
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
34712
+ * @throws {Error} If the payload is not a reader or valid buffer
34713
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34714
+ */
34715
+ VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
34716
+ if (!(reader instanceof $Reader))
34717
+ reader = new $Reader(reader);
34718
+ return this.decode(reader, reader.uint32());
34719
+ };
34720
+
34721
+ /**
34722
+ * Verifies a VisibilityFeature message.
34723
+ * @function verify
34724
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34725
+ * @static
34726
+ * @param {Object.<string,*>} message Plain object to verify
34727
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34728
+ */
34729
+ VisibilityFeature.verify = function verify(message) {
34730
+ if (typeof message !== "object" || message === null)
34731
+ return "object expected";
34732
+ return null;
34733
+ };
34734
+
34735
+ /**
34736
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
34737
+ * @function fromObject
34738
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34739
+ * @static
34740
+ * @param {Object.<string,*>} object Plain object
34741
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
34742
+ */
34743
+ VisibilityFeature.fromObject = function fromObject(object) {
34744
+ if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
34745
+ return object;
34746
+ return new $root.google.protobuf.FeatureSet.VisibilityFeature();
34747
+ };
34748
+
34749
+ /**
34750
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
34751
+ * @function toObject
34752
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34753
+ * @static
34754
+ * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
34755
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34756
+ * @returns {Object.<string,*>} Plain object
34757
+ */
34758
+ VisibilityFeature.toObject = function toObject() {
34759
+ return {};
34760
+ };
34761
+
34762
+ /**
34763
+ * Converts this VisibilityFeature to JSON.
34764
+ * @function toJSON
34765
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34766
+ * @instance
34767
+ * @returns {Object.<string,*>} JSON object
34768
+ */
34769
+ VisibilityFeature.prototype.toJSON = function toJSON() {
34770
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34771
+ };
34772
+
34773
+ /**
34774
+ * Gets the default type url for VisibilityFeature
34775
+ * @function getTypeUrl
34776
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
34777
+ * @static
34778
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34779
+ * @returns {string} The default type url
34780
+ */
34781
+ VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
34782
+ if (typeUrlPrefix === undefined) {
34783
+ typeUrlPrefix = "type.googleapis.com";
34784
+ }
34785
+ return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
34786
+ };
34787
+
34788
+ /**
34789
+ * DefaultSymbolVisibility enum.
34790
+ * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
34791
+ * @enum {number}
34792
+ * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
34793
+ * @property {number} EXPORT_ALL=1 EXPORT_ALL value
34794
+ * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
34795
+ * @property {number} LOCAL_ALL=3 LOCAL_ALL value
34796
+ * @property {number} STRICT=4 STRICT value
34797
+ */
34798
+ VisibilityFeature.DefaultSymbolVisibility = (function() {
34799
+ var valuesById = {}, values = Object.create(valuesById);
34800
+ values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
34801
+ values[valuesById[1] = "EXPORT_ALL"] = 1;
34802
+ values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
34803
+ values[valuesById[3] = "LOCAL_ALL"] = 3;
34804
+ values[valuesById[4] = "STRICT"] = 4;
34805
+ return values;
34806
+ })();
34807
+
34808
+ return VisibilityFeature;
34809
+ })();
34810
+
32736
34811
  return FeatureSet;
32737
34812
  })();
32738
34813
 
@@ -32917,6 +34992,7 @@
32917
34992
  default:
32918
34993
  return "minimumEdition: enum value expected";
32919
34994
  case 0:
34995
+ case 900:
32920
34996
  case 998:
32921
34997
  case 999:
32922
34998
  case 1000:
@@ -32934,6 +35010,7 @@
32934
35010
  default:
32935
35011
  return "maximumEdition: enum value expected";
32936
35012
  case 0:
35013
+ case 900:
32937
35014
  case 998:
32938
35015
  case 999:
32939
35016
  case 1000:
@@ -32982,6 +35059,10 @@
32982
35059
  case 0:
32983
35060
  message.minimumEdition = 0;
32984
35061
  break;
35062
+ case "EDITION_LEGACY":
35063
+ case 900:
35064
+ message.minimumEdition = 900;
35065
+ break;
32985
35066
  case "EDITION_PROTO2":
32986
35067
  case 998:
32987
35068
  message.minimumEdition = 998;
@@ -33034,6 +35115,10 @@
33034
35115
  case 0:
33035
35116
  message.maximumEdition = 0;
33036
35117
  break;
35118
+ case "EDITION_LEGACY":
35119
+ case 900:
35120
+ message.maximumEdition = 900;
35121
+ break;
33037
35122
  case "EDITION_PROTO2":
33038
35123
  case 998:
33039
35124
  message.maximumEdition = 998;
@@ -33142,7 +35227,8 @@
33142
35227
  * @memberof google.protobuf.FeatureSetDefaults
33143
35228
  * @interface IFeatureSetEditionDefault
33144
35229
  * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
33145
- * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
35230
+ * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
35231
+ * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
33146
35232
  */
33147
35233
 
33148
35234
  /**
@@ -33169,12 +35255,20 @@
33169
35255
  FeatureSetEditionDefault.prototype.edition = 0;
33170
35256
 
33171
35257
  /**
33172
- * FeatureSetEditionDefault features.
33173
- * @member {google.protobuf.IFeatureSet|null|undefined} features
35258
+ * FeatureSetEditionDefault overridableFeatures.
35259
+ * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
35260
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
35261
+ * @instance
35262
+ */
35263
+ FeatureSetEditionDefault.prototype.overridableFeatures = null;
35264
+
35265
+ /**
35266
+ * FeatureSetEditionDefault fixedFeatures.
35267
+ * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
33174
35268
  * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
33175
35269
  * @instance
33176
35270
  */
33177
- FeatureSetEditionDefault.prototype.features = null;
35271
+ FeatureSetEditionDefault.prototype.fixedFeatures = null;
33178
35272
 
33179
35273
  /**
33180
35274
  * Creates a new FeatureSetEditionDefault instance using the specified properties.
@@ -33200,10 +35294,12 @@
33200
35294
  FeatureSetEditionDefault.encode = function encode(message, writer) {
33201
35295
  if (!writer)
33202
35296
  writer = $Writer.create();
33203
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
33204
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
33205
35297
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
33206
35298
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
35299
+ if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
35300
+ $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
35301
+ if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
35302
+ $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
33207
35303
  return writer;
33208
35304
  };
33209
35305
 
@@ -33244,8 +35340,12 @@
33244
35340
  message.edition = reader.int32();
33245
35341
  break;
33246
35342
  }
33247
- case 2: {
33248
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
35343
+ case 4: {
35344
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
35345
+ break;
35346
+ }
35347
+ case 5: {
35348
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
33249
35349
  break;
33250
35350
  }
33251
35351
  default:
@@ -33288,6 +35388,7 @@
33288
35388
  default:
33289
35389
  return "edition: enum value expected";
33290
35390
  case 0:
35391
+ case 900:
33291
35392
  case 998:
33292
35393
  case 999:
33293
35394
  case 1000:
@@ -33300,10 +35401,15 @@
33300
35401
  case 2147483647:
33301
35402
  break;
33302
35403
  }
33303
- if (message.features != null && message.hasOwnProperty("features")) {
33304
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
35404
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
35405
+ var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
33305
35406
  if (error)
33306
- return "features." + error;
35407
+ return "overridableFeatures." + error;
35408
+ }
35409
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
35410
+ var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
35411
+ if (error)
35412
+ return "fixedFeatures." + error;
33307
35413
  }
33308
35414
  return null;
33309
35415
  };
@@ -33331,6 +35437,10 @@
33331
35437
  case 0:
33332
35438
  message.edition = 0;
33333
35439
  break;
35440
+ case "EDITION_LEGACY":
35441
+ case 900:
35442
+ message.edition = 900;
35443
+ break;
33334
35444
  case "EDITION_PROTO2":
33335
35445
  case 998:
33336
35446
  message.edition = 998;
@@ -33372,10 +35482,15 @@
33372
35482
  message.edition = 2147483647;
33373
35483
  break;
33374
35484
  }
33375
- if (object.features != null) {
33376
- if (typeof object.features !== "object")
33377
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
33378
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
35485
+ if (object.overridableFeatures != null) {
35486
+ if (typeof object.overridableFeatures !== "object")
35487
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
35488
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
35489
+ }
35490
+ if (object.fixedFeatures != null) {
35491
+ if (typeof object.fixedFeatures !== "object")
35492
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
35493
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
33379
35494
  }
33380
35495
  return message;
33381
35496
  };
@@ -33394,13 +35509,16 @@
33394
35509
  options = {};
33395
35510
  var object = {};
33396
35511
  if (options.defaults) {
33397
- object.features = null;
33398
35512
  object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
35513
+ object.overridableFeatures = null;
35514
+ object.fixedFeatures = null;
33399
35515
  }
33400
- if (message.features != null && message.hasOwnProperty("features"))
33401
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
33402
35516
  if (message.edition != null && message.hasOwnProperty("edition"))
33403
35517
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
35518
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
35519
+ object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
35520
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
35521
+ object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
33404
35522
  return object;
33405
35523
  };
33406
35524
 
@@ -34615,6 +36733,22 @@
34615
36733
  return GeneratedCodeInfo;
34616
36734
  })();
34617
36735
 
36736
+ /**
36737
+ * SymbolVisibility enum.
36738
+ * @name google.protobuf.SymbolVisibility
36739
+ * @enum {number}
36740
+ * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
36741
+ * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
36742
+ * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
36743
+ */
36744
+ protobuf.SymbolVisibility = (function() {
36745
+ var valuesById = {}, values = Object.create(valuesById);
36746
+ values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
36747
+ values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
36748
+ values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
36749
+ return values;
36750
+ })();
36751
+
34618
36752
  protobuf.Duration = (function() {
34619
36753
 
34620
36754
  /**