@google-cloud/pubsub 5.1.0 → 5.2.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.
- package/README.md +1 -0
- package/build/protos/protos.d.ts +518 -4
- package/build/protos/protos.js +1747 -74
- package/build/protos/protos.json +193 -22
- package/build/src/exponential-retry.js +3 -3
- package/build/src/exponential-retry.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +2 -1
- package/build/src/index.js.map +1 -1
- package/build/src/lease-manager.d.ts +18 -0
- package/build/src/lease-manager.js +52 -2
- package/build/src/lease-manager.js.map +1 -1
- package/build/src/logs.d.ts +9 -0
- package/build/src/logs.js +26 -0
- package/build/src/logs.js.map +1 -0
- package/build/src/message-queues.d.ts +25 -1
- package/build/src/message-queues.js +41 -5
- package/build/src/message-queues.js.map +1 -1
- package/build/src/message-stream.d.ts +8 -0
- package/build/src/message-stream.js +37 -14
- package/build/src/message-stream.js.map +1 -1
- package/build/src/publisher/message-batch.d.ts +26 -1
- package/build/src/publisher/message-batch.js +41 -6
- package/build/src/publisher/message-batch.js.map +1 -1
- package/build/src/publisher/message-queues.d.ts +22 -5
- package/build/src/publisher/message-queues.js +51 -18
- package/build/src/publisher/message-queues.js.map +1 -1
- package/build/src/pubsub.d.ts +25 -6
- package/build/src/pubsub.js.map +1 -1
- package/build/src/subscriber.d.ts +70 -4
- package/build/src/subscriber.js +154 -9
- package/build/src/subscriber.js.map +1 -1
- package/build/src/subscription.d.ts +11 -13
- package/build/src/subscription.js +2 -1
- package/build/src/subscription.js.map +1 -1
- package/build/src/temporal.d.ts +66 -4
- package/build/src/temporal.js +104 -4
- package/build/src/temporal.js.map +1 -1
- package/build/src/util.d.ts +22 -0
- package/build/src/util.js +36 -0
- package/build/src/util.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -27654,6 +27654,7 @@
|
|
|
27654
27654
|
* @interface ICommonLanguageSettings
|
|
27655
27655
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
27656
27656
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
27657
|
+
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
27657
27658
|
*/
|
|
27658
27659
|
|
|
27659
27660
|
/**
|
|
@@ -27688,6 +27689,14 @@
|
|
|
27688
27689
|
*/
|
|
27689
27690
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
27690
27691
|
|
|
27692
|
+
/**
|
|
27693
|
+
* CommonLanguageSettings selectiveGapicGeneration.
|
|
27694
|
+
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
27695
|
+
* @memberof google.api.CommonLanguageSettings
|
|
27696
|
+
* @instance
|
|
27697
|
+
*/
|
|
27698
|
+
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
27699
|
+
|
|
27691
27700
|
/**
|
|
27692
27701
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
27693
27702
|
* @function create
|
|
@@ -27720,6 +27729,8 @@
|
|
|
27720
27729
|
writer.int32(message.destinations[i]);
|
|
27721
27730
|
writer.ldelim();
|
|
27722
27731
|
}
|
|
27732
|
+
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
27733
|
+
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27723
27734
|
return writer;
|
|
27724
27735
|
};
|
|
27725
27736
|
|
|
@@ -27771,6 +27782,10 @@
|
|
|
27771
27782
|
message.destinations.push(reader.int32());
|
|
27772
27783
|
break;
|
|
27773
27784
|
}
|
|
27785
|
+
case 3: {
|
|
27786
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
27787
|
+
break;
|
|
27788
|
+
}
|
|
27774
27789
|
default:
|
|
27775
27790
|
reader.skipType(tag & 7);
|
|
27776
27791
|
break;
|
|
@@ -27822,6 +27837,11 @@
|
|
|
27822
27837
|
break;
|
|
27823
27838
|
}
|
|
27824
27839
|
}
|
|
27840
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
27841
|
+
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
27842
|
+
if (error)
|
|
27843
|
+
return "selectiveGapicGeneration." + error;
|
|
27844
|
+
}
|
|
27825
27845
|
return null;
|
|
27826
27846
|
};
|
|
27827
27847
|
|
|
@@ -27864,6 +27884,11 @@
|
|
|
27864
27884
|
break;
|
|
27865
27885
|
}
|
|
27866
27886
|
}
|
|
27887
|
+
if (object.selectiveGapicGeneration != null) {
|
|
27888
|
+
if (typeof object.selectiveGapicGeneration !== "object")
|
|
27889
|
+
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
27890
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
27891
|
+
}
|
|
27867
27892
|
return message;
|
|
27868
27893
|
};
|
|
27869
27894
|
|
|
@@ -27882,8 +27907,10 @@
|
|
|
27882
27907
|
var object = {};
|
|
27883
27908
|
if (options.arrays || options.defaults)
|
|
27884
27909
|
object.destinations = [];
|
|
27885
|
-
if (options.defaults)
|
|
27910
|
+
if (options.defaults) {
|
|
27886
27911
|
object.referenceDocsUri = "";
|
|
27912
|
+
object.selectiveGapicGeneration = null;
|
|
27913
|
+
}
|
|
27887
27914
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
27888
27915
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
27889
27916
|
if (message.destinations && message.destinations.length) {
|
|
@@ -27891,6 +27918,8 @@
|
|
|
27891
27918
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
27892
27919
|
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];
|
|
27893
27920
|
}
|
|
27921
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
27922
|
+
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
27894
27923
|
return object;
|
|
27895
27924
|
};
|
|
27896
27925
|
|
|
@@ -29713,6 +29742,7 @@
|
|
|
29713
29742
|
* @memberof google.api
|
|
29714
29743
|
* @interface IPythonSettings
|
|
29715
29744
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
29745
|
+
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
29716
29746
|
*/
|
|
29717
29747
|
|
|
29718
29748
|
/**
|
|
@@ -29738,6 +29768,14 @@
|
|
|
29738
29768
|
*/
|
|
29739
29769
|
PythonSettings.prototype.common = null;
|
|
29740
29770
|
|
|
29771
|
+
/**
|
|
29772
|
+
* PythonSettings experimentalFeatures.
|
|
29773
|
+
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
29774
|
+
* @memberof google.api.PythonSettings
|
|
29775
|
+
* @instance
|
|
29776
|
+
*/
|
|
29777
|
+
PythonSettings.prototype.experimentalFeatures = null;
|
|
29778
|
+
|
|
29741
29779
|
/**
|
|
29742
29780
|
* Creates a new PythonSettings instance using the specified properties.
|
|
29743
29781
|
* @function create
|
|
@@ -29764,6 +29802,8 @@
|
|
|
29764
29802
|
writer = $Writer.create();
|
|
29765
29803
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
29766
29804
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
29805
|
+
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
29806
|
+
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
29767
29807
|
return writer;
|
|
29768
29808
|
};
|
|
29769
29809
|
|
|
@@ -29804,6 +29844,10 @@
|
|
|
29804
29844
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
29805
29845
|
break;
|
|
29806
29846
|
}
|
|
29847
|
+
case 2: {
|
|
29848
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
29849
|
+
break;
|
|
29850
|
+
}
|
|
29807
29851
|
default:
|
|
29808
29852
|
reader.skipType(tag & 7);
|
|
29809
29853
|
break;
|
|
@@ -29844,6 +29888,11 @@
|
|
|
29844
29888
|
if (error)
|
|
29845
29889
|
return "common." + error;
|
|
29846
29890
|
}
|
|
29891
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
29892
|
+
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
29893
|
+
if (error)
|
|
29894
|
+
return "experimentalFeatures." + error;
|
|
29895
|
+
}
|
|
29847
29896
|
return null;
|
|
29848
29897
|
};
|
|
29849
29898
|
|
|
@@ -29864,6 +29913,11 @@
|
|
|
29864
29913
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
29865
29914
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
29866
29915
|
}
|
|
29916
|
+
if (object.experimentalFeatures != null) {
|
|
29917
|
+
if (typeof object.experimentalFeatures !== "object")
|
|
29918
|
+
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
29919
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
29920
|
+
}
|
|
29867
29921
|
return message;
|
|
29868
29922
|
};
|
|
29869
29923
|
|
|
@@ -29880,10 +29934,14 @@
|
|
|
29880
29934
|
if (!options)
|
|
29881
29935
|
options = {};
|
|
29882
29936
|
var object = {};
|
|
29883
|
-
if (options.defaults)
|
|
29937
|
+
if (options.defaults) {
|
|
29884
29938
|
object.common = null;
|
|
29939
|
+
object.experimentalFeatures = null;
|
|
29940
|
+
}
|
|
29885
29941
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
29886
29942
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
29943
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
29944
|
+
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
29887
29945
|
return object;
|
|
29888
29946
|
};
|
|
29889
29947
|
|
|
@@ -29913,6 +29971,258 @@
|
|
|
29913
29971
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
29914
29972
|
};
|
|
29915
29973
|
|
|
29974
|
+
PythonSettings.ExperimentalFeatures = (function() {
|
|
29975
|
+
|
|
29976
|
+
/**
|
|
29977
|
+
* Properties of an ExperimentalFeatures.
|
|
29978
|
+
* @memberof google.api.PythonSettings
|
|
29979
|
+
* @interface IExperimentalFeatures
|
|
29980
|
+
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
29981
|
+
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
29982
|
+
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
29983
|
+
*/
|
|
29984
|
+
|
|
29985
|
+
/**
|
|
29986
|
+
* Constructs a new ExperimentalFeatures.
|
|
29987
|
+
* @memberof google.api.PythonSettings
|
|
29988
|
+
* @classdesc Represents an ExperimentalFeatures.
|
|
29989
|
+
* @implements IExperimentalFeatures
|
|
29990
|
+
* @constructor
|
|
29991
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
29992
|
+
*/
|
|
29993
|
+
function ExperimentalFeatures(properties) {
|
|
29994
|
+
if (properties)
|
|
29995
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29996
|
+
if (properties[keys[i]] != null)
|
|
29997
|
+
this[keys[i]] = properties[keys[i]];
|
|
29998
|
+
}
|
|
29999
|
+
|
|
30000
|
+
/**
|
|
30001
|
+
* ExperimentalFeatures restAsyncIoEnabled.
|
|
30002
|
+
* @member {boolean} restAsyncIoEnabled
|
|
30003
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30004
|
+
* @instance
|
|
30005
|
+
*/
|
|
30006
|
+
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
30007
|
+
|
|
30008
|
+
/**
|
|
30009
|
+
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
30010
|
+
* @member {boolean} protobufPythonicTypesEnabled
|
|
30011
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30012
|
+
* @instance
|
|
30013
|
+
*/
|
|
30014
|
+
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
30015
|
+
|
|
30016
|
+
/**
|
|
30017
|
+
* ExperimentalFeatures unversionedPackageDisabled.
|
|
30018
|
+
* @member {boolean} unversionedPackageDisabled
|
|
30019
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30020
|
+
* @instance
|
|
30021
|
+
*/
|
|
30022
|
+
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
30023
|
+
|
|
30024
|
+
/**
|
|
30025
|
+
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
30026
|
+
* @function create
|
|
30027
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30028
|
+
* @static
|
|
30029
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
30030
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
30031
|
+
*/
|
|
30032
|
+
ExperimentalFeatures.create = function create(properties) {
|
|
30033
|
+
return new ExperimentalFeatures(properties);
|
|
30034
|
+
};
|
|
30035
|
+
|
|
30036
|
+
/**
|
|
30037
|
+
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
30038
|
+
* @function encode
|
|
30039
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30040
|
+
* @static
|
|
30041
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
30042
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
30043
|
+
* @returns {$protobuf.Writer} Writer
|
|
30044
|
+
*/
|
|
30045
|
+
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
30046
|
+
if (!writer)
|
|
30047
|
+
writer = $Writer.create();
|
|
30048
|
+
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
30049
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
30050
|
+
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
30051
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
30052
|
+
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
30053
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
30054
|
+
return writer;
|
|
30055
|
+
};
|
|
30056
|
+
|
|
30057
|
+
/**
|
|
30058
|
+
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
30059
|
+
* @function encodeDelimited
|
|
30060
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30061
|
+
* @static
|
|
30062
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
30063
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
30064
|
+
* @returns {$protobuf.Writer} Writer
|
|
30065
|
+
*/
|
|
30066
|
+
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
30067
|
+
return this.encode(message, writer).ldelim();
|
|
30068
|
+
};
|
|
30069
|
+
|
|
30070
|
+
/**
|
|
30071
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
30072
|
+
* @function decode
|
|
30073
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30074
|
+
* @static
|
|
30075
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
30076
|
+
* @param {number} [length] Message length if known beforehand
|
|
30077
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30078
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30079
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30080
|
+
*/
|
|
30081
|
+
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
30082
|
+
if (!(reader instanceof $Reader))
|
|
30083
|
+
reader = $Reader.create(reader);
|
|
30084
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
30085
|
+
while (reader.pos < end) {
|
|
30086
|
+
var tag = reader.uint32();
|
|
30087
|
+
if (tag === error)
|
|
30088
|
+
break;
|
|
30089
|
+
switch (tag >>> 3) {
|
|
30090
|
+
case 1: {
|
|
30091
|
+
message.restAsyncIoEnabled = reader.bool();
|
|
30092
|
+
break;
|
|
30093
|
+
}
|
|
30094
|
+
case 2: {
|
|
30095
|
+
message.protobufPythonicTypesEnabled = reader.bool();
|
|
30096
|
+
break;
|
|
30097
|
+
}
|
|
30098
|
+
case 3: {
|
|
30099
|
+
message.unversionedPackageDisabled = reader.bool();
|
|
30100
|
+
break;
|
|
30101
|
+
}
|
|
30102
|
+
default:
|
|
30103
|
+
reader.skipType(tag & 7);
|
|
30104
|
+
break;
|
|
30105
|
+
}
|
|
30106
|
+
}
|
|
30107
|
+
return message;
|
|
30108
|
+
};
|
|
30109
|
+
|
|
30110
|
+
/**
|
|
30111
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
30112
|
+
* @function decodeDelimited
|
|
30113
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30114
|
+
* @static
|
|
30115
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
30116
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30119
|
+
*/
|
|
30120
|
+
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
30121
|
+
if (!(reader instanceof $Reader))
|
|
30122
|
+
reader = new $Reader(reader);
|
|
30123
|
+
return this.decode(reader, reader.uint32());
|
|
30124
|
+
};
|
|
30125
|
+
|
|
30126
|
+
/**
|
|
30127
|
+
* Verifies an ExperimentalFeatures message.
|
|
30128
|
+
* @function verify
|
|
30129
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30130
|
+
* @static
|
|
30131
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
30132
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
30133
|
+
*/
|
|
30134
|
+
ExperimentalFeatures.verify = function verify(message) {
|
|
30135
|
+
if (typeof message !== "object" || message === null)
|
|
30136
|
+
return "object expected";
|
|
30137
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
30138
|
+
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
30139
|
+
return "restAsyncIoEnabled: boolean expected";
|
|
30140
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
30141
|
+
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
30142
|
+
return "protobufPythonicTypesEnabled: boolean expected";
|
|
30143
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
30144
|
+
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
30145
|
+
return "unversionedPackageDisabled: boolean expected";
|
|
30146
|
+
return null;
|
|
30147
|
+
};
|
|
30148
|
+
|
|
30149
|
+
/**
|
|
30150
|
+
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
30151
|
+
* @function fromObject
|
|
30152
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30153
|
+
* @static
|
|
30154
|
+
* @param {Object.<string,*>} object Plain object
|
|
30155
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30156
|
+
*/
|
|
30157
|
+
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
30158
|
+
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
30159
|
+
return object;
|
|
30160
|
+
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
30161
|
+
if (object.restAsyncIoEnabled != null)
|
|
30162
|
+
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
30163
|
+
if (object.protobufPythonicTypesEnabled != null)
|
|
30164
|
+
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
30165
|
+
if (object.unversionedPackageDisabled != null)
|
|
30166
|
+
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
30167
|
+
return message;
|
|
30168
|
+
};
|
|
30169
|
+
|
|
30170
|
+
/**
|
|
30171
|
+
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
30172
|
+
* @function toObject
|
|
30173
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30174
|
+
* @static
|
|
30175
|
+
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
30176
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
30177
|
+
* @returns {Object.<string,*>} Plain object
|
|
30178
|
+
*/
|
|
30179
|
+
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
30180
|
+
if (!options)
|
|
30181
|
+
options = {};
|
|
30182
|
+
var object = {};
|
|
30183
|
+
if (options.defaults) {
|
|
30184
|
+
object.restAsyncIoEnabled = false;
|
|
30185
|
+
object.protobufPythonicTypesEnabled = false;
|
|
30186
|
+
object.unversionedPackageDisabled = false;
|
|
30187
|
+
}
|
|
30188
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
30189
|
+
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
30190
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
30191
|
+
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
30192
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
30193
|
+
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
30194
|
+
return object;
|
|
30195
|
+
};
|
|
30196
|
+
|
|
30197
|
+
/**
|
|
30198
|
+
* Converts this ExperimentalFeatures to JSON.
|
|
30199
|
+
* @function toJSON
|
|
30200
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30201
|
+
* @instance
|
|
30202
|
+
* @returns {Object.<string,*>} JSON object
|
|
30203
|
+
*/
|
|
30204
|
+
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
30205
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
30206
|
+
};
|
|
30207
|
+
|
|
30208
|
+
/**
|
|
30209
|
+
* Gets the default type url for ExperimentalFeatures
|
|
30210
|
+
* @function getTypeUrl
|
|
30211
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30212
|
+
* @static
|
|
30213
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
30214
|
+
* @returns {string} The default type url
|
|
30215
|
+
*/
|
|
30216
|
+
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
30217
|
+
if (typeUrlPrefix === undefined) {
|
|
30218
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
30219
|
+
}
|
|
30220
|
+
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
30221
|
+
};
|
|
30222
|
+
|
|
30223
|
+
return ExperimentalFeatures;
|
|
30224
|
+
})();
|
|
30225
|
+
|
|
29916
30226
|
return PythonSettings;
|
|
29917
30227
|
})();
|
|
29918
30228
|
|
|
@@ -30789,6 +31099,7 @@
|
|
|
30789
31099
|
* @memberof google.api
|
|
30790
31100
|
* @interface IGoSettings
|
|
30791
31101
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
31102
|
+
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
30792
31103
|
*/
|
|
30793
31104
|
|
|
30794
31105
|
/**
|
|
@@ -30800,6 +31111,7 @@
|
|
|
30800
31111
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
30801
31112
|
*/
|
|
30802
31113
|
function GoSettings(properties) {
|
|
31114
|
+
this.renamedServices = {};
|
|
30803
31115
|
if (properties)
|
|
30804
31116
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
30805
31117
|
if (properties[keys[i]] != null)
|
|
@@ -30814,6 +31126,14 @@
|
|
|
30814
31126
|
*/
|
|
30815
31127
|
GoSettings.prototype.common = null;
|
|
30816
31128
|
|
|
31129
|
+
/**
|
|
31130
|
+
* GoSettings renamedServices.
|
|
31131
|
+
* @member {Object.<string,string>} renamedServices
|
|
31132
|
+
* @memberof google.api.GoSettings
|
|
31133
|
+
* @instance
|
|
31134
|
+
*/
|
|
31135
|
+
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
31136
|
+
|
|
30817
31137
|
/**
|
|
30818
31138
|
* Creates a new GoSettings instance using the specified properties.
|
|
30819
31139
|
* @function create
|
|
@@ -30840,6 +31160,9 @@
|
|
|
30840
31160
|
writer = $Writer.create();
|
|
30841
31161
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
30842
31162
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
31163
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
31164
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
31165
|
+
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();
|
|
30843
31166
|
return writer;
|
|
30844
31167
|
};
|
|
30845
31168
|
|
|
@@ -30870,7 +31193,7 @@
|
|
|
30870
31193
|
GoSettings.decode = function decode(reader, length, error) {
|
|
30871
31194
|
if (!(reader instanceof $Reader))
|
|
30872
31195
|
reader = $Reader.create(reader);
|
|
30873
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
31196
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
|
|
30874
31197
|
while (reader.pos < end) {
|
|
30875
31198
|
var tag = reader.uint32();
|
|
30876
31199
|
if (tag === error)
|
|
@@ -30880,6 +31203,29 @@
|
|
|
30880
31203
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
30881
31204
|
break;
|
|
30882
31205
|
}
|
|
31206
|
+
case 2: {
|
|
31207
|
+
if (message.renamedServices === $util.emptyObject)
|
|
31208
|
+
message.renamedServices = {};
|
|
31209
|
+
var end2 = reader.uint32() + reader.pos;
|
|
31210
|
+
key = "";
|
|
31211
|
+
value = "";
|
|
31212
|
+
while (reader.pos < end2) {
|
|
31213
|
+
var tag2 = reader.uint32();
|
|
31214
|
+
switch (tag2 >>> 3) {
|
|
31215
|
+
case 1:
|
|
31216
|
+
key = reader.string();
|
|
31217
|
+
break;
|
|
31218
|
+
case 2:
|
|
31219
|
+
value = reader.string();
|
|
31220
|
+
break;
|
|
31221
|
+
default:
|
|
31222
|
+
reader.skipType(tag2 & 7);
|
|
31223
|
+
break;
|
|
31224
|
+
}
|
|
31225
|
+
}
|
|
31226
|
+
message.renamedServices[key] = value;
|
|
31227
|
+
break;
|
|
31228
|
+
}
|
|
30883
31229
|
default:
|
|
30884
31230
|
reader.skipType(tag & 7);
|
|
30885
31231
|
break;
|
|
@@ -30920,6 +31266,14 @@
|
|
|
30920
31266
|
if (error)
|
|
30921
31267
|
return "common." + error;
|
|
30922
31268
|
}
|
|
31269
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
31270
|
+
if (!$util.isObject(message.renamedServices))
|
|
31271
|
+
return "renamedServices: object expected";
|
|
31272
|
+
var key = Object.keys(message.renamedServices);
|
|
31273
|
+
for (var i = 0; i < key.length; ++i)
|
|
31274
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
31275
|
+
return "renamedServices: string{k:string} expected";
|
|
31276
|
+
}
|
|
30923
31277
|
return null;
|
|
30924
31278
|
};
|
|
30925
31279
|
|
|
@@ -30940,6 +31294,13 @@
|
|
|
30940
31294
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
30941
31295
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
30942
31296
|
}
|
|
31297
|
+
if (object.renamedServices) {
|
|
31298
|
+
if (typeof object.renamedServices !== "object")
|
|
31299
|
+
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
31300
|
+
message.renamedServices = {};
|
|
31301
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
31302
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
31303
|
+
}
|
|
30943
31304
|
return message;
|
|
30944
31305
|
};
|
|
30945
31306
|
|
|
@@ -30956,10 +31317,18 @@
|
|
|
30956
31317
|
if (!options)
|
|
30957
31318
|
options = {};
|
|
30958
31319
|
var object = {};
|
|
31320
|
+
if (options.objects || options.defaults)
|
|
31321
|
+
object.renamedServices = {};
|
|
30959
31322
|
if (options.defaults)
|
|
30960
31323
|
object.common = null;
|
|
30961
31324
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
30962
31325
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
31326
|
+
var keys2;
|
|
31327
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
31328
|
+
object.renamedServices = {};
|
|
31329
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31330
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
31331
|
+
}
|
|
30963
31332
|
return object;
|
|
30964
31333
|
};
|
|
30965
31334
|
|
|
@@ -31598,30 +31967,275 @@
|
|
|
31598
31967
|
return values;
|
|
31599
31968
|
})();
|
|
31600
31969
|
|
|
31601
|
-
|
|
31602
|
-
|
|
31603
|
-
|
|
31604
|
-
|
|
31605
|
-
|
|
31606
|
-
|
|
31607
|
-
|
|
31608
|
-
|
|
31609
|
-
|
|
31610
|
-
|
|
31611
|
-
|
|
31612
|
-
|
|
31613
|
-
|
|
31614
|
-
|
|
31615
|
-
|
|
31616
|
-
|
|
31617
|
-
|
|
31618
|
-
|
|
31619
|
-
|
|
31620
|
-
|
|
31621
|
-
|
|
31622
|
-
|
|
31623
|
-
|
|
31624
|
-
|
|
31970
|
+
api.SelectiveGapicGeneration = (function() {
|
|
31971
|
+
|
|
31972
|
+
/**
|
|
31973
|
+
* Properties of a SelectiveGapicGeneration.
|
|
31974
|
+
* @memberof google.api
|
|
31975
|
+
* @interface ISelectiveGapicGeneration
|
|
31976
|
+
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
31977
|
+
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
31978
|
+
*/
|
|
31979
|
+
|
|
31980
|
+
/**
|
|
31981
|
+
* Constructs a new SelectiveGapicGeneration.
|
|
31982
|
+
* @memberof google.api
|
|
31983
|
+
* @classdesc Represents a SelectiveGapicGeneration.
|
|
31984
|
+
* @implements ISelectiveGapicGeneration
|
|
31985
|
+
* @constructor
|
|
31986
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
31987
|
+
*/
|
|
31988
|
+
function SelectiveGapicGeneration(properties) {
|
|
31989
|
+
this.methods = [];
|
|
31990
|
+
if (properties)
|
|
31991
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31992
|
+
if (properties[keys[i]] != null)
|
|
31993
|
+
this[keys[i]] = properties[keys[i]];
|
|
31994
|
+
}
|
|
31995
|
+
|
|
31996
|
+
/**
|
|
31997
|
+
* SelectiveGapicGeneration methods.
|
|
31998
|
+
* @member {Array.<string>} methods
|
|
31999
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32000
|
+
* @instance
|
|
32001
|
+
*/
|
|
32002
|
+
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
32003
|
+
|
|
32004
|
+
/**
|
|
32005
|
+
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
32006
|
+
* @member {boolean} generateOmittedAsInternal
|
|
32007
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32008
|
+
* @instance
|
|
32009
|
+
*/
|
|
32010
|
+
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
32011
|
+
|
|
32012
|
+
/**
|
|
32013
|
+
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
32014
|
+
* @function create
|
|
32015
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32016
|
+
* @static
|
|
32017
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
32018
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
32019
|
+
*/
|
|
32020
|
+
SelectiveGapicGeneration.create = function create(properties) {
|
|
32021
|
+
return new SelectiveGapicGeneration(properties);
|
|
32022
|
+
};
|
|
32023
|
+
|
|
32024
|
+
/**
|
|
32025
|
+
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
32026
|
+
* @function encode
|
|
32027
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32028
|
+
* @static
|
|
32029
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
32030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32031
|
+
* @returns {$protobuf.Writer} Writer
|
|
32032
|
+
*/
|
|
32033
|
+
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
32034
|
+
if (!writer)
|
|
32035
|
+
writer = $Writer.create();
|
|
32036
|
+
if (message.methods != null && message.methods.length)
|
|
32037
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
32038
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
32039
|
+
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
32040
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
32041
|
+
return writer;
|
|
32042
|
+
};
|
|
32043
|
+
|
|
32044
|
+
/**
|
|
32045
|
+
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
32046
|
+
* @function encodeDelimited
|
|
32047
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32048
|
+
* @static
|
|
32049
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
32050
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32051
|
+
* @returns {$protobuf.Writer} Writer
|
|
32052
|
+
*/
|
|
32053
|
+
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32054
|
+
return this.encode(message, writer).ldelim();
|
|
32055
|
+
};
|
|
32056
|
+
|
|
32057
|
+
/**
|
|
32058
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
32059
|
+
* @function decode
|
|
32060
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32061
|
+
* @static
|
|
32062
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32063
|
+
* @param {number} [length] Message length if known beforehand
|
|
32064
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32065
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32066
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32067
|
+
*/
|
|
32068
|
+
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
32069
|
+
if (!(reader instanceof $Reader))
|
|
32070
|
+
reader = $Reader.create(reader);
|
|
32071
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
32072
|
+
while (reader.pos < end) {
|
|
32073
|
+
var tag = reader.uint32();
|
|
32074
|
+
if (tag === error)
|
|
32075
|
+
break;
|
|
32076
|
+
switch (tag >>> 3) {
|
|
32077
|
+
case 1: {
|
|
32078
|
+
if (!(message.methods && message.methods.length))
|
|
32079
|
+
message.methods = [];
|
|
32080
|
+
message.methods.push(reader.string());
|
|
32081
|
+
break;
|
|
32082
|
+
}
|
|
32083
|
+
case 2: {
|
|
32084
|
+
message.generateOmittedAsInternal = reader.bool();
|
|
32085
|
+
break;
|
|
32086
|
+
}
|
|
32087
|
+
default:
|
|
32088
|
+
reader.skipType(tag & 7);
|
|
32089
|
+
break;
|
|
32090
|
+
}
|
|
32091
|
+
}
|
|
32092
|
+
return message;
|
|
32093
|
+
};
|
|
32094
|
+
|
|
32095
|
+
/**
|
|
32096
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
32097
|
+
* @function decodeDelimited
|
|
32098
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32099
|
+
* @static
|
|
32100
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32101
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32102
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32103
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32104
|
+
*/
|
|
32105
|
+
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
32106
|
+
if (!(reader instanceof $Reader))
|
|
32107
|
+
reader = new $Reader(reader);
|
|
32108
|
+
return this.decode(reader, reader.uint32());
|
|
32109
|
+
};
|
|
32110
|
+
|
|
32111
|
+
/**
|
|
32112
|
+
* Verifies a SelectiveGapicGeneration message.
|
|
32113
|
+
* @function verify
|
|
32114
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32115
|
+
* @static
|
|
32116
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32117
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32118
|
+
*/
|
|
32119
|
+
SelectiveGapicGeneration.verify = function verify(message) {
|
|
32120
|
+
if (typeof message !== "object" || message === null)
|
|
32121
|
+
return "object expected";
|
|
32122
|
+
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
32123
|
+
if (!Array.isArray(message.methods))
|
|
32124
|
+
return "methods: array expected";
|
|
32125
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
32126
|
+
if (!$util.isString(message.methods[i]))
|
|
32127
|
+
return "methods: string[] expected";
|
|
32128
|
+
}
|
|
32129
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
32130
|
+
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
32131
|
+
return "generateOmittedAsInternal: boolean expected";
|
|
32132
|
+
return null;
|
|
32133
|
+
};
|
|
32134
|
+
|
|
32135
|
+
/**
|
|
32136
|
+
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
32137
|
+
* @function fromObject
|
|
32138
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32139
|
+
* @static
|
|
32140
|
+
* @param {Object.<string,*>} object Plain object
|
|
32141
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32142
|
+
*/
|
|
32143
|
+
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
32144
|
+
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
32145
|
+
return object;
|
|
32146
|
+
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
32147
|
+
if (object.methods) {
|
|
32148
|
+
if (!Array.isArray(object.methods))
|
|
32149
|
+
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
32150
|
+
message.methods = [];
|
|
32151
|
+
for (var i = 0; i < object.methods.length; ++i)
|
|
32152
|
+
message.methods[i] = String(object.methods[i]);
|
|
32153
|
+
}
|
|
32154
|
+
if (object.generateOmittedAsInternal != null)
|
|
32155
|
+
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
32156
|
+
return message;
|
|
32157
|
+
};
|
|
32158
|
+
|
|
32159
|
+
/**
|
|
32160
|
+
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
32161
|
+
* @function toObject
|
|
32162
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32163
|
+
* @static
|
|
32164
|
+
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
32165
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32166
|
+
* @returns {Object.<string,*>} Plain object
|
|
32167
|
+
*/
|
|
32168
|
+
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
32169
|
+
if (!options)
|
|
32170
|
+
options = {};
|
|
32171
|
+
var object = {};
|
|
32172
|
+
if (options.arrays || options.defaults)
|
|
32173
|
+
object.methods = [];
|
|
32174
|
+
if (options.defaults)
|
|
32175
|
+
object.generateOmittedAsInternal = false;
|
|
32176
|
+
if (message.methods && message.methods.length) {
|
|
32177
|
+
object.methods = [];
|
|
32178
|
+
for (var j = 0; j < message.methods.length; ++j)
|
|
32179
|
+
object.methods[j] = message.methods[j];
|
|
32180
|
+
}
|
|
32181
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
32182
|
+
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
32183
|
+
return object;
|
|
32184
|
+
};
|
|
32185
|
+
|
|
32186
|
+
/**
|
|
32187
|
+
* Converts this SelectiveGapicGeneration to JSON.
|
|
32188
|
+
* @function toJSON
|
|
32189
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32190
|
+
* @instance
|
|
32191
|
+
* @returns {Object.<string,*>} JSON object
|
|
32192
|
+
*/
|
|
32193
|
+
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
32194
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32195
|
+
};
|
|
32196
|
+
|
|
32197
|
+
/**
|
|
32198
|
+
* Gets the default type url for SelectiveGapicGeneration
|
|
32199
|
+
* @function getTypeUrl
|
|
32200
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32201
|
+
* @static
|
|
32202
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
32203
|
+
* @returns {string} The default type url
|
|
32204
|
+
*/
|
|
32205
|
+
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
32206
|
+
if (typeUrlPrefix === undefined) {
|
|
32207
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
32208
|
+
}
|
|
32209
|
+
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
32210
|
+
};
|
|
32211
|
+
|
|
32212
|
+
return SelectiveGapicGeneration;
|
|
32213
|
+
})();
|
|
32214
|
+
|
|
32215
|
+
/**
|
|
32216
|
+
* LaunchStage enum.
|
|
32217
|
+
* @name google.api.LaunchStage
|
|
32218
|
+
* @enum {number}
|
|
32219
|
+
* @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
|
|
32220
|
+
* @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
|
|
32221
|
+
* @property {number} PRELAUNCH=7 PRELAUNCH value
|
|
32222
|
+
* @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
|
|
32223
|
+
* @property {number} ALPHA=2 ALPHA value
|
|
32224
|
+
* @property {number} BETA=3 BETA value
|
|
32225
|
+
* @property {number} GA=4 GA value
|
|
32226
|
+
* @property {number} DEPRECATED=5 DEPRECATED value
|
|
32227
|
+
*/
|
|
32228
|
+
api.LaunchStage = (function() {
|
|
32229
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
32230
|
+
values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
|
|
32231
|
+
values[valuesById[6] = "UNIMPLEMENTED"] = 6;
|
|
32232
|
+
values[valuesById[7] = "PRELAUNCH"] = 7;
|
|
32233
|
+
values[valuesById[1] = "EARLY_ACCESS"] = 1;
|
|
32234
|
+
values[valuesById[2] = "ALPHA"] = 2;
|
|
32235
|
+
values[valuesById[3] = "BETA"] = 3;
|
|
32236
|
+
values[valuesById[4] = "GA"] = 4;
|
|
32237
|
+
values[valuesById[5] = "DEPRECATED"] = 5;
|
|
32238
|
+
return values;
|
|
31625
32239
|
})();
|
|
31626
32240
|
|
|
31627
32241
|
/**
|
|
@@ -32583,6 +33197,7 @@
|
|
|
32583
33197
|
* @name google.protobuf.Edition
|
|
32584
33198
|
* @enum {number}
|
|
32585
33199
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
33200
|
+
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
32586
33201
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
32587
33202
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
32588
33203
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -32597,6 +33212,7 @@
|
|
|
32597
33212
|
protobuf.Edition = (function() {
|
|
32598
33213
|
var valuesById = {}, values = Object.create(valuesById);
|
|
32599
33214
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
33215
|
+
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
32600
33216
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
32601
33217
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
32602
33218
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -32621,6 +33237,7 @@
|
|
|
32621
33237
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
32622
33238
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
32623
33239
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
33240
|
+
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
32624
33241
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
32625
33242
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
32626
33243
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -32643,6 +33260,7 @@
|
|
|
32643
33260
|
this.dependency = [];
|
|
32644
33261
|
this.publicDependency = [];
|
|
32645
33262
|
this.weakDependency = [];
|
|
33263
|
+
this.optionDependency = [];
|
|
32646
33264
|
this.messageType = [];
|
|
32647
33265
|
this.enumType = [];
|
|
32648
33266
|
this.service = [];
|
|
@@ -32693,6 +33311,14 @@
|
|
|
32693
33311
|
*/
|
|
32694
33312
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
32695
33313
|
|
|
33314
|
+
/**
|
|
33315
|
+
* FileDescriptorProto optionDependency.
|
|
33316
|
+
* @member {Array.<string>} optionDependency
|
|
33317
|
+
* @memberof google.protobuf.FileDescriptorProto
|
|
33318
|
+
* @instance
|
|
33319
|
+
*/
|
|
33320
|
+
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
33321
|
+
|
|
32696
33322
|
/**
|
|
32697
33323
|
* FileDescriptorProto messageType.
|
|
32698
33324
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -32814,6 +33440,9 @@
|
|
|
32814
33440
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
32815
33441
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
32816
33442
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
33443
|
+
if (message.optionDependency != null && message.optionDependency.length)
|
|
33444
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
33445
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
32817
33446
|
return writer;
|
|
32818
33447
|
};
|
|
32819
33448
|
|
|
@@ -32886,6 +33515,12 @@
|
|
|
32886
33515
|
message.weakDependency.push(reader.int32());
|
|
32887
33516
|
break;
|
|
32888
33517
|
}
|
|
33518
|
+
case 15: {
|
|
33519
|
+
if (!(message.optionDependency && message.optionDependency.length))
|
|
33520
|
+
message.optionDependency = [];
|
|
33521
|
+
message.optionDependency.push(reader.string());
|
|
33522
|
+
break;
|
|
33523
|
+
}
|
|
32889
33524
|
case 4: {
|
|
32890
33525
|
if (!(message.messageType && message.messageType.length))
|
|
32891
33526
|
message.messageType = [];
|
|
@@ -32988,6 +33623,13 @@
|
|
|
32988
33623
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
32989
33624
|
return "weakDependency: integer[] expected";
|
|
32990
33625
|
}
|
|
33626
|
+
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
33627
|
+
if (!Array.isArray(message.optionDependency))
|
|
33628
|
+
return "optionDependency: array expected";
|
|
33629
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
33630
|
+
if (!$util.isString(message.optionDependency[i]))
|
|
33631
|
+
return "optionDependency: string[] expected";
|
|
33632
|
+
}
|
|
32991
33633
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
32992
33634
|
if (!Array.isArray(message.messageType))
|
|
32993
33635
|
return "messageType: array expected";
|
|
@@ -33042,6 +33684,7 @@
|
|
|
33042
33684
|
default:
|
|
33043
33685
|
return "edition: enum value expected";
|
|
33044
33686
|
case 0:
|
|
33687
|
+
case 900:
|
|
33045
33688
|
case 998:
|
|
33046
33689
|
case 999:
|
|
33047
33690
|
case 1000:
|
|
@@ -33094,6 +33737,13 @@
|
|
|
33094
33737
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
33095
33738
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
33096
33739
|
}
|
|
33740
|
+
if (object.optionDependency) {
|
|
33741
|
+
if (!Array.isArray(object.optionDependency))
|
|
33742
|
+
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
33743
|
+
message.optionDependency = [];
|
|
33744
|
+
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
33745
|
+
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
33746
|
+
}
|
|
33097
33747
|
if (object.messageType) {
|
|
33098
33748
|
if (!Array.isArray(object.messageType))
|
|
33099
33749
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -33157,6 +33807,10 @@
|
|
|
33157
33807
|
case 0:
|
|
33158
33808
|
message.edition = 0;
|
|
33159
33809
|
break;
|
|
33810
|
+
case "EDITION_LEGACY":
|
|
33811
|
+
case 900:
|
|
33812
|
+
message.edition = 900;
|
|
33813
|
+
break;
|
|
33160
33814
|
case "EDITION_PROTO2":
|
|
33161
33815
|
case 998:
|
|
33162
33816
|
message.edition = 998;
|
|
@@ -33222,6 +33876,7 @@
|
|
|
33222
33876
|
object.extension = [];
|
|
33223
33877
|
object.publicDependency = [];
|
|
33224
33878
|
object.weakDependency = [];
|
|
33879
|
+
object.optionDependency = [];
|
|
33225
33880
|
}
|
|
33226
33881
|
if (options.defaults) {
|
|
33227
33882
|
object.name = "";
|
|
@@ -33278,6 +33933,11 @@
|
|
|
33278
33933
|
object.syntax = message.syntax;
|
|
33279
33934
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
33280
33935
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
33936
|
+
if (message.optionDependency && message.optionDependency.length) {
|
|
33937
|
+
object.optionDependency = [];
|
|
33938
|
+
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
33939
|
+
object.optionDependency[j] = message.optionDependency[j];
|
|
33940
|
+
}
|
|
33281
33941
|
return object;
|
|
33282
33942
|
};
|
|
33283
33943
|
|
|
@@ -33326,6 +33986,7 @@
|
|
|
33326
33986
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
33327
33987
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
33328
33988
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
33989
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
33329
33990
|
*/
|
|
33330
33991
|
|
|
33331
33992
|
/**
|
|
@@ -33431,6 +34092,14 @@
|
|
|
33431
34092
|
*/
|
|
33432
34093
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
33433
34094
|
|
|
34095
|
+
/**
|
|
34096
|
+
* DescriptorProto visibility.
|
|
34097
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
34098
|
+
* @memberof google.protobuf.DescriptorProto
|
|
34099
|
+
* @instance
|
|
34100
|
+
*/
|
|
34101
|
+
DescriptorProto.prototype.visibility = 0;
|
|
34102
|
+
|
|
33434
34103
|
/**
|
|
33435
34104
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
33436
34105
|
* @function create
|
|
@@ -33483,6 +34152,8 @@
|
|
|
33483
34152
|
if (message.reservedName != null && message.reservedName.length)
|
|
33484
34153
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
33485
34154
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
34155
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
34156
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
33486
34157
|
return writer;
|
|
33487
34158
|
};
|
|
33488
34159
|
|
|
@@ -33575,6 +34246,10 @@
|
|
|
33575
34246
|
message.reservedName.push(reader.string());
|
|
33576
34247
|
break;
|
|
33577
34248
|
}
|
|
34249
|
+
case 11: {
|
|
34250
|
+
message.visibility = reader.int32();
|
|
34251
|
+
break;
|
|
34252
|
+
}
|
|
33578
34253
|
default:
|
|
33579
34254
|
reader.skipType(tag & 7);
|
|
33580
34255
|
break;
|
|
@@ -33688,6 +34363,15 @@
|
|
|
33688
34363
|
if (!$util.isString(message.reservedName[i]))
|
|
33689
34364
|
return "reservedName: string[] expected";
|
|
33690
34365
|
}
|
|
34366
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
34367
|
+
switch (message.visibility) {
|
|
34368
|
+
default:
|
|
34369
|
+
return "visibility: enum value expected";
|
|
34370
|
+
case 0:
|
|
34371
|
+
case 1:
|
|
34372
|
+
case 2:
|
|
34373
|
+
break;
|
|
34374
|
+
}
|
|
33691
34375
|
return null;
|
|
33692
34376
|
};
|
|
33693
34377
|
|
|
@@ -33787,6 +34471,26 @@
|
|
|
33787
34471
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
33788
34472
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
33789
34473
|
}
|
|
34474
|
+
switch (object.visibility) {
|
|
34475
|
+
default:
|
|
34476
|
+
if (typeof object.visibility === "number") {
|
|
34477
|
+
message.visibility = object.visibility;
|
|
34478
|
+
break;
|
|
34479
|
+
}
|
|
34480
|
+
break;
|
|
34481
|
+
case "VISIBILITY_UNSET":
|
|
34482
|
+
case 0:
|
|
34483
|
+
message.visibility = 0;
|
|
34484
|
+
break;
|
|
34485
|
+
case "VISIBILITY_LOCAL":
|
|
34486
|
+
case 1:
|
|
34487
|
+
message.visibility = 1;
|
|
34488
|
+
break;
|
|
34489
|
+
case "VISIBILITY_EXPORT":
|
|
34490
|
+
case 2:
|
|
34491
|
+
message.visibility = 2;
|
|
34492
|
+
break;
|
|
34493
|
+
}
|
|
33790
34494
|
return message;
|
|
33791
34495
|
};
|
|
33792
34496
|
|
|
@@ -33816,6 +34520,7 @@
|
|
|
33816
34520
|
if (options.defaults) {
|
|
33817
34521
|
object.name = "";
|
|
33818
34522
|
object.options = null;
|
|
34523
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
33819
34524
|
}
|
|
33820
34525
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
33821
34526
|
object.name = message.name;
|
|
@@ -33861,6 +34566,8 @@
|
|
|
33861
34566
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
33862
34567
|
object.reservedName[j] = message.reservedName[j];
|
|
33863
34568
|
}
|
|
34569
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
34570
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
33864
34571
|
return object;
|
|
33865
34572
|
};
|
|
33866
34573
|
|
|
@@ -35905,6 +36612,7 @@
|
|
|
35905
36612
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
35906
36613
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
35907
36614
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
36615
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
35908
36616
|
*/
|
|
35909
36617
|
|
|
35910
36618
|
/**
|
|
@@ -35965,6 +36673,14 @@
|
|
|
35965
36673
|
*/
|
|
35966
36674
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
35967
36675
|
|
|
36676
|
+
/**
|
|
36677
|
+
* EnumDescriptorProto visibility.
|
|
36678
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
36679
|
+
* @memberof google.protobuf.EnumDescriptorProto
|
|
36680
|
+
* @instance
|
|
36681
|
+
*/
|
|
36682
|
+
EnumDescriptorProto.prototype.visibility = 0;
|
|
36683
|
+
|
|
35968
36684
|
/**
|
|
35969
36685
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
35970
36686
|
* @function create
|
|
@@ -36002,6 +36718,8 @@
|
|
|
36002
36718
|
if (message.reservedName != null && message.reservedName.length)
|
|
36003
36719
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
36004
36720
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
36721
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
36722
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
36005
36723
|
return writer;
|
|
36006
36724
|
};
|
|
36007
36725
|
|
|
@@ -36064,6 +36782,10 @@
|
|
|
36064
36782
|
message.reservedName.push(reader.string());
|
|
36065
36783
|
break;
|
|
36066
36784
|
}
|
|
36785
|
+
case 6: {
|
|
36786
|
+
message.visibility = reader.int32();
|
|
36787
|
+
break;
|
|
36788
|
+
}
|
|
36067
36789
|
default:
|
|
36068
36790
|
reader.skipType(tag & 7);
|
|
36069
36791
|
break;
|
|
@@ -36132,6 +36854,15 @@
|
|
|
36132
36854
|
if (!$util.isString(message.reservedName[i]))
|
|
36133
36855
|
return "reservedName: string[] expected";
|
|
36134
36856
|
}
|
|
36857
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
36858
|
+
switch (message.visibility) {
|
|
36859
|
+
default:
|
|
36860
|
+
return "visibility: enum value expected";
|
|
36861
|
+
case 0:
|
|
36862
|
+
case 1:
|
|
36863
|
+
case 2:
|
|
36864
|
+
break;
|
|
36865
|
+
}
|
|
36135
36866
|
return null;
|
|
36136
36867
|
};
|
|
36137
36868
|
|
|
@@ -36181,6 +36912,26 @@
|
|
|
36181
36912
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
36182
36913
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
36183
36914
|
}
|
|
36915
|
+
switch (object.visibility) {
|
|
36916
|
+
default:
|
|
36917
|
+
if (typeof object.visibility === "number") {
|
|
36918
|
+
message.visibility = object.visibility;
|
|
36919
|
+
break;
|
|
36920
|
+
}
|
|
36921
|
+
break;
|
|
36922
|
+
case "VISIBILITY_UNSET":
|
|
36923
|
+
case 0:
|
|
36924
|
+
message.visibility = 0;
|
|
36925
|
+
break;
|
|
36926
|
+
case "VISIBILITY_LOCAL":
|
|
36927
|
+
case 1:
|
|
36928
|
+
message.visibility = 1;
|
|
36929
|
+
break;
|
|
36930
|
+
case "VISIBILITY_EXPORT":
|
|
36931
|
+
case 2:
|
|
36932
|
+
message.visibility = 2;
|
|
36933
|
+
break;
|
|
36934
|
+
}
|
|
36184
36935
|
return message;
|
|
36185
36936
|
};
|
|
36186
36937
|
|
|
@@ -36205,6 +36956,7 @@
|
|
|
36205
36956
|
if (options.defaults) {
|
|
36206
36957
|
object.name = "";
|
|
36207
36958
|
object.options = null;
|
|
36959
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
36208
36960
|
}
|
|
36209
36961
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
36210
36962
|
object.name = message.name;
|
|
@@ -36225,6 +36977,8 @@
|
|
|
36225
36977
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
36226
36978
|
object.reservedName[j] = message.reservedName[j];
|
|
36227
36979
|
}
|
|
36980
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
36981
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
36228
36982
|
return object;
|
|
36229
36983
|
};
|
|
36230
36984
|
|
|
@@ -38543,6 +39297,7 @@
|
|
|
38543
39297
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
38544
39298
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
38545
39299
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
39300
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
38546
39301
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
38547
39302
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
38548
39303
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -38663,6 +39418,14 @@
|
|
|
38663
39418
|
*/
|
|
38664
39419
|
FieldOptions.prototype.features = null;
|
|
38665
39420
|
|
|
39421
|
+
/**
|
|
39422
|
+
* FieldOptions featureSupport.
|
|
39423
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
39424
|
+
* @memberof google.protobuf.FieldOptions
|
|
39425
|
+
* @instance
|
|
39426
|
+
*/
|
|
39427
|
+
FieldOptions.prototype.featureSupport = null;
|
|
39428
|
+
|
|
38666
39429
|
/**
|
|
38667
39430
|
* FieldOptions uninterpretedOption.
|
|
38668
39431
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -38737,6 +39500,8 @@
|
|
|
38737
39500
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
38738
39501
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
38739
39502
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
39503
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
39504
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
38740
39505
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
38741
39506
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
38742
39507
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -38838,6 +39603,10 @@
|
|
|
38838
39603
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
38839
39604
|
break;
|
|
38840
39605
|
}
|
|
39606
|
+
case 22: {
|
|
39607
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
39608
|
+
break;
|
|
39609
|
+
}
|
|
38841
39610
|
case 999: {
|
|
38842
39611
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
38843
39612
|
message.uninterpretedOption = [];
|
|
@@ -38973,6 +39742,11 @@
|
|
|
38973
39742
|
if (error)
|
|
38974
39743
|
return "features." + error;
|
|
38975
39744
|
}
|
|
39745
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
39746
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
39747
|
+
if (error)
|
|
39748
|
+
return "featureSupport." + error;
|
|
39749
|
+
}
|
|
38976
39750
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
38977
39751
|
if (!Array.isArray(message.uninterpretedOption))
|
|
38978
39752
|
return "uninterpretedOption: array expected";
|
|
@@ -39161,6 +39935,11 @@
|
|
|
39161
39935
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
39162
39936
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
39163
39937
|
}
|
|
39938
|
+
if (object.featureSupport != null) {
|
|
39939
|
+
if (typeof object.featureSupport !== "object")
|
|
39940
|
+
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
39941
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
39942
|
+
}
|
|
39164
39943
|
if (object.uninterpretedOption) {
|
|
39165
39944
|
if (!Array.isArray(object.uninterpretedOption))
|
|
39166
39945
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -39258,6 +40037,7 @@
|
|
|
39258
40037
|
object.debugRedact = false;
|
|
39259
40038
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
39260
40039
|
object.features = null;
|
|
40040
|
+
object.featureSupport = null;
|
|
39261
40041
|
object[".google.api.resourceReference"] = null;
|
|
39262
40042
|
}
|
|
39263
40043
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -39290,6 +40070,8 @@
|
|
|
39290
40070
|
}
|
|
39291
40071
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
39292
40072
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
40073
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
40074
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
39293
40075
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
39294
40076
|
object.uninterpretedOption = [];
|
|
39295
40077
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -39562,6 +40344,7 @@
|
|
|
39562
40344
|
default:
|
|
39563
40345
|
return "edition: enum value expected";
|
|
39564
40346
|
case 0:
|
|
40347
|
+
case 900:
|
|
39565
40348
|
case 998:
|
|
39566
40349
|
case 999:
|
|
39567
40350
|
case 1000:
|
|
@@ -39603,6 +40386,10 @@
|
|
|
39603
40386
|
case 0:
|
|
39604
40387
|
message.edition = 0;
|
|
39605
40388
|
break;
|
|
40389
|
+
case "EDITION_LEGACY":
|
|
40390
|
+
case 900:
|
|
40391
|
+
message.edition = 900;
|
|
40392
|
+
break;
|
|
39606
40393
|
case "EDITION_PROTO2":
|
|
39607
40394
|
case 998:
|
|
39608
40395
|
message.edition = 998;
|
|
@@ -39613,93 +40400,575 @@
|
|
|
39613
40400
|
break;
|
|
39614
40401
|
case "EDITION_2023":
|
|
39615
40402
|
case 1000:
|
|
39616
|
-
message.edition = 1000;
|
|
40403
|
+
message.edition = 1000;
|
|
40404
|
+
break;
|
|
40405
|
+
case "EDITION_2024":
|
|
40406
|
+
case 1001:
|
|
40407
|
+
message.edition = 1001;
|
|
40408
|
+
break;
|
|
40409
|
+
case "EDITION_1_TEST_ONLY":
|
|
40410
|
+
case 1:
|
|
40411
|
+
message.edition = 1;
|
|
40412
|
+
break;
|
|
40413
|
+
case "EDITION_2_TEST_ONLY":
|
|
40414
|
+
case 2:
|
|
40415
|
+
message.edition = 2;
|
|
40416
|
+
break;
|
|
40417
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40418
|
+
case 99997:
|
|
40419
|
+
message.edition = 99997;
|
|
40420
|
+
break;
|
|
40421
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40422
|
+
case 99998:
|
|
40423
|
+
message.edition = 99998;
|
|
40424
|
+
break;
|
|
40425
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40426
|
+
case 99999:
|
|
40427
|
+
message.edition = 99999;
|
|
40428
|
+
break;
|
|
40429
|
+
case "EDITION_MAX":
|
|
40430
|
+
case 2147483647:
|
|
40431
|
+
message.edition = 2147483647;
|
|
40432
|
+
break;
|
|
40433
|
+
}
|
|
40434
|
+
if (object.value != null)
|
|
40435
|
+
message.value = String(object.value);
|
|
40436
|
+
return message;
|
|
40437
|
+
};
|
|
40438
|
+
|
|
40439
|
+
/**
|
|
40440
|
+
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
40441
|
+
* @function toObject
|
|
40442
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40443
|
+
* @static
|
|
40444
|
+
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
40445
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40446
|
+
* @returns {Object.<string,*>} Plain object
|
|
40447
|
+
*/
|
|
40448
|
+
EditionDefault.toObject = function toObject(message, options) {
|
|
40449
|
+
if (!options)
|
|
40450
|
+
options = {};
|
|
40451
|
+
var object = {};
|
|
40452
|
+
if (options.defaults) {
|
|
40453
|
+
object.value = "";
|
|
40454
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40455
|
+
}
|
|
40456
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
40457
|
+
object.value = message.value;
|
|
40458
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
40459
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
40460
|
+
return object;
|
|
40461
|
+
};
|
|
40462
|
+
|
|
40463
|
+
/**
|
|
40464
|
+
* Converts this EditionDefault to JSON.
|
|
40465
|
+
* @function toJSON
|
|
40466
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40467
|
+
* @instance
|
|
40468
|
+
* @returns {Object.<string,*>} JSON object
|
|
40469
|
+
*/
|
|
40470
|
+
EditionDefault.prototype.toJSON = function toJSON() {
|
|
40471
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40472
|
+
};
|
|
40473
|
+
|
|
40474
|
+
/**
|
|
40475
|
+
* Gets the default type url for EditionDefault
|
|
40476
|
+
* @function getTypeUrl
|
|
40477
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40478
|
+
* @static
|
|
40479
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40480
|
+
* @returns {string} The default type url
|
|
40481
|
+
*/
|
|
40482
|
+
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40483
|
+
if (typeUrlPrefix === undefined) {
|
|
40484
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40485
|
+
}
|
|
40486
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
40487
|
+
};
|
|
40488
|
+
|
|
40489
|
+
return EditionDefault;
|
|
40490
|
+
})();
|
|
40491
|
+
|
|
40492
|
+
FieldOptions.FeatureSupport = (function() {
|
|
40493
|
+
|
|
40494
|
+
/**
|
|
40495
|
+
* Properties of a FeatureSupport.
|
|
40496
|
+
* @memberof google.protobuf.FieldOptions
|
|
40497
|
+
* @interface IFeatureSupport
|
|
40498
|
+
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
40499
|
+
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
40500
|
+
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
40501
|
+
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
40502
|
+
*/
|
|
40503
|
+
|
|
40504
|
+
/**
|
|
40505
|
+
* Constructs a new FeatureSupport.
|
|
40506
|
+
* @memberof google.protobuf.FieldOptions
|
|
40507
|
+
* @classdesc Represents a FeatureSupport.
|
|
40508
|
+
* @implements IFeatureSupport
|
|
40509
|
+
* @constructor
|
|
40510
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
40511
|
+
*/
|
|
40512
|
+
function FeatureSupport(properties) {
|
|
40513
|
+
if (properties)
|
|
40514
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40515
|
+
if (properties[keys[i]] != null)
|
|
40516
|
+
this[keys[i]] = properties[keys[i]];
|
|
40517
|
+
}
|
|
40518
|
+
|
|
40519
|
+
/**
|
|
40520
|
+
* FeatureSupport editionIntroduced.
|
|
40521
|
+
* @member {google.protobuf.Edition} editionIntroduced
|
|
40522
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40523
|
+
* @instance
|
|
40524
|
+
*/
|
|
40525
|
+
FeatureSupport.prototype.editionIntroduced = 0;
|
|
40526
|
+
|
|
40527
|
+
/**
|
|
40528
|
+
* FeatureSupport editionDeprecated.
|
|
40529
|
+
* @member {google.protobuf.Edition} editionDeprecated
|
|
40530
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40531
|
+
* @instance
|
|
40532
|
+
*/
|
|
40533
|
+
FeatureSupport.prototype.editionDeprecated = 0;
|
|
40534
|
+
|
|
40535
|
+
/**
|
|
40536
|
+
* FeatureSupport deprecationWarning.
|
|
40537
|
+
* @member {string} deprecationWarning
|
|
40538
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40539
|
+
* @instance
|
|
40540
|
+
*/
|
|
40541
|
+
FeatureSupport.prototype.deprecationWarning = "";
|
|
40542
|
+
|
|
40543
|
+
/**
|
|
40544
|
+
* FeatureSupport editionRemoved.
|
|
40545
|
+
* @member {google.protobuf.Edition} editionRemoved
|
|
40546
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40547
|
+
* @instance
|
|
40548
|
+
*/
|
|
40549
|
+
FeatureSupport.prototype.editionRemoved = 0;
|
|
40550
|
+
|
|
40551
|
+
/**
|
|
40552
|
+
* Creates a new FeatureSupport instance using the specified properties.
|
|
40553
|
+
* @function create
|
|
40554
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40555
|
+
* @static
|
|
40556
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
40557
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
40558
|
+
*/
|
|
40559
|
+
FeatureSupport.create = function create(properties) {
|
|
40560
|
+
return new FeatureSupport(properties);
|
|
40561
|
+
};
|
|
40562
|
+
|
|
40563
|
+
/**
|
|
40564
|
+
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
40565
|
+
* @function encode
|
|
40566
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40567
|
+
* @static
|
|
40568
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
40569
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40570
|
+
* @returns {$protobuf.Writer} Writer
|
|
40571
|
+
*/
|
|
40572
|
+
FeatureSupport.encode = function encode(message, writer) {
|
|
40573
|
+
if (!writer)
|
|
40574
|
+
writer = $Writer.create();
|
|
40575
|
+
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
40576
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
40577
|
+
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
40578
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
40579
|
+
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
40580
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
40581
|
+
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
40582
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
40583
|
+
return writer;
|
|
40584
|
+
};
|
|
40585
|
+
|
|
40586
|
+
/**
|
|
40587
|
+
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
40588
|
+
* @function encodeDelimited
|
|
40589
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40590
|
+
* @static
|
|
40591
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
40592
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40593
|
+
* @returns {$protobuf.Writer} Writer
|
|
40594
|
+
*/
|
|
40595
|
+
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40596
|
+
return this.encode(message, writer).ldelim();
|
|
40597
|
+
};
|
|
40598
|
+
|
|
40599
|
+
/**
|
|
40600
|
+
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
40601
|
+
* @function decode
|
|
40602
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40603
|
+
* @static
|
|
40604
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40605
|
+
* @param {number} [length] Message length if known beforehand
|
|
40606
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
40607
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40608
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40609
|
+
*/
|
|
40610
|
+
FeatureSupport.decode = function decode(reader, length, error) {
|
|
40611
|
+
if (!(reader instanceof $Reader))
|
|
40612
|
+
reader = $Reader.create(reader);
|
|
40613
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
40614
|
+
while (reader.pos < end) {
|
|
40615
|
+
var tag = reader.uint32();
|
|
40616
|
+
if (tag === error)
|
|
40617
|
+
break;
|
|
40618
|
+
switch (tag >>> 3) {
|
|
40619
|
+
case 1: {
|
|
40620
|
+
message.editionIntroduced = reader.int32();
|
|
40621
|
+
break;
|
|
40622
|
+
}
|
|
40623
|
+
case 2: {
|
|
40624
|
+
message.editionDeprecated = reader.int32();
|
|
40625
|
+
break;
|
|
40626
|
+
}
|
|
40627
|
+
case 3: {
|
|
40628
|
+
message.deprecationWarning = reader.string();
|
|
40629
|
+
break;
|
|
40630
|
+
}
|
|
40631
|
+
case 4: {
|
|
40632
|
+
message.editionRemoved = reader.int32();
|
|
40633
|
+
break;
|
|
40634
|
+
}
|
|
40635
|
+
default:
|
|
40636
|
+
reader.skipType(tag & 7);
|
|
40637
|
+
break;
|
|
40638
|
+
}
|
|
40639
|
+
}
|
|
40640
|
+
return message;
|
|
40641
|
+
};
|
|
40642
|
+
|
|
40643
|
+
/**
|
|
40644
|
+
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
40645
|
+
* @function decodeDelimited
|
|
40646
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40647
|
+
* @static
|
|
40648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40649
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
40650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40652
|
+
*/
|
|
40653
|
+
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
40654
|
+
if (!(reader instanceof $Reader))
|
|
40655
|
+
reader = new $Reader(reader);
|
|
40656
|
+
return this.decode(reader, reader.uint32());
|
|
40657
|
+
};
|
|
40658
|
+
|
|
40659
|
+
/**
|
|
40660
|
+
* Verifies a FeatureSupport message.
|
|
40661
|
+
* @function verify
|
|
40662
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40663
|
+
* @static
|
|
40664
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40665
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40666
|
+
*/
|
|
40667
|
+
FeatureSupport.verify = function verify(message) {
|
|
40668
|
+
if (typeof message !== "object" || message === null)
|
|
40669
|
+
return "object expected";
|
|
40670
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
40671
|
+
switch (message.editionIntroduced) {
|
|
40672
|
+
default:
|
|
40673
|
+
return "editionIntroduced: enum value expected";
|
|
40674
|
+
case 0:
|
|
40675
|
+
case 900:
|
|
40676
|
+
case 998:
|
|
40677
|
+
case 999:
|
|
40678
|
+
case 1000:
|
|
40679
|
+
case 1001:
|
|
40680
|
+
case 1:
|
|
40681
|
+
case 2:
|
|
40682
|
+
case 99997:
|
|
40683
|
+
case 99998:
|
|
40684
|
+
case 99999:
|
|
40685
|
+
case 2147483647:
|
|
40686
|
+
break;
|
|
40687
|
+
}
|
|
40688
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
40689
|
+
switch (message.editionDeprecated) {
|
|
40690
|
+
default:
|
|
40691
|
+
return "editionDeprecated: enum value expected";
|
|
40692
|
+
case 0:
|
|
40693
|
+
case 900:
|
|
40694
|
+
case 998:
|
|
40695
|
+
case 999:
|
|
40696
|
+
case 1000:
|
|
40697
|
+
case 1001:
|
|
40698
|
+
case 1:
|
|
40699
|
+
case 2:
|
|
40700
|
+
case 99997:
|
|
40701
|
+
case 99998:
|
|
40702
|
+
case 99999:
|
|
40703
|
+
case 2147483647:
|
|
40704
|
+
break;
|
|
40705
|
+
}
|
|
40706
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
40707
|
+
if (!$util.isString(message.deprecationWarning))
|
|
40708
|
+
return "deprecationWarning: string expected";
|
|
40709
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
40710
|
+
switch (message.editionRemoved) {
|
|
40711
|
+
default:
|
|
40712
|
+
return "editionRemoved: enum value expected";
|
|
40713
|
+
case 0:
|
|
40714
|
+
case 900:
|
|
40715
|
+
case 998:
|
|
40716
|
+
case 999:
|
|
40717
|
+
case 1000:
|
|
40718
|
+
case 1001:
|
|
40719
|
+
case 1:
|
|
40720
|
+
case 2:
|
|
40721
|
+
case 99997:
|
|
40722
|
+
case 99998:
|
|
40723
|
+
case 99999:
|
|
40724
|
+
case 2147483647:
|
|
40725
|
+
break;
|
|
40726
|
+
}
|
|
40727
|
+
return null;
|
|
40728
|
+
};
|
|
40729
|
+
|
|
40730
|
+
/**
|
|
40731
|
+
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
40732
|
+
* @function fromObject
|
|
40733
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40734
|
+
* @static
|
|
40735
|
+
* @param {Object.<string,*>} object Plain object
|
|
40736
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
40737
|
+
*/
|
|
40738
|
+
FeatureSupport.fromObject = function fromObject(object) {
|
|
40739
|
+
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
40740
|
+
return object;
|
|
40741
|
+
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
40742
|
+
switch (object.editionIntroduced) {
|
|
40743
|
+
default:
|
|
40744
|
+
if (typeof object.editionIntroduced === "number") {
|
|
40745
|
+
message.editionIntroduced = object.editionIntroduced;
|
|
40746
|
+
break;
|
|
40747
|
+
}
|
|
40748
|
+
break;
|
|
40749
|
+
case "EDITION_UNKNOWN":
|
|
40750
|
+
case 0:
|
|
40751
|
+
message.editionIntroduced = 0;
|
|
40752
|
+
break;
|
|
40753
|
+
case "EDITION_LEGACY":
|
|
40754
|
+
case 900:
|
|
40755
|
+
message.editionIntroduced = 900;
|
|
40756
|
+
break;
|
|
40757
|
+
case "EDITION_PROTO2":
|
|
40758
|
+
case 998:
|
|
40759
|
+
message.editionIntroduced = 998;
|
|
40760
|
+
break;
|
|
40761
|
+
case "EDITION_PROTO3":
|
|
40762
|
+
case 999:
|
|
40763
|
+
message.editionIntroduced = 999;
|
|
40764
|
+
break;
|
|
40765
|
+
case "EDITION_2023":
|
|
40766
|
+
case 1000:
|
|
40767
|
+
message.editionIntroduced = 1000;
|
|
40768
|
+
break;
|
|
40769
|
+
case "EDITION_2024":
|
|
40770
|
+
case 1001:
|
|
40771
|
+
message.editionIntroduced = 1001;
|
|
40772
|
+
break;
|
|
40773
|
+
case "EDITION_1_TEST_ONLY":
|
|
40774
|
+
case 1:
|
|
40775
|
+
message.editionIntroduced = 1;
|
|
40776
|
+
break;
|
|
40777
|
+
case "EDITION_2_TEST_ONLY":
|
|
40778
|
+
case 2:
|
|
40779
|
+
message.editionIntroduced = 2;
|
|
40780
|
+
break;
|
|
40781
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40782
|
+
case 99997:
|
|
40783
|
+
message.editionIntroduced = 99997;
|
|
40784
|
+
break;
|
|
40785
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40786
|
+
case 99998:
|
|
40787
|
+
message.editionIntroduced = 99998;
|
|
40788
|
+
break;
|
|
40789
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40790
|
+
case 99999:
|
|
40791
|
+
message.editionIntroduced = 99999;
|
|
40792
|
+
break;
|
|
40793
|
+
case "EDITION_MAX":
|
|
40794
|
+
case 2147483647:
|
|
40795
|
+
message.editionIntroduced = 2147483647;
|
|
40796
|
+
break;
|
|
40797
|
+
}
|
|
40798
|
+
switch (object.editionDeprecated) {
|
|
40799
|
+
default:
|
|
40800
|
+
if (typeof object.editionDeprecated === "number") {
|
|
40801
|
+
message.editionDeprecated = object.editionDeprecated;
|
|
40802
|
+
break;
|
|
40803
|
+
}
|
|
40804
|
+
break;
|
|
40805
|
+
case "EDITION_UNKNOWN":
|
|
40806
|
+
case 0:
|
|
40807
|
+
message.editionDeprecated = 0;
|
|
40808
|
+
break;
|
|
40809
|
+
case "EDITION_LEGACY":
|
|
40810
|
+
case 900:
|
|
40811
|
+
message.editionDeprecated = 900;
|
|
40812
|
+
break;
|
|
40813
|
+
case "EDITION_PROTO2":
|
|
40814
|
+
case 998:
|
|
40815
|
+
message.editionDeprecated = 998;
|
|
40816
|
+
break;
|
|
40817
|
+
case "EDITION_PROTO3":
|
|
40818
|
+
case 999:
|
|
40819
|
+
message.editionDeprecated = 999;
|
|
40820
|
+
break;
|
|
40821
|
+
case "EDITION_2023":
|
|
40822
|
+
case 1000:
|
|
40823
|
+
message.editionDeprecated = 1000;
|
|
40824
|
+
break;
|
|
40825
|
+
case "EDITION_2024":
|
|
40826
|
+
case 1001:
|
|
40827
|
+
message.editionDeprecated = 1001;
|
|
40828
|
+
break;
|
|
40829
|
+
case "EDITION_1_TEST_ONLY":
|
|
40830
|
+
case 1:
|
|
40831
|
+
message.editionDeprecated = 1;
|
|
40832
|
+
break;
|
|
40833
|
+
case "EDITION_2_TEST_ONLY":
|
|
40834
|
+
case 2:
|
|
40835
|
+
message.editionDeprecated = 2;
|
|
40836
|
+
break;
|
|
40837
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40838
|
+
case 99997:
|
|
40839
|
+
message.editionDeprecated = 99997;
|
|
40840
|
+
break;
|
|
40841
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40842
|
+
case 99998:
|
|
40843
|
+
message.editionDeprecated = 99998;
|
|
40844
|
+
break;
|
|
40845
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40846
|
+
case 99999:
|
|
40847
|
+
message.editionDeprecated = 99999;
|
|
40848
|
+
break;
|
|
40849
|
+
case "EDITION_MAX":
|
|
40850
|
+
case 2147483647:
|
|
40851
|
+
message.editionDeprecated = 2147483647;
|
|
40852
|
+
break;
|
|
40853
|
+
}
|
|
40854
|
+
if (object.deprecationWarning != null)
|
|
40855
|
+
message.deprecationWarning = String(object.deprecationWarning);
|
|
40856
|
+
switch (object.editionRemoved) {
|
|
40857
|
+
default:
|
|
40858
|
+
if (typeof object.editionRemoved === "number") {
|
|
40859
|
+
message.editionRemoved = object.editionRemoved;
|
|
40860
|
+
break;
|
|
40861
|
+
}
|
|
40862
|
+
break;
|
|
40863
|
+
case "EDITION_UNKNOWN":
|
|
40864
|
+
case 0:
|
|
40865
|
+
message.editionRemoved = 0;
|
|
40866
|
+
break;
|
|
40867
|
+
case "EDITION_LEGACY":
|
|
40868
|
+
case 900:
|
|
40869
|
+
message.editionRemoved = 900;
|
|
40870
|
+
break;
|
|
40871
|
+
case "EDITION_PROTO2":
|
|
40872
|
+
case 998:
|
|
40873
|
+
message.editionRemoved = 998;
|
|
40874
|
+
break;
|
|
40875
|
+
case "EDITION_PROTO3":
|
|
40876
|
+
case 999:
|
|
40877
|
+
message.editionRemoved = 999;
|
|
40878
|
+
break;
|
|
40879
|
+
case "EDITION_2023":
|
|
40880
|
+
case 1000:
|
|
40881
|
+
message.editionRemoved = 1000;
|
|
39617
40882
|
break;
|
|
39618
40883
|
case "EDITION_2024":
|
|
39619
40884
|
case 1001:
|
|
39620
|
-
message.
|
|
40885
|
+
message.editionRemoved = 1001;
|
|
39621
40886
|
break;
|
|
39622
40887
|
case "EDITION_1_TEST_ONLY":
|
|
39623
40888
|
case 1:
|
|
39624
|
-
message.
|
|
40889
|
+
message.editionRemoved = 1;
|
|
39625
40890
|
break;
|
|
39626
40891
|
case "EDITION_2_TEST_ONLY":
|
|
39627
40892
|
case 2:
|
|
39628
|
-
message.
|
|
40893
|
+
message.editionRemoved = 2;
|
|
39629
40894
|
break;
|
|
39630
40895
|
case "EDITION_99997_TEST_ONLY":
|
|
39631
40896
|
case 99997:
|
|
39632
|
-
message.
|
|
40897
|
+
message.editionRemoved = 99997;
|
|
39633
40898
|
break;
|
|
39634
40899
|
case "EDITION_99998_TEST_ONLY":
|
|
39635
40900
|
case 99998:
|
|
39636
|
-
message.
|
|
40901
|
+
message.editionRemoved = 99998;
|
|
39637
40902
|
break;
|
|
39638
40903
|
case "EDITION_99999_TEST_ONLY":
|
|
39639
40904
|
case 99999:
|
|
39640
|
-
message.
|
|
40905
|
+
message.editionRemoved = 99999;
|
|
39641
40906
|
break;
|
|
39642
40907
|
case "EDITION_MAX":
|
|
39643
40908
|
case 2147483647:
|
|
39644
|
-
message.
|
|
40909
|
+
message.editionRemoved = 2147483647;
|
|
39645
40910
|
break;
|
|
39646
40911
|
}
|
|
39647
|
-
if (object.value != null)
|
|
39648
|
-
message.value = String(object.value);
|
|
39649
40912
|
return message;
|
|
39650
40913
|
};
|
|
39651
40914
|
|
|
39652
40915
|
/**
|
|
39653
|
-
* Creates a plain object from
|
|
40916
|
+
* Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
|
|
39654
40917
|
* @function toObject
|
|
39655
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40918
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
39656
40919
|
* @static
|
|
39657
|
-
* @param {google.protobuf.FieldOptions.
|
|
40920
|
+
* @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
|
|
39658
40921
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39659
40922
|
* @returns {Object.<string,*>} Plain object
|
|
39660
40923
|
*/
|
|
39661
|
-
|
|
40924
|
+
FeatureSupport.toObject = function toObject(message, options) {
|
|
39662
40925
|
if (!options)
|
|
39663
40926
|
options = {};
|
|
39664
40927
|
var object = {};
|
|
39665
40928
|
if (options.defaults) {
|
|
39666
|
-
object.
|
|
39667
|
-
object.
|
|
39668
|
-
|
|
39669
|
-
|
|
39670
|
-
|
|
39671
|
-
if (message.
|
|
39672
|
-
object.
|
|
40929
|
+
object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40930
|
+
object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40931
|
+
object.deprecationWarning = "";
|
|
40932
|
+
object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40933
|
+
}
|
|
40934
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
40935
|
+
object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
|
|
40936
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
40937
|
+
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
40938
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
40939
|
+
object.deprecationWarning = message.deprecationWarning;
|
|
40940
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
40941
|
+
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
39673
40942
|
return object;
|
|
39674
40943
|
};
|
|
39675
40944
|
|
|
39676
40945
|
/**
|
|
39677
|
-
* Converts this
|
|
40946
|
+
* Converts this FeatureSupport to JSON.
|
|
39678
40947
|
* @function toJSON
|
|
39679
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40948
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
39680
40949
|
* @instance
|
|
39681
40950
|
* @returns {Object.<string,*>} JSON object
|
|
39682
40951
|
*/
|
|
39683
|
-
|
|
40952
|
+
FeatureSupport.prototype.toJSON = function toJSON() {
|
|
39684
40953
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39685
40954
|
};
|
|
39686
40955
|
|
|
39687
40956
|
/**
|
|
39688
|
-
* Gets the default type url for
|
|
40957
|
+
* Gets the default type url for FeatureSupport
|
|
39689
40958
|
* @function getTypeUrl
|
|
39690
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40959
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
39691
40960
|
* @static
|
|
39692
40961
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39693
40962
|
* @returns {string} The default type url
|
|
39694
40963
|
*/
|
|
39695
|
-
|
|
40964
|
+
FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39696
40965
|
if (typeUrlPrefix === undefined) {
|
|
39697
40966
|
typeUrlPrefix = "type.googleapis.com";
|
|
39698
40967
|
}
|
|
39699
|
-
return typeUrlPrefix + "/google.protobuf.FieldOptions.
|
|
40968
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
|
|
39700
40969
|
};
|
|
39701
40970
|
|
|
39702
|
-
return
|
|
40971
|
+
return FeatureSupport;
|
|
39703
40972
|
})();
|
|
39704
40973
|
|
|
39705
40974
|
return FieldOptions;
|
|
@@ -40294,6 +41563,7 @@
|
|
|
40294
41563
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
40295
41564
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
40296
41565
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
41566
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
40297
41567
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
40298
41568
|
*/
|
|
40299
41569
|
|
|
@@ -40337,6 +41607,14 @@
|
|
|
40337
41607
|
*/
|
|
40338
41608
|
EnumValueOptions.prototype.debugRedact = false;
|
|
40339
41609
|
|
|
41610
|
+
/**
|
|
41611
|
+
* EnumValueOptions featureSupport.
|
|
41612
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
41613
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
41614
|
+
* @instance
|
|
41615
|
+
*/
|
|
41616
|
+
EnumValueOptions.prototype.featureSupport = null;
|
|
41617
|
+
|
|
40340
41618
|
/**
|
|
40341
41619
|
* EnumValueOptions uninterpretedOption.
|
|
40342
41620
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -40375,6 +41653,8 @@
|
|
|
40375
41653
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
40376
41654
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
40377
41655
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
41656
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
41657
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
40378
41658
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
40379
41659
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
40380
41660
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -40426,6 +41706,10 @@
|
|
|
40426
41706
|
message.debugRedact = reader.bool();
|
|
40427
41707
|
break;
|
|
40428
41708
|
}
|
|
41709
|
+
case 4: {
|
|
41710
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
41711
|
+
break;
|
|
41712
|
+
}
|
|
40429
41713
|
case 999: {
|
|
40430
41714
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
40431
41715
|
message.uninterpretedOption = [];
|
|
@@ -40478,6 +41762,11 @@
|
|
|
40478
41762
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
40479
41763
|
if (typeof message.debugRedact !== "boolean")
|
|
40480
41764
|
return "debugRedact: boolean expected";
|
|
41765
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
41766
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
41767
|
+
if (error)
|
|
41768
|
+
return "featureSupport." + error;
|
|
41769
|
+
}
|
|
40481
41770
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
40482
41771
|
if (!Array.isArray(message.uninterpretedOption))
|
|
40483
41772
|
return "uninterpretedOption: array expected";
|
|
@@ -40511,6 +41800,11 @@
|
|
|
40511
41800
|
}
|
|
40512
41801
|
if (object.debugRedact != null)
|
|
40513
41802
|
message.debugRedact = Boolean(object.debugRedact);
|
|
41803
|
+
if (object.featureSupport != null) {
|
|
41804
|
+
if (typeof object.featureSupport !== "object")
|
|
41805
|
+
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
41806
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
41807
|
+
}
|
|
40514
41808
|
if (object.uninterpretedOption) {
|
|
40515
41809
|
if (!Array.isArray(object.uninterpretedOption))
|
|
40516
41810
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -40543,6 +41837,7 @@
|
|
|
40543
41837
|
object.deprecated = false;
|
|
40544
41838
|
object.features = null;
|
|
40545
41839
|
object.debugRedact = false;
|
|
41840
|
+
object.featureSupport = null;
|
|
40546
41841
|
}
|
|
40547
41842
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
40548
41843
|
object.deprecated = message.deprecated;
|
|
@@ -40550,6 +41845,8 @@
|
|
|
40550
41845
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
40551
41846
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
40552
41847
|
object.debugRedact = message.debugRedact;
|
|
41848
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
41849
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
40553
41850
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
40554
41851
|
object.uninterpretedOption = [];
|
|
40555
41852
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -41989,6 +43286,8 @@
|
|
|
41989
43286
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
41990
43287
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
41991
43288
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
43289
|
+
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
43290
|
+
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
41992
43291
|
*/
|
|
41993
43292
|
|
|
41994
43293
|
/**
|
|
@@ -42054,6 +43353,22 @@
|
|
|
42054
43353
|
*/
|
|
42055
43354
|
FeatureSet.prototype.jsonFormat = 0;
|
|
42056
43355
|
|
|
43356
|
+
/**
|
|
43357
|
+
* FeatureSet enforceNamingStyle.
|
|
43358
|
+
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
43359
|
+
* @memberof google.protobuf.FeatureSet
|
|
43360
|
+
* @instance
|
|
43361
|
+
*/
|
|
43362
|
+
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
43363
|
+
|
|
43364
|
+
/**
|
|
43365
|
+
* FeatureSet defaultSymbolVisibility.
|
|
43366
|
+
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
43367
|
+
* @memberof google.protobuf.FeatureSet
|
|
43368
|
+
* @instance
|
|
43369
|
+
*/
|
|
43370
|
+
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
43371
|
+
|
|
42057
43372
|
/**
|
|
42058
43373
|
* Creates a new FeatureSet instance using the specified properties.
|
|
42059
43374
|
* @function create
|
|
@@ -42090,6 +43405,10 @@
|
|
|
42090
43405
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
42091
43406
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
42092
43407
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
43408
|
+
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
43409
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
43410
|
+
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
43411
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
42093
43412
|
return writer;
|
|
42094
43413
|
};
|
|
42095
43414
|
|
|
@@ -42150,6 +43469,14 @@
|
|
|
42150
43469
|
message.jsonFormat = reader.int32();
|
|
42151
43470
|
break;
|
|
42152
43471
|
}
|
|
43472
|
+
case 7: {
|
|
43473
|
+
message.enforceNamingStyle = reader.int32();
|
|
43474
|
+
break;
|
|
43475
|
+
}
|
|
43476
|
+
case 8: {
|
|
43477
|
+
message.defaultSymbolVisibility = reader.int32();
|
|
43478
|
+
break;
|
|
43479
|
+
}
|
|
42153
43480
|
default:
|
|
42154
43481
|
reader.skipType(tag & 7);
|
|
42155
43482
|
break;
|
|
@@ -42240,6 +43567,26 @@
|
|
|
42240
43567
|
case 2:
|
|
42241
43568
|
break;
|
|
42242
43569
|
}
|
|
43570
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
43571
|
+
switch (message.enforceNamingStyle) {
|
|
43572
|
+
default:
|
|
43573
|
+
return "enforceNamingStyle: enum value expected";
|
|
43574
|
+
case 0:
|
|
43575
|
+
case 1:
|
|
43576
|
+
case 2:
|
|
43577
|
+
break;
|
|
43578
|
+
}
|
|
43579
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
43580
|
+
switch (message.defaultSymbolVisibility) {
|
|
43581
|
+
default:
|
|
43582
|
+
return "defaultSymbolVisibility: enum value expected";
|
|
43583
|
+
case 0:
|
|
43584
|
+
case 1:
|
|
43585
|
+
case 2:
|
|
43586
|
+
case 3:
|
|
43587
|
+
case 4:
|
|
43588
|
+
break;
|
|
43589
|
+
}
|
|
42243
43590
|
return null;
|
|
42244
43591
|
};
|
|
42245
43592
|
|
|
@@ -42379,6 +43726,54 @@
|
|
|
42379
43726
|
message.jsonFormat = 2;
|
|
42380
43727
|
break;
|
|
42381
43728
|
}
|
|
43729
|
+
switch (object.enforceNamingStyle) {
|
|
43730
|
+
default:
|
|
43731
|
+
if (typeof object.enforceNamingStyle === "number") {
|
|
43732
|
+
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
43733
|
+
break;
|
|
43734
|
+
}
|
|
43735
|
+
break;
|
|
43736
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
43737
|
+
case 0:
|
|
43738
|
+
message.enforceNamingStyle = 0;
|
|
43739
|
+
break;
|
|
43740
|
+
case "STYLE2024":
|
|
43741
|
+
case 1:
|
|
43742
|
+
message.enforceNamingStyle = 1;
|
|
43743
|
+
break;
|
|
43744
|
+
case "STYLE_LEGACY":
|
|
43745
|
+
case 2:
|
|
43746
|
+
message.enforceNamingStyle = 2;
|
|
43747
|
+
break;
|
|
43748
|
+
}
|
|
43749
|
+
switch (object.defaultSymbolVisibility) {
|
|
43750
|
+
default:
|
|
43751
|
+
if (typeof object.defaultSymbolVisibility === "number") {
|
|
43752
|
+
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
43753
|
+
break;
|
|
43754
|
+
}
|
|
43755
|
+
break;
|
|
43756
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
43757
|
+
case 0:
|
|
43758
|
+
message.defaultSymbolVisibility = 0;
|
|
43759
|
+
break;
|
|
43760
|
+
case "EXPORT_ALL":
|
|
43761
|
+
case 1:
|
|
43762
|
+
message.defaultSymbolVisibility = 1;
|
|
43763
|
+
break;
|
|
43764
|
+
case "EXPORT_TOP_LEVEL":
|
|
43765
|
+
case 2:
|
|
43766
|
+
message.defaultSymbolVisibility = 2;
|
|
43767
|
+
break;
|
|
43768
|
+
case "LOCAL_ALL":
|
|
43769
|
+
case 3:
|
|
43770
|
+
message.defaultSymbolVisibility = 3;
|
|
43771
|
+
break;
|
|
43772
|
+
case "STRICT":
|
|
43773
|
+
case 4:
|
|
43774
|
+
message.defaultSymbolVisibility = 4;
|
|
43775
|
+
break;
|
|
43776
|
+
}
|
|
42382
43777
|
return message;
|
|
42383
43778
|
};
|
|
42384
43779
|
|
|
@@ -42402,6 +43797,8 @@
|
|
|
42402
43797
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
42403
43798
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
42404
43799
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
43800
|
+
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
43801
|
+
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
42405
43802
|
}
|
|
42406
43803
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
42407
43804
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -42415,6 +43812,10 @@
|
|
|
42415
43812
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
42416
43813
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
42417
43814
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
43815
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
43816
|
+
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
43817
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
43818
|
+
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;
|
|
42418
43819
|
return object;
|
|
42419
43820
|
};
|
|
42420
43821
|
|
|
@@ -42542,6 +43943,219 @@
|
|
|
42542
43943
|
return values;
|
|
42543
43944
|
})();
|
|
42544
43945
|
|
|
43946
|
+
/**
|
|
43947
|
+
* EnforceNamingStyle enum.
|
|
43948
|
+
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
43949
|
+
* @enum {number}
|
|
43950
|
+
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
43951
|
+
* @property {number} STYLE2024=1 STYLE2024 value
|
|
43952
|
+
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
43953
|
+
*/
|
|
43954
|
+
FeatureSet.EnforceNamingStyle = (function() {
|
|
43955
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
43956
|
+
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
43957
|
+
values[valuesById[1] = "STYLE2024"] = 1;
|
|
43958
|
+
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
43959
|
+
return values;
|
|
43960
|
+
})();
|
|
43961
|
+
|
|
43962
|
+
FeatureSet.VisibilityFeature = (function() {
|
|
43963
|
+
|
|
43964
|
+
/**
|
|
43965
|
+
* Properties of a VisibilityFeature.
|
|
43966
|
+
* @memberof google.protobuf.FeatureSet
|
|
43967
|
+
* @interface IVisibilityFeature
|
|
43968
|
+
*/
|
|
43969
|
+
|
|
43970
|
+
/**
|
|
43971
|
+
* Constructs a new VisibilityFeature.
|
|
43972
|
+
* @memberof google.protobuf.FeatureSet
|
|
43973
|
+
* @classdesc Represents a VisibilityFeature.
|
|
43974
|
+
* @implements IVisibilityFeature
|
|
43975
|
+
* @constructor
|
|
43976
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
43977
|
+
*/
|
|
43978
|
+
function VisibilityFeature(properties) {
|
|
43979
|
+
if (properties)
|
|
43980
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43981
|
+
if (properties[keys[i]] != null)
|
|
43982
|
+
this[keys[i]] = properties[keys[i]];
|
|
43983
|
+
}
|
|
43984
|
+
|
|
43985
|
+
/**
|
|
43986
|
+
* Creates a new VisibilityFeature instance using the specified properties.
|
|
43987
|
+
* @function create
|
|
43988
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
43989
|
+
* @static
|
|
43990
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
43991
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
43992
|
+
*/
|
|
43993
|
+
VisibilityFeature.create = function create(properties) {
|
|
43994
|
+
return new VisibilityFeature(properties);
|
|
43995
|
+
};
|
|
43996
|
+
|
|
43997
|
+
/**
|
|
43998
|
+
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
43999
|
+
* @function encode
|
|
44000
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44001
|
+
* @static
|
|
44002
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
44003
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44004
|
+
* @returns {$protobuf.Writer} Writer
|
|
44005
|
+
*/
|
|
44006
|
+
VisibilityFeature.encode = function encode(message, writer) {
|
|
44007
|
+
if (!writer)
|
|
44008
|
+
writer = $Writer.create();
|
|
44009
|
+
return writer;
|
|
44010
|
+
};
|
|
44011
|
+
|
|
44012
|
+
/**
|
|
44013
|
+
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
44014
|
+
* @function encodeDelimited
|
|
44015
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44016
|
+
* @static
|
|
44017
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
44018
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44019
|
+
* @returns {$protobuf.Writer} Writer
|
|
44020
|
+
*/
|
|
44021
|
+
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44022
|
+
return this.encode(message, writer).ldelim();
|
|
44023
|
+
};
|
|
44024
|
+
|
|
44025
|
+
/**
|
|
44026
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
44027
|
+
* @function decode
|
|
44028
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44029
|
+
* @static
|
|
44030
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44031
|
+
* @param {number} [length] Message length if known beforehand
|
|
44032
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44035
|
+
*/
|
|
44036
|
+
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
44037
|
+
if (!(reader instanceof $Reader))
|
|
44038
|
+
reader = $Reader.create(reader);
|
|
44039
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
44040
|
+
while (reader.pos < end) {
|
|
44041
|
+
var tag = reader.uint32();
|
|
44042
|
+
if (tag === error)
|
|
44043
|
+
break;
|
|
44044
|
+
switch (tag >>> 3) {
|
|
44045
|
+
default:
|
|
44046
|
+
reader.skipType(tag & 7);
|
|
44047
|
+
break;
|
|
44048
|
+
}
|
|
44049
|
+
}
|
|
44050
|
+
return message;
|
|
44051
|
+
};
|
|
44052
|
+
|
|
44053
|
+
/**
|
|
44054
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
44055
|
+
* @function decodeDelimited
|
|
44056
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44057
|
+
* @static
|
|
44058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44059
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44060
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44061
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44062
|
+
*/
|
|
44063
|
+
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
44064
|
+
if (!(reader instanceof $Reader))
|
|
44065
|
+
reader = new $Reader(reader);
|
|
44066
|
+
return this.decode(reader, reader.uint32());
|
|
44067
|
+
};
|
|
44068
|
+
|
|
44069
|
+
/**
|
|
44070
|
+
* Verifies a VisibilityFeature message.
|
|
44071
|
+
* @function verify
|
|
44072
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44073
|
+
* @static
|
|
44074
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44075
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44076
|
+
*/
|
|
44077
|
+
VisibilityFeature.verify = function verify(message) {
|
|
44078
|
+
if (typeof message !== "object" || message === null)
|
|
44079
|
+
return "object expected";
|
|
44080
|
+
return null;
|
|
44081
|
+
};
|
|
44082
|
+
|
|
44083
|
+
/**
|
|
44084
|
+
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
44085
|
+
* @function fromObject
|
|
44086
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44087
|
+
* @static
|
|
44088
|
+
* @param {Object.<string,*>} object Plain object
|
|
44089
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44090
|
+
*/
|
|
44091
|
+
VisibilityFeature.fromObject = function fromObject(object) {
|
|
44092
|
+
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
44093
|
+
return object;
|
|
44094
|
+
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
44095
|
+
};
|
|
44096
|
+
|
|
44097
|
+
/**
|
|
44098
|
+
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
44099
|
+
* @function toObject
|
|
44100
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44101
|
+
* @static
|
|
44102
|
+
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
44103
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44104
|
+
* @returns {Object.<string,*>} Plain object
|
|
44105
|
+
*/
|
|
44106
|
+
VisibilityFeature.toObject = function toObject() {
|
|
44107
|
+
return {};
|
|
44108
|
+
};
|
|
44109
|
+
|
|
44110
|
+
/**
|
|
44111
|
+
* Converts this VisibilityFeature to JSON.
|
|
44112
|
+
* @function toJSON
|
|
44113
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44114
|
+
* @instance
|
|
44115
|
+
* @returns {Object.<string,*>} JSON object
|
|
44116
|
+
*/
|
|
44117
|
+
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
44118
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44119
|
+
};
|
|
44120
|
+
|
|
44121
|
+
/**
|
|
44122
|
+
* Gets the default type url for VisibilityFeature
|
|
44123
|
+
* @function getTypeUrl
|
|
44124
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44125
|
+
* @static
|
|
44126
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44127
|
+
* @returns {string} The default type url
|
|
44128
|
+
*/
|
|
44129
|
+
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44130
|
+
if (typeUrlPrefix === undefined) {
|
|
44131
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44132
|
+
}
|
|
44133
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
44134
|
+
};
|
|
44135
|
+
|
|
44136
|
+
/**
|
|
44137
|
+
* DefaultSymbolVisibility enum.
|
|
44138
|
+
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
44139
|
+
* @enum {number}
|
|
44140
|
+
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
44141
|
+
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
44142
|
+
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
44143
|
+
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
44144
|
+
* @property {number} STRICT=4 STRICT value
|
|
44145
|
+
*/
|
|
44146
|
+
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
44147
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
44148
|
+
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
44149
|
+
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
44150
|
+
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
44151
|
+
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
44152
|
+
values[valuesById[4] = "STRICT"] = 4;
|
|
44153
|
+
return values;
|
|
44154
|
+
})();
|
|
44155
|
+
|
|
44156
|
+
return VisibilityFeature;
|
|
44157
|
+
})();
|
|
44158
|
+
|
|
42545
44159
|
return FeatureSet;
|
|
42546
44160
|
})();
|
|
42547
44161
|
|
|
@@ -42726,6 +44340,7 @@
|
|
|
42726
44340
|
default:
|
|
42727
44341
|
return "minimumEdition: enum value expected";
|
|
42728
44342
|
case 0:
|
|
44343
|
+
case 900:
|
|
42729
44344
|
case 998:
|
|
42730
44345
|
case 999:
|
|
42731
44346
|
case 1000:
|
|
@@ -42743,6 +44358,7 @@
|
|
|
42743
44358
|
default:
|
|
42744
44359
|
return "maximumEdition: enum value expected";
|
|
42745
44360
|
case 0:
|
|
44361
|
+
case 900:
|
|
42746
44362
|
case 998:
|
|
42747
44363
|
case 999:
|
|
42748
44364
|
case 1000:
|
|
@@ -42791,6 +44407,10 @@
|
|
|
42791
44407
|
case 0:
|
|
42792
44408
|
message.minimumEdition = 0;
|
|
42793
44409
|
break;
|
|
44410
|
+
case "EDITION_LEGACY":
|
|
44411
|
+
case 900:
|
|
44412
|
+
message.minimumEdition = 900;
|
|
44413
|
+
break;
|
|
42794
44414
|
case "EDITION_PROTO2":
|
|
42795
44415
|
case 998:
|
|
42796
44416
|
message.minimumEdition = 998;
|
|
@@ -42843,6 +44463,10 @@
|
|
|
42843
44463
|
case 0:
|
|
42844
44464
|
message.maximumEdition = 0;
|
|
42845
44465
|
break;
|
|
44466
|
+
case "EDITION_LEGACY":
|
|
44467
|
+
case 900:
|
|
44468
|
+
message.maximumEdition = 900;
|
|
44469
|
+
break;
|
|
42846
44470
|
case "EDITION_PROTO2":
|
|
42847
44471
|
case 998:
|
|
42848
44472
|
message.maximumEdition = 998;
|
|
@@ -42951,7 +44575,8 @@
|
|
|
42951
44575
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
42952
44576
|
* @interface IFeatureSetEditionDefault
|
|
42953
44577
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
42954
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
44578
|
+
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
|
|
44579
|
+
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
42955
44580
|
*/
|
|
42956
44581
|
|
|
42957
44582
|
/**
|
|
@@ -42978,12 +44603,20 @@
|
|
|
42978
44603
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
42979
44604
|
|
|
42980
44605
|
/**
|
|
42981
|
-
* FeatureSetEditionDefault
|
|
42982
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
44606
|
+
* FeatureSetEditionDefault overridableFeatures.
|
|
44607
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
|
|
44608
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
44609
|
+
* @instance
|
|
44610
|
+
*/
|
|
44611
|
+
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
44612
|
+
|
|
44613
|
+
/**
|
|
44614
|
+
* FeatureSetEditionDefault fixedFeatures.
|
|
44615
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
42983
44616
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
42984
44617
|
* @instance
|
|
42985
44618
|
*/
|
|
42986
|
-
FeatureSetEditionDefault.prototype.
|
|
44619
|
+
FeatureSetEditionDefault.prototype.fixedFeatures = null;
|
|
42987
44620
|
|
|
42988
44621
|
/**
|
|
42989
44622
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -43009,10 +44642,12 @@
|
|
|
43009
44642
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
43010
44643
|
if (!writer)
|
|
43011
44644
|
writer = $Writer.create();
|
|
43012
|
-
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
43013
|
-
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
43014
44645
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
43015
44646
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
44647
|
+
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
44648
|
+
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
44649
|
+
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
44650
|
+
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
43016
44651
|
return writer;
|
|
43017
44652
|
};
|
|
43018
44653
|
|
|
@@ -43053,8 +44688,12 @@
|
|
|
43053
44688
|
message.edition = reader.int32();
|
|
43054
44689
|
break;
|
|
43055
44690
|
}
|
|
43056
|
-
case
|
|
43057
|
-
message.
|
|
44691
|
+
case 4: {
|
|
44692
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
44693
|
+
break;
|
|
44694
|
+
}
|
|
44695
|
+
case 5: {
|
|
44696
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
43058
44697
|
break;
|
|
43059
44698
|
}
|
|
43060
44699
|
default:
|
|
@@ -43097,6 +44736,7 @@
|
|
|
43097
44736
|
default:
|
|
43098
44737
|
return "edition: enum value expected";
|
|
43099
44738
|
case 0:
|
|
44739
|
+
case 900:
|
|
43100
44740
|
case 998:
|
|
43101
44741
|
case 999:
|
|
43102
44742
|
case 1000:
|
|
@@ -43109,10 +44749,15 @@
|
|
|
43109
44749
|
case 2147483647:
|
|
43110
44750
|
break;
|
|
43111
44751
|
}
|
|
43112
|
-
if (message.
|
|
43113
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
44752
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
|
|
44753
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
|
|
44754
|
+
if (error)
|
|
44755
|
+
return "overridableFeatures." + error;
|
|
44756
|
+
}
|
|
44757
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
44758
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
43114
44759
|
if (error)
|
|
43115
|
-
return "
|
|
44760
|
+
return "fixedFeatures." + error;
|
|
43116
44761
|
}
|
|
43117
44762
|
return null;
|
|
43118
44763
|
};
|
|
@@ -43140,6 +44785,10 @@
|
|
|
43140
44785
|
case 0:
|
|
43141
44786
|
message.edition = 0;
|
|
43142
44787
|
break;
|
|
44788
|
+
case "EDITION_LEGACY":
|
|
44789
|
+
case 900:
|
|
44790
|
+
message.edition = 900;
|
|
44791
|
+
break;
|
|
43143
44792
|
case "EDITION_PROTO2":
|
|
43144
44793
|
case 998:
|
|
43145
44794
|
message.edition = 998;
|
|
@@ -43181,10 +44830,15 @@
|
|
|
43181
44830
|
message.edition = 2147483647;
|
|
43182
44831
|
break;
|
|
43183
44832
|
}
|
|
43184
|
-
if (object.
|
|
43185
|
-
if (typeof object.
|
|
43186
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
43187
|
-
message.
|
|
44833
|
+
if (object.overridableFeatures != null) {
|
|
44834
|
+
if (typeof object.overridableFeatures !== "object")
|
|
44835
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
|
|
44836
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
|
|
44837
|
+
}
|
|
44838
|
+
if (object.fixedFeatures != null) {
|
|
44839
|
+
if (typeof object.fixedFeatures !== "object")
|
|
44840
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
44841
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
43188
44842
|
}
|
|
43189
44843
|
return message;
|
|
43190
44844
|
};
|
|
@@ -43203,13 +44857,16 @@
|
|
|
43203
44857
|
options = {};
|
|
43204
44858
|
var object = {};
|
|
43205
44859
|
if (options.defaults) {
|
|
43206
|
-
object.features = null;
|
|
43207
44860
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
44861
|
+
object.overridableFeatures = null;
|
|
44862
|
+
object.fixedFeatures = null;
|
|
43208
44863
|
}
|
|
43209
|
-
if (message.features != null && message.hasOwnProperty("features"))
|
|
43210
|
-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
43211
44864
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
43212
44865
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
44866
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
44867
|
+
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
44868
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
44869
|
+
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
43213
44870
|
return object;
|
|
43214
44871
|
};
|
|
43215
44872
|
|
|
@@ -44424,6 +46081,22 @@
|
|
|
44424
46081
|
return GeneratedCodeInfo;
|
|
44425
46082
|
})();
|
|
44426
46083
|
|
|
46084
|
+
/**
|
|
46085
|
+
* SymbolVisibility enum.
|
|
46086
|
+
* @name google.protobuf.SymbolVisibility
|
|
46087
|
+
* @enum {number}
|
|
46088
|
+
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
46089
|
+
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
46090
|
+
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
46091
|
+
*/
|
|
46092
|
+
protobuf.SymbolVisibility = (function() {
|
|
46093
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
46094
|
+
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
46095
|
+
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
46096
|
+
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
46097
|
+
return values;
|
|
46098
|
+
})();
|
|
46099
|
+
|
|
44427
46100
|
protobuf.Duration = (function() {
|
|
44428
46101
|
|
|
44429
46102
|
/**
|