@google-cloud/storage-control 0.6.0 → 0.6.1
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 +52 -74
- package/build/protos/protos.d.ts +4 -621
- package/build/protos/protos.js +159 -2082
- package/build/protos/protos.json +24 -209
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -13859,7 +13859,6 @@
|
|
|
13859
13859
|
* @interface ICommonLanguageSettings
|
|
13860
13860
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
13861
13861
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
13862
|
-
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
13863
13862
|
*/
|
|
13864
13863
|
|
|
13865
13864
|
/**
|
|
@@ -13894,14 +13893,6 @@
|
|
|
13894
13893
|
*/
|
|
13895
13894
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
13896
13895
|
|
|
13897
|
-
/**
|
|
13898
|
-
* CommonLanguageSettings selectiveGapicGeneration.
|
|
13899
|
-
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
13900
|
-
* @memberof google.api.CommonLanguageSettings
|
|
13901
|
-
* @instance
|
|
13902
|
-
*/
|
|
13903
|
-
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
13904
|
-
|
|
13905
13896
|
/**
|
|
13906
13897
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
13907
13898
|
* @function create
|
|
@@ -13934,8 +13925,6 @@
|
|
|
13934
13925
|
writer.int32(message.destinations[i]);
|
|
13935
13926
|
writer.ldelim();
|
|
13936
13927
|
}
|
|
13937
|
-
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
13938
|
-
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
13939
13928
|
return writer;
|
|
13940
13929
|
};
|
|
13941
13930
|
|
|
@@ -13987,10 +13976,6 @@
|
|
|
13987
13976
|
message.destinations.push(reader.int32());
|
|
13988
13977
|
break;
|
|
13989
13978
|
}
|
|
13990
|
-
case 3: {
|
|
13991
|
-
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
13992
|
-
break;
|
|
13993
|
-
}
|
|
13994
13979
|
default:
|
|
13995
13980
|
reader.skipType(tag & 7);
|
|
13996
13981
|
break;
|
|
@@ -14042,11 +14027,6 @@
|
|
|
14042
14027
|
break;
|
|
14043
14028
|
}
|
|
14044
14029
|
}
|
|
14045
|
-
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
14046
|
-
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
14047
|
-
if (error)
|
|
14048
|
-
return "selectiveGapicGeneration." + error;
|
|
14049
|
-
}
|
|
14050
14030
|
return null;
|
|
14051
14031
|
};
|
|
14052
14032
|
|
|
@@ -14089,11 +14069,6 @@
|
|
|
14089
14069
|
break;
|
|
14090
14070
|
}
|
|
14091
14071
|
}
|
|
14092
|
-
if (object.selectiveGapicGeneration != null) {
|
|
14093
|
-
if (typeof object.selectiveGapicGeneration !== "object")
|
|
14094
|
-
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
14095
|
-
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
14096
|
-
}
|
|
14097
14072
|
return message;
|
|
14098
14073
|
};
|
|
14099
14074
|
|
|
@@ -14112,10 +14087,8 @@
|
|
|
14112
14087
|
var object = {};
|
|
14113
14088
|
if (options.arrays || options.defaults)
|
|
14114
14089
|
object.destinations = [];
|
|
14115
|
-
if (options.defaults)
|
|
14090
|
+
if (options.defaults)
|
|
14116
14091
|
object.referenceDocsUri = "";
|
|
14117
|
-
object.selectiveGapicGeneration = null;
|
|
14118
|
-
}
|
|
14119
14092
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
14120
14093
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
14121
14094
|
if (message.destinations && message.destinations.length) {
|
|
@@ -14123,8 +14096,6 @@
|
|
|
14123
14096
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
14124
14097
|
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];
|
|
14125
14098
|
}
|
|
14126
|
-
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
14127
|
-
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
14128
14099
|
return object;
|
|
14129
14100
|
};
|
|
14130
14101
|
|
|
@@ -15947,7 +15918,6 @@
|
|
|
15947
15918
|
* @memberof google.api
|
|
15948
15919
|
* @interface IPythonSettings
|
|
15949
15920
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
15950
|
-
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
15951
15921
|
*/
|
|
15952
15922
|
|
|
15953
15923
|
/**
|
|
@@ -15973,14 +15943,6 @@
|
|
|
15973
15943
|
*/
|
|
15974
15944
|
PythonSettings.prototype.common = null;
|
|
15975
15945
|
|
|
15976
|
-
/**
|
|
15977
|
-
* PythonSettings experimentalFeatures.
|
|
15978
|
-
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
15979
|
-
* @memberof google.api.PythonSettings
|
|
15980
|
-
* @instance
|
|
15981
|
-
*/
|
|
15982
|
-
PythonSettings.prototype.experimentalFeatures = null;
|
|
15983
|
-
|
|
15984
15946
|
/**
|
|
15985
15947
|
* Creates a new PythonSettings instance using the specified properties.
|
|
15986
15948
|
* @function create
|
|
@@ -16007,8 +15969,6 @@
|
|
|
16007
15969
|
writer = $Writer.create();
|
|
16008
15970
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
16009
15971
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16010
|
-
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
16011
|
-
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
16012
15972
|
return writer;
|
|
16013
15973
|
};
|
|
16014
15974
|
|
|
@@ -16049,10 +16009,6 @@
|
|
|
16049
16009
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
16050
16010
|
break;
|
|
16051
16011
|
}
|
|
16052
|
-
case 2: {
|
|
16053
|
-
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
16054
|
-
break;
|
|
16055
|
-
}
|
|
16056
16012
|
default:
|
|
16057
16013
|
reader.skipType(tag & 7);
|
|
16058
16014
|
break;
|
|
@@ -16093,11 +16049,6 @@
|
|
|
16093
16049
|
if (error)
|
|
16094
16050
|
return "common." + error;
|
|
16095
16051
|
}
|
|
16096
|
-
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
16097
|
-
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
16098
|
-
if (error)
|
|
16099
|
-
return "experimentalFeatures." + error;
|
|
16100
|
-
}
|
|
16101
16052
|
return null;
|
|
16102
16053
|
};
|
|
16103
16054
|
|
|
@@ -16118,11 +16069,6 @@
|
|
|
16118
16069
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
16119
16070
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
16120
16071
|
}
|
|
16121
|
-
if (object.experimentalFeatures != null) {
|
|
16122
|
-
if (typeof object.experimentalFeatures !== "object")
|
|
16123
|
-
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
16124
|
-
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
16125
|
-
}
|
|
16126
16072
|
return message;
|
|
16127
16073
|
};
|
|
16128
16074
|
|
|
@@ -16139,14 +16085,10 @@
|
|
|
16139
16085
|
if (!options)
|
|
16140
16086
|
options = {};
|
|
16141
16087
|
var object = {};
|
|
16142
|
-
if (options.defaults)
|
|
16088
|
+
if (options.defaults)
|
|
16143
16089
|
object.common = null;
|
|
16144
|
-
object.experimentalFeatures = null;
|
|
16145
|
-
}
|
|
16146
16090
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
16147
16091
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
16148
|
-
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
16149
|
-
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
16150
16092
|
return object;
|
|
16151
16093
|
};
|
|
16152
16094
|
|
|
@@ -16176,258 +16118,6 @@
|
|
|
16176
16118
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
16177
16119
|
};
|
|
16178
16120
|
|
|
16179
|
-
PythonSettings.ExperimentalFeatures = (function() {
|
|
16180
|
-
|
|
16181
|
-
/**
|
|
16182
|
-
* Properties of an ExperimentalFeatures.
|
|
16183
|
-
* @memberof google.api.PythonSettings
|
|
16184
|
-
* @interface IExperimentalFeatures
|
|
16185
|
-
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
16186
|
-
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
16187
|
-
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
16188
|
-
*/
|
|
16189
|
-
|
|
16190
|
-
/**
|
|
16191
|
-
* Constructs a new ExperimentalFeatures.
|
|
16192
|
-
* @memberof google.api.PythonSettings
|
|
16193
|
-
* @classdesc Represents an ExperimentalFeatures.
|
|
16194
|
-
* @implements IExperimentalFeatures
|
|
16195
|
-
* @constructor
|
|
16196
|
-
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
16197
|
-
*/
|
|
16198
|
-
function ExperimentalFeatures(properties) {
|
|
16199
|
-
if (properties)
|
|
16200
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16201
|
-
if (properties[keys[i]] != null)
|
|
16202
|
-
this[keys[i]] = properties[keys[i]];
|
|
16203
|
-
}
|
|
16204
|
-
|
|
16205
|
-
/**
|
|
16206
|
-
* ExperimentalFeatures restAsyncIoEnabled.
|
|
16207
|
-
* @member {boolean} restAsyncIoEnabled
|
|
16208
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16209
|
-
* @instance
|
|
16210
|
-
*/
|
|
16211
|
-
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
16212
|
-
|
|
16213
|
-
/**
|
|
16214
|
-
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
16215
|
-
* @member {boolean} protobufPythonicTypesEnabled
|
|
16216
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16217
|
-
* @instance
|
|
16218
|
-
*/
|
|
16219
|
-
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
16220
|
-
|
|
16221
|
-
/**
|
|
16222
|
-
* ExperimentalFeatures unversionedPackageDisabled.
|
|
16223
|
-
* @member {boolean} unversionedPackageDisabled
|
|
16224
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16225
|
-
* @instance
|
|
16226
|
-
*/
|
|
16227
|
-
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
16228
|
-
|
|
16229
|
-
/**
|
|
16230
|
-
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
16231
|
-
* @function create
|
|
16232
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16233
|
-
* @static
|
|
16234
|
-
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
16235
|
-
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
16236
|
-
*/
|
|
16237
|
-
ExperimentalFeatures.create = function create(properties) {
|
|
16238
|
-
return new ExperimentalFeatures(properties);
|
|
16239
|
-
};
|
|
16240
|
-
|
|
16241
|
-
/**
|
|
16242
|
-
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
16243
|
-
* @function encode
|
|
16244
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16245
|
-
* @static
|
|
16246
|
-
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
16247
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16248
|
-
* @returns {$protobuf.Writer} Writer
|
|
16249
|
-
*/
|
|
16250
|
-
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
16251
|
-
if (!writer)
|
|
16252
|
-
writer = $Writer.create();
|
|
16253
|
-
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
16254
|
-
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
16255
|
-
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
16256
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
16257
|
-
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
16258
|
-
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
16259
|
-
return writer;
|
|
16260
|
-
};
|
|
16261
|
-
|
|
16262
|
-
/**
|
|
16263
|
-
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
16264
|
-
* @function encodeDelimited
|
|
16265
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16266
|
-
* @static
|
|
16267
|
-
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
16268
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16269
|
-
* @returns {$protobuf.Writer} Writer
|
|
16270
|
-
*/
|
|
16271
|
-
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16272
|
-
return this.encode(message, writer).ldelim();
|
|
16273
|
-
};
|
|
16274
|
-
|
|
16275
|
-
/**
|
|
16276
|
-
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
16277
|
-
* @function decode
|
|
16278
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16279
|
-
* @static
|
|
16280
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16281
|
-
* @param {number} [length] Message length if known beforehand
|
|
16282
|
-
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
16283
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16284
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16285
|
-
*/
|
|
16286
|
-
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
16287
|
-
if (!(reader instanceof $Reader))
|
|
16288
|
-
reader = $Reader.create(reader);
|
|
16289
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
16290
|
-
while (reader.pos < end) {
|
|
16291
|
-
var tag = reader.uint32();
|
|
16292
|
-
if (tag === error)
|
|
16293
|
-
break;
|
|
16294
|
-
switch (tag >>> 3) {
|
|
16295
|
-
case 1: {
|
|
16296
|
-
message.restAsyncIoEnabled = reader.bool();
|
|
16297
|
-
break;
|
|
16298
|
-
}
|
|
16299
|
-
case 2: {
|
|
16300
|
-
message.protobufPythonicTypesEnabled = reader.bool();
|
|
16301
|
-
break;
|
|
16302
|
-
}
|
|
16303
|
-
case 3: {
|
|
16304
|
-
message.unversionedPackageDisabled = reader.bool();
|
|
16305
|
-
break;
|
|
16306
|
-
}
|
|
16307
|
-
default:
|
|
16308
|
-
reader.skipType(tag & 7);
|
|
16309
|
-
break;
|
|
16310
|
-
}
|
|
16311
|
-
}
|
|
16312
|
-
return message;
|
|
16313
|
-
};
|
|
16314
|
-
|
|
16315
|
-
/**
|
|
16316
|
-
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
16317
|
-
* @function decodeDelimited
|
|
16318
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16319
|
-
* @static
|
|
16320
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16321
|
-
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
16322
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16323
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16324
|
-
*/
|
|
16325
|
-
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
16326
|
-
if (!(reader instanceof $Reader))
|
|
16327
|
-
reader = new $Reader(reader);
|
|
16328
|
-
return this.decode(reader, reader.uint32());
|
|
16329
|
-
};
|
|
16330
|
-
|
|
16331
|
-
/**
|
|
16332
|
-
* Verifies an ExperimentalFeatures message.
|
|
16333
|
-
* @function verify
|
|
16334
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16335
|
-
* @static
|
|
16336
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
16337
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16338
|
-
*/
|
|
16339
|
-
ExperimentalFeatures.verify = function verify(message) {
|
|
16340
|
-
if (typeof message !== "object" || message === null)
|
|
16341
|
-
return "object expected";
|
|
16342
|
-
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
16343
|
-
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
16344
|
-
return "restAsyncIoEnabled: boolean expected";
|
|
16345
|
-
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
16346
|
-
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
16347
|
-
return "protobufPythonicTypesEnabled: boolean expected";
|
|
16348
|
-
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
16349
|
-
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
16350
|
-
return "unversionedPackageDisabled: boolean expected";
|
|
16351
|
-
return null;
|
|
16352
|
-
};
|
|
16353
|
-
|
|
16354
|
-
/**
|
|
16355
|
-
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
16356
|
-
* @function fromObject
|
|
16357
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16358
|
-
* @static
|
|
16359
|
-
* @param {Object.<string,*>} object Plain object
|
|
16360
|
-
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
16361
|
-
*/
|
|
16362
|
-
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
16363
|
-
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
16364
|
-
return object;
|
|
16365
|
-
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
16366
|
-
if (object.restAsyncIoEnabled != null)
|
|
16367
|
-
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
16368
|
-
if (object.protobufPythonicTypesEnabled != null)
|
|
16369
|
-
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
16370
|
-
if (object.unversionedPackageDisabled != null)
|
|
16371
|
-
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
16372
|
-
return message;
|
|
16373
|
-
};
|
|
16374
|
-
|
|
16375
|
-
/**
|
|
16376
|
-
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
16377
|
-
* @function toObject
|
|
16378
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16379
|
-
* @static
|
|
16380
|
-
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
16381
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16382
|
-
* @returns {Object.<string,*>} Plain object
|
|
16383
|
-
*/
|
|
16384
|
-
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
16385
|
-
if (!options)
|
|
16386
|
-
options = {};
|
|
16387
|
-
var object = {};
|
|
16388
|
-
if (options.defaults) {
|
|
16389
|
-
object.restAsyncIoEnabled = false;
|
|
16390
|
-
object.protobufPythonicTypesEnabled = false;
|
|
16391
|
-
object.unversionedPackageDisabled = false;
|
|
16392
|
-
}
|
|
16393
|
-
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
16394
|
-
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
16395
|
-
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
16396
|
-
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
16397
|
-
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
16398
|
-
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
16399
|
-
return object;
|
|
16400
|
-
};
|
|
16401
|
-
|
|
16402
|
-
/**
|
|
16403
|
-
* Converts this ExperimentalFeatures to JSON.
|
|
16404
|
-
* @function toJSON
|
|
16405
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16406
|
-
* @instance
|
|
16407
|
-
* @returns {Object.<string,*>} JSON object
|
|
16408
|
-
*/
|
|
16409
|
-
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
16410
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16411
|
-
};
|
|
16412
|
-
|
|
16413
|
-
/**
|
|
16414
|
-
* Gets the default type url for ExperimentalFeatures
|
|
16415
|
-
* @function getTypeUrl
|
|
16416
|
-
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
16417
|
-
* @static
|
|
16418
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16419
|
-
* @returns {string} The default type url
|
|
16420
|
-
*/
|
|
16421
|
-
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16422
|
-
if (typeUrlPrefix === undefined) {
|
|
16423
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
16424
|
-
}
|
|
16425
|
-
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
16426
|
-
};
|
|
16427
|
-
|
|
16428
|
-
return ExperimentalFeatures;
|
|
16429
|
-
})();
|
|
16430
|
-
|
|
16431
16121
|
return PythonSettings;
|
|
16432
16122
|
})();
|
|
16433
16123
|
|
|
@@ -17304,7 +16994,6 @@
|
|
|
17304
16994
|
* @memberof google.api
|
|
17305
16995
|
* @interface IGoSettings
|
|
17306
16996
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
17307
|
-
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
17308
16997
|
*/
|
|
17309
16998
|
|
|
17310
16999
|
/**
|
|
@@ -17316,7 +17005,6 @@
|
|
|
17316
17005
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
17317
17006
|
*/
|
|
17318
17007
|
function GoSettings(properties) {
|
|
17319
|
-
this.renamedServices = {};
|
|
17320
17008
|
if (properties)
|
|
17321
17009
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17322
17010
|
if (properties[keys[i]] != null)
|
|
@@ -17331,14 +17019,6 @@
|
|
|
17331
17019
|
*/
|
|
17332
17020
|
GoSettings.prototype.common = null;
|
|
17333
17021
|
|
|
17334
|
-
/**
|
|
17335
|
-
* GoSettings renamedServices.
|
|
17336
|
-
* @member {Object.<string,string>} renamedServices
|
|
17337
|
-
* @memberof google.api.GoSettings
|
|
17338
|
-
* @instance
|
|
17339
|
-
*/
|
|
17340
|
-
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
17341
|
-
|
|
17342
17022
|
/**
|
|
17343
17023
|
* Creates a new GoSettings instance using the specified properties.
|
|
17344
17024
|
* @function create
|
|
@@ -17365,9 +17045,6 @@
|
|
|
17365
17045
|
writer = $Writer.create();
|
|
17366
17046
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
17367
17047
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17368
|
-
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
17369
|
-
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
17370
|
-
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();
|
|
17371
17048
|
return writer;
|
|
17372
17049
|
};
|
|
17373
17050
|
|
|
@@ -17398,7 +17075,7 @@
|
|
|
17398
17075
|
GoSettings.decode = function decode(reader, length, error) {
|
|
17399
17076
|
if (!(reader instanceof $Reader))
|
|
17400
17077
|
reader = $Reader.create(reader);
|
|
17401
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings()
|
|
17078
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
17402
17079
|
while (reader.pos < end) {
|
|
17403
17080
|
var tag = reader.uint32();
|
|
17404
17081
|
if (tag === error)
|
|
@@ -17408,29 +17085,6 @@
|
|
|
17408
17085
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
17409
17086
|
break;
|
|
17410
17087
|
}
|
|
17411
|
-
case 2: {
|
|
17412
|
-
if (message.renamedServices === $util.emptyObject)
|
|
17413
|
-
message.renamedServices = {};
|
|
17414
|
-
var end2 = reader.uint32() + reader.pos;
|
|
17415
|
-
key = "";
|
|
17416
|
-
value = "";
|
|
17417
|
-
while (reader.pos < end2) {
|
|
17418
|
-
var tag2 = reader.uint32();
|
|
17419
|
-
switch (tag2 >>> 3) {
|
|
17420
|
-
case 1:
|
|
17421
|
-
key = reader.string();
|
|
17422
|
-
break;
|
|
17423
|
-
case 2:
|
|
17424
|
-
value = reader.string();
|
|
17425
|
-
break;
|
|
17426
|
-
default:
|
|
17427
|
-
reader.skipType(tag2 & 7);
|
|
17428
|
-
break;
|
|
17429
|
-
}
|
|
17430
|
-
}
|
|
17431
|
-
message.renamedServices[key] = value;
|
|
17432
|
-
break;
|
|
17433
|
-
}
|
|
17434
17088
|
default:
|
|
17435
17089
|
reader.skipType(tag & 7);
|
|
17436
17090
|
break;
|
|
@@ -17471,14 +17125,6 @@
|
|
|
17471
17125
|
if (error)
|
|
17472
17126
|
return "common." + error;
|
|
17473
17127
|
}
|
|
17474
|
-
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
17475
|
-
if (!$util.isObject(message.renamedServices))
|
|
17476
|
-
return "renamedServices: object expected";
|
|
17477
|
-
var key = Object.keys(message.renamedServices);
|
|
17478
|
-
for (var i = 0; i < key.length; ++i)
|
|
17479
|
-
if (!$util.isString(message.renamedServices[key[i]]))
|
|
17480
|
-
return "renamedServices: string{k:string} expected";
|
|
17481
|
-
}
|
|
17482
17128
|
return null;
|
|
17483
17129
|
};
|
|
17484
17130
|
|
|
@@ -17499,13 +17145,6 @@
|
|
|
17499
17145
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
17500
17146
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
17501
17147
|
}
|
|
17502
|
-
if (object.renamedServices) {
|
|
17503
|
-
if (typeof object.renamedServices !== "object")
|
|
17504
|
-
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
17505
|
-
message.renamedServices = {};
|
|
17506
|
-
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
17507
|
-
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
17508
|
-
}
|
|
17509
17148
|
return message;
|
|
17510
17149
|
};
|
|
17511
17150
|
|
|
@@ -17522,18 +17161,10 @@
|
|
|
17522
17161
|
if (!options)
|
|
17523
17162
|
options = {};
|
|
17524
17163
|
var object = {};
|
|
17525
|
-
if (options.objects || options.defaults)
|
|
17526
|
-
object.renamedServices = {};
|
|
17527
17164
|
if (options.defaults)
|
|
17528
17165
|
object.common = null;
|
|
17529
17166
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
17530
17167
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
17531
|
-
var keys2;
|
|
17532
|
-
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
17533
|
-
object.renamedServices = {};
|
|
17534
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
17535
|
-
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
17536
|
-
}
|
|
17537
17168
|
return object;
|
|
17538
17169
|
};
|
|
17539
17170
|
|
|
@@ -18172,251 +17803,6 @@
|
|
|
18172
17803
|
return values;
|
|
18173
17804
|
})();
|
|
18174
17805
|
|
|
18175
|
-
api.SelectiveGapicGeneration = (function() {
|
|
18176
|
-
|
|
18177
|
-
/**
|
|
18178
|
-
* Properties of a SelectiveGapicGeneration.
|
|
18179
|
-
* @memberof google.api
|
|
18180
|
-
* @interface ISelectiveGapicGeneration
|
|
18181
|
-
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
18182
|
-
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
18183
|
-
*/
|
|
18184
|
-
|
|
18185
|
-
/**
|
|
18186
|
-
* Constructs a new SelectiveGapicGeneration.
|
|
18187
|
-
* @memberof google.api
|
|
18188
|
-
* @classdesc Represents a SelectiveGapicGeneration.
|
|
18189
|
-
* @implements ISelectiveGapicGeneration
|
|
18190
|
-
* @constructor
|
|
18191
|
-
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
18192
|
-
*/
|
|
18193
|
-
function SelectiveGapicGeneration(properties) {
|
|
18194
|
-
this.methods = [];
|
|
18195
|
-
if (properties)
|
|
18196
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18197
|
-
if (properties[keys[i]] != null)
|
|
18198
|
-
this[keys[i]] = properties[keys[i]];
|
|
18199
|
-
}
|
|
18200
|
-
|
|
18201
|
-
/**
|
|
18202
|
-
* SelectiveGapicGeneration methods.
|
|
18203
|
-
* @member {Array.<string>} methods
|
|
18204
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18205
|
-
* @instance
|
|
18206
|
-
*/
|
|
18207
|
-
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
18208
|
-
|
|
18209
|
-
/**
|
|
18210
|
-
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
18211
|
-
* @member {boolean} generateOmittedAsInternal
|
|
18212
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18213
|
-
* @instance
|
|
18214
|
-
*/
|
|
18215
|
-
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
18216
|
-
|
|
18217
|
-
/**
|
|
18218
|
-
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
18219
|
-
* @function create
|
|
18220
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18221
|
-
* @static
|
|
18222
|
-
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
18223
|
-
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
18224
|
-
*/
|
|
18225
|
-
SelectiveGapicGeneration.create = function create(properties) {
|
|
18226
|
-
return new SelectiveGapicGeneration(properties);
|
|
18227
|
-
};
|
|
18228
|
-
|
|
18229
|
-
/**
|
|
18230
|
-
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
18231
|
-
* @function encode
|
|
18232
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18233
|
-
* @static
|
|
18234
|
-
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
18235
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18236
|
-
* @returns {$protobuf.Writer} Writer
|
|
18237
|
-
*/
|
|
18238
|
-
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
18239
|
-
if (!writer)
|
|
18240
|
-
writer = $Writer.create();
|
|
18241
|
-
if (message.methods != null && message.methods.length)
|
|
18242
|
-
for (var i = 0; i < message.methods.length; ++i)
|
|
18243
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
18244
|
-
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
18245
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
18246
|
-
return writer;
|
|
18247
|
-
};
|
|
18248
|
-
|
|
18249
|
-
/**
|
|
18250
|
-
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
18251
|
-
* @function encodeDelimited
|
|
18252
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18253
|
-
* @static
|
|
18254
|
-
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
18255
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18256
|
-
* @returns {$protobuf.Writer} Writer
|
|
18257
|
-
*/
|
|
18258
|
-
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18259
|
-
return this.encode(message, writer).ldelim();
|
|
18260
|
-
};
|
|
18261
|
-
|
|
18262
|
-
/**
|
|
18263
|
-
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
18264
|
-
* @function decode
|
|
18265
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18266
|
-
* @static
|
|
18267
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18268
|
-
* @param {number} [length] Message length if known beforehand
|
|
18269
|
-
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
18270
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18271
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18272
|
-
*/
|
|
18273
|
-
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
18274
|
-
if (!(reader instanceof $Reader))
|
|
18275
|
-
reader = $Reader.create(reader);
|
|
18276
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
18277
|
-
while (reader.pos < end) {
|
|
18278
|
-
var tag = reader.uint32();
|
|
18279
|
-
if (tag === error)
|
|
18280
|
-
break;
|
|
18281
|
-
switch (tag >>> 3) {
|
|
18282
|
-
case 1: {
|
|
18283
|
-
if (!(message.methods && message.methods.length))
|
|
18284
|
-
message.methods = [];
|
|
18285
|
-
message.methods.push(reader.string());
|
|
18286
|
-
break;
|
|
18287
|
-
}
|
|
18288
|
-
case 2: {
|
|
18289
|
-
message.generateOmittedAsInternal = reader.bool();
|
|
18290
|
-
break;
|
|
18291
|
-
}
|
|
18292
|
-
default:
|
|
18293
|
-
reader.skipType(tag & 7);
|
|
18294
|
-
break;
|
|
18295
|
-
}
|
|
18296
|
-
}
|
|
18297
|
-
return message;
|
|
18298
|
-
};
|
|
18299
|
-
|
|
18300
|
-
/**
|
|
18301
|
-
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
18302
|
-
* @function decodeDelimited
|
|
18303
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18304
|
-
* @static
|
|
18305
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18306
|
-
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
18307
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18308
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18309
|
-
*/
|
|
18310
|
-
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
18311
|
-
if (!(reader instanceof $Reader))
|
|
18312
|
-
reader = new $Reader(reader);
|
|
18313
|
-
return this.decode(reader, reader.uint32());
|
|
18314
|
-
};
|
|
18315
|
-
|
|
18316
|
-
/**
|
|
18317
|
-
* Verifies a SelectiveGapicGeneration message.
|
|
18318
|
-
* @function verify
|
|
18319
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18320
|
-
* @static
|
|
18321
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
18322
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18323
|
-
*/
|
|
18324
|
-
SelectiveGapicGeneration.verify = function verify(message) {
|
|
18325
|
-
if (typeof message !== "object" || message === null)
|
|
18326
|
-
return "object expected";
|
|
18327
|
-
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
18328
|
-
if (!Array.isArray(message.methods))
|
|
18329
|
-
return "methods: array expected";
|
|
18330
|
-
for (var i = 0; i < message.methods.length; ++i)
|
|
18331
|
-
if (!$util.isString(message.methods[i]))
|
|
18332
|
-
return "methods: string[] expected";
|
|
18333
|
-
}
|
|
18334
|
-
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
18335
|
-
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
18336
|
-
return "generateOmittedAsInternal: boolean expected";
|
|
18337
|
-
return null;
|
|
18338
|
-
};
|
|
18339
|
-
|
|
18340
|
-
/**
|
|
18341
|
-
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
18342
|
-
* @function fromObject
|
|
18343
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18344
|
-
* @static
|
|
18345
|
-
* @param {Object.<string,*>} object Plain object
|
|
18346
|
-
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
18347
|
-
*/
|
|
18348
|
-
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
18349
|
-
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
18350
|
-
return object;
|
|
18351
|
-
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
18352
|
-
if (object.methods) {
|
|
18353
|
-
if (!Array.isArray(object.methods))
|
|
18354
|
-
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
18355
|
-
message.methods = [];
|
|
18356
|
-
for (var i = 0; i < object.methods.length; ++i)
|
|
18357
|
-
message.methods[i] = String(object.methods[i]);
|
|
18358
|
-
}
|
|
18359
|
-
if (object.generateOmittedAsInternal != null)
|
|
18360
|
-
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
18361
|
-
return message;
|
|
18362
|
-
};
|
|
18363
|
-
|
|
18364
|
-
/**
|
|
18365
|
-
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
18366
|
-
* @function toObject
|
|
18367
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18368
|
-
* @static
|
|
18369
|
-
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
18370
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18371
|
-
* @returns {Object.<string,*>} Plain object
|
|
18372
|
-
*/
|
|
18373
|
-
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
18374
|
-
if (!options)
|
|
18375
|
-
options = {};
|
|
18376
|
-
var object = {};
|
|
18377
|
-
if (options.arrays || options.defaults)
|
|
18378
|
-
object.methods = [];
|
|
18379
|
-
if (options.defaults)
|
|
18380
|
-
object.generateOmittedAsInternal = false;
|
|
18381
|
-
if (message.methods && message.methods.length) {
|
|
18382
|
-
object.methods = [];
|
|
18383
|
-
for (var j = 0; j < message.methods.length; ++j)
|
|
18384
|
-
object.methods[j] = message.methods[j];
|
|
18385
|
-
}
|
|
18386
|
-
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
18387
|
-
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
18388
|
-
return object;
|
|
18389
|
-
};
|
|
18390
|
-
|
|
18391
|
-
/**
|
|
18392
|
-
* Converts this SelectiveGapicGeneration to JSON.
|
|
18393
|
-
* @function toJSON
|
|
18394
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18395
|
-
* @instance
|
|
18396
|
-
* @returns {Object.<string,*>} JSON object
|
|
18397
|
-
*/
|
|
18398
|
-
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
18399
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18400
|
-
};
|
|
18401
|
-
|
|
18402
|
-
/**
|
|
18403
|
-
* Gets the default type url for SelectiveGapicGeneration
|
|
18404
|
-
* @function getTypeUrl
|
|
18405
|
-
* @memberof google.api.SelectiveGapicGeneration
|
|
18406
|
-
* @static
|
|
18407
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18408
|
-
* @returns {string} The default type url
|
|
18409
|
-
*/
|
|
18410
|
-
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18411
|
-
if (typeUrlPrefix === undefined) {
|
|
18412
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
18413
|
-
}
|
|
18414
|
-
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
18415
|
-
};
|
|
18416
|
-
|
|
18417
|
-
return SelectiveGapicGeneration;
|
|
18418
|
-
})();
|
|
18419
|
-
|
|
18420
17806
|
/**
|
|
18421
17807
|
* LaunchStage enum.
|
|
18422
17808
|
* @name google.api.LaunchStage
|
|
@@ -18478,7 +17864,6 @@
|
|
|
18478
17864
|
* @memberof google.api
|
|
18479
17865
|
* @interface IFieldInfo
|
|
18480
17866
|
* @property {google.api.FieldInfo.Format|null} [format] FieldInfo format
|
|
18481
|
-
* @property {Array.<google.api.ITypeReference>|null} [referencedTypes] FieldInfo referencedTypes
|
|
18482
17867
|
*/
|
|
18483
17868
|
|
|
18484
17869
|
/**
|
|
@@ -18490,7 +17875,6 @@
|
|
|
18490
17875
|
* @param {google.api.IFieldInfo=} [properties] Properties to set
|
|
18491
17876
|
*/
|
|
18492
17877
|
function FieldInfo(properties) {
|
|
18493
|
-
this.referencedTypes = [];
|
|
18494
17878
|
if (properties)
|
|
18495
17879
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18496
17880
|
if (properties[keys[i]] != null)
|
|
@@ -18505,14 +17889,6 @@
|
|
|
18505
17889
|
*/
|
|
18506
17890
|
FieldInfo.prototype.format = 0;
|
|
18507
17891
|
|
|
18508
|
-
/**
|
|
18509
|
-
* FieldInfo referencedTypes.
|
|
18510
|
-
* @member {Array.<google.api.ITypeReference>} referencedTypes
|
|
18511
|
-
* @memberof google.api.FieldInfo
|
|
18512
|
-
* @instance
|
|
18513
|
-
*/
|
|
18514
|
-
FieldInfo.prototype.referencedTypes = $util.emptyArray;
|
|
18515
|
-
|
|
18516
17892
|
/**
|
|
18517
17893
|
* Creates a new FieldInfo instance using the specified properties.
|
|
18518
17894
|
* @function create
|
|
@@ -18539,9 +17915,6 @@
|
|
|
18539
17915
|
writer = $Writer.create();
|
|
18540
17916
|
if (message.format != null && Object.hasOwnProperty.call(message, "format"))
|
|
18541
17917
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format);
|
|
18542
|
-
if (message.referencedTypes != null && message.referencedTypes.length)
|
|
18543
|
-
for (var i = 0; i < message.referencedTypes.length; ++i)
|
|
18544
|
-
$root.google.api.TypeReference.encode(message.referencedTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
18545
17918
|
return writer;
|
|
18546
17919
|
};
|
|
18547
17920
|
|
|
@@ -18582,12 +17955,6 @@
|
|
|
18582
17955
|
message.format = reader.int32();
|
|
18583
17956
|
break;
|
|
18584
17957
|
}
|
|
18585
|
-
case 2: {
|
|
18586
|
-
if (!(message.referencedTypes && message.referencedTypes.length))
|
|
18587
|
-
message.referencedTypes = [];
|
|
18588
|
-
message.referencedTypes.push($root.google.api.TypeReference.decode(reader, reader.uint32()));
|
|
18589
|
-
break;
|
|
18590
|
-
}
|
|
18591
17958
|
default:
|
|
18592
17959
|
reader.skipType(tag & 7);
|
|
18593
17960
|
break;
|
|
@@ -18634,15 +18001,6 @@
|
|
|
18634
18001
|
case 4:
|
|
18635
18002
|
break;
|
|
18636
18003
|
}
|
|
18637
|
-
if (message.referencedTypes != null && message.hasOwnProperty("referencedTypes")) {
|
|
18638
|
-
if (!Array.isArray(message.referencedTypes))
|
|
18639
|
-
return "referencedTypes: array expected";
|
|
18640
|
-
for (var i = 0; i < message.referencedTypes.length; ++i) {
|
|
18641
|
-
var error = $root.google.api.TypeReference.verify(message.referencedTypes[i]);
|
|
18642
|
-
if (error)
|
|
18643
|
-
return "referencedTypes." + error;
|
|
18644
|
-
}
|
|
18645
|
-
}
|
|
18646
18004
|
return null;
|
|
18647
18005
|
};
|
|
18648
18006
|
|
|
@@ -18686,16 +18044,6 @@
|
|
|
18686
18044
|
message.format = 4;
|
|
18687
18045
|
break;
|
|
18688
18046
|
}
|
|
18689
|
-
if (object.referencedTypes) {
|
|
18690
|
-
if (!Array.isArray(object.referencedTypes))
|
|
18691
|
-
throw TypeError(".google.api.FieldInfo.referencedTypes: array expected");
|
|
18692
|
-
message.referencedTypes = [];
|
|
18693
|
-
for (var i = 0; i < object.referencedTypes.length; ++i) {
|
|
18694
|
-
if (typeof object.referencedTypes[i] !== "object")
|
|
18695
|
-
throw TypeError(".google.api.FieldInfo.referencedTypes: object expected");
|
|
18696
|
-
message.referencedTypes[i] = $root.google.api.TypeReference.fromObject(object.referencedTypes[i]);
|
|
18697
|
-
}
|
|
18698
|
-
}
|
|
18699
18047
|
return message;
|
|
18700
18048
|
};
|
|
18701
18049
|
|
|
@@ -18712,17 +18060,10 @@
|
|
|
18712
18060
|
if (!options)
|
|
18713
18061
|
options = {};
|
|
18714
18062
|
var object = {};
|
|
18715
|
-
if (options.arrays || options.defaults)
|
|
18716
|
-
object.referencedTypes = [];
|
|
18717
18063
|
if (options.defaults)
|
|
18718
18064
|
object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
|
|
18719
18065
|
if (message.format != null && message.hasOwnProperty("format"))
|
|
18720
18066
|
object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format;
|
|
18721
|
-
if (message.referencedTypes && message.referencedTypes.length) {
|
|
18722
|
-
object.referencedTypes = [];
|
|
18723
|
-
for (var j = 0; j < message.referencedTypes.length; ++j)
|
|
18724
|
-
object.referencedTypes[j] = $root.google.api.TypeReference.toObject(message.referencedTypes[j], options);
|
|
18725
|
-
}
|
|
18726
18067
|
return object;
|
|
18727
18068
|
};
|
|
18728
18069
|
|
|
@@ -18775,24 +18116,32 @@
|
|
|
18775
18116
|
return FieldInfo;
|
|
18776
18117
|
})();
|
|
18777
18118
|
|
|
18778
|
-
api.
|
|
18119
|
+
api.ResourceDescriptor = (function() {
|
|
18779
18120
|
|
|
18780
18121
|
/**
|
|
18781
|
-
* Properties of a
|
|
18122
|
+
* Properties of a ResourceDescriptor.
|
|
18782
18123
|
* @memberof google.api
|
|
18783
|
-
* @interface
|
|
18784
|
-
* @property {string|null} [
|
|
18124
|
+
* @interface IResourceDescriptor
|
|
18125
|
+
* @property {string|null} [type] ResourceDescriptor type
|
|
18126
|
+
* @property {Array.<string>|null} [pattern] ResourceDescriptor pattern
|
|
18127
|
+
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
18128
|
+
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
18129
|
+
* @property {string|null} [plural] ResourceDescriptor plural
|
|
18130
|
+
* @property {string|null} [singular] ResourceDescriptor singular
|
|
18131
|
+
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
18785
18132
|
*/
|
|
18786
18133
|
|
|
18787
18134
|
/**
|
|
18788
|
-
* Constructs a new
|
|
18135
|
+
* Constructs a new ResourceDescriptor.
|
|
18789
18136
|
* @memberof google.api
|
|
18790
|
-
* @classdesc Represents a
|
|
18791
|
-
* @implements
|
|
18137
|
+
* @classdesc Represents a ResourceDescriptor.
|
|
18138
|
+
* @implements IResourceDescriptor
|
|
18792
18139
|
* @constructor
|
|
18793
|
-
* @param {google.api.
|
|
18140
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
18794
18141
|
*/
|
|
18795
|
-
function
|
|
18142
|
+
function ResourceDescriptor(properties) {
|
|
18143
|
+
this.pattern = [];
|
|
18144
|
+
this.style = [];
|
|
18796
18145
|
if (properties)
|
|
18797
18146
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18798
18147
|
if (properties[keys[i]] != null)
|
|
@@ -18800,355 +18149,142 @@
|
|
|
18800
18149
|
}
|
|
18801
18150
|
|
|
18802
18151
|
/**
|
|
18803
|
-
*
|
|
18804
|
-
* @member {string}
|
|
18805
|
-
* @memberof google.api.
|
|
18152
|
+
* ResourceDescriptor type.
|
|
18153
|
+
* @member {string} type
|
|
18154
|
+
* @memberof google.api.ResourceDescriptor
|
|
18155
|
+
* @instance
|
|
18156
|
+
*/
|
|
18157
|
+
ResourceDescriptor.prototype.type = "";
|
|
18158
|
+
|
|
18159
|
+
/**
|
|
18160
|
+
* ResourceDescriptor pattern.
|
|
18161
|
+
* @member {Array.<string>} pattern
|
|
18162
|
+
* @memberof google.api.ResourceDescriptor
|
|
18163
|
+
* @instance
|
|
18164
|
+
*/
|
|
18165
|
+
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
18166
|
+
|
|
18167
|
+
/**
|
|
18168
|
+
* ResourceDescriptor nameField.
|
|
18169
|
+
* @member {string} nameField
|
|
18170
|
+
* @memberof google.api.ResourceDescriptor
|
|
18171
|
+
* @instance
|
|
18172
|
+
*/
|
|
18173
|
+
ResourceDescriptor.prototype.nameField = "";
|
|
18174
|
+
|
|
18175
|
+
/**
|
|
18176
|
+
* ResourceDescriptor history.
|
|
18177
|
+
* @member {google.api.ResourceDescriptor.History} history
|
|
18178
|
+
* @memberof google.api.ResourceDescriptor
|
|
18179
|
+
* @instance
|
|
18180
|
+
*/
|
|
18181
|
+
ResourceDescriptor.prototype.history = 0;
|
|
18182
|
+
|
|
18183
|
+
/**
|
|
18184
|
+
* ResourceDescriptor plural.
|
|
18185
|
+
* @member {string} plural
|
|
18186
|
+
* @memberof google.api.ResourceDescriptor
|
|
18187
|
+
* @instance
|
|
18188
|
+
*/
|
|
18189
|
+
ResourceDescriptor.prototype.plural = "";
|
|
18190
|
+
|
|
18191
|
+
/**
|
|
18192
|
+
* ResourceDescriptor singular.
|
|
18193
|
+
* @member {string} singular
|
|
18194
|
+
* @memberof google.api.ResourceDescriptor
|
|
18195
|
+
* @instance
|
|
18196
|
+
*/
|
|
18197
|
+
ResourceDescriptor.prototype.singular = "";
|
|
18198
|
+
|
|
18199
|
+
/**
|
|
18200
|
+
* ResourceDescriptor style.
|
|
18201
|
+
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
18202
|
+
* @memberof google.api.ResourceDescriptor
|
|
18806
18203
|
* @instance
|
|
18807
18204
|
*/
|
|
18808
|
-
|
|
18205
|
+
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
18809
18206
|
|
|
18810
18207
|
/**
|
|
18811
|
-
* Creates a new
|
|
18208
|
+
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
18812
18209
|
* @function create
|
|
18813
|
-
* @memberof google.api.
|
|
18210
|
+
* @memberof google.api.ResourceDescriptor
|
|
18814
18211
|
* @static
|
|
18815
|
-
* @param {google.api.
|
|
18816
|
-
* @returns {google.api.
|
|
18212
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
18213
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
18817
18214
|
*/
|
|
18818
|
-
|
|
18819
|
-
return new
|
|
18215
|
+
ResourceDescriptor.create = function create(properties) {
|
|
18216
|
+
return new ResourceDescriptor(properties);
|
|
18820
18217
|
};
|
|
18821
18218
|
|
|
18822
18219
|
/**
|
|
18823
|
-
* Encodes the specified
|
|
18220
|
+
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
18824
18221
|
* @function encode
|
|
18825
|
-
* @memberof google.api.
|
|
18222
|
+
* @memberof google.api.ResourceDescriptor
|
|
18826
18223
|
* @static
|
|
18827
|
-
* @param {google.api.
|
|
18224
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
18828
18225
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18829
18226
|
* @returns {$protobuf.Writer} Writer
|
|
18830
18227
|
*/
|
|
18831
|
-
|
|
18228
|
+
ResourceDescriptor.encode = function encode(message, writer) {
|
|
18832
18229
|
if (!writer)
|
|
18833
18230
|
writer = $Writer.create();
|
|
18834
|
-
if (message.
|
|
18835
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
18231
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
18232
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
18233
|
+
if (message.pattern != null && message.pattern.length)
|
|
18234
|
+
for (var i = 0; i < message.pattern.length; ++i)
|
|
18235
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
|
|
18236
|
+
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
18237
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
18238
|
+
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
18239
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
18240
|
+
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
18241
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
18242
|
+
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
18243
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
18244
|
+
if (message.style != null && message.style.length) {
|
|
18245
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
18246
|
+
for (var i = 0; i < message.style.length; ++i)
|
|
18247
|
+
writer.int32(message.style[i]);
|
|
18248
|
+
writer.ldelim();
|
|
18249
|
+
}
|
|
18836
18250
|
return writer;
|
|
18837
18251
|
};
|
|
18838
18252
|
|
|
18839
18253
|
/**
|
|
18840
|
-
* Encodes the specified
|
|
18254
|
+
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
18841
18255
|
* @function encodeDelimited
|
|
18842
|
-
* @memberof google.api.
|
|
18256
|
+
* @memberof google.api.ResourceDescriptor
|
|
18843
18257
|
* @static
|
|
18844
|
-
* @param {google.api.
|
|
18258
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
18845
18259
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18846
18260
|
* @returns {$protobuf.Writer} Writer
|
|
18847
18261
|
*/
|
|
18848
|
-
|
|
18262
|
+
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18849
18263
|
return this.encode(message, writer).ldelim();
|
|
18850
18264
|
};
|
|
18851
18265
|
|
|
18852
18266
|
/**
|
|
18853
|
-
* Decodes a
|
|
18267
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
18854
18268
|
* @function decode
|
|
18855
|
-
* @memberof google.api.
|
|
18269
|
+
* @memberof google.api.ResourceDescriptor
|
|
18856
18270
|
* @static
|
|
18857
18271
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18858
18272
|
* @param {number} [length] Message length if known beforehand
|
|
18859
|
-
* @returns {google.api.
|
|
18273
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
18860
18274
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18861
18275
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18862
18276
|
*/
|
|
18863
|
-
|
|
18277
|
+
ResourceDescriptor.decode = function decode(reader, length, error) {
|
|
18864
18278
|
if (!(reader instanceof $Reader))
|
|
18865
18279
|
reader = $Reader.create(reader);
|
|
18866
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
18280
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
|
18867
18281
|
while (reader.pos < end) {
|
|
18868
18282
|
var tag = reader.uint32();
|
|
18869
18283
|
if (tag === error)
|
|
18870
18284
|
break;
|
|
18871
18285
|
switch (tag >>> 3) {
|
|
18872
18286
|
case 1: {
|
|
18873
|
-
message.
|
|
18874
|
-
break;
|
|
18875
|
-
}
|
|
18876
|
-
default:
|
|
18877
|
-
reader.skipType(tag & 7);
|
|
18878
|
-
break;
|
|
18879
|
-
}
|
|
18880
|
-
}
|
|
18881
|
-
return message;
|
|
18882
|
-
};
|
|
18883
|
-
|
|
18884
|
-
/**
|
|
18885
|
-
* Decodes a TypeReference message from the specified reader or buffer, length delimited.
|
|
18886
|
-
* @function decodeDelimited
|
|
18887
|
-
* @memberof google.api.TypeReference
|
|
18888
|
-
* @static
|
|
18889
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18890
|
-
* @returns {google.api.TypeReference} TypeReference
|
|
18891
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18892
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18893
|
-
*/
|
|
18894
|
-
TypeReference.decodeDelimited = function decodeDelimited(reader) {
|
|
18895
|
-
if (!(reader instanceof $Reader))
|
|
18896
|
-
reader = new $Reader(reader);
|
|
18897
|
-
return this.decode(reader, reader.uint32());
|
|
18898
|
-
};
|
|
18899
|
-
|
|
18900
|
-
/**
|
|
18901
|
-
* Verifies a TypeReference message.
|
|
18902
|
-
* @function verify
|
|
18903
|
-
* @memberof google.api.TypeReference
|
|
18904
|
-
* @static
|
|
18905
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
18906
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18907
|
-
*/
|
|
18908
|
-
TypeReference.verify = function verify(message) {
|
|
18909
|
-
if (typeof message !== "object" || message === null)
|
|
18910
|
-
return "object expected";
|
|
18911
|
-
if (message.typeName != null && message.hasOwnProperty("typeName"))
|
|
18912
|
-
if (!$util.isString(message.typeName))
|
|
18913
|
-
return "typeName: string expected";
|
|
18914
|
-
return null;
|
|
18915
|
-
};
|
|
18916
|
-
|
|
18917
|
-
/**
|
|
18918
|
-
* Creates a TypeReference message from a plain object. Also converts values to their respective internal types.
|
|
18919
|
-
* @function fromObject
|
|
18920
|
-
* @memberof google.api.TypeReference
|
|
18921
|
-
* @static
|
|
18922
|
-
* @param {Object.<string,*>} object Plain object
|
|
18923
|
-
* @returns {google.api.TypeReference} TypeReference
|
|
18924
|
-
*/
|
|
18925
|
-
TypeReference.fromObject = function fromObject(object) {
|
|
18926
|
-
if (object instanceof $root.google.api.TypeReference)
|
|
18927
|
-
return object;
|
|
18928
|
-
var message = new $root.google.api.TypeReference();
|
|
18929
|
-
if (object.typeName != null)
|
|
18930
|
-
message.typeName = String(object.typeName);
|
|
18931
|
-
return message;
|
|
18932
|
-
};
|
|
18933
|
-
|
|
18934
|
-
/**
|
|
18935
|
-
* Creates a plain object from a TypeReference message. Also converts values to other types if specified.
|
|
18936
|
-
* @function toObject
|
|
18937
|
-
* @memberof google.api.TypeReference
|
|
18938
|
-
* @static
|
|
18939
|
-
* @param {google.api.TypeReference} message TypeReference
|
|
18940
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18941
|
-
* @returns {Object.<string,*>} Plain object
|
|
18942
|
-
*/
|
|
18943
|
-
TypeReference.toObject = function toObject(message, options) {
|
|
18944
|
-
if (!options)
|
|
18945
|
-
options = {};
|
|
18946
|
-
var object = {};
|
|
18947
|
-
if (options.defaults)
|
|
18948
|
-
object.typeName = "";
|
|
18949
|
-
if (message.typeName != null && message.hasOwnProperty("typeName"))
|
|
18950
|
-
object.typeName = message.typeName;
|
|
18951
|
-
return object;
|
|
18952
|
-
};
|
|
18953
|
-
|
|
18954
|
-
/**
|
|
18955
|
-
* Converts this TypeReference to JSON.
|
|
18956
|
-
* @function toJSON
|
|
18957
|
-
* @memberof google.api.TypeReference
|
|
18958
|
-
* @instance
|
|
18959
|
-
* @returns {Object.<string,*>} JSON object
|
|
18960
|
-
*/
|
|
18961
|
-
TypeReference.prototype.toJSON = function toJSON() {
|
|
18962
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18963
|
-
};
|
|
18964
|
-
|
|
18965
|
-
/**
|
|
18966
|
-
* Gets the default type url for TypeReference
|
|
18967
|
-
* @function getTypeUrl
|
|
18968
|
-
* @memberof google.api.TypeReference
|
|
18969
|
-
* @static
|
|
18970
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18971
|
-
* @returns {string} The default type url
|
|
18972
|
-
*/
|
|
18973
|
-
TypeReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18974
|
-
if (typeUrlPrefix === undefined) {
|
|
18975
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
18976
|
-
}
|
|
18977
|
-
return typeUrlPrefix + "/google.api.TypeReference";
|
|
18978
|
-
};
|
|
18979
|
-
|
|
18980
|
-
return TypeReference;
|
|
18981
|
-
})();
|
|
18982
|
-
|
|
18983
|
-
api.ResourceDescriptor = (function() {
|
|
18984
|
-
|
|
18985
|
-
/**
|
|
18986
|
-
* Properties of a ResourceDescriptor.
|
|
18987
|
-
* @memberof google.api
|
|
18988
|
-
* @interface IResourceDescriptor
|
|
18989
|
-
* @property {string|null} [type] ResourceDescriptor type
|
|
18990
|
-
* @property {Array.<string>|null} [pattern] ResourceDescriptor pattern
|
|
18991
|
-
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
18992
|
-
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
18993
|
-
* @property {string|null} [plural] ResourceDescriptor plural
|
|
18994
|
-
* @property {string|null} [singular] ResourceDescriptor singular
|
|
18995
|
-
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
18996
|
-
*/
|
|
18997
|
-
|
|
18998
|
-
/**
|
|
18999
|
-
* Constructs a new ResourceDescriptor.
|
|
19000
|
-
* @memberof google.api
|
|
19001
|
-
* @classdesc Represents a ResourceDescriptor.
|
|
19002
|
-
* @implements IResourceDescriptor
|
|
19003
|
-
* @constructor
|
|
19004
|
-
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
19005
|
-
*/
|
|
19006
|
-
function ResourceDescriptor(properties) {
|
|
19007
|
-
this.pattern = [];
|
|
19008
|
-
this.style = [];
|
|
19009
|
-
if (properties)
|
|
19010
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19011
|
-
if (properties[keys[i]] != null)
|
|
19012
|
-
this[keys[i]] = properties[keys[i]];
|
|
19013
|
-
}
|
|
19014
|
-
|
|
19015
|
-
/**
|
|
19016
|
-
* ResourceDescriptor type.
|
|
19017
|
-
* @member {string} type
|
|
19018
|
-
* @memberof google.api.ResourceDescriptor
|
|
19019
|
-
* @instance
|
|
19020
|
-
*/
|
|
19021
|
-
ResourceDescriptor.prototype.type = "";
|
|
19022
|
-
|
|
19023
|
-
/**
|
|
19024
|
-
* ResourceDescriptor pattern.
|
|
19025
|
-
* @member {Array.<string>} pattern
|
|
19026
|
-
* @memberof google.api.ResourceDescriptor
|
|
19027
|
-
* @instance
|
|
19028
|
-
*/
|
|
19029
|
-
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
19030
|
-
|
|
19031
|
-
/**
|
|
19032
|
-
* ResourceDescriptor nameField.
|
|
19033
|
-
* @member {string} nameField
|
|
19034
|
-
* @memberof google.api.ResourceDescriptor
|
|
19035
|
-
* @instance
|
|
19036
|
-
*/
|
|
19037
|
-
ResourceDescriptor.prototype.nameField = "";
|
|
19038
|
-
|
|
19039
|
-
/**
|
|
19040
|
-
* ResourceDescriptor history.
|
|
19041
|
-
* @member {google.api.ResourceDescriptor.History} history
|
|
19042
|
-
* @memberof google.api.ResourceDescriptor
|
|
19043
|
-
* @instance
|
|
19044
|
-
*/
|
|
19045
|
-
ResourceDescriptor.prototype.history = 0;
|
|
19046
|
-
|
|
19047
|
-
/**
|
|
19048
|
-
* ResourceDescriptor plural.
|
|
19049
|
-
* @member {string} plural
|
|
19050
|
-
* @memberof google.api.ResourceDescriptor
|
|
19051
|
-
* @instance
|
|
19052
|
-
*/
|
|
19053
|
-
ResourceDescriptor.prototype.plural = "";
|
|
19054
|
-
|
|
19055
|
-
/**
|
|
19056
|
-
* ResourceDescriptor singular.
|
|
19057
|
-
* @member {string} singular
|
|
19058
|
-
* @memberof google.api.ResourceDescriptor
|
|
19059
|
-
* @instance
|
|
19060
|
-
*/
|
|
19061
|
-
ResourceDescriptor.prototype.singular = "";
|
|
19062
|
-
|
|
19063
|
-
/**
|
|
19064
|
-
* ResourceDescriptor style.
|
|
19065
|
-
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
19066
|
-
* @memberof google.api.ResourceDescriptor
|
|
19067
|
-
* @instance
|
|
19068
|
-
*/
|
|
19069
|
-
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
19070
|
-
|
|
19071
|
-
/**
|
|
19072
|
-
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
19073
|
-
* @function create
|
|
19074
|
-
* @memberof google.api.ResourceDescriptor
|
|
19075
|
-
* @static
|
|
19076
|
-
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
19077
|
-
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
19078
|
-
*/
|
|
19079
|
-
ResourceDescriptor.create = function create(properties) {
|
|
19080
|
-
return new ResourceDescriptor(properties);
|
|
19081
|
-
};
|
|
19082
|
-
|
|
19083
|
-
/**
|
|
19084
|
-
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
19085
|
-
* @function encode
|
|
19086
|
-
* @memberof google.api.ResourceDescriptor
|
|
19087
|
-
* @static
|
|
19088
|
-
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
19089
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19090
|
-
* @returns {$protobuf.Writer} Writer
|
|
19091
|
-
*/
|
|
19092
|
-
ResourceDescriptor.encode = function encode(message, writer) {
|
|
19093
|
-
if (!writer)
|
|
19094
|
-
writer = $Writer.create();
|
|
19095
|
-
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
19096
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
19097
|
-
if (message.pattern != null && message.pattern.length)
|
|
19098
|
-
for (var i = 0; i < message.pattern.length; ++i)
|
|
19099
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
|
|
19100
|
-
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
19101
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
19102
|
-
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
19103
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
19104
|
-
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
19105
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
19106
|
-
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
19107
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
19108
|
-
if (message.style != null && message.style.length) {
|
|
19109
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
19110
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
19111
|
-
writer.int32(message.style[i]);
|
|
19112
|
-
writer.ldelim();
|
|
19113
|
-
}
|
|
19114
|
-
return writer;
|
|
19115
|
-
};
|
|
19116
|
-
|
|
19117
|
-
/**
|
|
19118
|
-
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
19119
|
-
* @function encodeDelimited
|
|
19120
|
-
* @memberof google.api.ResourceDescriptor
|
|
19121
|
-
* @static
|
|
19122
|
-
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
19123
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19124
|
-
* @returns {$protobuf.Writer} Writer
|
|
19125
|
-
*/
|
|
19126
|
-
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19127
|
-
return this.encode(message, writer).ldelim();
|
|
19128
|
-
};
|
|
19129
|
-
|
|
19130
|
-
/**
|
|
19131
|
-
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
19132
|
-
* @function decode
|
|
19133
|
-
* @memberof google.api.ResourceDescriptor
|
|
19134
|
-
* @static
|
|
19135
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19136
|
-
* @param {number} [length] Message length if known beforehand
|
|
19137
|
-
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
19138
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19139
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19140
|
-
*/
|
|
19141
|
-
ResourceDescriptor.decode = function decode(reader, length, error) {
|
|
19142
|
-
if (!(reader instanceof $Reader))
|
|
19143
|
-
reader = $Reader.create(reader);
|
|
19144
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
|
19145
|
-
while (reader.pos < end) {
|
|
19146
|
-
var tag = reader.uint32();
|
|
19147
|
-
if (tag === error)
|
|
19148
|
-
break;
|
|
19149
|
-
switch (tag >>> 3) {
|
|
19150
|
-
case 1: {
|
|
19151
|
-
message.type = reader.string();
|
|
18287
|
+
message.type = reader.string();
|
|
19152
18288
|
break;
|
|
19153
18289
|
}
|
|
19154
18290
|
case 2: {
|
|
@@ -20366,7 +19502,6 @@
|
|
|
20366
19502
|
* @name google.protobuf.Edition
|
|
20367
19503
|
* @enum {number}
|
|
20368
19504
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
20369
|
-
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
20370
19505
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
20371
19506
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
20372
19507
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -20381,7 +19516,6 @@
|
|
|
20381
19516
|
protobuf.Edition = (function() {
|
|
20382
19517
|
var valuesById = {}, values = Object.create(valuesById);
|
|
20383
19518
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
20384
|
-
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
20385
19519
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
20386
19520
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
20387
19521
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -20406,7 +19540,6 @@
|
|
|
20406
19540
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
20407
19541
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
20408
19542
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
20409
|
-
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
20410
19543
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
20411
19544
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
20412
19545
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -20429,7 +19562,6 @@
|
|
|
20429
19562
|
this.dependency = [];
|
|
20430
19563
|
this.publicDependency = [];
|
|
20431
19564
|
this.weakDependency = [];
|
|
20432
|
-
this.optionDependency = [];
|
|
20433
19565
|
this.messageType = [];
|
|
20434
19566
|
this.enumType = [];
|
|
20435
19567
|
this.service = [];
|
|
@@ -20480,14 +19612,6 @@
|
|
|
20480
19612
|
*/
|
|
20481
19613
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
20482
19614
|
|
|
20483
|
-
/**
|
|
20484
|
-
* FileDescriptorProto optionDependency.
|
|
20485
|
-
* @member {Array.<string>} optionDependency
|
|
20486
|
-
* @memberof google.protobuf.FileDescriptorProto
|
|
20487
|
-
* @instance
|
|
20488
|
-
*/
|
|
20489
|
-
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
20490
|
-
|
|
20491
19615
|
/**
|
|
20492
19616
|
* FileDescriptorProto messageType.
|
|
20493
19617
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -20609,9 +19733,6 @@
|
|
|
20609
19733
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
20610
19734
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
20611
19735
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
20612
|
-
if (message.optionDependency != null && message.optionDependency.length)
|
|
20613
|
-
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
20614
|
-
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
20615
19736
|
return writer;
|
|
20616
19737
|
};
|
|
20617
19738
|
|
|
@@ -20684,12 +19805,6 @@
|
|
|
20684
19805
|
message.weakDependency.push(reader.int32());
|
|
20685
19806
|
break;
|
|
20686
19807
|
}
|
|
20687
|
-
case 15: {
|
|
20688
|
-
if (!(message.optionDependency && message.optionDependency.length))
|
|
20689
|
-
message.optionDependency = [];
|
|
20690
|
-
message.optionDependency.push(reader.string());
|
|
20691
|
-
break;
|
|
20692
|
-
}
|
|
20693
19808
|
case 4: {
|
|
20694
19809
|
if (!(message.messageType && message.messageType.length))
|
|
20695
19810
|
message.messageType = [];
|
|
@@ -20792,13 +19907,6 @@
|
|
|
20792
19907
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
20793
19908
|
return "weakDependency: integer[] expected";
|
|
20794
19909
|
}
|
|
20795
|
-
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
20796
|
-
if (!Array.isArray(message.optionDependency))
|
|
20797
|
-
return "optionDependency: array expected";
|
|
20798
|
-
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
20799
|
-
if (!$util.isString(message.optionDependency[i]))
|
|
20800
|
-
return "optionDependency: string[] expected";
|
|
20801
|
-
}
|
|
20802
19910
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
20803
19911
|
if (!Array.isArray(message.messageType))
|
|
20804
19912
|
return "messageType: array expected";
|
|
@@ -20853,7 +19961,6 @@
|
|
|
20853
19961
|
default:
|
|
20854
19962
|
return "edition: enum value expected";
|
|
20855
19963
|
case 0:
|
|
20856
|
-
case 900:
|
|
20857
19964
|
case 998:
|
|
20858
19965
|
case 999:
|
|
20859
19966
|
case 1000:
|
|
@@ -20906,13 +20013,6 @@
|
|
|
20906
20013
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
20907
20014
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
20908
20015
|
}
|
|
20909
|
-
if (object.optionDependency) {
|
|
20910
|
-
if (!Array.isArray(object.optionDependency))
|
|
20911
|
-
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
20912
|
-
message.optionDependency = [];
|
|
20913
|
-
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
20914
|
-
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
20915
|
-
}
|
|
20916
20016
|
if (object.messageType) {
|
|
20917
20017
|
if (!Array.isArray(object.messageType))
|
|
20918
20018
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -20976,10 +20076,6 @@
|
|
|
20976
20076
|
case 0:
|
|
20977
20077
|
message.edition = 0;
|
|
20978
20078
|
break;
|
|
20979
|
-
case "EDITION_LEGACY":
|
|
20980
|
-
case 900:
|
|
20981
|
-
message.edition = 900;
|
|
20982
|
-
break;
|
|
20983
20079
|
case "EDITION_PROTO2":
|
|
20984
20080
|
case 998:
|
|
20985
20081
|
message.edition = 998;
|
|
@@ -21045,7 +20141,6 @@
|
|
|
21045
20141
|
object.extension = [];
|
|
21046
20142
|
object.publicDependency = [];
|
|
21047
20143
|
object.weakDependency = [];
|
|
21048
|
-
object.optionDependency = [];
|
|
21049
20144
|
}
|
|
21050
20145
|
if (options.defaults) {
|
|
21051
20146
|
object.name = "";
|
|
@@ -21102,11 +20197,6 @@
|
|
|
21102
20197
|
object.syntax = message.syntax;
|
|
21103
20198
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
21104
20199
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
21105
|
-
if (message.optionDependency && message.optionDependency.length) {
|
|
21106
|
-
object.optionDependency = [];
|
|
21107
|
-
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
21108
|
-
object.optionDependency[j] = message.optionDependency[j];
|
|
21109
|
-
}
|
|
21110
20200
|
return object;
|
|
21111
20201
|
};
|
|
21112
20202
|
|
|
@@ -21155,7 +20245,6 @@
|
|
|
21155
20245
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
21156
20246
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
21157
20247
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
21158
|
-
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
21159
20248
|
*/
|
|
21160
20249
|
|
|
21161
20250
|
/**
|
|
@@ -21261,14 +20350,6 @@
|
|
|
21261
20350
|
*/
|
|
21262
20351
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
21263
20352
|
|
|
21264
|
-
/**
|
|
21265
|
-
* DescriptorProto visibility.
|
|
21266
|
-
* @member {google.protobuf.SymbolVisibility} visibility
|
|
21267
|
-
* @memberof google.protobuf.DescriptorProto
|
|
21268
|
-
* @instance
|
|
21269
|
-
*/
|
|
21270
|
-
DescriptorProto.prototype.visibility = 0;
|
|
21271
|
-
|
|
21272
20353
|
/**
|
|
21273
20354
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
21274
20355
|
* @function create
|
|
@@ -21321,8 +20402,6 @@
|
|
|
21321
20402
|
if (message.reservedName != null && message.reservedName.length)
|
|
21322
20403
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
21323
20404
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
21324
|
-
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
21325
|
-
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
21326
20405
|
return writer;
|
|
21327
20406
|
};
|
|
21328
20407
|
|
|
@@ -21415,10 +20494,6 @@
|
|
|
21415
20494
|
message.reservedName.push(reader.string());
|
|
21416
20495
|
break;
|
|
21417
20496
|
}
|
|
21418
|
-
case 11: {
|
|
21419
|
-
message.visibility = reader.int32();
|
|
21420
|
-
break;
|
|
21421
|
-
}
|
|
21422
20497
|
default:
|
|
21423
20498
|
reader.skipType(tag & 7);
|
|
21424
20499
|
break;
|
|
@@ -21532,15 +20607,6 @@
|
|
|
21532
20607
|
if (!$util.isString(message.reservedName[i]))
|
|
21533
20608
|
return "reservedName: string[] expected";
|
|
21534
20609
|
}
|
|
21535
|
-
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
21536
|
-
switch (message.visibility) {
|
|
21537
|
-
default:
|
|
21538
|
-
return "visibility: enum value expected";
|
|
21539
|
-
case 0:
|
|
21540
|
-
case 1:
|
|
21541
|
-
case 2:
|
|
21542
|
-
break;
|
|
21543
|
-
}
|
|
21544
20610
|
return null;
|
|
21545
20611
|
};
|
|
21546
20612
|
|
|
@@ -21640,26 +20706,6 @@
|
|
|
21640
20706
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
21641
20707
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
21642
20708
|
}
|
|
21643
|
-
switch (object.visibility) {
|
|
21644
|
-
default:
|
|
21645
|
-
if (typeof object.visibility === "number") {
|
|
21646
|
-
message.visibility = object.visibility;
|
|
21647
|
-
break;
|
|
21648
|
-
}
|
|
21649
|
-
break;
|
|
21650
|
-
case "VISIBILITY_UNSET":
|
|
21651
|
-
case 0:
|
|
21652
|
-
message.visibility = 0;
|
|
21653
|
-
break;
|
|
21654
|
-
case "VISIBILITY_LOCAL":
|
|
21655
|
-
case 1:
|
|
21656
|
-
message.visibility = 1;
|
|
21657
|
-
break;
|
|
21658
|
-
case "VISIBILITY_EXPORT":
|
|
21659
|
-
case 2:
|
|
21660
|
-
message.visibility = 2;
|
|
21661
|
-
break;
|
|
21662
|
-
}
|
|
21663
20709
|
return message;
|
|
21664
20710
|
};
|
|
21665
20711
|
|
|
@@ -21689,7 +20735,6 @@
|
|
|
21689
20735
|
if (options.defaults) {
|
|
21690
20736
|
object.name = "";
|
|
21691
20737
|
object.options = null;
|
|
21692
|
-
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
21693
20738
|
}
|
|
21694
20739
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
21695
20740
|
object.name = message.name;
|
|
@@ -21735,8 +20780,6 @@
|
|
|
21735
20780
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
21736
20781
|
object.reservedName[j] = message.reservedName[j];
|
|
21737
20782
|
}
|
|
21738
|
-
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
21739
|
-
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
21740
20783
|
return object;
|
|
21741
20784
|
};
|
|
21742
20785
|
|
|
@@ -23781,7 +22824,6 @@
|
|
|
23781
22824
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
23782
22825
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
23783
22826
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
23784
|
-
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
23785
22827
|
*/
|
|
23786
22828
|
|
|
23787
22829
|
/**
|
|
@@ -23842,14 +22884,6 @@
|
|
|
23842
22884
|
*/
|
|
23843
22885
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
23844
22886
|
|
|
23845
|
-
/**
|
|
23846
|
-
* EnumDescriptorProto visibility.
|
|
23847
|
-
* @member {google.protobuf.SymbolVisibility} visibility
|
|
23848
|
-
* @memberof google.protobuf.EnumDescriptorProto
|
|
23849
|
-
* @instance
|
|
23850
|
-
*/
|
|
23851
|
-
EnumDescriptorProto.prototype.visibility = 0;
|
|
23852
|
-
|
|
23853
22887
|
/**
|
|
23854
22888
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
23855
22889
|
* @function create
|
|
@@ -23887,8 +22921,6 @@
|
|
|
23887
22921
|
if (message.reservedName != null && message.reservedName.length)
|
|
23888
22922
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
23889
22923
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
23890
|
-
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
23891
|
-
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
23892
22924
|
return writer;
|
|
23893
22925
|
};
|
|
23894
22926
|
|
|
@@ -23951,10 +22983,6 @@
|
|
|
23951
22983
|
message.reservedName.push(reader.string());
|
|
23952
22984
|
break;
|
|
23953
22985
|
}
|
|
23954
|
-
case 6: {
|
|
23955
|
-
message.visibility = reader.int32();
|
|
23956
|
-
break;
|
|
23957
|
-
}
|
|
23958
22986
|
default:
|
|
23959
22987
|
reader.skipType(tag & 7);
|
|
23960
22988
|
break;
|
|
@@ -24023,15 +23051,6 @@
|
|
|
24023
23051
|
if (!$util.isString(message.reservedName[i]))
|
|
24024
23052
|
return "reservedName: string[] expected";
|
|
24025
23053
|
}
|
|
24026
|
-
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
24027
|
-
switch (message.visibility) {
|
|
24028
|
-
default:
|
|
24029
|
-
return "visibility: enum value expected";
|
|
24030
|
-
case 0:
|
|
24031
|
-
case 1:
|
|
24032
|
-
case 2:
|
|
24033
|
-
break;
|
|
24034
|
-
}
|
|
24035
23054
|
return null;
|
|
24036
23055
|
};
|
|
24037
23056
|
|
|
@@ -24081,26 +23100,6 @@
|
|
|
24081
23100
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
24082
23101
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
24083
23102
|
}
|
|
24084
|
-
switch (object.visibility) {
|
|
24085
|
-
default:
|
|
24086
|
-
if (typeof object.visibility === "number") {
|
|
24087
|
-
message.visibility = object.visibility;
|
|
24088
|
-
break;
|
|
24089
|
-
}
|
|
24090
|
-
break;
|
|
24091
|
-
case "VISIBILITY_UNSET":
|
|
24092
|
-
case 0:
|
|
24093
|
-
message.visibility = 0;
|
|
24094
|
-
break;
|
|
24095
|
-
case "VISIBILITY_LOCAL":
|
|
24096
|
-
case 1:
|
|
24097
|
-
message.visibility = 1;
|
|
24098
|
-
break;
|
|
24099
|
-
case "VISIBILITY_EXPORT":
|
|
24100
|
-
case 2:
|
|
24101
|
-
message.visibility = 2;
|
|
24102
|
-
break;
|
|
24103
|
-
}
|
|
24104
23103
|
return message;
|
|
24105
23104
|
};
|
|
24106
23105
|
|
|
@@ -24125,7 +23124,6 @@
|
|
|
24125
23124
|
if (options.defaults) {
|
|
24126
23125
|
object.name = "";
|
|
24127
23126
|
object.options = null;
|
|
24128
|
-
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
24129
23127
|
}
|
|
24130
23128
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
24131
23129
|
object.name = message.name;
|
|
@@ -24146,8 +23144,6 @@
|
|
|
24146
23144
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
24147
23145
|
object.reservedName[j] = message.reservedName[j];
|
|
24148
23146
|
}
|
|
24149
|
-
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
24150
|
-
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
24151
23147
|
return object;
|
|
24152
23148
|
};
|
|
24153
23149
|
|
|
@@ -26466,7 +25462,6 @@
|
|
|
26466
25462
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
26467
25463
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
26468
25464
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
26469
|
-
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
26470
25465
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
26471
25466
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
26472
25467
|
* @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo
|
|
@@ -26588,14 +25583,6 @@
|
|
|
26588
25583
|
*/
|
|
26589
25584
|
FieldOptions.prototype.features = null;
|
|
26590
25585
|
|
|
26591
|
-
/**
|
|
26592
|
-
* FieldOptions featureSupport.
|
|
26593
|
-
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
26594
|
-
* @memberof google.protobuf.FieldOptions
|
|
26595
|
-
* @instance
|
|
26596
|
-
*/
|
|
26597
|
-
FieldOptions.prototype.featureSupport = null;
|
|
26598
|
-
|
|
26599
25586
|
/**
|
|
26600
25587
|
* FieldOptions uninterpretedOption.
|
|
26601
25588
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -26678,8 +25665,6 @@
|
|
|
26678
25665
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
26679
25666
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
26680
25667
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
26681
|
-
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
26682
|
-
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
26683
25668
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
26684
25669
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
26685
25670
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -26783,10 +25768,6 @@
|
|
|
26783
25768
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
26784
25769
|
break;
|
|
26785
25770
|
}
|
|
26786
|
-
case 22: {
|
|
26787
|
-
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
26788
|
-
break;
|
|
26789
|
-
}
|
|
26790
25771
|
case 999: {
|
|
26791
25772
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
26792
25773
|
message.uninterpretedOption = [];
|
|
@@ -26926,11 +25907,6 @@
|
|
|
26926
25907
|
if (error)
|
|
26927
25908
|
return "features." + error;
|
|
26928
25909
|
}
|
|
26929
|
-
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
26930
|
-
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
26931
|
-
if (error)
|
|
26932
|
-
return "featureSupport." + error;
|
|
26933
|
-
}
|
|
26934
25910
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
26935
25911
|
if (!Array.isArray(message.uninterpretedOption))
|
|
26936
25912
|
return "uninterpretedOption: array expected";
|
|
@@ -27124,11 +26100,6 @@
|
|
|
27124
26100
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
27125
26101
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
27126
26102
|
}
|
|
27127
|
-
if (object.featureSupport != null) {
|
|
27128
|
-
if (typeof object.featureSupport !== "object")
|
|
27129
|
-
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
27130
|
-
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
27131
|
-
}
|
|
27132
26103
|
if (object.uninterpretedOption) {
|
|
27133
26104
|
if (!Array.isArray(object.uninterpretedOption))
|
|
27134
26105
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -27231,7 +26202,6 @@
|
|
|
27231
26202
|
object.debugRedact = false;
|
|
27232
26203
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
27233
26204
|
object.features = null;
|
|
27234
|
-
object.featureSupport = null;
|
|
27235
26205
|
object[".google.api.resourceReference"] = null;
|
|
27236
26206
|
object[".google.api.fieldInfo"] = null;
|
|
27237
26207
|
}
|
|
@@ -27265,8 +26235,6 @@
|
|
|
27265
26235
|
}
|
|
27266
26236
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
27267
26237
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
27268
|
-
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
27269
|
-
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
27270
26238
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
27271
26239
|
object.uninterpretedOption = [];
|
|
27272
26240
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -27541,7 +26509,6 @@
|
|
|
27541
26509
|
default:
|
|
27542
26510
|
return "edition: enum value expected";
|
|
27543
26511
|
case 0:
|
|
27544
|
-
case 900:
|
|
27545
26512
|
case 998:
|
|
27546
26513
|
case 999:
|
|
27547
26514
|
case 1000:
|
|
@@ -27583,589 +26550,103 @@
|
|
|
27583
26550
|
case 0:
|
|
27584
26551
|
message.edition = 0;
|
|
27585
26552
|
break;
|
|
27586
|
-
case "EDITION_LEGACY":
|
|
27587
|
-
case 900:
|
|
27588
|
-
message.edition = 900;
|
|
27589
|
-
break;
|
|
27590
26553
|
case "EDITION_PROTO2":
|
|
27591
26554
|
case 998:
|
|
27592
26555
|
message.edition = 998;
|
|
27593
26556
|
break;
|
|
27594
26557
|
case "EDITION_PROTO3":
|
|
27595
26558
|
case 999:
|
|
27596
|
-
message.edition = 999;
|
|
27597
|
-
break;
|
|
27598
|
-
case "EDITION_2023":
|
|
27599
|
-
case 1000:
|
|
27600
|
-
message.edition = 1000;
|
|
27601
|
-
break;
|
|
27602
|
-
case "EDITION_2024":
|
|
27603
|
-
case 1001:
|
|
27604
|
-
message.edition = 1001;
|
|
27605
|
-
break;
|
|
27606
|
-
case "EDITION_1_TEST_ONLY":
|
|
27607
|
-
case 1:
|
|
27608
|
-
message.edition = 1;
|
|
27609
|
-
break;
|
|
27610
|
-
case "EDITION_2_TEST_ONLY":
|
|
27611
|
-
case 2:
|
|
27612
|
-
message.edition = 2;
|
|
27613
|
-
break;
|
|
27614
|
-
case "EDITION_99997_TEST_ONLY":
|
|
27615
|
-
case 99997:
|
|
27616
|
-
message.edition = 99997;
|
|
27617
|
-
break;
|
|
27618
|
-
case "EDITION_99998_TEST_ONLY":
|
|
27619
|
-
case 99998:
|
|
27620
|
-
message.edition = 99998;
|
|
27621
|
-
break;
|
|
27622
|
-
case "EDITION_99999_TEST_ONLY":
|
|
27623
|
-
case 99999:
|
|
27624
|
-
message.edition = 99999;
|
|
27625
|
-
break;
|
|
27626
|
-
case "EDITION_MAX":
|
|
27627
|
-
case 2147483647:
|
|
27628
|
-
message.edition = 2147483647;
|
|
27629
|
-
break;
|
|
27630
|
-
}
|
|
27631
|
-
if (object.value != null)
|
|
27632
|
-
message.value = String(object.value);
|
|
27633
|
-
return message;
|
|
27634
|
-
};
|
|
27635
|
-
|
|
27636
|
-
/**
|
|
27637
|
-
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
27638
|
-
* @function toObject
|
|
27639
|
-
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
27640
|
-
* @static
|
|
27641
|
-
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
27642
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27643
|
-
* @returns {Object.<string,*>} Plain object
|
|
27644
|
-
*/
|
|
27645
|
-
EditionDefault.toObject = function toObject(message, options) {
|
|
27646
|
-
if (!options)
|
|
27647
|
-
options = {};
|
|
27648
|
-
var object = {};
|
|
27649
|
-
if (options.defaults) {
|
|
27650
|
-
object.value = "";
|
|
27651
|
-
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
27652
|
-
}
|
|
27653
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
27654
|
-
object.value = message.value;
|
|
27655
|
-
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
27656
|
-
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
27657
|
-
return object;
|
|
27658
|
-
};
|
|
27659
|
-
|
|
27660
|
-
/**
|
|
27661
|
-
* Converts this EditionDefault to JSON.
|
|
27662
|
-
* @function toJSON
|
|
27663
|
-
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
27664
|
-
* @instance
|
|
27665
|
-
* @returns {Object.<string,*>} JSON object
|
|
27666
|
-
*/
|
|
27667
|
-
EditionDefault.prototype.toJSON = function toJSON() {
|
|
27668
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27669
|
-
};
|
|
27670
|
-
|
|
27671
|
-
/**
|
|
27672
|
-
* Gets the default type url for EditionDefault
|
|
27673
|
-
* @function getTypeUrl
|
|
27674
|
-
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
27675
|
-
* @static
|
|
27676
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27677
|
-
* @returns {string} The default type url
|
|
27678
|
-
*/
|
|
27679
|
-
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27680
|
-
if (typeUrlPrefix === undefined) {
|
|
27681
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
27682
|
-
}
|
|
27683
|
-
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
27684
|
-
};
|
|
27685
|
-
|
|
27686
|
-
return EditionDefault;
|
|
27687
|
-
})();
|
|
27688
|
-
|
|
27689
|
-
FieldOptions.FeatureSupport = (function() {
|
|
27690
|
-
|
|
27691
|
-
/**
|
|
27692
|
-
* Properties of a FeatureSupport.
|
|
27693
|
-
* @memberof google.protobuf.FieldOptions
|
|
27694
|
-
* @interface IFeatureSupport
|
|
27695
|
-
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
27696
|
-
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
27697
|
-
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
27698
|
-
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
27699
|
-
*/
|
|
27700
|
-
|
|
27701
|
-
/**
|
|
27702
|
-
* Constructs a new FeatureSupport.
|
|
27703
|
-
* @memberof google.protobuf.FieldOptions
|
|
27704
|
-
* @classdesc Represents a FeatureSupport.
|
|
27705
|
-
* @implements IFeatureSupport
|
|
27706
|
-
* @constructor
|
|
27707
|
-
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
27708
|
-
*/
|
|
27709
|
-
function FeatureSupport(properties) {
|
|
27710
|
-
if (properties)
|
|
27711
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27712
|
-
if (properties[keys[i]] != null)
|
|
27713
|
-
this[keys[i]] = properties[keys[i]];
|
|
27714
|
-
}
|
|
27715
|
-
|
|
27716
|
-
/**
|
|
27717
|
-
* FeatureSupport editionIntroduced.
|
|
27718
|
-
* @member {google.protobuf.Edition} editionIntroduced
|
|
27719
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27720
|
-
* @instance
|
|
27721
|
-
*/
|
|
27722
|
-
FeatureSupport.prototype.editionIntroduced = 0;
|
|
27723
|
-
|
|
27724
|
-
/**
|
|
27725
|
-
* FeatureSupport editionDeprecated.
|
|
27726
|
-
* @member {google.protobuf.Edition} editionDeprecated
|
|
27727
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27728
|
-
* @instance
|
|
27729
|
-
*/
|
|
27730
|
-
FeatureSupport.prototype.editionDeprecated = 0;
|
|
27731
|
-
|
|
27732
|
-
/**
|
|
27733
|
-
* FeatureSupport deprecationWarning.
|
|
27734
|
-
* @member {string} deprecationWarning
|
|
27735
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27736
|
-
* @instance
|
|
27737
|
-
*/
|
|
27738
|
-
FeatureSupport.prototype.deprecationWarning = "";
|
|
27739
|
-
|
|
27740
|
-
/**
|
|
27741
|
-
* FeatureSupport editionRemoved.
|
|
27742
|
-
* @member {google.protobuf.Edition} editionRemoved
|
|
27743
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27744
|
-
* @instance
|
|
27745
|
-
*/
|
|
27746
|
-
FeatureSupport.prototype.editionRemoved = 0;
|
|
27747
|
-
|
|
27748
|
-
/**
|
|
27749
|
-
* Creates a new FeatureSupport instance using the specified properties.
|
|
27750
|
-
* @function create
|
|
27751
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27752
|
-
* @static
|
|
27753
|
-
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
27754
|
-
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
27755
|
-
*/
|
|
27756
|
-
FeatureSupport.create = function create(properties) {
|
|
27757
|
-
return new FeatureSupport(properties);
|
|
27758
|
-
};
|
|
27759
|
-
|
|
27760
|
-
/**
|
|
27761
|
-
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
27762
|
-
* @function encode
|
|
27763
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27764
|
-
* @static
|
|
27765
|
-
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
27766
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27767
|
-
* @returns {$protobuf.Writer} Writer
|
|
27768
|
-
*/
|
|
27769
|
-
FeatureSupport.encode = function encode(message, writer) {
|
|
27770
|
-
if (!writer)
|
|
27771
|
-
writer = $Writer.create();
|
|
27772
|
-
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
27773
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
27774
|
-
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
27775
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
27776
|
-
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
27777
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
27778
|
-
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
27779
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
27780
|
-
return writer;
|
|
27781
|
-
};
|
|
27782
|
-
|
|
27783
|
-
/**
|
|
27784
|
-
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
27785
|
-
* @function encodeDelimited
|
|
27786
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27787
|
-
* @static
|
|
27788
|
-
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
27789
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27790
|
-
* @returns {$protobuf.Writer} Writer
|
|
27791
|
-
*/
|
|
27792
|
-
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27793
|
-
return this.encode(message, writer).ldelim();
|
|
27794
|
-
};
|
|
27795
|
-
|
|
27796
|
-
/**
|
|
27797
|
-
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
27798
|
-
* @function decode
|
|
27799
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27800
|
-
* @static
|
|
27801
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27802
|
-
* @param {number} [length] Message length if known beforehand
|
|
27803
|
-
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
27804
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27805
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27806
|
-
*/
|
|
27807
|
-
FeatureSupport.decode = function decode(reader, length, error) {
|
|
27808
|
-
if (!(reader instanceof $Reader))
|
|
27809
|
-
reader = $Reader.create(reader);
|
|
27810
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
27811
|
-
while (reader.pos < end) {
|
|
27812
|
-
var tag = reader.uint32();
|
|
27813
|
-
if (tag === error)
|
|
27814
|
-
break;
|
|
27815
|
-
switch (tag >>> 3) {
|
|
27816
|
-
case 1: {
|
|
27817
|
-
message.editionIntroduced = reader.int32();
|
|
27818
|
-
break;
|
|
27819
|
-
}
|
|
27820
|
-
case 2: {
|
|
27821
|
-
message.editionDeprecated = reader.int32();
|
|
27822
|
-
break;
|
|
27823
|
-
}
|
|
27824
|
-
case 3: {
|
|
27825
|
-
message.deprecationWarning = reader.string();
|
|
27826
|
-
break;
|
|
27827
|
-
}
|
|
27828
|
-
case 4: {
|
|
27829
|
-
message.editionRemoved = reader.int32();
|
|
27830
|
-
break;
|
|
27831
|
-
}
|
|
27832
|
-
default:
|
|
27833
|
-
reader.skipType(tag & 7);
|
|
27834
|
-
break;
|
|
27835
|
-
}
|
|
27836
|
-
}
|
|
27837
|
-
return message;
|
|
27838
|
-
};
|
|
27839
|
-
|
|
27840
|
-
/**
|
|
27841
|
-
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
27842
|
-
* @function decodeDelimited
|
|
27843
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27844
|
-
* @static
|
|
27845
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27846
|
-
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
27847
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27848
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27849
|
-
*/
|
|
27850
|
-
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
27851
|
-
if (!(reader instanceof $Reader))
|
|
27852
|
-
reader = new $Reader(reader);
|
|
27853
|
-
return this.decode(reader, reader.uint32());
|
|
27854
|
-
};
|
|
27855
|
-
|
|
27856
|
-
/**
|
|
27857
|
-
* Verifies a FeatureSupport message.
|
|
27858
|
-
* @function verify
|
|
27859
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27860
|
-
* @static
|
|
27861
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
27862
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27863
|
-
*/
|
|
27864
|
-
FeatureSupport.verify = function verify(message) {
|
|
27865
|
-
if (typeof message !== "object" || message === null)
|
|
27866
|
-
return "object expected";
|
|
27867
|
-
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
27868
|
-
switch (message.editionIntroduced) {
|
|
27869
|
-
default:
|
|
27870
|
-
return "editionIntroduced: enum value expected";
|
|
27871
|
-
case 0:
|
|
27872
|
-
case 900:
|
|
27873
|
-
case 998:
|
|
27874
|
-
case 999:
|
|
27875
|
-
case 1000:
|
|
27876
|
-
case 1001:
|
|
27877
|
-
case 1:
|
|
27878
|
-
case 2:
|
|
27879
|
-
case 99997:
|
|
27880
|
-
case 99998:
|
|
27881
|
-
case 99999:
|
|
27882
|
-
case 2147483647:
|
|
27883
|
-
break;
|
|
27884
|
-
}
|
|
27885
|
-
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
27886
|
-
switch (message.editionDeprecated) {
|
|
27887
|
-
default:
|
|
27888
|
-
return "editionDeprecated: enum value expected";
|
|
27889
|
-
case 0:
|
|
27890
|
-
case 900:
|
|
27891
|
-
case 998:
|
|
27892
|
-
case 999:
|
|
27893
|
-
case 1000:
|
|
27894
|
-
case 1001:
|
|
27895
|
-
case 1:
|
|
27896
|
-
case 2:
|
|
27897
|
-
case 99997:
|
|
27898
|
-
case 99998:
|
|
27899
|
-
case 99999:
|
|
27900
|
-
case 2147483647:
|
|
27901
|
-
break;
|
|
27902
|
-
}
|
|
27903
|
-
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
27904
|
-
if (!$util.isString(message.deprecationWarning))
|
|
27905
|
-
return "deprecationWarning: string expected";
|
|
27906
|
-
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
27907
|
-
switch (message.editionRemoved) {
|
|
27908
|
-
default:
|
|
27909
|
-
return "editionRemoved: enum value expected";
|
|
27910
|
-
case 0:
|
|
27911
|
-
case 900:
|
|
27912
|
-
case 998:
|
|
27913
|
-
case 999:
|
|
27914
|
-
case 1000:
|
|
27915
|
-
case 1001:
|
|
27916
|
-
case 1:
|
|
27917
|
-
case 2:
|
|
27918
|
-
case 99997:
|
|
27919
|
-
case 99998:
|
|
27920
|
-
case 99999:
|
|
27921
|
-
case 2147483647:
|
|
27922
|
-
break;
|
|
27923
|
-
}
|
|
27924
|
-
return null;
|
|
27925
|
-
};
|
|
27926
|
-
|
|
27927
|
-
/**
|
|
27928
|
-
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
27929
|
-
* @function fromObject
|
|
27930
|
-
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
27931
|
-
* @static
|
|
27932
|
-
* @param {Object.<string,*>} object Plain object
|
|
27933
|
-
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
27934
|
-
*/
|
|
27935
|
-
FeatureSupport.fromObject = function fromObject(object) {
|
|
27936
|
-
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
27937
|
-
return object;
|
|
27938
|
-
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
27939
|
-
switch (object.editionIntroduced) {
|
|
27940
|
-
default:
|
|
27941
|
-
if (typeof object.editionIntroduced === "number") {
|
|
27942
|
-
message.editionIntroduced = object.editionIntroduced;
|
|
27943
|
-
break;
|
|
27944
|
-
}
|
|
27945
|
-
break;
|
|
27946
|
-
case "EDITION_UNKNOWN":
|
|
27947
|
-
case 0:
|
|
27948
|
-
message.editionIntroduced = 0;
|
|
27949
|
-
break;
|
|
27950
|
-
case "EDITION_LEGACY":
|
|
27951
|
-
case 900:
|
|
27952
|
-
message.editionIntroduced = 900;
|
|
27953
|
-
break;
|
|
27954
|
-
case "EDITION_PROTO2":
|
|
27955
|
-
case 998:
|
|
27956
|
-
message.editionIntroduced = 998;
|
|
27957
|
-
break;
|
|
27958
|
-
case "EDITION_PROTO3":
|
|
27959
|
-
case 999:
|
|
27960
|
-
message.editionIntroduced = 999;
|
|
27961
|
-
break;
|
|
27962
|
-
case "EDITION_2023":
|
|
27963
|
-
case 1000:
|
|
27964
|
-
message.editionIntroduced = 1000;
|
|
27965
|
-
break;
|
|
27966
|
-
case "EDITION_2024":
|
|
27967
|
-
case 1001:
|
|
27968
|
-
message.editionIntroduced = 1001;
|
|
27969
|
-
break;
|
|
27970
|
-
case "EDITION_1_TEST_ONLY":
|
|
27971
|
-
case 1:
|
|
27972
|
-
message.editionIntroduced = 1;
|
|
27973
|
-
break;
|
|
27974
|
-
case "EDITION_2_TEST_ONLY":
|
|
27975
|
-
case 2:
|
|
27976
|
-
message.editionIntroduced = 2;
|
|
27977
|
-
break;
|
|
27978
|
-
case "EDITION_99997_TEST_ONLY":
|
|
27979
|
-
case 99997:
|
|
27980
|
-
message.editionIntroduced = 99997;
|
|
27981
|
-
break;
|
|
27982
|
-
case "EDITION_99998_TEST_ONLY":
|
|
27983
|
-
case 99998:
|
|
27984
|
-
message.editionIntroduced = 99998;
|
|
27985
|
-
break;
|
|
27986
|
-
case "EDITION_99999_TEST_ONLY":
|
|
27987
|
-
case 99999:
|
|
27988
|
-
message.editionIntroduced = 99999;
|
|
27989
|
-
break;
|
|
27990
|
-
case "EDITION_MAX":
|
|
27991
|
-
case 2147483647:
|
|
27992
|
-
message.editionIntroduced = 2147483647;
|
|
27993
|
-
break;
|
|
27994
|
-
}
|
|
27995
|
-
switch (object.editionDeprecated) {
|
|
27996
|
-
default:
|
|
27997
|
-
if (typeof object.editionDeprecated === "number") {
|
|
27998
|
-
message.editionDeprecated = object.editionDeprecated;
|
|
27999
|
-
break;
|
|
28000
|
-
}
|
|
28001
|
-
break;
|
|
28002
|
-
case "EDITION_UNKNOWN":
|
|
28003
|
-
case 0:
|
|
28004
|
-
message.editionDeprecated = 0;
|
|
28005
|
-
break;
|
|
28006
|
-
case "EDITION_LEGACY":
|
|
28007
|
-
case 900:
|
|
28008
|
-
message.editionDeprecated = 900;
|
|
28009
|
-
break;
|
|
28010
|
-
case "EDITION_PROTO2":
|
|
28011
|
-
case 998:
|
|
28012
|
-
message.editionDeprecated = 998;
|
|
28013
|
-
break;
|
|
28014
|
-
case "EDITION_PROTO3":
|
|
28015
|
-
case 999:
|
|
28016
|
-
message.editionDeprecated = 999;
|
|
28017
|
-
break;
|
|
28018
|
-
case "EDITION_2023":
|
|
28019
|
-
case 1000:
|
|
28020
|
-
message.editionDeprecated = 1000;
|
|
28021
|
-
break;
|
|
28022
|
-
case "EDITION_2024":
|
|
28023
|
-
case 1001:
|
|
28024
|
-
message.editionDeprecated = 1001;
|
|
28025
|
-
break;
|
|
28026
|
-
case "EDITION_1_TEST_ONLY":
|
|
28027
|
-
case 1:
|
|
28028
|
-
message.editionDeprecated = 1;
|
|
28029
|
-
break;
|
|
28030
|
-
case "EDITION_2_TEST_ONLY":
|
|
28031
|
-
case 2:
|
|
28032
|
-
message.editionDeprecated = 2;
|
|
28033
|
-
break;
|
|
28034
|
-
case "EDITION_99997_TEST_ONLY":
|
|
28035
|
-
case 99997:
|
|
28036
|
-
message.editionDeprecated = 99997;
|
|
28037
|
-
break;
|
|
28038
|
-
case "EDITION_99998_TEST_ONLY":
|
|
28039
|
-
case 99998:
|
|
28040
|
-
message.editionDeprecated = 99998;
|
|
28041
|
-
break;
|
|
28042
|
-
case "EDITION_99999_TEST_ONLY":
|
|
28043
|
-
case 99999:
|
|
28044
|
-
message.editionDeprecated = 99999;
|
|
28045
|
-
break;
|
|
28046
|
-
case "EDITION_MAX":
|
|
28047
|
-
case 2147483647:
|
|
28048
|
-
message.editionDeprecated = 2147483647;
|
|
28049
|
-
break;
|
|
28050
|
-
}
|
|
28051
|
-
if (object.deprecationWarning != null)
|
|
28052
|
-
message.deprecationWarning = String(object.deprecationWarning);
|
|
28053
|
-
switch (object.editionRemoved) {
|
|
28054
|
-
default:
|
|
28055
|
-
if (typeof object.editionRemoved === "number") {
|
|
28056
|
-
message.editionRemoved = object.editionRemoved;
|
|
28057
|
-
break;
|
|
28058
|
-
}
|
|
28059
|
-
break;
|
|
28060
|
-
case "EDITION_UNKNOWN":
|
|
28061
|
-
case 0:
|
|
28062
|
-
message.editionRemoved = 0;
|
|
28063
|
-
break;
|
|
28064
|
-
case "EDITION_LEGACY":
|
|
28065
|
-
case 900:
|
|
28066
|
-
message.editionRemoved = 900;
|
|
28067
|
-
break;
|
|
28068
|
-
case "EDITION_PROTO2":
|
|
28069
|
-
case 998:
|
|
28070
|
-
message.editionRemoved = 998;
|
|
28071
|
-
break;
|
|
28072
|
-
case "EDITION_PROTO3":
|
|
28073
|
-
case 999:
|
|
28074
|
-
message.editionRemoved = 999;
|
|
26559
|
+
message.edition = 999;
|
|
28075
26560
|
break;
|
|
28076
26561
|
case "EDITION_2023":
|
|
28077
26562
|
case 1000:
|
|
28078
|
-
message.
|
|
26563
|
+
message.edition = 1000;
|
|
28079
26564
|
break;
|
|
28080
26565
|
case "EDITION_2024":
|
|
28081
26566
|
case 1001:
|
|
28082
|
-
message.
|
|
26567
|
+
message.edition = 1001;
|
|
28083
26568
|
break;
|
|
28084
26569
|
case "EDITION_1_TEST_ONLY":
|
|
28085
26570
|
case 1:
|
|
28086
|
-
message.
|
|
26571
|
+
message.edition = 1;
|
|
28087
26572
|
break;
|
|
28088
26573
|
case "EDITION_2_TEST_ONLY":
|
|
28089
26574
|
case 2:
|
|
28090
|
-
message.
|
|
26575
|
+
message.edition = 2;
|
|
28091
26576
|
break;
|
|
28092
26577
|
case "EDITION_99997_TEST_ONLY":
|
|
28093
26578
|
case 99997:
|
|
28094
|
-
message.
|
|
26579
|
+
message.edition = 99997;
|
|
28095
26580
|
break;
|
|
28096
26581
|
case "EDITION_99998_TEST_ONLY":
|
|
28097
26582
|
case 99998:
|
|
28098
|
-
message.
|
|
26583
|
+
message.edition = 99998;
|
|
28099
26584
|
break;
|
|
28100
26585
|
case "EDITION_99999_TEST_ONLY":
|
|
28101
26586
|
case 99999:
|
|
28102
|
-
message.
|
|
26587
|
+
message.edition = 99999;
|
|
28103
26588
|
break;
|
|
28104
26589
|
case "EDITION_MAX":
|
|
28105
26590
|
case 2147483647:
|
|
28106
|
-
message.
|
|
26591
|
+
message.edition = 2147483647;
|
|
28107
26592
|
break;
|
|
28108
26593
|
}
|
|
26594
|
+
if (object.value != null)
|
|
26595
|
+
message.value = String(object.value);
|
|
28109
26596
|
return message;
|
|
28110
26597
|
};
|
|
28111
26598
|
|
|
28112
26599
|
/**
|
|
28113
|
-
* Creates a plain object from
|
|
26600
|
+
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
28114
26601
|
* @function toObject
|
|
28115
|
-
* @memberof google.protobuf.FieldOptions.
|
|
26602
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
28116
26603
|
* @static
|
|
28117
|
-
* @param {google.protobuf.FieldOptions.
|
|
26604
|
+
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
28118
26605
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28119
26606
|
* @returns {Object.<string,*>} Plain object
|
|
28120
26607
|
*/
|
|
28121
|
-
|
|
26608
|
+
EditionDefault.toObject = function toObject(message, options) {
|
|
28122
26609
|
if (!options)
|
|
28123
26610
|
options = {};
|
|
28124
26611
|
var object = {};
|
|
28125
26612
|
if (options.defaults) {
|
|
28126
|
-
object.
|
|
28127
|
-
object.
|
|
28128
|
-
|
|
28129
|
-
|
|
28130
|
-
|
|
28131
|
-
if (message.
|
|
28132
|
-
object.
|
|
28133
|
-
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
28134
|
-
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
28135
|
-
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
28136
|
-
object.deprecationWarning = message.deprecationWarning;
|
|
28137
|
-
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
28138
|
-
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
26613
|
+
object.value = "";
|
|
26614
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
26615
|
+
}
|
|
26616
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
26617
|
+
object.value = message.value;
|
|
26618
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
26619
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
28139
26620
|
return object;
|
|
28140
26621
|
};
|
|
28141
26622
|
|
|
28142
26623
|
/**
|
|
28143
|
-
* Converts this
|
|
26624
|
+
* Converts this EditionDefault to JSON.
|
|
28144
26625
|
* @function toJSON
|
|
28145
|
-
* @memberof google.protobuf.FieldOptions.
|
|
26626
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
28146
26627
|
* @instance
|
|
28147
26628
|
* @returns {Object.<string,*>} JSON object
|
|
28148
26629
|
*/
|
|
28149
|
-
|
|
26630
|
+
EditionDefault.prototype.toJSON = function toJSON() {
|
|
28150
26631
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28151
26632
|
};
|
|
28152
26633
|
|
|
28153
26634
|
/**
|
|
28154
|
-
* Gets the default type url for
|
|
26635
|
+
* Gets the default type url for EditionDefault
|
|
28155
26636
|
* @function getTypeUrl
|
|
28156
|
-
* @memberof google.protobuf.FieldOptions.
|
|
26637
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
28157
26638
|
* @static
|
|
28158
26639
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
28159
26640
|
* @returns {string} The default type url
|
|
28160
26641
|
*/
|
|
28161
|
-
|
|
26642
|
+
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
28162
26643
|
if (typeUrlPrefix === undefined) {
|
|
28163
26644
|
typeUrlPrefix = "type.googleapis.com";
|
|
28164
26645
|
}
|
|
28165
|
-
return typeUrlPrefix + "/google.protobuf.FieldOptions.
|
|
26646
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
28166
26647
|
};
|
|
28167
26648
|
|
|
28168
|
-
return
|
|
26649
|
+
return EditionDefault;
|
|
28169
26650
|
})();
|
|
28170
26651
|
|
|
28171
26652
|
return FieldOptions;
|
|
@@ -28760,7 +27241,6 @@
|
|
|
28760
27241
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
28761
27242
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
28762
27243
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
28763
|
-
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
28764
27244
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
28765
27245
|
*/
|
|
28766
27246
|
|
|
@@ -28804,14 +27284,6 @@
|
|
|
28804
27284
|
*/
|
|
28805
27285
|
EnumValueOptions.prototype.debugRedact = false;
|
|
28806
27286
|
|
|
28807
|
-
/**
|
|
28808
|
-
* EnumValueOptions featureSupport.
|
|
28809
|
-
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
28810
|
-
* @memberof google.protobuf.EnumValueOptions
|
|
28811
|
-
* @instance
|
|
28812
|
-
*/
|
|
28813
|
-
EnumValueOptions.prototype.featureSupport = null;
|
|
28814
|
-
|
|
28815
27287
|
/**
|
|
28816
27288
|
* EnumValueOptions uninterpretedOption.
|
|
28817
27289
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -28850,8 +27322,6 @@
|
|
|
28850
27322
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
28851
27323
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
28852
27324
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
28853
|
-
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
28854
|
-
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
28855
27325
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
28856
27326
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
28857
27327
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -28903,10 +27373,6 @@
|
|
|
28903
27373
|
message.debugRedact = reader.bool();
|
|
28904
27374
|
break;
|
|
28905
27375
|
}
|
|
28906
|
-
case 4: {
|
|
28907
|
-
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
28908
|
-
break;
|
|
28909
|
-
}
|
|
28910
27376
|
case 999: {
|
|
28911
27377
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
28912
27378
|
message.uninterpretedOption = [];
|
|
@@ -28959,11 +27425,6 @@
|
|
|
28959
27425
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
28960
27426
|
if (typeof message.debugRedact !== "boolean")
|
|
28961
27427
|
return "debugRedact: boolean expected";
|
|
28962
|
-
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
28963
|
-
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
28964
|
-
if (error)
|
|
28965
|
-
return "featureSupport." + error;
|
|
28966
|
-
}
|
|
28967
27428
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
28968
27429
|
if (!Array.isArray(message.uninterpretedOption))
|
|
28969
27430
|
return "uninterpretedOption: array expected";
|
|
@@ -28997,11 +27458,6 @@
|
|
|
28997
27458
|
}
|
|
28998
27459
|
if (object.debugRedact != null)
|
|
28999
27460
|
message.debugRedact = Boolean(object.debugRedact);
|
|
29000
|
-
if (object.featureSupport != null) {
|
|
29001
|
-
if (typeof object.featureSupport !== "object")
|
|
29002
|
-
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
29003
|
-
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
29004
|
-
}
|
|
29005
27461
|
if (object.uninterpretedOption) {
|
|
29006
27462
|
if (!Array.isArray(object.uninterpretedOption))
|
|
29007
27463
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -29034,7 +27490,6 @@
|
|
|
29034
27490
|
object.deprecated = false;
|
|
29035
27491
|
object.features = null;
|
|
29036
27492
|
object.debugRedact = false;
|
|
29037
|
-
object.featureSupport = null;
|
|
29038
27493
|
}
|
|
29039
27494
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
29040
27495
|
object.deprecated = message.deprecated;
|
|
@@ -29042,8 +27497,6 @@
|
|
|
29042
27497
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
29043
27498
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
29044
27499
|
object.debugRedact = message.debugRedact;
|
|
29045
|
-
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
29046
|
-
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
29047
27500
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
29048
27501
|
object.uninterpretedOption = [];
|
|
29049
27502
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -30539,8 +28992,6 @@
|
|
|
30539
28992
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
30540
28993
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
30541
28994
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
30542
|
-
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
30543
|
-
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
30544
28995
|
*/
|
|
30545
28996
|
|
|
30546
28997
|
/**
|
|
@@ -30606,22 +29057,6 @@
|
|
|
30606
29057
|
*/
|
|
30607
29058
|
FeatureSet.prototype.jsonFormat = 0;
|
|
30608
29059
|
|
|
30609
|
-
/**
|
|
30610
|
-
* FeatureSet enforceNamingStyle.
|
|
30611
|
-
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
30612
|
-
* @memberof google.protobuf.FeatureSet
|
|
30613
|
-
* @instance
|
|
30614
|
-
*/
|
|
30615
|
-
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
30616
|
-
|
|
30617
|
-
/**
|
|
30618
|
-
* FeatureSet defaultSymbolVisibility.
|
|
30619
|
-
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
30620
|
-
* @memberof google.protobuf.FeatureSet
|
|
30621
|
-
* @instance
|
|
30622
|
-
*/
|
|
30623
|
-
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
30624
|
-
|
|
30625
29060
|
/**
|
|
30626
29061
|
* Creates a new FeatureSet instance using the specified properties.
|
|
30627
29062
|
* @function create
|
|
@@ -30658,10 +29093,6 @@
|
|
|
30658
29093
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
30659
29094
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
30660
29095
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
30661
|
-
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
30662
|
-
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
30663
|
-
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
30664
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
30665
29096
|
return writer;
|
|
30666
29097
|
};
|
|
30667
29098
|
|
|
@@ -30722,14 +29153,6 @@
|
|
|
30722
29153
|
message.jsonFormat = reader.int32();
|
|
30723
29154
|
break;
|
|
30724
29155
|
}
|
|
30725
|
-
case 7: {
|
|
30726
|
-
message.enforceNamingStyle = reader.int32();
|
|
30727
|
-
break;
|
|
30728
|
-
}
|
|
30729
|
-
case 8: {
|
|
30730
|
-
message.defaultSymbolVisibility = reader.int32();
|
|
30731
|
-
break;
|
|
30732
|
-
}
|
|
30733
29156
|
default:
|
|
30734
29157
|
reader.skipType(tag & 7);
|
|
30735
29158
|
break;
|
|
@@ -30820,26 +29243,6 @@
|
|
|
30820
29243
|
case 2:
|
|
30821
29244
|
break;
|
|
30822
29245
|
}
|
|
30823
|
-
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
30824
|
-
switch (message.enforceNamingStyle) {
|
|
30825
|
-
default:
|
|
30826
|
-
return "enforceNamingStyle: enum value expected";
|
|
30827
|
-
case 0:
|
|
30828
|
-
case 1:
|
|
30829
|
-
case 2:
|
|
30830
|
-
break;
|
|
30831
|
-
}
|
|
30832
|
-
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
30833
|
-
switch (message.defaultSymbolVisibility) {
|
|
30834
|
-
default:
|
|
30835
|
-
return "defaultSymbolVisibility: enum value expected";
|
|
30836
|
-
case 0:
|
|
30837
|
-
case 1:
|
|
30838
|
-
case 2:
|
|
30839
|
-
case 3:
|
|
30840
|
-
case 4:
|
|
30841
|
-
break;
|
|
30842
|
-
}
|
|
30843
29246
|
return null;
|
|
30844
29247
|
};
|
|
30845
29248
|
|
|
@@ -30979,54 +29382,6 @@
|
|
|
30979
29382
|
message.jsonFormat = 2;
|
|
30980
29383
|
break;
|
|
30981
29384
|
}
|
|
30982
|
-
switch (object.enforceNamingStyle) {
|
|
30983
|
-
default:
|
|
30984
|
-
if (typeof object.enforceNamingStyle === "number") {
|
|
30985
|
-
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
30986
|
-
break;
|
|
30987
|
-
}
|
|
30988
|
-
break;
|
|
30989
|
-
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
30990
|
-
case 0:
|
|
30991
|
-
message.enforceNamingStyle = 0;
|
|
30992
|
-
break;
|
|
30993
|
-
case "STYLE2024":
|
|
30994
|
-
case 1:
|
|
30995
|
-
message.enforceNamingStyle = 1;
|
|
30996
|
-
break;
|
|
30997
|
-
case "STYLE_LEGACY":
|
|
30998
|
-
case 2:
|
|
30999
|
-
message.enforceNamingStyle = 2;
|
|
31000
|
-
break;
|
|
31001
|
-
}
|
|
31002
|
-
switch (object.defaultSymbolVisibility) {
|
|
31003
|
-
default:
|
|
31004
|
-
if (typeof object.defaultSymbolVisibility === "number") {
|
|
31005
|
-
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
31006
|
-
break;
|
|
31007
|
-
}
|
|
31008
|
-
break;
|
|
31009
|
-
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
31010
|
-
case 0:
|
|
31011
|
-
message.defaultSymbolVisibility = 0;
|
|
31012
|
-
break;
|
|
31013
|
-
case "EXPORT_ALL":
|
|
31014
|
-
case 1:
|
|
31015
|
-
message.defaultSymbolVisibility = 1;
|
|
31016
|
-
break;
|
|
31017
|
-
case "EXPORT_TOP_LEVEL":
|
|
31018
|
-
case 2:
|
|
31019
|
-
message.defaultSymbolVisibility = 2;
|
|
31020
|
-
break;
|
|
31021
|
-
case "LOCAL_ALL":
|
|
31022
|
-
case 3:
|
|
31023
|
-
message.defaultSymbolVisibility = 3;
|
|
31024
|
-
break;
|
|
31025
|
-
case "STRICT":
|
|
31026
|
-
case 4:
|
|
31027
|
-
message.defaultSymbolVisibility = 4;
|
|
31028
|
-
break;
|
|
31029
|
-
}
|
|
31030
29385
|
return message;
|
|
31031
29386
|
};
|
|
31032
29387
|
|
|
@@ -31050,8 +29405,6 @@
|
|
|
31050
29405
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
31051
29406
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
31052
29407
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
31053
|
-
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
31054
|
-
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
31055
29408
|
}
|
|
31056
29409
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
31057
29410
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -31065,10 +29418,6 @@
|
|
|
31065
29418
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
31066
29419
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
31067
29420
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
31068
|
-
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
31069
|
-
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
31070
|
-
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
31071
|
-
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;
|
|
31072
29421
|
return object;
|
|
31073
29422
|
};
|
|
31074
29423
|
|
|
@@ -31196,219 +29545,6 @@
|
|
|
31196
29545
|
return values;
|
|
31197
29546
|
})();
|
|
31198
29547
|
|
|
31199
|
-
/**
|
|
31200
|
-
* EnforceNamingStyle enum.
|
|
31201
|
-
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
31202
|
-
* @enum {number}
|
|
31203
|
-
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
31204
|
-
* @property {number} STYLE2024=1 STYLE2024 value
|
|
31205
|
-
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
31206
|
-
*/
|
|
31207
|
-
FeatureSet.EnforceNamingStyle = (function() {
|
|
31208
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31209
|
-
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
31210
|
-
values[valuesById[1] = "STYLE2024"] = 1;
|
|
31211
|
-
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
31212
|
-
return values;
|
|
31213
|
-
})();
|
|
31214
|
-
|
|
31215
|
-
FeatureSet.VisibilityFeature = (function() {
|
|
31216
|
-
|
|
31217
|
-
/**
|
|
31218
|
-
* Properties of a VisibilityFeature.
|
|
31219
|
-
* @memberof google.protobuf.FeatureSet
|
|
31220
|
-
* @interface IVisibilityFeature
|
|
31221
|
-
*/
|
|
31222
|
-
|
|
31223
|
-
/**
|
|
31224
|
-
* Constructs a new VisibilityFeature.
|
|
31225
|
-
* @memberof google.protobuf.FeatureSet
|
|
31226
|
-
* @classdesc Represents a VisibilityFeature.
|
|
31227
|
-
* @implements IVisibilityFeature
|
|
31228
|
-
* @constructor
|
|
31229
|
-
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
31230
|
-
*/
|
|
31231
|
-
function VisibilityFeature(properties) {
|
|
31232
|
-
if (properties)
|
|
31233
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31234
|
-
if (properties[keys[i]] != null)
|
|
31235
|
-
this[keys[i]] = properties[keys[i]];
|
|
31236
|
-
}
|
|
31237
|
-
|
|
31238
|
-
/**
|
|
31239
|
-
* Creates a new VisibilityFeature instance using the specified properties.
|
|
31240
|
-
* @function create
|
|
31241
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31242
|
-
* @static
|
|
31243
|
-
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
31244
|
-
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
31245
|
-
*/
|
|
31246
|
-
VisibilityFeature.create = function create(properties) {
|
|
31247
|
-
return new VisibilityFeature(properties);
|
|
31248
|
-
};
|
|
31249
|
-
|
|
31250
|
-
/**
|
|
31251
|
-
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
31252
|
-
* @function encode
|
|
31253
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31254
|
-
* @static
|
|
31255
|
-
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
31256
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31257
|
-
* @returns {$protobuf.Writer} Writer
|
|
31258
|
-
*/
|
|
31259
|
-
VisibilityFeature.encode = function encode(message, writer) {
|
|
31260
|
-
if (!writer)
|
|
31261
|
-
writer = $Writer.create();
|
|
31262
|
-
return writer;
|
|
31263
|
-
};
|
|
31264
|
-
|
|
31265
|
-
/**
|
|
31266
|
-
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
31267
|
-
* @function encodeDelimited
|
|
31268
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31269
|
-
* @static
|
|
31270
|
-
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
31271
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31272
|
-
* @returns {$protobuf.Writer} Writer
|
|
31273
|
-
*/
|
|
31274
|
-
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31275
|
-
return this.encode(message, writer).ldelim();
|
|
31276
|
-
};
|
|
31277
|
-
|
|
31278
|
-
/**
|
|
31279
|
-
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
31280
|
-
* @function decode
|
|
31281
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31282
|
-
* @static
|
|
31283
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31284
|
-
* @param {number} [length] Message length if known beforehand
|
|
31285
|
-
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
31286
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31287
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31288
|
-
*/
|
|
31289
|
-
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
31290
|
-
if (!(reader instanceof $Reader))
|
|
31291
|
-
reader = $Reader.create(reader);
|
|
31292
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
31293
|
-
while (reader.pos < end) {
|
|
31294
|
-
var tag = reader.uint32();
|
|
31295
|
-
if (tag === error)
|
|
31296
|
-
break;
|
|
31297
|
-
switch (tag >>> 3) {
|
|
31298
|
-
default:
|
|
31299
|
-
reader.skipType(tag & 7);
|
|
31300
|
-
break;
|
|
31301
|
-
}
|
|
31302
|
-
}
|
|
31303
|
-
return message;
|
|
31304
|
-
};
|
|
31305
|
-
|
|
31306
|
-
/**
|
|
31307
|
-
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
31308
|
-
* @function decodeDelimited
|
|
31309
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31310
|
-
* @static
|
|
31311
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31312
|
-
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
31313
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31314
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31315
|
-
*/
|
|
31316
|
-
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
31317
|
-
if (!(reader instanceof $Reader))
|
|
31318
|
-
reader = new $Reader(reader);
|
|
31319
|
-
return this.decode(reader, reader.uint32());
|
|
31320
|
-
};
|
|
31321
|
-
|
|
31322
|
-
/**
|
|
31323
|
-
* Verifies a VisibilityFeature message.
|
|
31324
|
-
* @function verify
|
|
31325
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31326
|
-
* @static
|
|
31327
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
31328
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
31329
|
-
*/
|
|
31330
|
-
VisibilityFeature.verify = function verify(message) {
|
|
31331
|
-
if (typeof message !== "object" || message === null)
|
|
31332
|
-
return "object expected";
|
|
31333
|
-
return null;
|
|
31334
|
-
};
|
|
31335
|
-
|
|
31336
|
-
/**
|
|
31337
|
-
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
31338
|
-
* @function fromObject
|
|
31339
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31340
|
-
* @static
|
|
31341
|
-
* @param {Object.<string,*>} object Plain object
|
|
31342
|
-
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
31343
|
-
*/
|
|
31344
|
-
VisibilityFeature.fromObject = function fromObject(object) {
|
|
31345
|
-
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
31346
|
-
return object;
|
|
31347
|
-
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
31348
|
-
};
|
|
31349
|
-
|
|
31350
|
-
/**
|
|
31351
|
-
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
31352
|
-
* @function toObject
|
|
31353
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31354
|
-
* @static
|
|
31355
|
-
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
31356
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
31357
|
-
* @returns {Object.<string,*>} Plain object
|
|
31358
|
-
*/
|
|
31359
|
-
VisibilityFeature.toObject = function toObject() {
|
|
31360
|
-
return {};
|
|
31361
|
-
};
|
|
31362
|
-
|
|
31363
|
-
/**
|
|
31364
|
-
* Converts this VisibilityFeature to JSON.
|
|
31365
|
-
* @function toJSON
|
|
31366
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31367
|
-
* @instance
|
|
31368
|
-
* @returns {Object.<string,*>} JSON object
|
|
31369
|
-
*/
|
|
31370
|
-
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
31371
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31372
|
-
};
|
|
31373
|
-
|
|
31374
|
-
/**
|
|
31375
|
-
* Gets the default type url for VisibilityFeature
|
|
31376
|
-
* @function getTypeUrl
|
|
31377
|
-
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
31378
|
-
* @static
|
|
31379
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31380
|
-
* @returns {string} The default type url
|
|
31381
|
-
*/
|
|
31382
|
-
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
31383
|
-
if (typeUrlPrefix === undefined) {
|
|
31384
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
31385
|
-
}
|
|
31386
|
-
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
31387
|
-
};
|
|
31388
|
-
|
|
31389
|
-
/**
|
|
31390
|
-
* DefaultSymbolVisibility enum.
|
|
31391
|
-
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
31392
|
-
* @enum {number}
|
|
31393
|
-
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
31394
|
-
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
31395
|
-
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
31396
|
-
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
31397
|
-
* @property {number} STRICT=4 STRICT value
|
|
31398
|
-
*/
|
|
31399
|
-
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
31400
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31401
|
-
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
31402
|
-
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
31403
|
-
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
31404
|
-
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
31405
|
-
values[valuesById[4] = "STRICT"] = 4;
|
|
31406
|
-
return values;
|
|
31407
|
-
})();
|
|
31408
|
-
|
|
31409
|
-
return VisibilityFeature;
|
|
31410
|
-
})();
|
|
31411
|
-
|
|
31412
29548
|
return FeatureSet;
|
|
31413
29549
|
})();
|
|
31414
29550
|
|
|
@@ -31593,7 +29729,6 @@
|
|
|
31593
29729
|
default:
|
|
31594
29730
|
return "minimumEdition: enum value expected";
|
|
31595
29731
|
case 0:
|
|
31596
|
-
case 900:
|
|
31597
29732
|
case 998:
|
|
31598
29733
|
case 999:
|
|
31599
29734
|
case 1000:
|
|
@@ -31611,7 +29746,6 @@
|
|
|
31611
29746
|
default:
|
|
31612
29747
|
return "maximumEdition: enum value expected";
|
|
31613
29748
|
case 0:
|
|
31614
|
-
case 900:
|
|
31615
29749
|
case 998:
|
|
31616
29750
|
case 999:
|
|
31617
29751
|
case 1000:
|
|
@@ -31660,10 +29794,6 @@
|
|
|
31660
29794
|
case 0:
|
|
31661
29795
|
message.minimumEdition = 0;
|
|
31662
29796
|
break;
|
|
31663
|
-
case "EDITION_LEGACY":
|
|
31664
|
-
case 900:
|
|
31665
|
-
message.minimumEdition = 900;
|
|
31666
|
-
break;
|
|
31667
29797
|
case "EDITION_PROTO2":
|
|
31668
29798
|
case 998:
|
|
31669
29799
|
message.minimumEdition = 998;
|
|
@@ -31716,10 +29846,6 @@
|
|
|
31716
29846
|
case 0:
|
|
31717
29847
|
message.maximumEdition = 0;
|
|
31718
29848
|
break;
|
|
31719
|
-
case "EDITION_LEGACY":
|
|
31720
|
-
case 900:
|
|
31721
|
-
message.maximumEdition = 900;
|
|
31722
|
-
break;
|
|
31723
29849
|
case "EDITION_PROTO2":
|
|
31724
29850
|
case 998:
|
|
31725
29851
|
message.maximumEdition = 998;
|
|
@@ -31828,8 +29954,7 @@
|
|
|
31828
29954
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
31829
29955
|
* @interface IFeatureSetEditionDefault
|
|
31830
29956
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
31831
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
31832
|
-
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
29957
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
|
|
31833
29958
|
*/
|
|
31834
29959
|
|
|
31835
29960
|
/**
|
|
@@ -31856,20 +29981,12 @@
|
|
|
31856
29981
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
31857
29982
|
|
|
31858
29983
|
/**
|
|
31859
|
-
* FeatureSetEditionDefault
|
|
31860
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
31861
|
-
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
31862
|
-
* @instance
|
|
31863
|
-
*/
|
|
31864
|
-
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
31865
|
-
|
|
31866
|
-
/**
|
|
31867
|
-
* FeatureSetEditionDefault fixedFeatures.
|
|
31868
|
-
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
29984
|
+
* FeatureSetEditionDefault features.
|
|
29985
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
31869
29986
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
31870
29987
|
* @instance
|
|
31871
29988
|
*/
|
|
31872
|
-
FeatureSetEditionDefault.prototype.
|
|
29989
|
+
FeatureSetEditionDefault.prototype.features = null;
|
|
31873
29990
|
|
|
31874
29991
|
/**
|
|
31875
29992
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -31895,12 +30012,10 @@
|
|
|
31895
30012
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
31896
30013
|
if (!writer)
|
|
31897
30014
|
writer = $Writer.create();
|
|
30015
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
30016
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
31898
30017
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
31899
30018
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
31900
|
-
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
31901
|
-
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
31902
|
-
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
31903
|
-
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
31904
30019
|
return writer;
|
|
31905
30020
|
};
|
|
31906
30021
|
|
|
@@ -31941,12 +30056,8 @@
|
|
|
31941
30056
|
message.edition = reader.int32();
|
|
31942
30057
|
break;
|
|
31943
30058
|
}
|
|
31944
|
-
case
|
|
31945
|
-
message.
|
|
31946
|
-
break;
|
|
31947
|
-
}
|
|
31948
|
-
case 5: {
|
|
31949
|
-
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
30059
|
+
case 2: {
|
|
30060
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
31950
30061
|
break;
|
|
31951
30062
|
}
|
|
31952
30063
|
default:
|
|
@@ -31989,7 +30100,6 @@
|
|
|
31989
30100
|
default:
|
|
31990
30101
|
return "edition: enum value expected";
|
|
31991
30102
|
case 0:
|
|
31992
|
-
case 900:
|
|
31993
30103
|
case 998:
|
|
31994
30104
|
case 999:
|
|
31995
30105
|
case 1000:
|
|
@@ -32002,15 +30112,10 @@
|
|
|
32002
30112
|
case 2147483647:
|
|
32003
30113
|
break;
|
|
32004
30114
|
}
|
|
32005
|
-
if (message.
|
|
32006
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
32007
|
-
if (error)
|
|
32008
|
-
return "overridableFeatures." + error;
|
|
32009
|
-
}
|
|
32010
|
-
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
32011
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
30115
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
30116
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
32012
30117
|
if (error)
|
|
32013
|
-
return "
|
|
30118
|
+
return "features." + error;
|
|
32014
30119
|
}
|
|
32015
30120
|
return null;
|
|
32016
30121
|
};
|
|
@@ -32038,10 +30143,6 @@
|
|
|
32038
30143
|
case 0:
|
|
32039
30144
|
message.edition = 0;
|
|
32040
30145
|
break;
|
|
32041
|
-
case "EDITION_LEGACY":
|
|
32042
|
-
case 900:
|
|
32043
|
-
message.edition = 900;
|
|
32044
|
-
break;
|
|
32045
30146
|
case "EDITION_PROTO2":
|
|
32046
30147
|
case 998:
|
|
32047
30148
|
message.edition = 998;
|
|
@@ -32083,15 +30184,10 @@
|
|
|
32083
30184
|
message.edition = 2147483647;
|
|
32084
30185
|
break;
|
|
32085
30186
|
}
|
|
32086
|
-
if (object.
|
|
32087
|
-
if (typeof object.
|
|
32088
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
32089
|
-
message.
|
|
32090
|
-
}
|
|
32091
|
-
if (object.fixedFeatures != null) {
|
|
32092
|
-
if (typeof object.fixedFeatures !== "object")
|
|
32093
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
32094
|
-
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
30187
|
+
if (object.features != null) {
|
|
30188
|
+
if (typeof object.features !== "object")
|
|
30189
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
|
|
30190
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
32095
30191
|
}
|
|
32096
30192
|
return message;
|
|
32097
30193
|
};
|
|
@@ -32110,16 +30206,13 @@
|
|
|
32110
30206
|
options = {};
|
|
32111
30207
|
var object = {};
|
|
32112
30208
|
if (options.defaults) {
|
|
30209
|
+
object.features = null;
|
|
32113
30210
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
32114
|
-
object.overridableFeatures = null;
|
|
32115
|
-
object.fixedFeatures = null;
|
|
32116
30211
|
}
|
|
30212
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
30213
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
32117
30214
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
32118
30215
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
32119
|
-
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
32120
|
-
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
32121
|
-
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
32122
|
-
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
32123
30216
|
return object;
|
|
32124
30217
|
};
|
|
32125
30218
|
|
|
@@ -33334,22 +31427,6 @@
|
|
|
33334
31427
|
return GeneratedCodeInfo;
|
|
33335
31428
|
})();
|
|
33336
31429
|
|
|
33337
|
-
/**
|
|
33338
|
-
* SymbolVisibility enum.
|
|
33339
|
-
* @name google.protobuf.SymbolVisibility
|
|
33340
|
-
* @enum {number}
|
|
33341
|
-
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
33342
|
-
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
33343
|
-
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
33344
|
-
*/
|
|
33345
|
-
protobuf.SymbolVisibility = (function() {
|
|
33346
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
33347
|
-
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
33348
|
-
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
33349
|
-
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
33350
|
-
return values;
|
|
33351
|
-
})();
|
|
33352
|
-
|
|
33353
31430
|
protobuf.Duration = (function() {
|
|
33354
31431
|
|
|
33355
31432
|
/**
|