@google-cloud/pubsub 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +144 -29
- package/build/protos/google/pubsub/v1/schema.proto +2 -3
- package/build/protos/protos.d.ts +1007 -27
- package/build/protos/protos.js +3093 -172
- package/build/protos/protos.json +357 -32
- package/build/src/exponential-retry.js +3 -3
- package/build/src/exponential-retry.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +2 -1
- package/build/src/index.js.map +1 -1
- package/build/src/lease-manager.d.ts +18 -0
- package/build/src/lease-manager.js +52 -2
- package/build/src/lease-manager.js.map +1 -1
- package/build/src/logs.d.ts +9 -0
- package/build/src/logs.js +26 -0
- package/build/src/logs.js.map +1 -0
- package/build/src/message-queues.d.ts +25 -1
- package/build/src/message-queues.js +41 -5
- package/build/src/message-queues.js.map +1 -1
- package/build/src/message-stream.d.ts +8 -0
- package/build/src/message-stream.js +37 -14
- package/build/src/message-stream.js.map +1 -1
- package/build/src/publisher/message-batch.d.ts +26 -1
- package/build/src/publisher/message-batch.js +41 -6
- package/build/src/publisher/message-batch.js.map +1 -1
- package/build/src/publisher/message-queues.d.ts +22 -5
- package/build/src/publisher/message-queues.js +51 -18
- package/build/src/publisher/message-queues.js.map +1 -1
- package/build/src/pubsub.d.ts +25 -6
- package/build/src/pubsub.js.map +1 -1
- package/build/src/subscriber.d.ts +70 -4
- package/build/src/subscriber.js +154 -9
- package/build/src/subscriber.js.map +1 -1
- package/build/src/subscription.d.ts +11 -13
- package/build/src/subscription.js +2 -1
- package/build/src/subscription.js.map +1 -1
- package/build/src/telemetry-tracing.js +19 -12
- package/build/src/telemetry-tracing.js.map +1 -1
- package/build/src/temporal.d.ts +66 -4
- package/build/src/temporal.js +104 -4
- package/build/src/temporal.js.map +1 -1
- package/build/src/util.d.ts +22 -0
- package/build/src/util.js +36 -0
- package/build/src/util.js.map +1 -1
- package/build/src/v1/publisher_client.d.ts +0 -18
- package/build/src/v1/publisher_client.js +16 -8
- package/build/src/v1/publisher_client.js.map +1 -1
- package/build/src/v1/schema_service_client.d.ts +0 -20
- package/build/src/v1/schema_service_client.js +5 -5
- package/build/src/v1/schema_service_client.js.map +1 -1
- package/build/src/v1/subscriber_client.d.ts +4 -36
- package/build/src/v1/subscriber_client.js +6 -8
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -1620
package/build/protos/protos.js
CHANGED
|
@@ -4189,6 +4189,7 @@
|
|
|
4189
4189
|
* @property {google.pubsub.v1.IngestionFailureEvent.IAwsMskFailureReason|null} [awsMskFailure] IngestionFailureEvent awsMskFailure
|
|
4190
4190
|
* @property {google.pubsub.v1.IngestionFailureEvent.IAzureEventHubsFailureReason|null} [azureEventHubsFailure] IngestionFailureEvent azureEventHubsFailure
|
|
4191
4191
|
* @property {google.pubsub.v1.IngestionFailureEvent.IConfluentCloudFailureReason|null} [confluentCloudFailure] IngestionFailureEvent confluentCloudFailure
|
|
4192
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason|null} [awsKinesisFailure] IngestionFailureEvent awsKinesisFailure
|
|
4192
4193
|
*/
|
|
4193
4194
|
|
|
4194
4195
|
/**
|
|
@@ -4254,17 +4255,25 @@
|
|
|
4254
4255
|
*/
|
|
4255
4256
|
IngestionFailureEvent.prototype.confluentCloudFailure = null;
|
|
4256
4257
|
|
|
4258
|
+
/**
|
|
4259
|
+
* IngestionFailureEvent awsKinesisFailure.
|
|
4260
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason|null|undefined} awsKinesisFailure
|
|
4261
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
4262
|
+
* @instance
|
|
4263
|
+
*/
|
|
4264
|
+
IngestionFailureEvent.prototype.awsKinesisFailure = null;
|
|
4265
|
+
|
|
4257
4266
|
// OneOf field names bound to virtual getters and setters
|
|
4258
4267
|
var $oneOfFields;
|
|
4259
4268
|
|
|
4260
4269
|
/**
|
|
4261
4270
|
* IngestionFailureEvent failure.
|
|
4262
|
-
* @member {"cloudStorageFailure"|"awsMskFailure"|"azureEventHubsFailure"|"confluentCloudFailure"|undefined} failure
|
|
4271
|
+
* @member {"cloudStorageFailure"|"awsMskFailure"|"azureEventHubsFailure"|"confluentCloudFailure"|"awsKinesisFailure"|undefined} failure
|
|
4263
4272
|
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
4264
4273
|
* @instance
|
|
4265
4274
|
*/
|
|
4266
4275
|
Object.defineProperty(IngestionFailureEvent.prototype, "failure", {
|
|
4267
|
-
get: $util.oneOfGetter($oneOfFields = ["cloudStorageFailure", "awsMskFailure", "azureEventHubsFailure", "confluentCloudFailure"]),
|
|
4276
|
+
get: $util.oneOfGetter($oneOfFields = ["cloudStorageFailure", "awsMskFailure", "azureEventHubsFailure", "confluentCloudFailure", "awsKinesisFailure"]),
|
|
4268
4277
|
set: $util.oneOfSetter($oneOfFields)
|
|
4269
4278
|
});
|
|
4270
4279
|
|
|
@@ -4304,6 +4313,8 @@
|
|
|
4304
4313
|
$root.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.encode(message.azureEventHubsFailure, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
4305
4314
|
if (message.confluentCloudFailure != null && Object.hasOwnProperty.call(message, "confluentCloudFailure"))
|
|
4306
4315
|
$root.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.encode(message.confluentCloudFailure, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
4316
|
+
if (message.awsKinesisFailure != null && Object.hasOwnProperty.call(message, "awsKinesisFailure"))
|
|
4317
|
+
$root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.encode(message.awsKinesisFailure, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
4307
4318
|
return writer;
|
|
4308
4319
|
};
|
|
4309
4320
|
|
|
@@ -4364,6 +4375,10 @@
|
|
|
4364
4375
|
message.confluentCloudFailure = $root.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.decode(reader, reader.uint32());
|
|
4365
4376
|
break;
|
|
4366
4377
|
}
|
|
4378
|
+
case 7: {
|
|
4379
|
+
message.awsKinesisFailure = $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.decode(reader, reader.uint32());
|
|
4380
|
+
break;
|
|
4381
|
+
}
|
|
4367
4382
|
default:
|
|
4368
4383
|
reader.skipType(tag & 7);
|
|
4369
4384
|
break;
|
|
@@ -4444,6 +4459,16 @@
|
|
|
4444
4459
|
return "confluentCloudFailure." + error;
|
|
4445
4460
|
}
|
|
4446
4461
|
}
|
|
4462
|
+
if (message.awsKinesisFailure != null && message.hasOwnProperty("awsKinesisFailure")) {
|
|
4463
|
+
if (properties.failure === 1)
|
|
4464
|
+
return "failure: multiple values";
|
|
4465
|
+
properties.failure = 1;
|
|
4466
|
+
{
|
|
4467
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.verify(message.awsKinesisFailure);
|
|
4468
|
+
if (error)
|
|
4469
|
+
return "awsKinesisFailure." + error;
|
|
4470
|
+
}
|
|
4471
|
+
}
|
|
4447
4472
|
return null;
|
|
4448
4473
|
};
|
|
4449
4474
|
|
|
@@ -4483,6 +4508,11 @@
|
|
|
4483
4508
|
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.confluentCloudFailure: object expected");
|
|
4484
4509
|
message.confluentCloudFailure = $root.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.fromObject(object.confluentCloudFailure);
|
|
4485
4510
|
}
|
|
4511
|
+
if (object.awsKinesisFailure != null) {
|
|
4512
|
+
if (typeof object.awsKinesisFailure !== "object")
|
|
4513
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.awsKinesisFailure: object expected");
|
|
4514
|
+
message.awsKinesisFailure = $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.fromObject(object.awsKinesisFailure);
|
|
4515
|
+
}
|
|
4486
4516
|
return message;
|
|
4487
4517
|
};
|
|
4488
4518
|
|
|
@@ -4527,6 +4557,11 @@
|
|
|
4527
4557
|
if (options.oneofs)
|
|
4528
4558
|
object.failure = "confluentCloudFailure";
|
|
4529
4559
|
}
|
|
4560
|
+
if (message.awsKinesisFailure != null && message.hasOwnProperty("awsKinesisFailure")) {
|
|
4561
|
+
object.awsKinesisFailure = $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.toObject(message.awsKinesisFailure, options);
|
|
4562
|
+
if (options.oneofs)
|
|
4563
|
+
object.failure = "awsKinesisFailure";
|
|
4564
|
+
}
|
|
4530
4565
|
return object;
|
|
4531
4566
|
};
|
|
4532
4567
|
|
|
@@ -4910,6 +4945,183 @@
|
|
|
4910
4945
|
return AvroFailureReason;
|
|
4911
4946
|
})();
|
|
4912
4947
|
|
|
4948
|
+
IngestionFailureEvent.SchemaViolationReason = (function() {
|
|
4949
|
+
|
|
4950
|
+
/**
|
|
4951
|
+
* Properties of a SchemaViolationReason.
|
|
4952
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
4953
|
+
* @interface ISchemaViolationReason
|
|
4954
|
+
*/
|
|
4955
|
+
|
|
4956
|
+
/**
|
|
4957
|
+
* Constructs a new SchemaViolationReason.
|
|
4958
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
4959
|
+
* @classdesc Represents a SchemaViolationReason.
|
|
4960
|
+
* @implements ISchemaViolationReason
|
|
4961
|
+
* @constructor
|
|
4962
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason=} [properties] Properties to set
|
|
4963
|
+
*/
|
|
4964
|
+
function SchemaViolationReason(properties) {
|
|
4965
|
+
if (properties)
|
|
4966
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4967
|
+
if (properties[keys[i]] != null)
|
|
4968
|
+
this[keys[i]] = properties[keys[i]];
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
/**
|
|
4972
|
+
* Creates a new SchemaViolationReason instance using the specified properties.
|
|
4973
|
+
* @function create
|
|
4974
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
4975
|
+
* @static
|
|
4976
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason=} [properties] Properties to set
|
|
4977
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} SchemaViolationReason instance
|
|
4978
|
+
*/
|
|
4979
|
+
SchemaViolationReason.create = function create(properties) {
|
|
4980
|
+
return new SchemaViolationReason(properties);
|
|
4981
|
+
};
|
|
4982
|
+
|
|
4983
|
+
/**
|
|
4984
|
+
* Encodes the specified SchemaViolationReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify|verify} messages.
|
|
4985
|
+
* @function encode
|
|
4986
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
4987
|
+
* @static
|
|
4988
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason} message SchemaViolationReason message or plain object to encode
|
|
4989
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4990
|
+
* @returns {$protobuf.Writer} Writer
|
|
4991
|
+
*/
|
|
4992
|
+
SchemaViolationReason.encode = function encode(message, writer) {
|
|
4993
|
+
if (!writer)
|
|
4994
|
+
writer = $Writer.create();
|
|
4995
|
+
return writer;
|
|
4996
|
+
};
|
|
4997
|
+
|
|
4998
|
+
/**
|
|
4999
|
+
* Encodes the specified SchemaViolationReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify|verify} messages.
|
|
5000
|
+
* @function encodeDelimited
|
|
5001
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5002
|
+
* @static
|
|
5003
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason} message SchemaViolationReason message or plain object to encode
|
|
5004
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5005
|
+
* @returns {$protobuf.Writer} Writer
|
|
5006
|
+
*/
|
|
5007
|
+
SchemaViolationReason.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5008
|
+
return this.encode(message, writer).ldelim();
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
/**
|
|
5012
|
+
* Decodes a SchemaViolationReason message from the specified reader or buffer.
|
|
5013
|
+
* @function decode
|
|
5014
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5015
|
+
* @static
|
|
5016
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5017
|
+
* @param {number} [length] Message length if known beforehand
|
|
5018
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} SchemaViolationReason
|
|
5019
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5020
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5021
|
+
*/
|
|
5022
|
+
SchemaViolationReason.decode = function decode(reader, length, error) {
|
|
5023
|
+
if (!(reader instanceof $Reader))
|
|
5024
|
+
reader = $Reader.create(reader);
|
|
5025
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason();
|
|
5026
|
+
while (reader.pos < end) {
|
|
5027
|
+
var tag = reader.uint32();
|
|
5028
|
+
if (tag === error)
|
|
5029
|
+
break;
|
|
5030
|
+
switch (tag >>> 3) {
|
|
5031
|
+
default:
|
|
5032
|
+
reader.skipType(tag & 7);
|
|
5033
|
+
break;
|
|
5034
|
+
}
|
|
5035
|
+
}
|
|
5036
|
+
return message;
|
|
5037
|
+
};
|
|
5038
|
+
|
|
5039
|
+
/**
|
|
5040
|
+
* Decodes a SchemaViolationReason message from the specified reader or buffer, length delimited.
|
|
5041
|
+
* @function decodeDelimited
|
|
5042
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5043
|
+
* @static
|
|
5044
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5045
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} SchemaViolationReason
|
|
5046
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5047
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5048
|
+
*/
|
|
5049
|
+
SchemaViolationReason.decodeDelimited = function decodeDelimited(reader) {
|
|
5050
|
+
if (!(reader instanceof $Reader))
|
|
5051
|
+
reader = new $Reader(reader);
|
|
5052
|
+
return this.decode(reader, reader.uint32());
|
|
5053
|
+
};
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* Verifies a SchemaViolationReason message.
|
|
5057
|
+
* @function verify
|
|
5058
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5059
|
+
* @static
|
|
5060
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5061
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5062
|
+
*/
|
|
5063
|
+
SchemaViolationReason.verify = function verify(message) {
|
|
5064
|
+
if (typeof message !== "object" || message === null)
|
|
5065
|
+
return "object expected";
|
|
5066
|
+
return null;
|
|
5067
|
+
};
|
|
5068
|
+
|
|
5069
|
+
/**
|
|
5070
|
+
* Creates a SchemaViolationReason message from a plain object. Also converts values to their respective internal types.
|
|
5071
|
+
* @function fromObject
|
|
5072
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5073
|
+
* @static
|
|
5074
|
+
* @param {Object.<string,*>} object Plain object
|
|
5075
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} SchemaViolationReason
|
|
5076
|
+
*/
|
|
5077
|
+
SchemaViolationReason.fromObject = function fromObject(object) {
|
|
5078
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason)
|
|
5079
|
+
return object;
|
|
5080
|
+
return new $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason();
|
|
5081
|
+
};
|
|
5082
|
+
|
|
5083
|
+
/**
|
|
5084
|
+
* Creates a plain object from a SchemaViolationReason message. Also converts values to other types if specified.
|
|
5085
|
+
* @function toObject
|
|
5086
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5087
|
+
* @static
|
|
5088
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} message SchemaViolationReason
|
|
5089
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5090
|
+
* @returns {Object.<string,*>} Plain object
|
|
5091
|
+
*/
|
|
5092
|
+
SchemaViolationReason.toObject = function toObject() {
|
|
5093
|
+
return {};
|
|
5094
|
+
};
|
|
5095
|
+
|
|
5096
|
+
/**
|
|
5097
|
+
* Converts this SchemaViolationReason to JSON.
|
|
5098
|
+
* @function toJSON
|
|
5099
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5100
|
+
* @instance
|
|
5101
|
+
* @returns {Object.<string,*>} JSON object
|
|
5102
|
+
*/
|
|
5103
|
+
SchemaViolationReason.prototype.toJSON = function toJSON() {
|
|
5104
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5105
|
+
};
|
|
5106
|
+
|
|
5107
|
+
/**
|
|
5108
|
+
* Gets the default type url for SchemaViolationReason
|
|
5109
|
+
* @function getTypeUrl
|
|
5110
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason
|
|
5111
|
+
* @static
|
|
5112
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5113
|
+
* @returns {string} The default type url
|
|
5114
|
+
*/
|
|
5115
|
+
SchemaViolationReason.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
5116
|
+
if (typeUrlPrefix === undefined) {
|
|
5117
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
5118
|
+
}
|
|
5119
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason";
|
|
5120
|
+
};
|
|
5121
|
+
|
|
5122
|
+
return SchemaViolationReason;
|
|
5123
|
+
})();
|
|
5124
|
+
|
|
4913
5125
|
IngestionFailureEvent.CloudStorageFailure = (function() {
|
|
4914
5126
|
|
|
4915
5127
|
/**
|
|
@@ -4921,6 +5133,7 @@
|
|
|
4921
5133
|
* @property {number|Long|null} [objectGeneration] CloudStorageFailure objectGeneration
|
|
4922
5134
|
* @property {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason|null} [avroFailureReason] CloudStorageFailure avroFailureReason
|
|
4923
5135
|
* @property {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null} [apiViolationReason] CloudStorageFailure apiViolationReason
|
|
5136
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null} [schemaViolationReason] CloudStorageFailure schemaViolationReason
|
|
4924
5137
|
*/
|
|
4925
5138
|
|
|
4926
5139
|
/**
|
|
@@ -4978,17 +5191,25 @@
|
|
|
4978
5191
|
*/
|
|
4979
5192
|
CloudStorageFailure.prototype.apiViolationReason = null;
|
|
4980
5193
|
|
|
5194
|
+
/**
|
|
5195
|
+
* CloudStorageFailure schemaViolationReason.
|
|
5196
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null|undefined} schemaViolationReason
|
|
5197
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
5198
|
+
* @instance
|
|
5199
|
+
*/
|
|
5200
|
+
CloudStorageFailure.prototype.schemaViolationReason = null;
|
|
5201
|
+
|
|
4981
5202
|
// OneOf field names bound to virtual getters and setters
|
|
4982
5203
|
var $oneOfFields;
|
|
4983
5204
|
|
|
4984
5205
|
/**
|
|
4985
5206
|
* CloudStorageFailure reason.
|
|
4986
|
-
* @member {"avroFailureReason"|"apiViolationReason"|undefined} reason
|
|
5207
|
+
* @member {"avroFailureReason"|"apiViolationReason"|"schemaViolationReason"|undefined} reason
|
|
4987
5208
|
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
4988
5209
|
* @instance
|
|
4989
5210
|
*/
|
|
4990
5211
|
Object.defineProperty(CloudStorageFailure.prototype, "reason", {
|
|
4991
|
-
get: $util.oneOfGetter($oneOfFields = ["avroFailureReason", "apiViolationReason"]),
|
|
5212
|
+
get: $util.oneOfGetter($oneOfFields = ["avroFailureReason", "apiViolationReason", "schemaViolationReason"]),
|
|
4992
5213
|
set: $util.oneOfSetter($oneOfFields)
|
|
4993
5214
|
});
|
|
4994
5215
|
|
|
@@ -5026,6 +5247,8 @@
|
|
|
5026
5247
|
$root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.encode(message.avroFailureReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
5027
5248
|
if (message.apiViolationReason != null && Object.hasOwnProperty.call(message, "apiViolationReason"))
|
|
5028
5249
|
$root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(message.apiViolationReason, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
5250
|
+
if (message.schemaViolationReason != null && Object.hasOwnProperty.call(message, "schemaViolationReason"))
|
|
5251
|
+
$root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(message.schemaViolationReason, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
5029
5252
|
return writer;
|
|
5030
5253
|
};
|
|
5031
5254
|
|
|
@@ -5082,6 +5305,10 @@
|
|
|
5082
5305
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(reader, reader.uint32());
|
|
5083
5306
|
break;
|
|
5084
5307
|
}
|
|
5308
|
+
case 7: {
|
|
5309
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(reader, reader.uint32());
|
|
5310
|
+
break;
|
|
5311
|
+
}
|
|
5085
5312
|
default:
|
|
5086
5313
|
reader.skipType(tag & 7);
|
|
5087
5314
|
break;
|
|
@@ -5145,6 +5372,16 @@
|
|
|
5145
5372
|
return "apiViolationReason." + error;
|
|
5146
5373
|
}
|
|
5147
5374
|
}
|
|
5375
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
5376
|
+
if (properties.reason === 1)
|
|
5377
|
+
return "reason: multiple values";
|
|
5378
|
+
properties.reason = 1;
|
|
5379
|
+
{
|
|
5380
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(message.schemaViolationReason);
|
|
5381
|
+
if (error)
|
|
5382
|
+
return "schemaViolationReason." + error;
|
|
5383
|
+
}
|
|
5384
|
+
}
|
|
5148
5385
|
return null;
|
|
5149
5386
|
};
|
|
5150
5387
|
|
|
@@ -5183,6 +5420,11 @@
|
|
|
5183
5420
|
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.apiViolationReason: object expected");
|
|
5184
5421
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(object.apiViolationReason);
|
|
5185
5422
|
}
|
|
5423
|
+
if (object.schemaViolationReason != null) {
|
|
5424
|
+
if (typeof object.schemaViolationReason !== "object")
|
|
5425
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.schemaViolationReason: object expected");
|
|
5426
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(object.schemaViolationReason);
|
|
5427
|
+
}
|
|
5186
5428
|
return message;
|
|
5187
5429
|
};
|
|
5188
5430
|
|
|
@@ -5227,6 +5469,11 @@
|
|
|
5227
5469
|
if (options.oneofs)
|
|
5228
5470
|
object.reason = "apiViolationReason";
|
|
5229
5471
|
}
|
|
5472
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
5473
|
+
object.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(message.schemaViolationReason, options);
|
|
5474
|
+
if (options.oneofs)
|
|
5475
|
+
object.reason = "schemaViolationReason";
|
|
5476
|
+
}
|
|
5230
5477
|
return object;
|
|
5231
5478
|
};
|
|
5232
5479
|
|
|
@@ -5270,6 +5517,7 @@
|
|
|
5270
5517
|
* @property {number|Long|null} [partitionId] AwsMskFailureReason partitionId
|
|
5271
5518
|
* @property {number|Long|null} [offset] AwsMskFailureReason offset
|
|
5272
5519
|
* @property {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null} [apiViolationReason] AwsMskFailureReason apiViolationReason
|
|
5520
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null} [schemaViolationReason] AwsMskFailureReason schemaViolationReason
|
|
5273
5521
|
*/
|
|
5274
5522
|
|
|
5275
5523
|
/**
|
|
@@ -5327,17 +5575,25 @@
|
|
|
5327
5575
|
*/
|
|
5328
5576
|
AwsMskFailureReason.prototype.apiViolationReason = null;
|
|
5329
5577
|
|
|
5578
|
+
/**
|
|
5579
|
+
* AwsMskFailureReason schemaViolationReason.
|
|
5580
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null|undefined} schemaViolationReason
|
|
5581
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason
|
|
5582
|
+
* @instance
|
|
5583
|
+
*/
|
|
5584
|
+
AwsMskFailureReason.prototype.schemaViolationReason = null;
|
|
5585
|
+
|
|
5330
5586
|
// OneOf field names bound to virtual getters and setters
|
|
5331
5587
|
var $oneOfFields;
|
|
5332
5588
|
|
|
5333
5589
|
/**
|
|
5334
5590
|
* AwsMskFailureReason reason.
|
|
5335
|
-
* @member {"apiViolationReason"|undefined} reason
|
|
5591
|
+
* @member {"apiViolationReason"|"schemaViolationReason"|undefined} reason
|
|
5336
5592
|
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason
|
|
5337
5593
|
* @instance
|
|
5338
5594
|
*/
|
|
5339
5595
|
Object.defineProperty(AwsMskFailureReason.prototype, "reason", {
|
|
5340
|
-
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason"]),
|
|
5596
|
+
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason", "schemaViolationReason"]),
|
|
5341
5597
|
set: $util.oneOfSetter($oneOfFields)
|
|
5342
5598
|
});
|
|
5343
5599
|
|
|
@@ -5375,6 +5631,8 @@
|
|
|
5375
5631
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.offset);
|
|
5376
5632
|
if (message.apiViolationReason != null && Object.hasOwnProperty.call(message, "apiViolationReason"))
|
|
5377
5633
|
$root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(message.apiViolationReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
5634
|
+
if (message.schemaViolationReason != null && Object.hasOwnProperty.call(message, "schemaViolationReason"))
|
|
5635
|
+
$root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(message.schemaViolationReason, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
5378
5636
|
return writer;
|
|
5379
5637
|
};
|
|
5380
5638
|
|
|
@@ -5431,6 +5689,10 @@
|
|
|
5431
5689
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(reader, reader.uint32());
|
|
5432
5690
|
break;
|
|
5433
5691
|
}
|
|
5692
|
+
case 6: {
|
|
5693
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(reader, reader.uint32());
|
|
5694
|
+
break;
|
|
5695
|
+
}
|
|
5434
5696
|
default:
|
|
5435
5697
|
reader.skipType(tag & 7);
|
|
5436
5698
|
break;
|
|
@@ -5487,6 +5749,16 @@
|
|
|
5487
5749
|
return "apiViolationReason." + error;
|
|
5488
5750
|
}
|
|
5489
5751
|
}
|
|
5752
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
5753
|
+
if (properties.reason === 1)
|
|
5754
|
+
return "reason: multiple values";
|
|
5755
|
+
properties.reason = 1;
|
|
5756
|
+
{
|
|
5757
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(message.schemaViolationReason);
|
|
5758
|
+
if (error)
|
|
5759
|
+
return "schemaViolationReason." + error;
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5490
5762
|
return null;
|
|
5491
5763
|
};
|
|
5492
5764
|
|
|
@@ -5529,6 +5801,11 @@
|
|
|
5529
5801
|
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.apiViolationReason: object expected");
|
|
5530
5802
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(object.apiViolationReason);
|
|
5531
5803
|
}
|
|
5804
|
+
if (object.schemaViolationReason != null) {
|
|
5805
|
+
if (typeof object.schemaViolationReason !== "object")
|
|
5806
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.schemaViolationReason: object expected");
|
|
5807
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(object.schemaViolationReason);
|
|
5808
|
+
}
|
|
5532
5809
|
return message;
|
|
5533
5810
|
};
|
|
5534
5811
|
|
|
@@ -5578,6 +5855,11 @@
|
|
|
5578
5855
|
if (options.oneofs)
|
|
5579
5856
|
object.reason = "apiViolationReason";
|
|
5580
5857
|
}
|
|
5858
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
5859
|
+
object.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(message.schemaViolationReason, options);
|
|
5860
|
+
if (options.oneofs)
|
|
5861
|
+
object.reason = "schemaViolationReason";
|
|
5862
|
+
}
|
|
5581
5863
|
return object;
|
|
5582
5864
|
};
|
|
5583
5865
|
|
|
@@ -5621,6 +5903,7 @@
|
|
|
5621
5903
|
* @property {number|Long|null} [partitionId] AzureEventHubsFailureReason partitionId
|
|
5622
5904
|
* @property {number|Long|null} [offset] AzureEventHubsFailureReason offset
|
|
5623
5905
|
* @property {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null} [apiViolationReason] AzureEventHubsFailureReason apiViolationReason
|
|
5906
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null} [schemaViolationReason] AzureEventHubsFailureReason schemaViolationReason
|
|
5624
5907
|
*/
|
|
5625
5908
|
|
|
5626
5909
|
/**
|
|
@@ -5678,17 +5961,25 @@
|
|
|
5678
5961
|
*/
|
|
5679
5962
|
AzureEventHubsFailureReason.prototype.apiViolationReason = null;
|
|
5680
5963
|
|
|
5964
|
+
/**
|
|
5965
|
+
* AzureEventHubsFailureReason schemaViolationReason.
|
|
5966
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null|undefined} schemaViolationReason
|
|
5967
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason
|
|
5968
|
+
* @instance
|
|
5969
|
+
*/
|
|
5970
|
+
AzureEventHubsFailureReason.prototype.schemaViolationReason = null;
|
|
5971
|
+
|
|
5681
5972
|
// OneOf field names bound to virtual getters and setters
|
|
5682
5973
|
var $oneOfFields;
|
|
5683
5974
|
|
|
5684
5975
|
/**
|
|
5685
5976
|
* AzureEventHubsFailureReason reason.
|
|
5686
|
-
* @member {"apiViolationReason"|undefined} reason
|
|
5977
|
+
* @member {"apiViolationReason"|"schemaViolationReason"|undefined} reason
|
|
5687
5978
|
* @memberof google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason
|
|
5688
5979
|
* @instance
|
|
5689
5980
|
*/
|
|
5690
5981
|
Object.defineProperty(AzureEventHubsFailureReason.prototype, "reason", {
|
|
5691
|
-
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason"]),
|
|
5982
|
+
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason", "schemaViolationReason"]),
|
|
5692
5983
|
set: $util.oneOfSetter($oneOfFields)
|
|
5693
5984
|
});
|
|
5694
5985
|
|
|
@@ -5726,6 +6017,8 @@
|
|
|
5726
6017
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.offset);
|
|
5727
6018
|
if (message.apiViolationReason != null && Object.hasOwnProperty.call(message, "apiViolationReason"))
|
|
5728
6019
|
$root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(message.apiViolationReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
6020
|
+
if (message.schemaViolationReason != null && Object.hasOwnProperty.call(message, "schemaViolationReason"))
|
|
6021
|
+
$root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(message.schemaViolationReason, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
5729
6022
|
return writer;
|
|
5730
6023
|
};
|
|
5731
6024
|
|
|
@@ -5782,6 +6075,10 @@
|
|
|
5782
6075
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(reader, reader.uint32());
|
|
5783
6076
|
break;
|
|
5784
6077
|
}
|
|
6078
|
+
case 6: {
|
|
6079
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(reader, reader.uint32());
|
|
6080
|
+
break;
|
|
6081
|
+
}
|
|
5785
6082
|
default:
|
|
5786
6083
|
reader.skipType(tag & 7);
|
|
5787
6084
|
break;
|
|
@@ -5838,6 +6135,16 @@
|
|
|
5838
6135
|
return "apiViolationReason." + error;
|
|
5839
6136
|
}
|
|
5840
6137
|
}
|
|
6138
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6139
|
+
if (properties.reason === 1)
|
|
6140
|
+
return "reason: multiple values";
|
|
6141
|
+
properties.reason = 1;
|
|
6142
|
+
{
|
|
6143
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(message.schemaViolationReason);
|
|
6144
|
+
if (error)
|
|
6145
|
+
return "schemaViolationReason." + error;
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
5841
6148
|
return null;
|
|
5842
6149
|
};
|
|
5843
6150
|
|
|
@@ -5880,6 +6187,11 @@
|
|
|
5880
6187
|
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.apiViolationReason: object expected");
|
|
5881
6188
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(object.apiViolationReason);
|
|
5882
6189
|
}
|
|
6190
|
+
if (object.schemaViolationReason != null) {
|
|
6191
|
+
if (typeof object.schemaViolationReason !== "object")
|
|
6192
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.schemaViolationReason: object expected");
|
|
6193
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(object.schemaViolationReason);
|
|
6194
|
+
}
|
|
5883
6195
|
return message;
|
|
5884
6196
|
};
|
|
5885
6197
|
|
|
@@ -5929,6 +6241,11 @@
|
|
|
5929
6241
|
if (options.oneofs)
|
|
5930
6242
|
object.reason = "apiViolationReason";
|
|
5931
6243
|
}
|
|
6244
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6245
|
+
object.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(message.schemaViolationReason, options);
|
|
6246
|
+
if (options.oneofs)
|
|
6247
|
+
object.reason = "schemaViolationReason";
|
|
6248
|
+
}
|
|
5932
6249
|
return object;
|
|
5933
6250
|
};
|
|
5934
6251
|
|
|
@@ -5972,6 +6289,7 @@
|
|
|
5972
6289
|
* @property {number|Long|null} [partitionId] ConfluentCloudFailureReason partitionId
|
|
5973
6290
|
* @property {number|Long|null} [offset] ConfluentCloudFailureReason offset
|
|
5974
6291
|
* @property {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null} [apiViolationReason] ConfluentCloudFailureReason apiViolationReason
|
|
6292
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null} [schemaViolationReason] ConfluentCloudFailureReason schemaViolationReason
|
|
5975
6293
|
*/
|
|
5976
6294
|
|
|
5977
6295
|
/**
|
|
@@ -6029,17 +6347,25 @@
|
|
|
6029
6347
|
*/
|
|
6030
6348
|
ConfluentCloudFailureReason.prototype.apiViolationReason = null;
|
|
6031
6349
|
|
|
6350
|
+
/**
|
|
6351
|
+
* ConfluentCloudFailureReason schemaViolationReason.
|
|
6352
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null|undefined} schemaViolationReason
|
|
6353
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason
|
|
6354
|
+
* @instance
|
|
6355
|
+
*/
|
|
6356
|
+
ConfluentCloudFailureReason.prototype.schemaViolationReason = null;
|
|
6357
|
+
|
|
6032
6358
|
// OneOf field names bound to virtual getters and setters
|
|
6033
6359
|
var $oneOfFields;
|
|
6034
6360
|
|
|
6035
6361
|
/**
|
|
6036
6362
|
* ConfluentCloudFailureReason reason.
|
|
6037
|
-
* @member {"apiViolationReason"|undefined} reason
|
|
6363
|
+
* @member {"apiViolationReason"|"schemaViolationReason"|undefined} reason
|
|
6038
6364
|
* @memberof google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason
|
|
6039
6365
|
* @instance
|
|
6040
6366
|
*/
|
|
6041
6367
|
Object.defineProperty(ConfluentCloudFailureReason.prototype, "reason", {
|
|
6042
|
-
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason"]),
|
|
6368
|
+
get: $util.oneOfGetter($oneOfFields = ["apiViolationReason", "schemaViolationReason"]),
|
|
6043
6369
|
set: $util.oneOfSetter($oneOfFields)
|
|
6044
6370
|
});
|
|
6045
6371
|
|
|
@@ -6077,6 +6403,8 @@
|
|
|
6077
6403
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.offset);
|
|
6078
6404
|
if (message.apiViolationReason != null && Object.hasOwnProperty.call(message, "apiViolationReason"))
|
|
6079
6405
|
$root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(message.apiViolationReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
6406
|
+
if (message.schemaViolationReason != null && Object.hasOwnProperty.call(message, "schemaViolationReason"))
|
|
6407
|
+
$root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(message.schemaViolationReason, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
6080
6408
|
return writer;
|
|
6081
6409
|
};
|
|
6082
6410
|
|
|
@@ -6133,6 +6461,10 @@
|
|
|
6133
6461
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(reader, reader.uint32());
|
|
6134
6462
|
break;
|
|
6135
6463
|
}
|
|
6464
|
+
case 6: {
|
|
6465
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(reader, reader.uint32());
|
|
6466
|
+
break;
|
|
6467
|
+
}
|
|
6136
6468
|
default:
|
|
6137
6469
|
reader.skipType(tag & 7);
|
|
6138
6470
|
break;
|
|
@@ -6189,6 +6521,16 @@
|
|
|
6189
6521
|
return "apiViolationReason." + error;
|
|
6190
6522
|
}
|
|
6191
6523
|
}
|
|
6524
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6525
|
+
if (properties.reason === 1)
|
|
6526
|
+
return "reason: multiple values";
|
|
6527
|
+
properties.reason = 1;
|
|
6528
|
+
{
|
|
6529
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(message.schemaViolationReason);
|
|
6530
|
+
if (error)
|
|
6531
|
+
return "schemaViolationReason." + error;
|
|
6532
|
+
}
|
|
6533
|
+
}
|
|
6192
6534
|
return null;
|
|
6193
6535
|
};
|
|
6194
6536
|
|
|
@@ -6231,6 +6573,11 @@
|
|
|
6231
6573
|
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.apiViolationReason: object expected");
|
|
6232
6574
|
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(object.apiViolationReason);
|
|
6233
6575
|
}
|
|
6576
|
+
if (object.schemaViolationReason != null) {
|
|
6577
|
+
if (typeof object.schemaViolationReason !== "object")
|
|
6578
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.schemaViolationReason: object expected");
|
|
6579
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(object.schemaViolationReason);
|
|
6580
|
+
}
|
|
6234
6581
|
return message;
|
|
6235
6582
|
};
|
|
6236
6583
|
|
|
@@ -6280,6 +6627,11 @@
|
|
|
6280
6627
|
if (options.oneofs)
|
|
6281
6628
|
object.reason = "apiViolationReason";
|
|
6282
6629
|
}
|
|
6630
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6631
|
+
object.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(message.schemaViolationReason, options);
|
|
6632
|
+
if (options.oneofs)
|
|
6633
|
+
object.reason = "schemaViolationReason";
|
|
6634
|
+
}
|
|
6283
6635
|
return object;
|
|
6284
6636
|
};
|
|
6285
6637
|
|
|
@@ -6312,9 +6664,815 @@
|
|
|
6312
6664
|
return ConfluentCloudFailureReason;
|
|
6313
6665
|
})();
|
|
6314
6666
|
|
|
6667
|
+
IngestionFailureEvent.AwsKinesisFailureReason = (function() {
|
|
6668
|
+
|
|
6669
|
+
/**
|
|
6670
|
+
* Properties of an AwsKinesisFailureReason.
|
|
6671
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
6672
|
+
* @interface IAwsKinesisFailureReason
|
|
6673
|
+
* @property {string|null} [streamArn] AwsKinesisFailureReason streamArn
|
|
6674
|
+
* @property {string|null} [partitionKey] AwsKinesisFailureReason partitionKey
|
|
6675
|
+
* @property {string|null} [sequenceNumber] AwsKinesisFailureReason sequenceNumber
|
|
6676
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null} [schemaViolationReason] AwsKinesisFailureReason schemaViolationReason
|
|
6677
|
+
*/
|
|
6678
|
+
|
|
6679
|
+
/**
|
|
6680
|
+
* Constructs a new AwsKinesisFailureReason.
|
|
6681
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
6682
|
+
* @classdesc Represents an AwsKinesisFailureReason.
|
|
6683
|
+
* @implements IAwsKinesisFailureReason
|
|
6684
|
+
* @constructor
|
|
6685
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason=} [properties] Properties to set
|
|
6686
|
+
*/
|
|
6687
|
+
function AwsKinesisFailureReason(properties) {
|
|
6688
|
+
if (properties)
|
|
6689
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6690
|
+
if (properties[keys[i]] != null)
|
|
6691
|
+
this[keys[i]] = properties[keys[i]];
|
|
6692
|
+
}
|
|
6693
|
+
|
|
6694
|
+
/**
|
|
6695
|
+
* AwsKinesisFailureReason streamArn.
|
|
6696
|
+
* @member {string} streamArn
|
|
6697
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6698
|
+
* @instance
|
|
6699
|
+
*/
|
|
6700
|
+
AwsKinesisFailureReason.prototype.streamArn = "";
|
|
6701
|
+
|
|
6702
|
+
/**
|
|
6703
|
+
* AwsKinesisFailureReason partitionKey.
|
|
6704
|
+
* @member {string} partitionKey
|
|
6705
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6706
|
+
* @instance
|
|
6707
|
+
*/
|
|
6708
|
+
AwsKinesisFailureReason.prototype.partitionKey = "";
|
|
6709
|
+
|
|
6710
|
+
/**
|
|
6711
|
+
* AwsKinesisFailureReason sequenceNumber.
|
|
6712
|
+
* @member {string} sequenceNumber
|
|
6713
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6714
|
+
* @instance
|
|
6715
|
+
*/
|
|
6716
|
+
AwsKinesisFailureReason.prototype.sequenceNumber = "";
|
|
6717
|
+
|
|
6718
|
+
/**
|
|
6719
|
+
* AwsKinesisFailureReason schemaViolationReason.
|
|
6720
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ISchemaViolationReason|null|undefined} schemaViolationReason
|
|
6721
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6722
|
+
* @instance
|
|
6723
|
+
*/
|
|
6724
|
+
AwsKinesisFailureReason.prototype.schemaViolationReason = null;
|
|
6725
|
+
|
|
6726
|
+
// OneOf field names bound to virtual getters and setters
|
|
6727
|
+
var $oneOfFields;
|
|
6728
|
+
|
|
6729
|
+
/**
|
|
6730
|
+
* AwsKinesisFailureReason reason.
|
|
6731
|
+
* @member {"schemaViolationReason"|undefined} reason
|
|
6732
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6733
|
+
* @instance
|
|
6734
|
+
*/
|
|
6735
|
+
Object.defineProperty(AwsKinesisFailureReason.prototype, "reason", {
|
|
6736
|
+
get: $util.oneOfGetter($oneOfFields = ["schemaViolationReason"]),
|
|
6737
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6738
|
+
});
|
|
6739
|
+
|
|
6740
|
+
/**
|
|
6741
|
+
* Creates a new AwsKinesisFailureReason instance using the specified properties.
|
|
6742
|
+
* @function create
|
|
6743
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6744
|
+
* @static
|
|
6745
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason=} [properties] Properties to set
|
|
6746
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} AwsKinesisFailureReason instance
|
|
6747
|
+
*/
|
|
6748
|
+
AwsKinesisFailureReason.create = function create(properties) {
|
|
6749
|
+
return new AwsKinesisFailureReason(properties);
|
|
6750
|
+
};
|
|
6751
|
+
|
|
6752
|
+
/**
|
|
6753
|
+
* Encodes the specified AwsKinesisFailureReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.verify|verify} messages.
|
|
6754
|
+
* @function encode
|
|
6755
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6756
|
+
* @static
|
|
6757
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason} message AwsKinesisFailureReason message or plain object to encode
|
|
6758
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6759
|
+
* @returns {$protobuf.Writer} Writer
|
|
6760
|
+
*/
|
|
6761
|
+
AwsKinesisFailureReason.encode = function encode(message, writer) {
|
|
6762
|
+
if (!writer)
|
|
6763
|
+
writer = $Writer.create();
|
|
6764
|
+
if (message.streamArn != null && Object.hasOwnProperty.call(message, "streamArn"))
|
|
6765
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.streamArn);
|
|
6766
|
+
if (message.partitionKey != null && Object.hasOwnProperty.call(message, "partitionKey"))
|
|
6767
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey);
|
|
6768
|
+
if (message.sequenceNumber != null && Object.hasOwnProperty.call(message, "sequenceNumber"))
|
|
6769
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sequenceNumber);
|
|
6770
|
+
if (message.schemaViolationReason != null && Object.hasOwnProperty.call(message, "schemaViolationReason"))
|
|
6771
|
+
$root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(message.schemaViolationReason, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
6772
|
+
return writer;
|
|
6773
|
+
};
|
|
6774
|
+
|
|
6775
|
+
/**
|
|
6776
|
+
* Encodes the specified AwsKinesisFailureReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.verify|verify} messages.
|
|
6777
|
+
* @function encodeDelimited
|
|
6778
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6779
|
+
* @static
|
|
6780
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAwsKinesisFailureReason} message AwsKinesisFailureReason message or plain object to encode
|
|
6781
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6782
|
+
* @returns {$protobuf.Writer} Writer
|
|
6783
|
+
*/
|
|
6784
|
+
AwsKinesisFailureReason.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6785
|
+
return this.encode(message, writer).ldelim();
|
|
6786
|
+
};
|
|
6787
|
+
|
|
6788
|
+
/**
|
|
6789
|
+
* Decodes an AwsKinesisFailureReason message from the specified reader or buffer.
|
|
6790
|
+
* @function decode
|
|
6791
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6792
|
+
* @static
|
|
6793
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6794
|
+
* @param {number} [length] Message length if known beforehand
|
|
6795
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} AwsKinesisFailureReason
|
|
6796
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6797
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6798
|
+
*/
|
|
6799
|
+
AwsKinesisFailureReason.decode = function decode(reader, length, error) {
|
|
6800
|
+
if (!(reader instanceof $Reader))
|
|
6801
|
+
reader = $Reader.create(reader);
|
|
6802
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason();
|
|
6803
|
+
while (reader.pos < end) {
|
|
6804
|
+
var tag = reader.uint32();
|
|
6805
|
+
if (tag === error)
|
|
6806
|
+
break;
|
|
6807
|
+
switch (tag >>> 3) {
|
|
6808
|
+
case 1: {
|
|
6809
|
+
message.streamArn = reader.string();
|
|
6810
|
+
break;
|
|
6811
|
+
}
|
|
6812
|
+
case 2: {
|
|
6813
|
+
message.partitionKey = reader.string();
|
|
6814
|
+
break;
|
|
6815
|
+
}
|
|
6816
|
+
case 3: {
|
|
6817
|
+
message.sequenceNumber = reader.string();
|
|
6818
|
+
break;
|
|
6819
|
+
}
|
|
6820
|
+
case 4: {
|
|
6821
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(reader, reader.uint32());
|
|
6822
|
+
break;
|
|
6823
|
+
}
|
|
6824
|
+
default:
|
|
6825
|
+
reader.skipType(tag & 7);
|
|
6826
|
+
break;
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6829
|
+
return message;
|
|
6830
|
+
};
|
|
6831
|
+
|
|
6832
|
+
/**
|
|
6833
|
+
* Decodes an AwsKinesisFailureReason message from the specified reader or buffer, length delimited.
|
|
6834
|
+
* @function decodeDelimited
|
|
6835
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6836
|
+
* @static
|
|
6837
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6838
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} AwsKinesisFailureReason
|
|
6839
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6840
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6841
|
+
*/
|
|
6842
|
+
AwsKinesisFailureReason.decodeDelimited = function decodeDelimited(reader) {
|
|
6843
|
+
if (!(reader instanceof $Reader))
|
|
6844
|
+
reader = new $Reader(reader);
|
|
6845
|
+
return this.decode(reader, reader.uint32());
|
|
6846
|
+
};
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* Verifies an AwsKinesisFailureReason message.
|
|
6850
|
+
* @function verify
|
|
6851
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6852
|
+
* @static
|
|
6853
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6854
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6855
|
+
*/
|
|
6856
|
+
AwsKinesisFailureReason.verify = function verify(message) {
|
|
6857
|
+
if (typeof message !== "object" || message === null)
|
|
6858
|
+
return "object expected";
|
|
6859
|
+
var properties = {};
|
|
6860
|
+
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
6861
|
+
if (!$util.isString(message.streamArn))
|
|
6862
|
+
return "streamArn: string expected";
|
|
6863
|
+
if (message.partitionKey != null && message.hasOwnProperty("partitionKey"))
|
|
6864
|
+
if (!$util.isString(message.partitionKey))
|
|
6865
|
+
return "partitionKey: string expected";
|
|
6866
|
+
if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
|
|
6867
|
+
if (!$util.isString(message.sequenceNumber))
|
|
6868
|
+
return "sequenceNumber: string expected";
|
|
6869
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6870
|
+
properties.reason = 1;
|
|
6871
|
+
{
|
|
6872
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(message.schemaViolationReason);
|
|
6873
|
+
if (error)
|
|
6874
|
+
return "schemaViolationReason." + error;
|
|
6875
|
+
}
|
|
6876
|
+
}
|
|
6877
|
+
return null;
|
|
6878
|
+
};
|
|
6879
|
+
|
|
6880
|
+
/**
|
|
6881
|
+
* Creates an AwsKinesisFailureReason message from a plain object. Also converts values to their respective internal types.
|
|
6882
|
+
* @function fromObject
|
|
6883
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6884
|
+
* @static
|
|
6885
|
+
* @param {Object.<string,*>} object Plain object
|
|
6886
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} AwsKinesisFailureReason
|
|
6887
|
+
*/
|
|
6888
|
+
AwsKinesisFailureReason.fromObject = function fromObject(object) {
|
|
6889
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason)
|
|
6890
|
+
return object;
|
|
6891
|
+
var message = new $root.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason();
|
|
6892
|
+
if (object.streamArn != null)
|
|
6893
|
+
message.streamArn = String(object.streamArn);
|
|
6894
|
+
if (object.partitionKey != null)
|
|
6895
|
+
message.partitionKey = String(object.partitionKey);
|
|
6896
|
+
if (object.sequenceNumber != null)
|
|
6897
|
+
message.sequenceNumber = String(object.sequenceNumber);
|
|
6898
|
+
if (object.schemaViolationReason != null) {
|
|
6899
|
+
if (typeof object.schemaViolationReason !== "object")
|
|
6900
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.schemaViolationReason: object expected");
|
|
6901
|
+
message.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(object.schemaViolationReason);
|
|
6902
|
+
}
|
|
6903
|
+
return message;
|
|
6904
|
+
};
|
|
6905
|
+
|
|
6906
|
+
/**
|
|
6907
|
+
* Creates a plain object from an AwsKinesisFailureReason message. Also converts values to other types if specified.
|
|
6908
|
+
* @function toObject
|
|
6909
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6910
|
+
* @static
|
|
6911
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} message AwsKinesisFailureReason
|
|
6912
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6913
|
+
* @returns {Object.<string,*>} Plain object
|
|
6914
|
+
*/
|
|
6915
|
+
AwsKinesisFailureReason.toObject = function toObject(message, options) {
|
|
6916
|
+
if (!options)
|
|
6917
|
+
options = {};
|
|
6918
|
+
var object = {};
|
|
6919
|
+
if (options.defaults) {
|
|
6920
|
+
object.streamArn = "";
|
|
6921
|
+
object.partitionKey = "";
|
|
6922
|
+
object.sequenceNumber = "";
|
|
6923
|
+
}
|
|
6924
|
+
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
6925
|
+
object.streamArn = message.streamArn;
|
|
6926
|
+
if (message.partitionKey != null && message.hasOwnProperty("partitionKey"))
|
|
6927
|
+
object.partitionKey = message.partitionKey;
|
|
6928
|
+
if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
|
|
6929
|
+
object.sequenceNumber = message.sequenceNumber;
|
|
6930
|
+
if (message.schemaViolationReason != null && message.hasOwnProperty("schemaViolationReason")) {
|
|
6931
|
+
object.schemaViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(message.schemaViolationReason, options);
|
|
6932
|
+
if (options.oneofs)
|
|
6933
|
+
object.reason = "schemaViolationReason";
|
|
6934
|
+
}
|
|
6935
|
+
return object;
|
|
6936
|
+
};
|
|
6937
|
+
|
|
6938
|
+
/**
|
|
6939
|
+
* Converts this AwsKinesisFailureReason to JSON.
|
|
6940
|
+
* @function toJSON
|
|
6941
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6942
|
+
* @instance
|
|
6943
|
+
* @returns {Object.<string,*>} JSON object
|
|
6944
|
+
*/
|
|
6945
|
+
AwsKinesisFailureReason.prototype.toJSON = function toJSON() {
|
|
6946
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6947
|
+
};
|
|
6948
|
+
|
|
6949
|
+
/**
|
|
6950
|
+
* Gets the default type url for AwsKinesisFailureReason
|
|
6951
|
+
* @function getTypeUrl
|
|
6952
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason
|
|
6953
|
+
* @static
|
|
6954
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6955
|
+
* @returns {string} The default type url
|
|
6956
|
+
*/
|
|
6957
|
+
AwsKinesisFailureReason.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6958
|
+
if (typeUrlPrefix === undefined) {
|
|
6959
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
6960
|
+
}
|
|
6961
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason";
|
|
6962
|
+
};
|
|
6963
|
+
|
|
6964
|
+
return AwsKinesisFailureReason;
|
|
6965
|
+
})();
|
|
6966
|
+
|
|
6315
6967
|
return IngestionFailureEvent;
|
|
6316
6968
|
})();
|
|
6317
6969
|
|
|
6970
|
+
v1.JavaScriptUDF = (function() {
|
|
6971
|
+
|
|
6972
|
+
/**
|
|
6973
|
+
* Properties of a JavaScriptUDF.
|
|
6974
|
+
* @memberof google.pubsub.v1
|
|
6975
|
+
* @interface IJavaScriptUDF
|
|
6976
|
+
* @property {string|null} [functionName] JavaScriptUDF functionName
|
|
6977
|
+
* @property {string|null} [code] JavaScriptUDF code
|
|
6978
|
+
*/
|
|
6979
|
+
|
|
6980
|
+
/**
|
|
6981
|
+
* Constructs a new JavaScriptUDF.
|
|
6982
|
+
* @memberof google.pubsub.v1
|
|
6983
|
+
* @classdesc Represents a JavaScriptUDF.
|
|
6984
|
+
* @implements IJavaScriptUDF
|
|
6985
|
+
* @constructor
|
|
6986
|
+
* @param {google.pubsub.v1.IJavaScriptUDF=} [properties] Properties to set
|
|
6987
|
+
*/
|
|
6988
|
+
function JavaScriptUDF(properties) {
|
|
6989
|
+
if (properties)
|
|
6990
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6991
|
+
if (properties[keys[i]] != null)
|
|
6992
|
+
this[keys[i]] = properties[keys[i]];
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
/**
|
|
6996
|
+
* JavaScriptUDF functionName.
|
|
6997
|
+
* @member {string} functionName
|
|
6998
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
6999
|
+
* @instance
|
|
7000
|
+
*/
|
|
7001
|
+
JavaScriptUDF.prototype.functionName = "";
|
|
7002
|
+
|
|
7003
|
+
/**
|
|
7004
|
+
* JavaScriptUDF code.
|
|
7005
|
+
* @member {string} code
|
|
7006
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7007
|
+
* @instance
|
|
7008
|
+
*/
|
|
7009
|
+
JavaScriptUDF.prototype.code = "";
|
|
7010
|
+
|
|
7011
|
+
/**
|
|
7012
|
+
* Creates a new JavaScriptUDF instance using the specified properties.
|
|
7013
|
+
* @function create
|
|
7014
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7015
|
+
* @static
|
|
7016
|
+
* @param {google.pubsub.v1.IJavaScriptUDF=} [properties] Properties to set
|
|
7017
|
+
* @returns {google.pubsub.v1.JavaScriptUDF} JavaScriptUDF instance
|
|
7018
|
+
*/
|
|
7019
|
+
JavaScriptUDF.create = function create(properties) {
|
|
7020
|
+
return new JavaScriptUDF(properties);
|
|
7021
|
+
};
|
|
7022
|
+
|
|
7023
|
+
/**
|
|
7024
|
+
* Encodes the specified JavaScriptUDF message. Does not implicitly {@link google.pubsub.v1.JavaScriptUDF.verify|verify} messages.
|
|
7025
|
+
* @function encode
|
|
7026
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7027
|
+
* @static
|
|
7028
|
+
* @param {google.pubsub.v1.IJavaScriptUDF} message JavaScriptUDF message or plain object to encode
|
|
7029
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7030
|
+
* @returns {$protobuf.Writer} Writer
|
|
7031
|
+
*/
|
|
7032
|
+
JavaScriptUDF.encode = function encode(message, writer) {
|
|
7033
|
+
if (!writer)
|
|
7034
|
+
writer = $Writer.create();
|
|
7035
|
+
if (message.functionName != null && Object.hasOwnProperty.call(message, "functionName"))
|
|
7036
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.functionName);
|
|
7037
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
7038
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.code);
|
|
7039
|
+
return writer;
|
|
7040
|
+
};
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* Encodes the specified JavaScriptUDF message, length delimited. Does not implicitly {@link google.pubsub.v1.JavaScriptUDF.verify|verify} messages.
|
|
7044
|
+
* @function encodeDelimited
|
|
7045
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7046
|
+
* @static
|
|
7047
|
+
* @param {google.pubsub.v1.IJavaScriptUDF} message JavaScriptUDF message or plain object to encode
|
|
7048
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7049
|
+
* @returns {$protobuf.Writer} Writer
|
|
7050
|
+
*/
|
|
7051
|
+
JavaScriptUDF.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7052
|
+
return this.encode(message, writer).ldelim();
|
|
7053
|
+
};
|
|
7054
|
+
|
|
7055
|
+
/**
|
|
7056
|
+
* Decodes a JavaScriptUDF message from the specified reader or buffer.
|
|
7057
|
+
* @function decode
|
|
7058
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7059
|
+
* @static
|
|
7060
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7061
|
+
* @param {number} [length] Message length if known beforehand
|
|
7062
|
+
* @returns {google.pubsub.v1.JavaScriptUDF} JavaScriptUDF
|
|
7063
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7064
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7065
|
+
*/
|
|
7066
|
+
JavaScriptUDF.decode = function decode(reader, length, error) {
|
|
7067
|
+
if (!(reader instanceof $Reader))
|
|
7068
|
+
reader = $Reader.create(reader);
|
|
7069
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.JavaScriptUDF();
|
|
7070
|
+
while (reader.pos < end) {
|
|
7071
|
+
var tag = reader.uint32();
|
|
7072
|
+
if (tag === error)
|
|
7073
|
+
break;
|
|
7074
|
+
switch (tag >>> 3) {
|
|
7075
|
+
case 1: {
|
|
7076
|
+
message.functionName = reader.string();
|
|
7077
|
+
break;
|
|
7078
|
+
}
|
|
7079
|
+
case 2: {
|
|
7080
|
+
message.code = reader.string();
|
|
7081
|
+
break;
|
|
7082
|
+
}
|
|
7083
|
+
default:
|
|
7084
|
+
reader.skipType(tag & 7);
|
|
7085
|
+
break;
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7088
|
+
return message;
|
|
7089
|
+
};
|
|
7090
|
+
|
|
7091
|
+
/**
|
|
7092
|
+
* Decodes a JavaScriptUDF message from the specified reader or buffer, length delimited.
|
|
7093
|
+
* @function decodeDelimited
|
|
7094
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7095
|
+
* @static
|
|
7096
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7097
|
+
* @returns {google.pubsub.v1.JavaScriptUDF} JavaScriptUDF
|
|
7098
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7099
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7100
|
+
*/
|
|
7101
|
+
JavaScriptUDF.decodeDelimited = function decodeDelimited(reader) {
|
|
7102
|
+
if (!(reader instanceof $Reader))
|
|
7103
|
+
reader = new $Reader(reader);
|
|
7104
|
+
return this.decode(reader, reader.uint32());
|
|
7105
|
+
};
|
|
7106
|
+
|
|
7107
|
+
/**
|
|
7108
|
+
* Verifies a JavaScriptUDF message.
|
|
7109
|
+
* @function verify
|
|
7110
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7111
|
+
* @static
|
|
7112
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7113
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7114
|
+
*/
|
|
7115
|
+
JavaScriptUDF.verify = function verify(message) {
|
|
7116
|
+
if (typeof message !== "object" || message === null)
|
|
7117
|
+
return "object expected";
|
|
7118
|
+
if (message.functionName != null && message.hasOwnProperty("functionName"))
|
|
7119
|
+
if (!$util.isString(message.functionName))
|
|
7120
|
+
return "functionName: string expected";
|
|
7121
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
7122
|
+
if (!$util.isString(message.code))
|
|
7123
|
+
return "code: string expected";
|
|
7124
|
+
return null;
|
|
7125
|
+
};
|
|
7126
|
+
|
|
7127
|
+
/**
|
|
7128
|
+
* Creates a JavaScriptUDF message from a plain object. Also converts values to their respective internal types.
|
|
7129
|
+
* @function fromObject
|
|
7130
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7131
|
+
* @static
|
|
7132
|
+
* @param {Object.<string,*>} object Plain object
|
|
7133
|
+
* @returns {google.pubsub.v1.JavaScriptUDF} JavaScriptUDF
|
|
7134
|
+
*/
|
|
7135
|
+
JavaScriptUDF.fromObject = function fromObject(object) {
|
|
7136
|
+
if (object instanceof $root.google.pubsub.v1.JavaScriptUDF)
|
|
7137
|
+
return object;
|
|
7138
|
+
var message = new $root.google.pubsub.v1.JavaScriptUDF();
|
|
7139
|
+
if (object.functionName != null)
|
|
7140
|
+
message.functionName = String(object.functionName);
|
|
7141
|
+
if (object.code != null)
|
|
7142
|
+
message.code = String(object.code);
|
|
7143
|
+
return message;
|
|
7144
|
+
};
|
|
7145
|
+
|
|
7146
|
+
/**
|
|
7147
|
+
* Creates a plain object from a JavaScriptUDF message. Also converts values to other types if specified.
|
|
7148
|
+
* @function toObject
|
|
7149
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7150
|
+
* @static
|
|
7151
|
+
* @param {google.pubsub.v1.JavaScriptUDF} message JavaScriptUDF
|
|
7152
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7153
|
+
* @returns {Object.<string,*>} Plain object
|
|
7154
|
+
*/
|
|
7155
|
+
JavaScriptUDF.toObject = function toObject(message, options) {
|
|
7156
|
+
if (!options)
|
|
7157
|
+
options = {};
|
|
7158
|
+
var object = {};
|
|
7159
|
+
if (options.defaults) {
|
|
7160
|
+
object.functionName = "";
|
|
7161
|
+
object.code = "";
|
|
7162
|
+
}
|
|
7163
|
+
if (message.functionName != null && message.hasOwnProperty("functionName"))
|
|
7164
|
+
object.functionName = message.functionName;
|
|
7165
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
7166
|
+
object.code = message.code;
|
|
7167
|
+
return object;
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
/**
|
|
7171
|
+
* Converts this JavaScriptUDF to JSON.
|
|
7172
|
+
* @function toJSON
|
|
7173
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7174
|
+
* @instance
|
|
7175
|
+
* @returns {Object.<string,*>} JSON object
|
|
7176
|
+
*/
|
|
7177
|
+
JavaScriptUDF.prototype.toJSON = function toJSON() {
|
|
7178
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7179
|
+
};
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Gets the default type url for JavaScriptUDF
|
|
7183
|
+
* @function getTypeUrl
|
|
7184
|
+
* @memberof google.pubsub.v1.JavaScriptUDF
|
|
7185
|
+
* @static
|
|
7186
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7187
|
+
* @returns {string} The default type url
|
|
7188
|
+
*/
|
|
7189
|
+
JavaScriptUDF.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7190
|
+
if (typeUrlPrefix === undefined) {
|
|
7191
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7192
|
+
}
|
|
7193
|
+
return typeUrlPrefix + "/google.pubsub.v1.JavaScriptUDF";
|
|
7194
|
+
};
|
|
7195
|
+
|
|
7196
|
+
return JavaScriptUDF;
|
|
7197
|
+
})();
|
|
7198
|
+
|
|
7199
|
+
v1.MessageTransform = (function() {
|
|
7200
|
+
|
|
7201
|
+
/**
|
|
7202
|
+
* Properties of a MessageTransform.
|
|
7203
|
+
* @memberof google.pubsub.v1
|
|
7204
|
+
* @interface IMessageTransform
|
|
7205
|
+
* @property {google.pubsub.v1.IJavaScriptUDF|null} [javascriptUdf] MessageTransform javascriptUdf
|
|
7206
|
+
* @property {boolean|null} [enabled] MessageTransform enabled
|
|
7207
|
+
* @property {boolean|null} [disabled] MessageTransform disabled
|
|
7208
|
+
*/
|
|
7209
|
+
|
|
7210
|
+
/**
|
|
7211
|
+
* Constructs a new MessageTransform.
|
|
7212
|
+
* @memberof google.pubsub.v1
|
|
7213
|
+
* @classdesc Represents a MessageTransform.
|
|
7214
|
+
* @implements IMessageTransform
|
|
7215
|
+
* @constructor
|
|
7216
|
+
* @param {google.pubsub.v1.IMessageTransform=} [properties] Properties to set
|
|
7217
|
+
*/
|
|
7218
|
+
function MessageTransform(properties) {
|
|
7219
|
+
if (properties)
|
|
7220
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7221
|
+
if (properties[keys[i]] != null)
|
|
7222
|
+
this[keys[i]] = properties[keys[i]];
|
|
7223
|
+
}
|
|
7224
|
+
|
|
7225
|
+
/**
|
|
7226
|
+
* MessageTransform javascriptUdf.
|
|
7227
|
+
* @member {google.pubsub.v1.IJavaScriptUDF|null|undefined} javascriptUdf
|
|
7228
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7229
|
+
* @instance
|
|
7230
|
+
*/
|
|
7231
|
+
MessageTransform.prototype.javascriptUdf = null;
|
|
7232
|
+
|
|
7233
|
+
/**
|
|
7234
|
+
* MessageTransform enabled.
|
|
7235
|
+
* @member {boolean} enabled
|
|
7236
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7237
|
+
* @instance
|
|
7238
|
+
*/
|
|
7239
|
+
MessageTransform.prototype.enabled = false;
|
|
7240
|
+
|
|
7241
|
+
/**
|
|
7242
|
+
* MessageTransform disabled.
|
|
7243
|
+
* @member {boolean} disabled
|
|
7244
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7245
|
+
* @instance
|
|
7246
|
+
*/
|
|
7247
|
+
MessageTransform.prototype.disabled = false;
|
|
7248
|
+
|
|
7249
|
+
// OneOf field names bound to virtual getters and setters
|
|
7250
|
+
var $oneOfFields;
|
|
7251
|
+
|
|
7252
|
+
/**
|
|
7253
|
+
* MessageTransform transform.
|
|
7254
|
+
* @member {"javascriptUdf"|undefined} transform
|
|
7255
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7256
|
+
* @instance
|
|
7257
|
+
*/
|
|
7258
|
+
Object.defineProperty(MessageTransform.prototype, "transform", {
|
|
7259
|
+
get: $util.oneOfGetter($oneOfFields = ["javascriptUdf"]),
|
|
7260
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7261
|
+
});
|
|
7262
|
+
|
|
7263
|
+
/**
|
|
7264
|
+
* Creates a new MessageTransform instance using the specified properties.
|
|
7265
|
+
* @function create
|
|
7266
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7267
|
+
* @static
|
|
7268
|
+
* @param {google.pubsub.v1.IMessageTransform=} [properties] Properties to set
|
|
7269
|
+
* @returns {google.pubsub.v1.MessageTransform} MessageTransform instance
|
|
7270
|
+
*/
|
|
7271
|
+
MessageTransform.create = function create(properties) {
|
|
7272
|
+
return new MessageTransform(properties);
|
|
7273
|
+
};
|
|
7274
|
+
|
|
7275
|
+
/**
|
|
7276
|
+
* Encodes the specified MessageTransform message. Does not implicitly {@link google.pubsub.v1.MessageTransform.verify|verify} messages.
|
|
7277
|
+
* @function encode
|
|
7278
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7279
|
+
* @static
|
|
7280
|
+
* @param {google.pubsub.v1.IMessageTransform} message MessageTransform message or plain object to encode
|
|
7281
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7282
|
+
* @returns {$protobuf.Writer} Writer
|
|
7283
|
+
*/
|
|
7284
|
+
MessageTransform.encode = function encode(message, writer) {
|
|
7285
|
+
if (!writer)
|
|
7286
|
+
writer = $Writer.create();
|
|
7287
|
+
if (message.javascriptUdf != null && Object.hasOwnProperty.call(message, "javascriptUdf"))
|
|
7288
|
+
$root.google.pubsub.v1.JavaScriptUDF.encode(message.javascriptUdf, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
7289
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
7290
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enabled);
|
|
7291
|
+
if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
|
|
7292
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disabled);
|
|
7293
|
+
return writer;
|
|
7294
|
+
};
|
|
7295
|
+
|
|
7296
|
+
/**
|
|
7297
|
+
* Encodes the specified MessageTransform message, length delimited. Does not implicitly {@link google.pubsub.v1.MessageTransform.verify|verify} messages.
|
|
7298
|
+
* @function encodeDelimited
|
|
7299
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7300
|
+
* @static
|
|
7301
|
+
* @param {google.pubsub.v1.IMessageTransform} message MessageTransform message or plain object to encode
|
|
7302
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7303
|
+
* @returns {$protobuf.Writer} Writer
|
|
7304
|
+
*/
|
|
7305
|
+
MessageTransform.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7306
|
+
return this.encode(message, writer).ldelim();
|
|
7307
|
+
};
|
|
7308
|
+
|
|
7309
|
+
/**
|
|
7310
|
+
* Decodes a MessageTransform message from the specified reader or buffer.
|
|
7311
|
+
* @function decode
|
|
7312
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7313
|
+
* @static
|
|
7314
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7315
|
+
* @param {number} [length] Message length if known beforehand
|
|
7316
|
+
* @returns {google.pubsub.v1.MessageTransform} MessageTransform
|
|
7317
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7318
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7319
|
+
*/
|
|
7320
|
+
MessageTransform.decode = function decode(reader, length, error) {
|
|
7321
|
+
if (!(reader instanceof $Reader))
|
|
7322
|
+
reader = $Reader.create(reader);
|
|
7323
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.MessageTransform();
|
|
7324
|
+
while (reader.pos < end) {
|
|
7325
|
+
var tag = reader.uint32();
|
|
7326
|
+
if (tag === error)
|
|
7327
|
+
break;
|
|
7328
|
+
switch (tag >>> 3) {
|
|
7329
|
+
case 2: {
|
|
7330
|
+
message.javascriptUdf = $root.google.pubsub.v1.JavaScriptUDF.decode(reader, reader.uint32());
|
|
7331
|
+
break;
|
|
7332
|
+
}
|
|
7333
|
+
case 3: {
|
|
7334
|
+
message.enabled = reader.bool();
|
|
7335
|
+
break;
|
|
7336
|
+
}
|
|
7337
|
+
case 4: {
|
|
7338
|
+
message.disabled = reader.bool();
|
|
7339
|
+
break;
|
|
7340
|
+
}
|
|
7341
|
+
default:
|
|
7342
|
+
reader.skipType(tag & 7);
|
|
7343
|
+
break;
|
|
7344
|
+
}
|
|
7345
|
+
}
|
|
7346
|
+
return message;
|
|
7347
|
+
};
|
|
7348
|
+
|
|
7349
|
+
/**
|
|
7350
|
+
* Decodes a MessageTransform message from the specified reader or buffer, length delimited.
|
|
7351
|
+
* @function decodeDelimited
|
|
7352
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7353
|
+
* @static
|
|
7354
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7355
|
+
* @returns {google.pubsub.v1.MessageTransform} MessageTransform
|
|
7356
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7357
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7358
|
+
*/
|
|
7359
|
+
MessageTransform.decodeDelimited = function decodeDelimited(reader) {
|
|
7360
|
+
if (!(reader instanceof $Reader))
|
|
7361
|
+
reader = new $Reader(reader);
|
|
7362
|
+
return this.decode(reader, reader.uint32());
|
|
7363
|
+
};
|
|
7364
|
+
|
|
7365
|
+
/**
|
|
7366
|
+
* Verifies a MessageTransform message.
|
|
7367
|
+
* @function verify
|
|
7368
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7369
|
+
* @static
|
|
7370
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7371
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7372
|
+
*/
|
|
7373
|
+
MessageTransform.verify = function verify(message) {
|
|
7374
|
+
if (typeof message !== "object" || message === null)
|
|
7375
|
+
return "object expected";
|
|
7376
|
+
var properties = {};
|
|
7377
|
+
if (message.javascriptUdf != null && message.hasOwnProperty("javascriptUdf")) {
|
|
7378
|
+
properties.transform = 1;
|
|
7379
|
+
{
|
|
7380
|
+
var error = $root.google.pubsub.v1.JavaScriptUDF.verify(message.javascriptUdf);
|
|
7381
|
+
if (error)
|
|
7382
|
+
return "javascriptUdf." + error;
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
7386
|
+
if (typeof message.enabled !== "boolean")
|
|
7387
|
+
return "enabled: boolean expected";
|
|
7388
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
7389
|
+
if (typeof message.disabled !== "boolean")
|
|
7390
|
+
return "disabled: boolean expected";
|
|
7391
|
+
return null;
|
|
7392
|
+
};
|
|
7393
|
+
|
|
7394
|
+
/**
|
|
7395
|
+
* Creates a MessageTransform message from a plain object. Also converts values to their respective internal types.
|
|
7396
|
+
* @function fromObject
|
|
7397
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7398
|
+
* @static
|
|
7399
|
+
* @param {Object.<string,*>} object Plain object
|
|
7400
|
+
* @returns {google.pubsub.v1.MessageTransform} MessageTransform
|
|
7401
|
+
*/
|
|
7402
|
+
MessageTransform.fromObject = function fromObject(object) {
|
|
7403
|
+
if (object instanceof $root.google.pubsub.v1.MessageTransform)
|
|
7404
|
+
return object;
|
|
7405
|
+
var message = new $root.google.pubsub.v1.MessageTransform();
|
|
7406
|
+
if (object.javascriptUdf != null) {
|
|
7407
|
+
if (typeof object.javascriptUdf !== "object")
|
|
7408
|
+
throw TypeError(".google.pubsub.v1.MessageTransform.javascriptUdf: object expected");
|
|
7409
|
+
message.javascriptUdf = $root.google.pubsub.v1.JavaScriptUDF.fromObject(object.javascriptUdf);
|
|
7410
|
+
}
|
|
7411
|
+
if (object.enabled != null)
|
|
7412
|
+
message.enabled = Boolean(object.enabled);
|
|
7413
|
+
if (object.disabled != null)
|
|
7414
|
+
message.disabled = Boolean(object.disabled);
|
|
7415
|
+
return message;
|
|
7416
|
+
};
|
|
7417
|
+
|
|
7418
|
+
/**
|
|
7419
|
+
* Creates a plain object from a MessageTransform message. Also converts values to other types if specified.
|
|
7420
|
+
* @function toObject
|
|
7421
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7422
|
+
* @static
|
|
7423
|
+
* @param {google.pubsub.v1.MessageTransform} message MessageTransform
|
|
7424
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7425
|
+
* @returns {Object.<string,*>} Plain object
|
|
7426
|
+
*/
|
|
7427
|
+
MessageTransform.toObject = function toObject(message, options) {
|
|
7428
|
+
if (!options)
|
|
7429
|
+
options = {};
|
|
7430
|
+
var object = {};
|
|
7431
|
+
if (options.defaults) {
|
|
7432
|
+
object.enabled = false;
|
|
7433
|
+
object.disabled = false;
|
|
7434
|
+
}
|
|
7435
|
+
if (message.javascriptUdf != null && message.hasOwnProperty("javascriptUdf")) {
|
|
7436
|
+
object.javascriptUdf = $root.google.pubsub.v1.JavaScriptUDF.toObject(message.javascriptUdf, options);
|
|
7437
|
+
if (options.oneofs)
|
|
7438
|
+
object.transform = "javascriptUdf";
|
|
7439
|
+
}
|
|
7440
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
7441
|
+
object.enabled = message.enabled;
|
|
7442
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
7443
|
+
object.disabled = message.disabled;
|
|
7444
|
+
return object;
|
|
7445
|
+
};
|
|
7446
|
+
|
|
7447
|
+
/**
|
|
7448
|
+
* Converts this MessageTransform to JSON.
|
|
7449
|
+
* @function toJSON
|
|
7450
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7451
|
+
* @instance
|
|
7452
|
+
* @returns {Object.<string,*>} JSON object
|
|
7453
|
+
*/
|
|
7454
|
+
MessageTransform.prototype.toJSON = function toJSON() {
|
|
7455
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7456
|
+
};
|
|
7457
|
+
|
|
7458
|
+
/**
|
|
7459
|
+
* Gets the default type url for MessageTransform
|
|
7460
|
+
* @function getTypeUrl
|
|
7461
|
+
* @memberof google.pubsub.v1.MessageTransform
|
|
7462
|
+
* @static
|
|
7463
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7464
|
+
* @returns {string} The default type url
|
|
7465
|
+
*/
|
|
7466
|
+
MessageTransform.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7467
|
+
if (typeUrlPrefix === undefined) {
|
|
7468
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7469
|
+
}
|
|
7470
|
+
return typeUrlPrefix + "/google.pubsub.v1.MessageTransform";
|
|
7471
|
+
};
|
|
7472
|
+
|
|
7473
|
+
return MessageTransform;
|
|
7474
|
+
})();
|
|
7475
|
+
|
|
6318
7476
|
v1.Topic = (function() {
|
|
6319
7477
|
|
|
6320
7478
|
/**
|
|
@@ -6330,6 +7488,7 @@
|
|
|
6330
7488
|
* @property {google.protobuf.IDuration|null} [messageRetentionDuration] Topic messageRetentionDuration
|
|
6331
7489
|
* @property {google.pubsub.v1.Topic.State|null} [state] Topic state
|
|
6332
7490
|
* @property {google.pubsub.v1.IIngestionDataSourceSettings|null} [ingestionDataSourceSettings] Topic ingestionDataSourceSettings
|
|
7491
|
+
* @property {Array.<google.pubsub.v1.IMessageTransform>|null} [messageTransforms] Topic messageTransforms
|
|
6333
7492
|
*/
|
|
6334
7493
|
|
|
6335
7494
|
/**
|
|
@@ -6342,6 +7501,7 @@
|
|
|
6342
7501
|
*/
|
|
6343
7502
|
function Topic(properties) {
|
|
6344
7503
|
this.labels = {};
|
|
7504
|
+
this.messageTransforms = [];
|
|
6345
7505
|
if (properties)
|
|
6346
7506
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6347
7507
|
if (properties[keys[i]] != null)
|
|
@@ -6420,6 +7580,14 @@
|
|
|
6420
7580
|
*/
|
|
6421
7581
|
Topic.prototype.ingestionDataSourceSettings = null;
|
|
6422
7582
|
|
|
7583
|
+
/**
|
|
7584
|
+
* Topic messageTransforms.
|
|
7585
|
+
* @member {Array.<google.pubsub.v1.IMessageTransform>} messageTransforms
|
|
7586
|
+
* @memberof google.pubsub.v1.Topic
|
|
7587
|
+
* @instance
|
|
7588
|
+
*/
|
|
7589
|
+
Topic.prototype.messageTransforms = $util.emptyArray;
|
|
7590
|
+
|
|
6423
7591
|
/**
|
|
6424
7592
|
* Creates a new Topic instance using the specified properties.
|
|
6425
7593
|
* @function create
|
|
@@ -6463,6 +7631,9 @@
|
|
|
6463
7631
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state);
|
|
6464
7632
|
if (message.ingestionDataSourceSettings != null && Object.hasOwnProperty.call(message, "ingestionDataSourceSettings"))
|
|
6465
7633
|
$root.google.pubsub.v1.IngestionDataSourceSettings.encode(message.ingestionDataSourceSettings, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
7634
|
+
if (message.messageTransforms != null && message.messageTransforms.length)
|
|
7635
|
+
for (var i = 0; i < message.messageTransforms.length; ++i)
|
|
7636
|
+
$root.google.pubsub.v1.MessageTransform.encode(message.messageTransforms[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
6466
7637
|
return writer;
|
|
6467
7638
|
};
|
|
6468
7639
|
|
|
@@ -6554,6 +7725,12 @@
|
|
|
6554
7725
|
message.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.decode(reader, reader.uint32());
|
|
6555
7726
|
break;
|
|
6556
7727
|
}
|
|
7728
|
+
case 13: {
|
|
7729
|
+
if (!(message.messageTransforms && message.messageTransforms.length))
|
|
7730
|
+
message.messageTransforms = [];
|
|
7731
|
+
message.messageTransforms.push($root.google.pubsub.v1.MessageTransform.decode(reader, reader.uint32()));
|
|
7732
|
+
break;
|
|
7733
|
+
}
|
|
6557
7734
|
default:
|
|
6558
7735
|
reader.skipType(tag & 7);
|
|
6559
7736
|
break;
|
|
@@ -6635,6 +7812,15 @@
|
|
|
6635
7812
|
if (error)
|
|
6636
7813
|
return "ingestionDataSourceSettings." + error;
|
|
6637
7814
|
}
|
|
7815
|
+
if (message.messageTransforms != null && message.hasOwnProperty("messageTransforms")) {
|
|
7816
|
+
if (!Array.isArray(message.messageTransforms))
|
|
7817
|
+
return "messageTransforms: array expected";
|
|
7818
|
+
for (var i = 0; i < message.messageTransforms.length; ++i) {
|
|
7819
|
+
var error = $root.google.pubsub.v1.MessageTransform.verify(message.messageTransforms[i]);
|
|
7820
|
+
if (error)
|
|
7821
|
+
return "messageTransforms." + error;
|
|
7822
|
+
}
|
|
7823
|
+
}
|
|
6638
7824
|
return null;
|
|
6639
7825
|
};
|
|
6640
7826
|
|
|
@@ -6703,6 +7889,16 @@
|
|
|
6703
7889
|
throw TypeError(".google.pubsub.v1.Topic.ingestionDataSourceSettings: object expected");
|
|
6704
7890
|
message.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.fromObject(object.ingestionDataSourceSettings);
|
|
6705
7891
|
}
|
|
7892
|
+
if (object.messageTransforms) {
|
|
7893
|
+
if (!Array.isArray(object.messageTransforms))
|
|
7894
|
+
throw TypeError(".google.pubsub.v1.Topic.messageTransforms: array expected");
|
|
7895
|
+
message.messageTransforms = [];
|
|
7896
|
+
for (var i = 0; i < object.messageTransforms.length; ++i) {
|
|
7897
|
+
if (typeof object.messageTransforms[i] !== "object")
|
|
7898
|
+
throw TypeError(".google.pubsub.v1.Topic.messageTransforms: object expected");
|
|
7899
|
+
message.messageTransforms[i] = $root.google.pubsub.v1.MessageTransform.fromObject(object.messageTransforms[i]);
|
|
7900
|
+
}
|
|
7901
|
+
}
|
|
6706
7902
|
return message;
|
|
6707
7903
|
};
|
|
6708
7904
|
|
|
@@ -6719,6 +7915,8 @@
|
|
|
6719
7915
|
if (!options)
|
|
6720
7916
|
options = {};
|
|
6721
7917
|
var object = {};
|
|
7918
|
+
if (options.arrays || options.defaults)
|
|
7919
|
+
object.messageTransforms = [];
|
|
6722
7920
|
if (options.objects || options.defaults)
|
|
6723
7921
|
object.labels = {};
|
|
6724
7922
|
if (options.defaults) {
|
|
@@ -6753,6 +7951,11 @@
|
|
|
6753
7951
|
object.state = options.enums === String ? $root.google.pubsub.v1.Topic.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.Topic.State[message.state] : message.state;
|
|
6754
7952
|
if (message.ingestionDataSourceSettings != null && message.hasOwnProperty("ingestionDataSourceSettings"))
|
|
6755
7953
|
object.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.toObject(message.ingestionDataSourceSettings, options);
|
|
7954
|
+
if (message.messageTransforms && message.messageTransforms.length) {
|
|
7955
|
+
object.messageTransforms = [];
|
|
7956
|
+
for (var j = 0; j < message.messageTransforms.length; ++j)
|
|
7957
|
+
object.messageTransforms[j] = $root.google.pubsub.v1.MessageTransform.toObject(message.messageTransforms[j], options);
|
|
7958
|
+
}
|
|
6756
7959
|
return object;
|
|
6757
7960
|
};
|
|
6758
7961
|
|
|
@@ -10735,6 +11938,7 @@
|
|
|
10735
11938
|
* @property {google.protobuf.IDuration|null} [topicMessageRetentionDuration] Subscription topicMessageRetentionDuration
|
|
10736
11939
|
* @property {google.pubsub.v1.Subscription.State|null} [state] Subscription state
|
|
10737
11940
|
* @property {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null} [analyticsHubSubscriptionInfo] Subscription analyticsHubSubscriptionInfo
|
|
11941
|
+
* @property {Array.<google.pubsub.v1.IMessageTransform>|null} [messageTransforms] Subscription messageTransforms
|
|
10738
11942
|
*/
|
|
10739
11943
|
|
|
10740
11944
|
/**
|
|
@@ -10747,6 +11951,7 @@
|
|
|
10747
11951
|
*/
|
|
10748
11952
|
function Subscription(properties) {
|
|
10749
11953
|
this.labels = {};
|
|
11954
|
+
this.messageTransforms = [];
|
|
10750
11955
|
if (properties)
|
|
10751
11956
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10752
11957
|
if (properties[keys[i]] != null)
|
|
@@ -10905,6 +12110,14 @@
|
|
|
10905
12110
|
*/
|
|
10906
12111
|
Subscription.prototype.analyticsHubSubscriptionInfo = null;
|
|
10907
12112
|
|
|
12113
|
+
/**
|
|
12114
|
+
* Subscription messageTransforms.
|
|
12115
|
+
* @member {Array.<google.pubsub.v1.IMessageTransform>} messageTransforms
|
|
12116
|
+
* @memberof google.pubsub.v1.Subscription
|
|
12117
|
+
* @instance
|
|
12118
|
+
*/
|
|
12119
|
+
Subscription.prototype.messageTransforms = $util.emptyArray;
|
|
12120
|
+
|
|
10908
12121
|
/**
|
|
10909
12122
|
* Creates a new Subscription instance using the specified properties.
|
|
10910
12123
|
* @function create
|
|
@@ -10968,6 +12181,9 @@
|
|
|
10968
12181
|
$root.google.pubsub.v1.CloudStorageConfig.encode(message.cloudStorageConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
10969
12182
|
if (message.analyticsHubSubscriptionInfo != null && Object.hasOwnProperty.call(message, "analyticsHubSubscriptionInfo"))
|
|
10970
12183
|
$root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.encode(message.analyticsHubSubscriptionInfo, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
12184
|
+
if (message.messageTransforms != null && message.messageTransforms.length)
|
|
12185
|
+
for (var i = 0; i < message.messageTransforms.length; ++i)
|
|
12186
|
+
$root.google.pubsub.v1.MessageTransform.encode(message.messageTransforms[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
10971
12187
|
return writer;
|
|
10972
12188
|
};
|
|
10973
12189
|
|
|
@@ -11099,6 +12315,12 @@
|
|
|
11099
12315
|
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.decode(reader, reader.uint32());
|
|
11100
12316
|
break;
|
|
11101
12317
|
}
|
|
12318
|
+
case 25: {
|
|
12319
|
+
if (!(message.messageTransforms && message.messageTransforms.length))
|
|
12320
|
+
message.messageTransforms = [];
|
|
12321
|
+
message.messageTransforms.push($root.google.pubsub.v1.MessageTransform.decode(reader, reader.uint32()));
|
|
12322
|
+
break;
|
|
12323
|
+
}
|
|
11102
12324
|
default:
|
|
11103
12325
|
reader.skipType(tag & 7);
|
|
11104
12326
|
break;
|
|
@@ -11220,6 +12442,15 @@
|
|
|
11220
12442
|
if (error)
|
|
11221
12443
|
return "analyticsHubSubscriptionInfo." + error;
|
|
11222
12444
|
}
|
|
12445
|
+
if (message.messageTransforms != null && message.hasOwnProperty("messageTransforms")) {
|
|
12446
|
+
if (!Array.isArray(message.messageTransforms))
|
|
12447
|
+
return "messageTransforms: array expected";
|
|
12448
|
+
for (var i = 0; i < message.messageTransforms.length; ++i) {
|
|
12449
|
+
var error = $root.google.pubsub.v1.MessageTransform.verify(message.messageTransforms[i]);
|
|
12450
|
+
if (error)
|
|
12451
|
+
return "messageTransforms." + error;
|
|
12452
|
+
}
|
|
12453
|
+
}
|
|
11223
12454
|
return null;
|
|
11224
12455
|
};
|
|
11225
12456
|
|
|
@@ -11323,6 +12554,16 @@
|
|
|
11323
12554
|
throw TypeError(".google.pubsub.v1.Subscription.analyticsHubSubscriptionInfo: object expected");
|
|
11324
12555
|
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.fromObject(object.analyticsHubSubscriptionInfo);
|
|
11325
12556
|
}
|
|
12557
|
+
if (object.messageTransforms) {
|
|
12558
|
+
if (!Array.isArray(object.messageTransforms))
|
|
12559
|
+
throw TypeError(".google.pubsub.v1.Subscription.messageTransforms: array expected");
|
|
12560
|
+
message.messageTransforms = [];
|
|
12561
|
+
for (var i = 0; i < object.messageTransforms.length; ++i) {
|
|
12562
|
+
if (typeof object.messageTransforms[i] !== "object")
|
|
12563
|
+
throw TypeError(".google.pubsub.v1.Subscription.messageTransforms: object expected");
|
|
12564
|
+
message.messageTransforms[i] = $root.google.pubsub.v1.MessageTransform.fromObject(object.messageTransforms[i]);
|
|
12565
|
+
}
|
|
12566
|
+
}
|
|
11326
12567
|
return message;
|
|
11327
12568
|
};
|
|
11328
12569
|
|
|
@@ -11339,6 +12580,8 @@
|
|
|
11339
12580
|
if (!options)
|
|
11340
12581
|
options = {};
|
|
11341
12582
|
var object = {};
|
|
12583
|
+
if (options.arrays || options.defaults)
|
|
12584
|
+
object.messageTransforms = [];
|
|
11342
12585
|
if (options.objects || options.defaults)
|
|
11343
12586
|
object.labels = {};
|
|
11344
12587
|
if (options.defaults) {
|
|
@@ -11403,6 +12646,11 @@
|
|
|
11403
12646
|
object.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.toObject(message.cloudStorageConfig, options);
|
|
11404
12647
|
if (message.analyticsHubSubscriptionInfo != null && message.hasOwnProperty("analyticsHubSubscriptionInfo"))
|
|
11405
12648
|
object.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.toObject(message.analyticsHubSubscriptionInfo, options);
|
|
12649
|
+
if (message.messageTransforms && message.messageTransforms.length) {
|
|
12650
|
+
object.messageTransforms = [];
|
|
12651
|
+
for (var j = 0; j < message.messageTransforms.length; ++j)
|
|
12652
|
+
object.messageTransforms[j] = $root.google.pubsub.v1.MessageTransform.toObject(message.messageTransforms[j], options);
|
|
12653
|
+
}
|
|
11406
12654
|
return object;
|
|
11407
12655
|
};
|
|
11408
12656
|
|
|
@@ -26406,6 +27654,7 @@
|
|
|
26406
27654
|
* @interface ICommonLanguageSettings
|
|
26407
27655
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
26408
27656
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
27657
|
+
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
26409
27658
|
*/
|
|
26410
27659
|
|
|
26411
27660
|
/**
|
|
@@ -26440,6 +27689,14 @@
|
|
|
26440
27689
|
*/
|
|
26441
27690
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
26442
27691
|
|
|
27692
|
+
/**
|
|
27693
|
+
* CommonLanguageSettings selectiveGapicGeneration.
|
|
27694
|
+
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
27695
|
+
* @memberof google.api.CommonLanguageSettings
|
|
27696
|
+
* @instance
|
|
27697
|
+
*/
|
|
27698
|
+
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
27699
|
+
|
|
26443
27700
|
/**
|
|
26444
27701
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
26445
27702
|
* @function create
|
|
@@ -26472,6 +27729,8 @@
|
|
|
26472
27729
|
writer.int32(message.destinations[i]);
|
|
26473
27730
|
writer.ldelim();
|
|
26474
27731
|
}
|
|
27732
|
+
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
27733
|
+
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
26475
27734
|
return writer;
|
|
26476
27735
|
};
|
|
26477
27736
|
|
|
@@ -26523,6 +27782,10 @@
|
|
|
26523
27782
|
message.destinations.push(reader.int32());
|
|
26524
27783
|
break;
|
|
26525
27784
|
}
|
|
27785
|
+
case 3: {
|
|
27786
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
27787
|
+
break;
|
|
27788
|
+
}
|
|
26526
27789
|
default:
|
|
26527
27790
|
reader.skipType(tag & 7);
|
|
26528
27791
|
break;
|
|
@@ -26574,6 +27837,11 @@
|
|
|
26574
27837
|
break;
|
|
26575
27838
|
}
|
|
26576
27839
|
}
|
|
27840
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
27841
|
+
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
27842
|
+
if (error)
|
|
27843
|
+
return "selectiveGapicGeneration." + error;
|
|
27844
|
+
}
|
|
26577
27845
|
return null;
|
|
26578
27846
|
};
|
|
26579
27847
|
|
|
@@ -26616,6 +27884,11 @@
|
|
|
26616
27884
|
break;
|
|
26617
27885
|
}
|
|
26618
27886
|
}
|
|
27887
|
+
if (object.selectiveGapicGeneration != null) {
|
|
27888
|
+
if (typeof object.selectiveGapicGeneration !== "object")
|
|
27889
|
+
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
27890
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
27891
|
+
}
|
|
26619
27892
|
return message;
|
|
26620
27893
|
};
|
|
26621
27894
|
|
|
@@ -26634,8 +27907,10 @@
|
|
|
26634
27907
|
var object = {};
|
|
26635
27908
|
if (options.arrays || options.defaults)
|
|
26636
27909
|
object.destinations = [];
|
|
26637
|
-
if (options.defaults)
|
|
27910
|
+
if (options.defaults) {
|
|
26638
27911
|
object.referenceDocsUri = "";
|
|
27912
|
+
object.selectiveGapicGeneration = null;
|
|
27913
|
+
}
|
|
26639
27914
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
26640
27915
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
26641
27916
|
if (message.destinations && message.destinations.length) {
|
|
@@ -26643,6 +27918,8 @@
|
|
|
26643
27918
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
26644
27919
|
object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
|
|
26645
27920
|
}
|
|
27921
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
27922
|
+
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
26646
27923
|
return object;
|
|
26647
27924
|
};
|
|
26648
27925
|
|
|
@@ -28465,6 +29742,7 @@
|
|
|
28465
29742
|
* @memberof google.api
|
|
28466
29743
|
* @interface IPythonSettings
|
|
28467
29744
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
29745
|
+
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
28468
29746
|
*/
|
|
28469
29747
|
|
|
28470
29748
|
/**
|
|
@@ -28490,6 +29768,14 @@
|
|
|
28490
29768
|
*/
|
|
28491
29769
|
PythonSettings.prototype.common = null;
|
|
28492
29770
|
|
|
29771
|
+
/**
|
|
29772
|
+
* PythonSettings experimentalFeatures.
|
|
29773
|
+
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
29774
|
+
* @memberof google.api.PythonSettings
|
|
29775
|
+
* @instance
|
|
29776
|
+
*/
|
|
29777
|
+
PythonSettings.prototype.experimentalFeatures = null;
|
|
29778
|
+
|
|
28493
29779
|
/**
|
|
28494
29780
|
* Creates a new PythonSettings instance using the specified properties.
|
|
28495
29781
|
* @function create
|
|
@@ -28516,6 +29802,8 @@
|
|
|
28516
29802
|
writer = $Writer.create();
|
|
28517
29803
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
28518
29804
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
29805
|
+
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
29806
|
+
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
28519
29807
|
return writer;
|
|
28520
29808
|
};
|
|
28521
29809
|
|
|
@@ -28556,6 +29844,10 @@
|
|
|
28556
29844
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
28557
29845
|
break;
|
|
28558
29846
|
}
|
|
29847
|
+
case 2: {
|
|
29848
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
29849
|
+
break;
|
|
29850
|
+
}
|
|
28559
29851
|
default:
|
|
28560
29852
|
reader.skipType(tag & 7);
|
|
28561
29853
|
break;
|
|
@@ -28596,6 +29888,11 @@
|
|
|
28596
29888
|
if (error)
|
|
28597
29889
|
return "common." + error;
|
|
28598
29890
|
}
|
|
29891
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
29892
|
+
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
29893
|
+
if (error)
|
|
29894
|
+
return "experimentalFeatures." + error;
|
|
29895
|
+
}
|
|
28599
29896
|
return null;
|
|
28600
29897
|
};
|
|
28601
29898
|
|
|
@@ -28616,6 +29913,11 @@
|
|
|
28616
29913
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
28617
29914
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
28618
29915
|
}
|
|
29916
|
+
if (object.experimentalFeatures != null) {
|
|
29917
|
+
if (typeof object.experimentalFeatures !== "object")
|
|
29918
|
+
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
29919
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
29920
|
+
}
|
|
28619
29921
|
return message;
|
|
28620
29922
|
};
|
|
28621
29923
|
|
|
@@ -28632,10 +29934,14 @@
|
|
|
28632
29934
|
if (!options)
|
|
28633
29935
|
options = {};
|
|
28634
29936
|
var object = {};
|
|
28635
|
-
if (options.defaults)
|
|
29937
|
+
if (options.defaults) {
|
|
28636
29938
|
object.common = null;
|
|
29939
|
+
object.experimentalFeatures = null;
|
|
29940
|
+
}
|
|
28637
29941
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
28638
29942
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
29943
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
29944
|
+
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
28639
29945
|
return object;
|
|
28640
29946
|
};
|
|
28641
29947
|
|
|
@@ -28665,6 +29971,258 @@
|
|
|
28665
29971
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
28666
29972
|
};
|
|
28667
29973
|
|
|
29974
|
+
PythonSettings.ExperimentalFeatures = (function() {
|
|
29975
|
+
|
|
29976
|
+
/**
|
|
29977
|
+
* Properties of an ExperimentalFeatures.
|
|
29978
|
+
* @memberof google.api.PythonSettings
|
|
29979
|
+
* @interface IExperimentalFeatures
|
|
29980
|
+
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
29981
|
+
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
29982
|
+
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
29983
|
+
*/
|
|
29984
|
+
|
|
29985
|
+
/**
|
|
29986
|
+
* Constructs a new ExperimentalFeatures.
|
|
29987
|
+
* @memberof google.api.PythonSettings
|
|
29988
|
+
* @classdesc Represents an ExperimentalFeatures.
|
|
29989
|
+
* @implements IExperimentalFeatures
|
|
29990
|
+
* @constructor
|
|
29991
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
29992
|
+
*/
|
|
29993
|
+
function ExperimentalFeatures(properties) {
|
|
29994
|
+
if (properties)
|
|
29995
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29996
|
+
if (properties[keys[i]] != null)
|
|
29997
|
+
this[keys[i]] = properties[keys[i]];
|
|
29998
|
+
}
|
|
29999
|
+
|
|
30000
|
+
/**
|
|
30001
|
+
* ExperimentalFeatures restAsyncIoEnabled.
|
|
30002
|
+
* @member {boolean} restAsyncIoEnabled
|
|
30003
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30004
|
+
* @instance
|
|
30005
|
+
*/
|
|
30006
|
+
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
30007
|
+
|
|
30008
|
+
/**
|
|
30009
|
+
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
30010
|
+
* @member {boolean} protobufPythonicTypesEnabled
|
|
30011
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30012
|
+
* @instance
|
|
30013
|
+
*/
|
|
30014
|
+
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
30015
|
+
|
|
30016
|
+
/**
|
|
30017
|
+
* ExperimentalFeatures unversionedPackageDisabled.
|
|
30018
|
+
* @member {boolean} unversionedPackageDisabled
|
|
30019
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30020
|
+
* @instance
|
|
30021
|
+
*/
|
|
30022
|
+
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
30023
|
+
|
|
30024
|
+
/**
|
|
30025
|
+
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
30026
|
+
* @function create
|
|
30027
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30028
|
+
* @static
|
|
30029
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
30030
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
30031
|
+
*/
|
|
30032
|
+
ExperimentalFeatures.create = function create(properties) {
|
|
30033
|
+
return new ExperimentalFeatures(properties);
|
|
30034
|
+
};
|
|
30035
|
+
|
|
30036
|
+
/**
|
|
30037
|
+
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
30038
|
+
* @function encode
|
|
30039
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30040
|
+
* @static
|
|
30041
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
30042
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
30043
|
+
* @returns {$protobuf.Writer} Writer
|
|
30044
|
+
*/
|
|
30045
|
+
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
30046
|
+
if (!writer)
|
|
30047
|
+
writer = $Writer.create();
|
|
30048
|
+
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
30049
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
30050
|
+
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
30051
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
30052
|
+
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
30053
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
30054
|
+
return writer;
|
|
30055
|
+
};
|
|
30056
|
+
|
|
30057
|
+
/**
|
|
30058
|
+
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
30059
|
+
* @function encodeDelimited
|
|
30060
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30061
|
+
* @static
|
|
30062
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
30063
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
30064
|
+
* @returns {$protobuf.Writer} Writer
|
|
30065
|
+
*/
|
|
30066
|
+
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
30067
|
+
return this.encode(message, writer).ldelim();
|
|
30068
|
+
};
|
|
30069
|
+
|
|
30070
|
+
/**
|
|
30071
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
30072
|
+
* @function decode
|
|
30073
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30074
|
+
* @static
|
|
30075
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
30076
|
+
* @param {number} [length] Message length if known beforehand
|
|
30077
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30078
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30079
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30080
|
+
*/
|
|
30081
|
+
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
30082
|
+
if (!(reader instanceof $Reader))
|
|
30083
|
+
reader = $Reader.create(reader);
|
|
30084
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
30085
|
+
while (reader.pos < end) {
|
|
30086
|
+
var tag = reader.uint32();
|
|
30087
|
+
if (tag === error)
|
|
30088
|
+
break;
|
|
30089
|
+
switch (tag >>> 3) {
|
|
30090
|
+
case 1: {
|
|
30091
|
+
message.restAsyncIoEnabled = reader.bool();
|
|
30092
|
+
break;
|
|
30093
|
+
}
|
|
30094
|
+
case 2: {
|
|
30095
|
+
message.protobufPythonicTypesEnabled = reader.bool();
|
|
30096
|
+
break;
|
|
30097
|
+
}
|
|
30098
|
+
case 3: {
|
|
30099
|
+
message.unversionedPackageDisabled = reader.bool();
|
|
30100
|
+
break;
|
|
30101
|
+
}
|
|
30102
|
+
default:
|
|
30103
|
+
reader.skipType(tag & 7);
|
|
30104
|
+
break;
|
|
30105
|
+
}
|
|
30106
|
+
}
|
|
30107
|
+
return message;
|
|
30108
|
+
};
|
|
30109
|
+
|
|
30110
|
+
/**
|
|
30111
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
30112
|
+
* @function decodeDelimited
|
|
30113
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30114
|
+
* @static
|
|
30115
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
30116
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30119
|
+
*/
|
|
30120
|
+
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
30121
|
+
if (!(reader instanceof $Reader))
|
|
30122
|
+
reader = new $Reader(reader);
|
|
30123
|
+
return this.decode(reader, reader.uint32());
|
|
30124
|
+
};
|
|
30125
|
+
|
|
30126
|
+
/**
|
|
30127
|
+
* Verifies an ExperimentalFeatures message.
|
|
30128
|
+
* @function verify
|
|
30129
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30130
|
+
* @static
|
|
30131
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
30132
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
30133
|
+
*/
|
|
30134
|
+
ExperimentalFeatures.verify = function verify(message) {
|
|
30135
|
+
if (typeof message !== "object" || message === null)
|
|
30136
|
+
return "object expected";
|
|
30137
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
30138
|
+
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
30139
|
+
return "restAsyncIoEnabled: boolean expected";
|
|
30140
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
30141
|
+
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
30142
|
+
return "protobufPythonicTypesEnabled: boolean expected";
|
|
30143
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
30144
|
+
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
30145
|
+
return "unversionedPackageDisabled: boolean expected";
|
|
30146
|
+
return null;
|
|
30147
|
+
};
|
|
30148
|
+
|
|
30149
|
+
/**
|
|
30150
|
+
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
30151
|
+
* @function fromObject
|
|
30152
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30153
|
+
* @static
|
|
30154
|
+
* @param {Object.<string,*>} object Plain object
|
|
30155
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
30156
|
+
*/
|
|
30157
|
+
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
30158
|
+
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
30159
|
+
return object;
|
|
30160
|
+
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
30161
|
+
if (object.restAsyncIoEnabled != null)
|
|
30162
|
+
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
30163
|
+
if (object.protobufPythonicTypesEnabled != null)
|
|
30164
|
+
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
30165
|
+
if (object.unversionedPackageDisabled != null)
|
|
30166
|
+
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
30167
|
+
return message;
|
|
30168
|
+
};
|
|
30169
|
+
|
|
30170
|
+
/**
|
|
30171
|
+
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
30172
|
+
* @function toObject
|
|
30173
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30174
|
+
* @static
|
|
30175
|
+
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
30176
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
30177
|
+
* @returns {Object.<string,*>} Plain object
|
|
30178
|
+
*/
|
|
30179
|
+
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
30180
|
+
if (!options)
|
|
30181
|
+
options = {};
|
|
30182
|
+
var object = {};
|
|
30183
|
+
if (options.defaults) {
|
|
30184
|
+
object.restAsyncIoEnabled = false;
|
|
30185
|
+
object.protobufPythonicTypesEnabled = false;
|
|
30186
|
+
object.unversionedPackageDisabled = false;
|
|
30187
|
+
}
|
|
30188
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
30189
|
+
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
30190
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
30191
|
+
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
30192
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
30193
|
+
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
30194
|
+
return object;
|
|
30195
|
+
};
|
|
30196
|
+
|
|
30197
|
+
/**
|
|
30198
|
+
* Converts this ExperimentalFeatures to JSON.
|
|
30199
|
+
* @function toJSON
|
|
30200
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30201
|
+
* @instance
|
|
30202
|
+
* @returns {Object.<string,*>} JSON object
|
|
30203
|
+
*/
|
|
30204
|
+
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
30205
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
30206
|
+
};
|
|
30207
|
+
|
|
30208
|
+
/**
|
|
30209
|
+
* Gets the default type url for ExperimentalFeatures
|
|
30210
|
+
* @function getTypeUrl
|
|
30211
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
30212
|
+
* @static
|
|
30213
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
30214
|
+
* @returns {string} The default type url
|
|
30215
|
+
*/
|
|
30216
|
+
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
30217
|
+
if (typeUrlPrefix === undefined) {
|
|
30218
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
30219
|
+
}
|
|
30220
|
+
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
30221
|
+
};
|
|
30222
|
+
|
|
30223
|
+
return ExperimentalFeatures;
|
|
30224
|
+
})();
|
|
30225
|
+
|
|
28668
30226
|
return PythonSettings;
|
|
28669
30227
|
})();
|
|
28670
30228
|
|
|
@@ -29541,6 +31099,7 @@
|
|
|
29541
31099
|
* @memberof google.api
|
|
29542
31100
|
* @interface IGoSettings
|
|
29543
31101
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
31102
|
+
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
29544
31103
|
*/
|
|
29545
31104
|
|
|
29546
31105
|
/**
|
|
@@ -29552,6 +31111,7 @@
|
|
|
29552
31111
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
29553
31112
|
*/
|
|
29554
31113
|
function GoSettings(properties) {
|
|
31114
|
+
this.renamedServices = {};
|
|
29555
31115
|
if (properties)
|
|
29556
31116
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29557
31117
|
if (properties[keys[i]] != null)
|
|
@@ -29566,6 +31126,14 @@
|
|
|
29566
31126
|
*/
|
|
29567
31127
|
GoSettings.prototype.common = null;
|
|
29568
31128
|
|
|
31129
|
+
/**
|
|
31130
|
+
* GoSettings renamedServices.
|
|
31131
|
+
* @member {Object.<string,string>} renamedServices
|
|
31132
|
+
* @memberof google.api.GoSettings
|
|
31133
|
+
* @instance
|
|
31134
|
+
*/
|
|
31135
|
+
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
31136
|
+
|
|
29569
31137
|
/**
|
|
29570
31138
|
* Creates a new GoSettings instance using the specified properties.
|
|
29571
31139
|
* @function create
|
|
@@ -29592,6 +31160,9 @@
|
|
|
29592
31160
|
writer = $Writer.create();
|
|
29593
31161
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
29594
31162
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
31163
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
31164
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
31165
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
|
|
29595
31166
|
return writer;
|
|
29596
31167
|
};
|
|
29597
31168
|
|
|
@@ -29622,7 +31193,7 @@
|
|
|
29622
31193
|
GoSettings.decode = function decode(reader, length, error) {
|
|
29623
31194
|
if (!(reader instanceof $Reader))
|
|
29624
31195
|
reader = $Reader.create(reader);
|
|
29625
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
31196
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
|
|
29626
31197
|
while (reader.pos < end) {
|
|
29627
31198
|
var tag = reader.uint32();
|
|
29628
31199
|
if (tag === error)
|
|
@@ -29632,6 +31203,29 @@
|
|
|
29632
31203
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
29633
31204
|
break;
|
|
29634
31205
|
}
|
|
31206
|
+
case 2: {
|
|
31207
|
+
if (message.renamedServices === $util.emptyObject)
|
|
31208
|
+
message.renamedServices = {};
|
|
31209
|
+
var end2 = reader.uint32() + reader.pos;
|
|
31210
|
+
key = "";
|
|
31211
|
+
value = "";
|
|
31212
|
+
while (reader.pos < end2) {
|
|
31213
|
+
var tag2 = reader.uint32();
|
|
31214
|
+
switch (tag2 >>> 3) {
|
|
31215
|
+
case 1:
|
|
31216
|
+
key = reader.string();
|
|
31217
|
+
break;
|
|
31218
|
+
case 2:
|
|
31219
|
+
value = reader.string();
|
|
31220
|
+
break;
|
|
31221
|
+
default:
|
|
31222
|
+
reader.skipType(tag2 & 7);
|
|
31223
|
+
break;
|
|
31224
|
+
}
|
|
31225
|
+
}
|
|
31226
|
+
message.renamedServices[key] = value;
|
|
31227
|
+
break;
|
|
31228
|
+
}
|
|
29635
31229
|
default:
|
|
29636
31230
|
reader.skipType(tag & 7);
|
|
29637
31231
|
break;
|
|
@@ -29672,6 +31266,14 @@
|
|
|
29672
31266
|
if (error)
|
|
29673
31267
|
return "common." + error;
|
|
29674
31268
|
}
|
|
31269
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
31270
|
+
if (!$util.isObject(message.renamedServices))
|
|
31271
|
+
return "renamedServices: object expected";
|
|
31272
|
+
var key = Object.keys(message.renamedServices);
|
|
31273
|
+
for (var i = 0; i < key.length; ++i)
|
|
31274
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
31275
|
+
return "renamedServices: string{k:string} expected";
|
|
31276
|
+
}
|
|
29675
31277
|
return null;
|
|
29676
31278
|
};
|
|
29677
31279
|
|
|
@@ -29692,6 +31294,13 @@
|
|
|
29692
31294
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
29693
31295
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
29694
31296
|
}
|
|
31297
|
+
if (object.renamedServices) {
|
|
31298
|
+
if (typeof object.renamedServices !== "object")
|
|
31299
|
+
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
31300
|
+
message.renamedServices = {};
|
|
31301
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
31302
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
31303
|
+
}
|
|
29695
31304
|
return message;
|
|
29696
31305
|
};
|
|
29697
31306
|
|
|
@@ -29708,10 +31317,18 @@
|
|
|
29708
31317
|
if (!options)
|
|
29709
31318
|
options = {};
|
|
29710
31319
|
var object = {};
|
|
31320
|
+
if (options.objects || options.defaults)
|
|
31321
|
+
object.renamedServices = {};
|
|
29711
31322
|
if (options.defaults)
|
|
29712
31323
|
object.common = null;
|
|
29713
31324
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
29714
31325
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
31326
|
+
var keys2;
|
|
31327
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
31328
|
+
object.renamedServices = {};
|
|
31329
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31330
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
31331
|
+
}
|
|
29715
31332
|
return object;
|
|
29716
31333
|
};
|
|
29717
31334
|
|
|
@@ -30350,6 +31967,251 @@
|
|
|
30350
31967
|
return values;
|
|
30351
31968
|
})();
|
|
30352
31969
|
|
|
31970
|
+
api.SelectiveGapicGeneration = (function() {
|
|
31971
|
+
|
|
31972
|
+
/**
|
|
31973
|
+
* Properties of a SelectiveGapicGeneration.
|
|
31974
|
+
* @memberof google.api
|
|
31975
|
+
* @interface ISelectiveGapicGeneration
|
|
31976
|
+
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
31977
|
+
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
31978
|
+
*/
|
|
31979
|
+
|
|
31980
|
+
/**
|
|
31981
|
+
* Constructs a new SelectiveGapicGeneration.
|
|
31982
|
+
* @memberof google.api
|
|
31983
|
+
* @classdesc Represents a SelectiveGapicGeneration.
|
|
31984
|
+
* @implements ISelectiveGapicGeneration
|
|
31985
|
+
* @constructor
|
|
31986
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
31987
|
+
*/
|
|
31988
|
+
function SelectiveGapicGeneration(properties) {
|
|
31989
|
+
this.methods = [];
|
|
31990
|
+
if (properties)
|
|
31991
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31992
|
+
if (properties[keys[i]] != null)
|
|
31993
|
+
this[keys[i]] = properties[keys[i]];
|
|
31994
|
+
}
|
|
31995
|
+
|
|
31996
|
+
/**
|
|
31997
|
+
* SelectiveGapicGeneration methods.
|
|
31998
|
+
* @member {Array.<string>} methods
|
|
31999
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32000
|
+
* @instance
|
|
32001
|
+
*/
|
|
32002
|
+
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
32003
|
+
|
|
32004
|
+
/**
|
|
32005
|
+
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
32006
|
+
* @member {boolean} generateOmittedAsInternal
|
|
32007
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32008
|
+
* @instance
|
|
32009
|
+
*/
|
|
32010
|
+
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
32011
|
+
|
|
32012
|
+
/**
|
|
32013
|
+
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
32014
|
+
* @function create
|
|
32015
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32016
|
+
* @static
|
|
32017
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
32018
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
32019
|
+
*/
|
|
32020
|
+
SelectiveGapicGeneration.create = function create(properties) {
|
|
32021
|
+
return new SelectiveGapicGeneration(properties);
|
|
32022
|
+
};
|
|
32023
|
+
|
|
32024
|
+
/**
|
|
32025
|
+
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
32026
|
+
* @function encode
|
|
32027
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32028
|
+
* @static
|
|
32029
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
32030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32031
|
+
* @returns {$protobuf.Writer} Writer
|
|
32032
|
+
*/
|
|
32033
|
+
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
32034
|
+
if (!writer)
|
|
32035
|
+
writer = $Writer.create();
|
|
32036
|
+
if (message.methods != null && message.methods.length)
|
|
32037
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
32038
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
32039
|
+
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
32040
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
32041
|
+
return writer;
|
|
32042
|
+
};
|
|
32043
|
+
|
|
32044
|
+
/**
|
|
32045
|
+
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
32046
|
+
* @function encodeDelimited
|
|
32047
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32048
|
+
* @static
|
|
32049
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
32050
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32051
|
+
* @returns {$protobuf.Writer} Writer
|
|
32052
|
+
*/
|
|
32053
|
+
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32054
|
+
return this.encode(message, writer).ldelim();
|
|
32055
|
+
};
|
|
32056
|
+
|
|
32057
|
+
/**
|
|
32058
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
32059
|
+
* @function decode
|
|
32060
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32061
|
+
* @static
|
|
32062
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32063
|
+
* @param {number} [length] Message length if known beforehand
|
|
32064
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32065
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32066
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32067
|
+
*/
|
|
32068
|
+
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
32069
|
+
if (!(reader instanceof $Reader))
|
|
32070
|
+
reader = $Reader.create(reader);
|
|
32071
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
32072
|
+
while (reader.pos < end) {
|
|
32073
|
+
var tag = reader.uint32();
|
|
32074
|
+
if (tag === error)
|
|
32075
|
+
break;
|
|
32076
|
+
switch (tag >>> 3) {
|
|
32077
|
+
case 1: {
|
|
32078
|
+
if (!(message.methods && message.methods.length))
|
|
32079
|
+
message.methods = [];
|
|
32080
|
+
message.methods.push(reader.string());
|
|
32081
|
+
break;
|
|
32082
|
+
}
|
|
32083
|
+
case 2: {
|
|
32084
|
+
message.generateOmittedAsInternal = reader.bool();
|
|
32085
|
+
break;
|
|
32086
|
+
}
|
|
32087
|
+
default:
|
|
32088
|
+
reader.skipType(tag & 7);
|
|
32089
|
+
break;
|
|
32090
|
+
}
|
|
32091
|
+
}
|
|
32092
|
+
return message;
|
|
32093
|
+
};
|
|
32094
|
+
|
|
32095
|
+
/**
|
|
32096
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
32097
|
+
* @function decodeDelimited
|
|
32098
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32099
|
+
* @static
|
|
32100
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32101
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32102
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32103
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32104
|
+
*/
|
|
32105
|
+
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
32106
|
+
if (!(reader instanceof $Reader))
|
|
32107
|
+
reader = new $Reader(reader);
|
|
32108
|
+
return this.decode(reader, reader.uint32());
|
|
32109
|
+
};
|
|
32110
|
+
|
|
32111
|
+
/**
|
|
32112
|
+
* Verifies a SelectiveGapicGeneration message.
|
|
32113
|
+
* @function verify
|
|
32114
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32115
|
+
* @static
|
|
32116
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32117
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32118
|
+
*/
|
|
32119
|
+
SelectiveGapicGeneration.verify = function verify(message) {
|
|
32120
|
+
if (typeof message !== "object" || message === null)
|
|
32121
|
+
return "object expected";
|
|
32122
|
+
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
32123
|
+
if (!Array.isArray(message.methods))
|
|
32124
|
+
return "methods: array expected";
|
|
32125
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
32126
|
+
if (!$util.isString(message.methods[i]))
|
|
32127
|
+
return "methods: string[] expected";
|
|
32128
|
+
}
|
|
32129
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
32130
|
+
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
32131
|
+
return "generateOmittedAsInternal: boolean expected";
|
|
32132
|
+
return null;
|
|
32133
|
+
};
|
|
32134
|
+
|
|
32135
|
+
/**
|
|
32136
|
+
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
32137
|
+
* @function fromObject
|
|
32138
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32139
|
+
* @static
|
|
32140
|
+
* @param {Object.<string,*>} object Plain object
|
|
32141
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
32142
|
+
*/
|
|
32143
|
+
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
32144
|
+
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
32145
|
+
return object;
|
|
32146
|
+
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
32147
|
+
if (object.methods) {
|
|
32148
|
+
if (!Array.isArray(object.methods))
|
|
32149
|
+
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
32150
|
+
message.methods = [];
|
|
32151
|
+
for (var i = 0; i < object.methods.length; ++i)
|
|
32152
|
+
message.methods[i] = String(object.methods[i]);
|
|
32153
|
+
}
|
|
32154
|
+
if (object.generateOmittedAsInternal != null)
|
|
32155
|
+
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
32156
|
+
return message;
|
|
32157
|
+
};
|
|
32158
|
+
|
|
32159
|
+
/**
|
|
32160
|
+
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
32161
|
+
* @function toObject
|
|
32162
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32163
|
+
* @static
|
|
32164
|
+
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
32165
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32166
|
+
* @returns {Object.<string,*>} Plain object
|
|
32167
|
+
*/
|
|
32168
|
+
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
32169
|
+
if (!options)
|
|
32170
|
+
options = {};
|
|
32171
|
+
var object = {};
|
|
32172
|
+
if (options.arrays || options.defaults)
|
|
32173
|
+
object.methods = [];
|
|
32174
|
+
if (options.defaults)
|
|
32175
|
+
object.generateOmittedAsInternal = false;
|
|
32176
|
+
if (message.methods && message.methods.length) {
|
|
32177
|
+
object.methods = [];
|
|
32178
|
+
for (var j = 0; j < message.methods.length; ++j)
|
|
32179
|
+
object.methods[j] = message.methods[j];
|
|
32180
|
+
}
|
|
32181
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
32182
|
+
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
32183
|
+
return object;
|
|
32184
|
+
};
|
|
32185
|
+
|
|
32186
|
+
/**
|
|
32187
|
+
* Converts this SelectiveGapicGeneration to JSON.
|
|
32188
|
+
* @function toJSON
|
|
32189
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32190
|
+
* @instance
|
|
32191
|
+
* @returns {Object.<string,*>} JSON object
|
|
32192
|
+
*/
|
|
32193
|
+
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
32194
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32195
|
+
};
|
|
32196
|
+
|
|
32197
|
+
/**
|
|
32198
|
+
* Gets the default type url for SelectiveGapicGeneration
|
|
32199
|
+
* @function getTypeUrl
|
|
32200
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
32201
|
+
* @static
|
|
32202
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
32203
|
+
* @returns {string} The default type url
|
|
32204
|
+
*/
|
|
32205
|
+
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
32206
|
+
if (typeUrlPrefix === undefined) {
|
|
32207
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
32208
|
+
}
|
|
32209
|
+
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
32210
|
+
};
|
|
32211
|
+
|
|
32212
|
+
return SelectiveGapicGeneration;
|
|
32213
|
+
})();
|
|
32214
|
+
|
|
30353
32215
|
/**
|
|
30354
32216
|
* LaunchStage enum.
|
|
30355
32217
|
* @name google.api.LaunchStage
|
|
@@ -31335,6 +33197,7 @@
|
|
|
31335
33197
|
* @name google.protobuf.Edition
|
|
31336
33198
|
* @enum {number}
|
|
31337
33199
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
33200
|
+
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
31338
33201
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
31339
33202
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
31340
33203
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -31349,6 +33212,7 @@
|
|
|
31349
33212
|
protobuf.Edition = (function() {
|
|
31350
33213
|
var valuesById = {}, values = Object.create(valuesById);
|
|
31351
33214
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
33215
|
+
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
31352
33216
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
31353
33217
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
31354
33218
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -31373,6 +33237,7 @@
|
|
|
31373
33237
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
31374
33238
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
31375
33239
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
33240
|
+
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
31376
33241
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
31377
33242
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
31378
33243
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -31395,6 +33260,7 @@
|
|
|
31395
33260
|
this.dependency = [];
|
|
31396
33261
|
this.publicDependency = [];
|
|
31397
33262
|
this.weakDependency = [];
|
|
33263
|
+
this.optionDependency = [];
|
|
31398
33264
|
this.messageType = [];
|
|
31399
33265
|
this.enumType = [];
|
|
31400
33266
|
this.service = [];
|
|
@@ -31445,6 +33311,14 @@
|
|
|
31445
33311
|
*/
|
|
31446
33312
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
31447
33313
|
|
|
33314
|
+
/**
|
|
33315
|
+
* FileDescriptorProto optionDependency.
|
|
33316
|
+
* @member {Array.<string>} optionDependency
|
|
33317
|
+
* @memberof google.protobuf.FileDescriptorProto
|
|
33318
|
+
* @instance
|
|
33319
|
+
*/
|
|
33320
|
+
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
33321
|
+
|
|
31448
33322
|
/**
|
|
31449
33323
|
* FileDescriptorProto messageType.
|
|
31450
33324
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -31566,6 +33440,9 @@
|
|
|
31566
33440
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
31567
33441
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
31568
33442
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
33443
|
+
if (message.optionDependency != null && message.optionDependency.length)
|
|
33444
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
33445
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
31569
33446
|
return writer;
|
|
31570
33447
|
};
|
|
31571
33448
|
|
|
@@ -31638,6 +33515,12 @@
|
|
|
31638
33515
|
message.weakDependency.push(reader.int32());
|
|
31639
33516
|
break;
|
|
31640
33517
|
}
|
|
33518
|
+
case 15: {
|
|
33519
|
+
if (!(message.optionDependency && message.optionDependency.length))
|
|
33520
|
+
message.optionDependency = [];
|
|
33521
|
+
message.optionDependency.push(reader.string());
|
|
33522
|
+
break;
|
|
33523
|
+
}
|
|
31641
33524
|
case 4: {
|
|
31642
33525
|
if (!(message.messageType && message.messageType.length))
|
|
31643
33526
|
message.messageType = [];
|
|
@@ -31740,6 +33623,13 @@
|
|
|
31740
33623
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
31741
33624
|
return "weakDependency: integer[] expected";
|
|
31742
33625
|
}
|
|
33626
|
+
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
33627
|
+
if (!Array.isArray(message.optionDependency))
|
|
33628
|
+
return "optionDependency: array expected";
|
|
33629
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
33630
|
+
if (!$util.isString(message.optionDependency[i]))
|
|
33631
|
+
return "optionDependency: string[] expected";
|
|
33632
|
+
}
|
|
31743
33633
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
31744
33634
|
if (!Array.isArray(message.messageType))
|
|
31745
33635
|
return "messageType: array expected";
|
|
@@ -31794,6 +33684,7 @@
|
|
|
31794
33684
|
default:
|
|
31795
33685
|
return "edition: enum value expected";
|
|
31796
33686
|
case 0:
|
|
33687
|
+
case 900:
|
|
31797
33688
|
case 998:
|
|
31798
33689
|
case 999:
|
|
31799
33690
|
case 1000:
|
|
@@ -31846,6 +33737,13 @@
|
|
|
31846
33737
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
31847
33738
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
31848
33739
|
}
|
|
33740
|
+
if (object.optionDependency) {
|
|
33741
|
+
if (!Array.isArray(object.optionDependency))
|
|
33742
|
+
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
33743
|
+
message.optionDependency = [];
|
|
33744
|
+
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
33745
|
+
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
33746
|
+
}
|
|
31849
33747
|
if (object.messageType) {
|
|
31850
33748
|
if (!Array.isArray(object.messageType))
|
|
31851
33749
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -31909,6 +33807,10 @@
|
|
|
31909
33807
|
case 0:
|
|
31910
33808
|
message.edition = 0;
|
|
31911
33809
|
break;
|
|
33810
|
+
case "EDITION_LEGACY":
|
|
33811
|
+
case 900:
|
|
33812
|
+
message.edition = 900;
|
|
33813
|
+
break;
|
|
31912
33814
|
case "EDITION_PROTO2":
|
|
31913
33815
|
case 998:
|
|
31914
33816
|
message.edition = 998;
|
|
@@ -31974,6 +33876,7 @@
|
|
|
31974
33876
|
object.extension = [];
|
|
31975
33877
|
object.publicDependency = [];
|
|
31976
33878
|
object.weakDependency = [];
|
|
33879
|
+
object.optionDependency = [];
|
|
31977
33880
|
}
|
|
31978
33881
|
if (options.defaults) {
|
|
31979
33882
|
object.name = "";
|
|
@@ -32030,6 +33933,11 @@
|
|
|
32030
33933
|
object.syntax = message.syntax;
|
|
32031
33934
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
32032
33935
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
33936
|
+
if (message.optionDependency && message.optionDependency.length) {
|
|
33937
|
+
object.optionDependency = [];
|
|
33938
|
+
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
33939
|
+
object.optionDependency[j] = message.optionDependency[j];
|
|
33940
|
+
}
|
|
32033
33941
|
return object;
|
|
32034
33942
|
};
|
|
32035
33943
|
|
|
@@ -32078,6 +33986,7 @@
|
|
|
32078
33986
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
32079
33987
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
32080
33988
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
33989
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
32081
33990
|
*/
|
|
32082
33991
|
|
|
32083
33992
|
/**
|
|
@@ -32183,6 +34092,14 @@
|
|
|
32183
34092
|
*/
|
|
32184
34093
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
32185
34094
|
|
|
34095
|
+
/**
|
|
34096
|
+
* DescriptorProto visibility.
|
|
34097
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
34098
|
+
* @memberof google.protobuf.DescriptorProto
|
|
34099
|
+
* @instance
|
|
34100
|
+
*/
|
|
34101
|
+
DescriptorProto.prototype.visibility = 0;
|
|
34102
|
+
|
|
32186
34103
|
/**
|
|
32187
34104
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
32188
34105
|
* @function create
|
|
@@ -32235,6 +34152,8 @@
|
|
|
32235
34152
|
if (message.reservedName != null && message.reservedName.length)
|
|
32236
34153
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
32237
34154
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
34155
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
34156
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
32238
34157
|
return writer;
|
|
32239
34158
|
};
|
|
32240
34159
|
|
|
@@ -32327,6 +34246,10 @@
|
|
|
32327
34246
|
message.reservedName.push(reader.string());
|
|
32328
34247
|
break;
|
|
32329
34248
|
}
|
|
34249
|
+
case 11: {
|
|
34250
|
+
message.visibility = reader.int32();
|
|
34251
|
+
break;
|
|
34252
|
+
}
|
|
32330
34253
|
default:
|
|
32331
34254
|
reader.skipType(tag & 7);
|
|
32332
34255
|
break;
|
|
@@ -32440,6 +34363,15 @@
|
|
|
32440
34363
|
if (!$util.isString(message.reservedName[i]))
|
|
32441
34364
|
return "reservedName: string[] expected";
|
|
32442
34365
|
}
|
|
34366
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
34367
|
+
switch (message.visibility) {
|
|
34368
|
+
default:
|
|
34369
|
+
return "visibility: enum value expected";
|
|
34370
|
+
case 0:
|
|
34371
|
+
case 1:
|
|
34372
|
+
case 2:
|
|
34373
|
+
break;
|
|
34374
|
+
}
|
|
32443
34375
|
return null;
|
|
32444
34376
|
};
|
|
32445
34377
|
|
|
@@ -32539,6 +34471,26 @@
|
|
|
32539
34471
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
32540
34472
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
32541
34473
|
}
|
|
34474
|
+
switch (object.visibility) {
|
|
34475
|
+
default:
|
|
34476
|
+
if (typeof object.visibility === "number") {
|
|
34477
|
+
message.visibility = object.visibility;
|
|
34478
|
+
break;
|
|
34479
|
+
}
|
|
34480
|
+
break;
|
|
34481
|
+
case "VISIBILITY_UNSET":
|
|
34482
|
+
case 0:
|
|
34483
|
+
message.visibility = 0;
|
|
34484
|
+
break;
|
|
34485
|
+
case "VISIBILITY_LOCAL":
|
|
34486
|
+
case 1:
|
|
34487
|
+
message.visibility = 1;
|
|
34488
|
+
break;
|
|
34489
|
+
case "VISIBILITY_EXPORT":
|
|
34490
|
+
case 2:
|
|
34491
|
+
message.visibility = 2;
|
|
34492
|
+
break;
|
|
34493
|
+
}
|
|
32542
34494
|
return message;
|
|
32543
34495
|
};
|
|
32544
34496
|
|
|
@@ -32568,6 +34520,7 @@
|
|
|
32568
34520
|
if (options.defaults) {
|
|
32569
34521
|
object.name = "";
|
|
32570
34522
|
object.options = null;
|
|
34523
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
32571
34524
|
}
|
|
32572
34525
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32573
34526
|
object.name = message.name;
|
|
@@ -32613,6 +34566,8 @@
|
|
|
32613
34566
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
32614
34567
|
object.reservedName[j] = message.reservedName[j];
|
|
32615
34568
|
}
|
|
34569
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
34570
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
32616
34571
|
return object;
|
|
32617
34572
|
};
|
|
32618
34573
|
|
|
@@ -34657,6 +36612,7 @@
|
|
|
34657
36612
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
34658
36613
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
34659
36614
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
36615
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
34660
36616
|
*/
|
|
34661
36617
|
|
|
34662
36618
|
/**
|
|
@@ -34717,6 +36673,14 @@
|
|
|
34717
36673
|
*/
|
|
34718
36674
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
34719
36675
|
|
|
36676
|
+
/**
|
|
36677
|
+
* EnumDescriptorProto visibility.
|
|
36678
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
36679
|
+
* @memberof google.protobuf.EnumDescriptorProto
|
|
36680
|
+
* @instance
|
|
36681
|
+
*/
|
|
36682
|
+
EnumDescriptorProto.prototype.visibility = 0;
|
|
36683
|
+
|
|
34720
36684
|
/**
|
|
34721
36685
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
34722
36686
|
* @function create
|
|
@@ -34754,6 +36718,8 @@
|
|
|
34754
36718
|
if (message.reservedName != null && message.reservedName.length)
|
|
34755
36719
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
34756
36720
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
36721
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
36722
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
34757
36723
|
return writer;
|
|
34758
36724
|
};
|
|
34759
36725
|
|
|
@@ -34816,6 +36782,10 @@
|
|
|
34816
36782
|
message.reservedName.push(reader.string());
|
|
34817
36783
|
break;
|
|
34818
36784
|
}
|
|
36785
|
+
case 6: {
|
|
36786
|
+
message.visibility = reader.int32();
|
|
36787
|
+
break;
|
|
36788
|
+
}
|
|
34819
36789
|
default:
|
|
34820
36790
|
reader.skipType(tag & 7);
|
|
34821
36791
|
break;
|
|
@@ -34884,6 +36854,15 @@
|
|
|
34884
36854
|
if (!$util.isString(message.reservedName[i]))
|
|
34885
36855
|
return "reservedName: string[] expected";
|
|
34886
36856
|
}
|
|
36857
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
36858
|
+
switch (message.visibility) {
|
|
36859
|
+
default:
|
|
36860
|
+
return "visibility: enum value expected";
|
|
36861
|
+
case 0:
|
|
36862
|
+
case 1:
|
|
36863
|
+
case 2:
|
|
36864
|
+
break;
|
|
36865
|
+
}
|
|
34887
36866
|
return null;
|
|
34888
36867
|
};
|
|
34889
36868
|
|
|
@@ -34933,6 +36912,26 @@
|
|
|
34933
36912
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
34934
36913
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
34935
36914
|
}
|
|
36915
|
+
switch (object.visibility) {
|
|
36916
|
+
default:
|
|
36917
|
+
if (typeof object.visibility === "number") {
|
|
36918
|
+
message.visibility = object.visibility;
|
|
36919
|
+
break;
|
|
36920
|
+
}
|
|
36921
|
+
break;
|
|
36922
|
+
case "VISIBILITY_UNSET":
|
|
36923
|
+
case 0:
|
|
36924
|
+
message.visibility = 0;
|
|
36925
|
+
break;
|
|
36926
|
+
case "VISIBILITY_LOCAL":
|
|
36927
|
+
case 1:
|
|
36928
|
+
message.visibility = 1;
|
|
36929
|
+
break;
|
|
36930
|
+
case "VISIBILITY_EXPORT":
|
|
36931
|
+
case 2:
|
|
36932
|
+
message.visibility = 2;
|
|
36933
|
+
break;
|
|
36934
|
+
}
|
|
34936
36935
|
return message;
|
|
34937
36936
|
};
|
|
34938
36937
|
|
|
@@ -34957,6 +36956,7 @@
|
|
|
34957
36956
|
if (options.defaults) {
|
|
34958
36957
|
object.name = "";
|
|
34959
36958
|
object.options = null;
|
|
36959
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
34960
36960
|
}
|
|
34961
36961
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
34962
36962
|
object.name = message.name;
|
|
@@ -34977,6 +36977,8 @@
|
|
|
34977
36977
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
34978
36978
|
object.reservedName[j] = message.reservedName[j];
|
|
34979
36979
|
}
|
|
36980
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
36981
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
34980
36982
|
return object;
|
|
34981
36983
|
};
|
|
34982
36984
|
|
|
@@ -37295,6 +39297,7 @@
|
|
|
37295
39297
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
37296
39298
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
37297
39299
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
39300
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
37298
39301
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
37299
39302
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
37300
39303
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -37415,6 +39418,14 @@
|
|
|
37415
39418
|
*/
|
|
37416
39419
|
FieldOptions.prototype.features = null;
|
|
37417
39420
|
|
|
39421
|
+
/**
|
|
39422
|
+
* FieldOptions featureSupport.
|
|
39423
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
39424
|
+
* @memberof google.protobuf.FieldOptions
|
|
39425
|
+
* @instance
|
|
39426
|
+
*/
|
|
39427
|
+
FieldOptions.prototype.featureSupport = null;
|
|
39428
|
+
|
|
37418
39429
|
/**
|
|
37419
39430
|
* FieldOptions uninterpretedOption.
|
|
37420
39431
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -37489,6 +39500,8 @@
|
|
|
37489
39500
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
37490
39501
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
37491
39502
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
39503
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
39504
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
37492
39505
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
37493
39506
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
37494
39507
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -37590,6 +39603,10 @@
|
|
|
37590
39603
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
37591
39604
|
break;
|
|
37592
39605
|
}
|
|
39606
|
+
case 22: {
|
|
39607
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
39608
|
+
break;
|
|
39609
|
+
}
|
|
37593
39610
|
case 999: {
|
|
37594
39611
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
37595
39612
|
message.uninterpretedOption = [];
|
|
@@ -37725,6 +39742,11 @@
|
|
|
37725
39742
|
if (error)
|
|
37726
39743
|
return "features." + error;
|
|
37727
39744
|
}
|
|
39745
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
39746
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
39747
|
+
if (error)
|
|
39748
|
+
return "featureSupport." + error;
|
|
39749
|
+
}
|
|
37728
39750
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
37729
39751
|
if (!Array.isArray(message.uninterpretedOption))
|
|
37730
39752
|
return "uninterpretedOption: array expected";
|
|
@@ -37913,6 +39935,11 @@
|
|
|
37913
39935
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
37914
39936
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
37915
39937
|
}
|
|
39938
|
+
if (object.featureSupport != null) {
|
|
39939
|
+
if (typeof object.featureSupport !== "object")
|
|
39940
|
+
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
39941
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
39942
|
+
}
|
|
37916
39943
|
if (object.uninterpretedOption) {
|
|
37917
39944
|
if (!Array.isArray(object.uninterpretedOption))
|
|
37918
39945
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -38010,6 +40037,7 @@
|
|
|
38010
40037
|
object.debugRedact = false;
|
|
38011
40038
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
38012
40039
|
object.features = null;
|
|
40040
|
+
object.featureSupport = null;
|
|
38013
40041
|
object[".google.api.resourceReference"] = null;
|
|
38014
40042
|
}
|
|
38015
40043
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -38042,6 +40070,8 @@
|
|
|
38042
40070
|
}
|
|
38043
40071
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
38044
40072
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
40073
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
40074
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
38045
40075
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
38046
40076
|
object.uninterpretedOption = [];
|
|
38047
40077
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -38115,71 +40145,371 @@
|
|
|
38115
40145
|
return values;
|
|
38116
40146
|
})();
|
|
38117
40147
|
|
|
38118
|
-
/**
|
|
38119
|
-
* OptionRetention enum.
|
|
38120
|
-
* @name google.protobuf.FieldOptions.OptionRetention
|
|
38121
|
-
* @enum {number}
|
|
38122
|
-
* @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
|
|
38123
|
-
* @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
|
|
38124
|
-
* @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
|
|
38125
|
-
*/
|
|
38126
|
-
FieldOptions.OptionRetention = (function() {
|
|
38127
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
38128
|
-
values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
|
|
38129
|
-
values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
|
|
38130
|
-
values[valuesById[2] = "RETENTION_SOURCE"] = 2;
|
|
38131
|
-
return values;
|
|
38132
|
-
})();
|
|
40148
|
+
/**
|
|
40149
|
+
* OptionRetention enum.
|
|
40150
|
+
* @name google.protobuf.FieldOptions.OptionRetention
|
|
40151
|
+
* @enum {number}
|
|
40152
|
+
* @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
|
|
40153
|
+
* @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
|
|
40154
|
+
* @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
|
|
40155
|
+
*/
|
|
40156
|
+
FieldOptions.OptionRetention = (function() {
|
|
40157
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
40158
|
+
values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
|
|
40159
|
+
values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
|
|
40160
|
+
values[valuesById[2] = "RETENTION_SOURCE"] = 2;
|
|
40161
|
+
return values;
|
|
40162
|
+
})();
|
|
40163
|
+
|
|
40164
|
+
/**
|
|
40165
|
+
* OptionTargetType enum.
|
|
40166
|
+
* @name google.protobuf.FieldOptions.OptionTargetType
|
|
40167
|
+
* @enum {number}
|
|
40168
|
+
* @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
|
|
40169
|
+
* @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
|
|
40170
|
+
* @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
|
|
40171
|
+
* @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
|
|
40172
|
+
* @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
|
|
40173
|
+
* @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
|
|
40174
|
+
* @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
|
|
40175
|
+
* @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
|
|
40176
|
+
* @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
|
|
40177
|
+
* @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
|
|
40178
|
+
*/
|
|
40179
|
+
FieldOptions.OptionTargetType = (function() {
|
|
40180
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
40181
|
+
values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
|
|
40182
|
+
values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
|
|
40183
|
+
values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
|
|
40184
|
+
values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
|
|
40185
|
+
values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
|
|
40186
|
+
values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
|
|
40187
|
+
values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
|
|
40188
|
+
values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
|
|
40189
|
+
values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
|
|
40190
|
+
values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
|
|
40191
|
+
return values;
|
|
40192
|
+
})();
|
|
40193
|
+
|
|
40194
|
+
FieldOptions.EditionDefault = (function() {
|
|
40195
|
+
|
|
40196
|
+
/**
|
|
40197
|
+
* Properties of an EditionDefault.
|
|
40198
|
+
* @memberof google.protobuf.FieldOptions
|
|
40199
|
+
* @interface IEditionDefault
|
|
40200
|
+
* @property {google.protobuf.Edition|null} [edition] EditionDefault edition
|
|
40201
|
+
* @property {string|null} [value] EditionDefault value
|
|
40202
|
+
*/
|
|
40203
|
+
|
|
40204
|
+
/**
|
|
40205
|
+
* Constructs a new EditionDefault.
|
|
40206
|
+
* @memberof google.protobuf.FieldOptions
|
|
40207
|
+
* @classdesc Represents an EditionDefault.
|
|
40208
|
+
* @implements IEditionDefault
|
|
40209
|
+
* @constructor
|
|
40210
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
|
|
40211
|
+
*/
|
|
40212
|
+
function EditionDefault(properties) {
|
|
40213
|
+
if (properties)
|
|
40214
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40215
|
+
if (properties[keys[i]] != null)
|
|
40216
|
+
this[keys[i]] = properties[keys[i]];
|
|
40217
|
+
}
|
|
40218
|
+
|
|
40219
|
+
/**
|
|
40220
|
+
* EditionDefault edition.
|
|
40221
|
+
* @member {google.protobuf.Edition} edition
|
|
40222
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40223
|
+
* @instance
|
|
40224
|
+
*/
|
|
40225
|
+
EditionDefault.prototype.edition = 0;
|
|
40226
|
+
|
|
40227
|
+
/**
|
|
40228
|
+
* EditionDefault value.
|
|
40229
|
+
* @member {string} value
|
|
40230
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40231
|
+
* @instance
|
|
40232
|
+
*/
|
|
40233
|
+
EditionDefault.prototype.value = "";
|
|
40234
|
+
|
|
40235
|
+
/**
|
|
40236
|
+
* Creates a new EditionDefault instance using the specified properties.
|
|
40237
|
+
* @function create
|
|
40238
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40239
|
+
* @static
|
|
40240
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
|
|
40241
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance
|
|
40242
|
+
*/
|
|
40243
|
+
EditionDefault.create = function create(properties) {
|
|
40244
|
+
return new EditionDefault(properties);
|
|
40245
|
+
};
|
|
40246
|
+
|
|
40247
|
+
/**
|
|
40248
|
+
* Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
|
|
40249
|
+
* @function encode
|
|
40250
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40251
|
+
* @static
|
|
40252
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
|
|
40253
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40254
|
+
* @returns {$protobuf.Writer} Writer
|
|
40255
|
+
*/
|
|
40256
|
+
EditionDefault.encode = function encode(message, writer) {
|
|
40257
|
+
if (!writer)
|
|
40258
|
+
writer = $Writer.create();
|
|
40259
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
40260
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
40261
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
40262
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
40263
|
+
return writer;
|
|
40264
|
+
};
|
|
40265
|
+
|
|
40266
|
+
/**
|
|
40267
|
+
* Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
|
|
40268
|
+
* @function encodeDelimited
|
|
40269
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40270
|
+
* @static
|
|
40271
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
|
|
40272
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40273
|
+
* @returns {$protobuf.Writer} Writer
|
|
40274
|
+
*/
|
|
40275
|
+
EditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40276
|
+
return this.encode(message, writer).ldelim();
|
|
40277
|
+
};
|
|
40278
|
+
|
|
40279
|
+
/**
|
|
40280
|
+
* Decodes an EditionDefault message from the specified reader or buffer.
|
|
40281
|
+
* @function decode
|
|
40282
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40283
|
+
* @static
|
|
40284
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40285
|
+
* @param {number} [length] Message length if known beforehand
|
|
40286
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
40287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40289
|
+
*/
|
|
40290
|
+
EditionDefault.decode = function decode(reader, length, error) {
|
|
40291
|
+
if (!(reader instanceof $Reader))
|
|
40292
|
+
reader = $Reader.create(reader);
|
|
40293
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
40294
|
+
while (reader.pos < end) {
|
|
40295
|
+
var tag = reader.uint32();
|
|
40296
|
+
if (tag === error)
|
|
40297
|
+
break;
|
|
40298
|
+
switch (tag >>> 3) {
|
|
40299
|
+
case 3: {
|
|
40300
|
+
message.edition = reader.int32();
|
|
40301
|
+
break;
|
|
40302
|
+
}
|
|
40303
|
+
case 2: {
|
|
40304
|
+
message.value = reader.string();
|
|
40305
|
+
break;
|
|
40306
|
+
}
|
|
40307
|
+
default:
|
|
40308
|
+
reader.skipType(tag & 7);
|
|
40309
|
+
break;
|
|
40310
|
+
}
|
|
40311
|
+
}
|
|
40312
|
+
return message;
|
|
40313
|
+
};
|
|
40314
|
+
|
|
40315
|
+
/**
|
|
40316
|
+
* Decodes an EditionDefault message from the specified reader or buffer, length delimited.
|
|
40317
|
+
* @function decodeDelimited
|
|
40318
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40319
|
+
* @static
|
|
40320
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40321
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
40322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40324
|
+
*/
|
|
40325
|
+
EditionDefault.decodeDelimited = function decodeDelimited(reader) {
|
|
40326
|
+
if (!(reader instanceof $Reader))
|
|
40327
|
+
reader = new $Reader(reader);
|
|
40328
|
+
return this.decode(reader, reader.uint32());
|
|
40329
|
+
};
|
|
40330
|
+
|
|
40331
|
+
/**
|
|
40332
|
+
* Verifies an EditionDefault message.
|
|
40333
|
+
* @function verify
|
|
40334
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40335
|
+
* @static
|
|
40336
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40337
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40338
|
+
*/
|
|
40339
|
+
EditionDefault.verify = function verify(message) {
|
|
40340
|
+
if (typeof message !== "object" || message === null)
|
|
40341
|
+
return "object expected";
|
|
40342
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
40343
|
+
switch (message.edition) {
|
|
40344
|
+
default:
|
|
40345
|
+
return "edition: enum value expected";
|
|
40346
|
+
case 0:
|
|
40347
|
+
case 900:
|
|
40348
|
+
case 998:
|
|
40349
|
+
case 999:
|
|
40350
|
+
case 1000:
|
|
40351
|
+
case 1001:
|
|
40352
|
+
case 1:
|
|
40353
|
+
case 2:
|
|
40354
|
+
case 99997:
|
|
40355
|
+
case 99998:
|
|
40356
|
+
case 99999:
|
|
40357
|
+
case 2147483647:
|
|
40358
|
+
break;
|
|
40359
|
+
}
|
|
40360
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
40361
|
+
if (!$util.isString(message.value))
|
|
40362
|
+
return "value: string expected";
|
|
40363
|
+
return null;
|
|
40364
|
+
};
|
|
40365
|
+
|
|
40366
|
+
/**
|
|
40367
|
+
* Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
|
|
40368
|
+
* @function fromObject
|
|
40369
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40370
|
+
* @static
|
|
40371
|
+
* @param {Object.<string,*>} object Plain object
|
|
40372
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
40373
|
+
*/
|
|
40374
|
+
EditionDefault.fromObject = function fromObject(object) {
|
|
40375
|
+
if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
|
|
40376
|
+
return object;
|
|
40377
|
+
var message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
40378
|
+
switch (object.edition) {
|
|
40379
|
+
default:
|
|
40380
|
+
if (typeof object.edition === "number") {
|
|
40381
|
+
message.edition = object.edition;
|
|
40382
|
+
break;
|
|
40383
|
+
}
|
|
40384
|
+
break;
|
|
40385
|
+
case "EDITION_UNKNOWN":
|
|
40386
|
+
case 0:
|
|
40387
|
+
message.edition = 0;
|
|
40388
|
+
break;
|
|
40389
|
+
case "EDITION_LEGACY":
|
|
40390
|
+
case 900:
|
|
40391
|
+
message.edition = 900;
|
|
40392
|
+
break;
|
|
40393
|
+
case "EDITION_PROTO2":
|
|
40394
|
+
case 998:
|
|
40395
|
+
message.edition = 998;
|
|
40396
|
+
break;
|
|
40397
|
+
case "EDITION_PROTO3":
|
|
40398
|
+
case 999:
|
|
40399
|
+
message.edition = 999;
|
|
40400
|
+
break;
|
|
40401
|
+
case "EDITION_2023":
|
|
40402
|
+
case 1000:
|
|
40403
|
+
message.edition = 1000;
|
|
40404
|
+
break;
|
|
40405
|
+
case "EDITION_2024":
|
|
40406
|
+
case 1001:
|
|
40407
|
+
message.edition = 1001;
|
|
40408
|
+
break;
|
|
40409
|
+
case "EDITION_1_TEST_ONLY":
|
|
40410
|
+
case 1:
|
|
40411
|
+
message.edition = 1;
|
|
40412
|
+
break;
|
|
40413
|
+
case "EDITION_2_TEST_ONLY":
|
|
40414
|
+
case 2:
|
|
40415
|
+
message.edition = 2;
|
|
40416
|
+
break;
|
|
40417
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40418
|
+
case 99997:
|
|
40419
|
+
message.edition = 99997;
|
|
40420
|
+
break;
|
|
40421
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40422
|
+
case 99998:
|
|
40423
|
+
message.edition = 99998;
|
|
40424
|
+
break;
|
|
40425
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40426
|
+
case 99999:
|
|
40427
|
+
message.edition = 99999;
|
|
40428
|
+
break;
|
|
40429
|
+
case "EDITION_MAX":
|
|
40430
|
+
case 2147483647:
|
|
40431
|
+
message.edition = 2147483647;
|
|
40432
|
+
break;
|
|
40433
|
+
}
|
|
40434
|
+
if (object.value != null)
|
|
40435
|
+
message.value = String(object.value);
|
|
40436
|
+
return message;
|
|
40437
|
+
};
|
|
40438
|
+
|
|
40439
|
+
/**
|
|
40440
|
+
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
40441
|
+
* @function toObject
|
|
40442
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40443
|
+
* @static
|
|
40444
|
+
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
40445
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40446
|
+
* @returns {Object.<string,*>} Plain object
|
|
40447
|
+
*/
|
|
40448
|
+
EditionDefault.toObject = function toObject(message, options) {
|
|
40449
|
+
if (!options)
|
|
40450
|
+
options = {};
|
|
40451
|
+
var object = {};
|
|
40452
|
+
if (options.defaults) {
|
|
40453
|
+
object.value = "";
|
|
40454
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40455
|
+
}
|
|
40456
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
40457
|
+
object.value = message.value;
|
|
40458
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
40459
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
40460
|
+
return object;
|
|
40461
|
+
};
|
|
40462
|
+
|
|
40463
|
+
/**
|
|
40464
|
+
* Converts this EditionDefault to JSON.
|
|
40465
|
+
* @function toJSON
|
|
40466
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40467
|
+
* @instance
|
|
40468
|
+
* @returns {Object.<string,*>} JSON object
|
|
40469
|
+
*/
|
|
40470
|
+
EditionDefault.prototype.toJSON = function toJSON() {
|
|
40471
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40472
|
+
};
|
|
40473
|
+
|
|
40474
|
+
/**
|
|
40475
|
+
* Gets the default type url for EditionDefault
|
|
40476
|
+
* @function getTypeUrl
|
|
40477
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
40478
|
+
* @static
|
|
40479
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40480
|
+
* @returns {string} The default type url
|
|
40481
|
+
*/
|
|
40482
|
+
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40483
|
+
if (typeUrlPrefix === undefined) {
|
|
40484
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40485
|
+
}
|
|
40486
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
40487
|
+
};
|
|
38133
40488
|
|
|
38134
|
-
|
|
38135
|
-
* OptionTargetType enum.
|
|
38136
|
-
* @name google.protobuf.FieldOptions.OptionTargetType
|
|
38137
|
-
* @enum {number}
|
|
38138
|
-
* @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
|
|
38139
|
-
* @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
|
|
38140
|
-
* @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
|
|
38141
|
-
* @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
|
|
38142
|
-
* @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
|
|
38143
|
-
* @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
|
|
38144
|
-
* @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
|
|
38145
|
-
* @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
|
|
38146
|
-
* @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
|
|
38147
|
-
* @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
|
|
38148
|
-
*/
|
|
38149
|
-
FieldOptions.OptionTargetType = (function() {
|
|
38150
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
38151
|
-
values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
|
|
38152
|
-
values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
|
|
38153
|
-
values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
|
|
38154
|
-
values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
|
|
38155
|
-
values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
|
|
38156
|
-
values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
|
|
38157
|
-
values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
|
|
38158
|
-
values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
|
|
38159
|
-
values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
|
|
38160
|
-
values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
|
|
38161
|
-
return values;
|
|
40489
|
+
return EditionDefault;
|
|
38162
40490
|
})();
|
|
38163
40491
|
|
|
38164
|
-
FieldOptions.
|
|
40492
|
+
FieldOptions.FeatureSupport = (function() {
|
|
38165
40493
|
|
|
38166
40494
|
/**
|
|
38167
|
-
* Properties of
|
|
40495
|
+
* Properties of a FeatureSupport.
|
|
38168
40496
|
* @memberof google.protobuf.FieldOptions
|
|
38169
|
-
* @interface
|
|
38170
|
-
* @property {google.protobuf.Edition|null} [
|
|
38171
|
-
* @property {
|
|
40497
|
+
* @interface IFeatureSupport
|
|
40498
|
+
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
40499
|
+
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
40500
|
+
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
40501
|
+
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
38172
40502
|
*/
|
|
38173
40503
|
|
|
38174
40504
|
/**
|
|
38175
|
-
* Constructs a new
|
|
40505
|
+
* Constructs a new FeatureSupport.
|
|
38176
40506
|
* @memberof google.protobuf.FieldOptions
|
|
38177
|
-
* @classdesc Represents
|
|
38178
|
-
* @implements
|
|
40507
|
+
* @classdesc Represents a FeatureSupport.
|
|
40508
|
+
* @implements IFeatureSupport
|
|
38179
40509
|
* @constructor
|
|
38180
|
-
* @param {google.protobuf.FieldOptions.
|
|
40510
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
38181
40511
|
*/
|
|
38182
|
-
function
|
|
40512
|
+
function FeatureSupport(properties) {
|
|
38183
40513
|
if (properties)
|
|
38184
40514
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38185
40515
|
if (properties[keys[i]] != null)
|
|
@@ -38187,91 +40517,119 @@
|
|
|
38187
40517
|
}
|
|
38188
40518
|
|
|
38189
40519
|
/**
|
|
38190
|
-
*
|
|
38191
|
-
* @member {google.protobuf.Edition}
|
|
38192
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40520
|
+
* FeatureSupport editionIntroduced.
|
|
40521
|
+
* @member {google.protobuf.Edition} editionIntroduced
|
|
40522
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38193
40523
|
* @instance
|
|
38194
40524
|
*/
|
|
38195
|
-
|
|
40525
|
+
FeatureSupport.prototype.editionIntroduced = 0;
|
|
38196
40526
|
|
|
38197
40527
|
/**
|
|
38198
|
-
*
|
|
38199
|
-
* @member {
|
|
38200
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40528
|
+
* FeatureSupport editionDeprecated.
|
|
40529
|
+
* @member {google.protobuf.Edition} editionDeprecated
|
|
40530
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38201
40531
|
* @instance
|
|
38202
40532
|
*/
|
|
38203
|
-
|
|
40533
|
+
FeatureSupport.prototype.editionDeprecated = 0;
|
|
38204
40534
|
|
|
38205
40535
|
/**
|
|
38206
|
-
*
|
|
40536
|
+
* FeatureSupport deprecationWarning.
|
|
40537
|
+
* @member {string} deprecationWarning
|
|
40538
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40539
|
+
* @instance
|
|
40540
|
+
*/
|
|
40541
|
+
FeatureSupport.prototype.deprecationWarning = "";
|
|
40542
|
+
|
|
40543
|
+
/**
|
|
40544
|
+
* FeatureSupport editionRemoved.
|
|
40545
|
+
* @member {google.protobuf.Edition} editionRemoved
|
|
40546
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
40547
|
+
* @instance
|
|
40548
|
+
*/
|
|
40549
|
+
FeatureSupport.prototype.editionRemoved = 0;
|
|
40550
|
+
|
|
40551
|
+
/**
|
|
40552
|
+
* Creates a new FeatureSupport instance using the specified properties.
|
|
38207
40553
|
* @function create
|
|
38208
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40554
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38209
40555
|
* @static
|
|
38210
|
-
* @param {google.protobuf.FieldOptions.
|
|
38211
|
-
* @returns {google.protobuf.FieldOptions.
|
|
40556
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
40557
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
38212
40558
|
*/
|
|
38213
|
-
|
|
38214
|
-
return new
|
|
40559
|
+
FeatureSupport.create = function create(properties) {
|
|
40560
|
+
return new FeatureSupport(properties);
|
|
38215
40561
|
};
|
|
38216
40562
|
|
|
38217
40563
|
/**
|
|
38218
|
-
* Encodes the specified
|
|
40564
|
+
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
38219
40565
|
* @function encode
|
|
38220
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40566
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38221
40567
|
* @static
|
|
38222
|
-
* @param {google.protobuf.FieldOptions.
|
|
40568
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
38223
40569
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38224
40570
|
* @returns {$protobuf.Writer} Writer
|
|
38225
40571
|
*/
|
|
38226
|
-
|
|
40572
|
+
FeatureSupport.encode = function encode(message, writer) {
|
|
38227
40573
|
if (!writer)
|
|
38228
40574
|
writer = $Writer.create();
|
|
38229
|
-
if (message.
|
|
38230
|
-
writer.uint32(/* id
|
|
38231
|
-
if (message.
|
|
38232
|
-
writer.uint32(/* id
|
|
40575
|
+
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
40576
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
40577
|
+
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
40578
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
40579
|
+
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
40580
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
40581
|
+
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
40582
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
38233
40583
|
return writer;
|
|
38234
40584
|
};
|
|
38235
40585
|
|
|
38236
40586
|
/**
|
|
38237
|
-
* Encodes the specified
|
|
40587
|
+
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
38238
40588
|
* @function encodeDelimited
|
|
38239
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40589
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38240
40590
|
* @static
|
|
38241
|
-
* @param {google.protobuf.FieldOptions.
|
|
40591
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
38242
40592
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38243
40593
|
* @returns {$protobuf.Writer} Writer
|
|
38244
40594
|
*/
|
|
38245
|
-
|
|
40595
|
+
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38246
40596
|
return this.encode(message, writer).ldelim();
|
|
38247
40597
|
};
|
|
38248
40598
|
|
|
38249
40599
|
/**
|
|
38250
|
-
* Decodes
|
|
40600
|
+
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
38251
40601
|
* @function decode
|
|
38252
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40602
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38253
40603
|
* @static
|
|
38254
40604
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38255
40605
|
* @param {number} [length] Message length if known beforehand
|
|
38256
|
-
* @returns {google.protobuf.FieldOptions.
|
|
40606
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
38257
40607
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38258
40608
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38259
40609
|
*/
|
|
38260
|
-
|
|
40610
|
+
FeatureSupport.decode = function decode(reader, length, error) {
|
|
38261
40611
|
if (!(reader instanceof $Reader))
|
|
38262
40612
|
reader = $Reader.create(reader);
|
|
38263
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.
|
|
40613
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
38264
40614
|
while (reader.pos < end) {
|
|
38265
40615
|
var tag = reader.uint32();
|
|
38266
40616
|
if (tag === error)
|
|
38267
40617
|
break;
|
|
38268
40618
|
switch (tag >>> 3) {
|
|
38269
|
-
case
|
|
38270
|
-
message.
|
|
40619
|
+
case 1: {
|
|
40620
|
+
message.editionIntroduced = reader.int32();
|
|
38271
40621
|
break;
|
|
38272
40622
|
}
|
|
38273
40623
|
case 2: {
|
|
38274
|
-
message.
|
|
40624
|
+
message.editionDeprecated = reader.int32();
|
|
40625
|
+
break;
|
|
40626
|
+
}
|
|
40627
|
+
case 3: {
|
|
40628
|
+
message.deprecationWarning = reader.string();
|
|
40629
|
+
break;
|
|
40630
|
+
}
|
|
40631
|
+
case 4: {
|
|
40632
|
+
message.editionRemoved = reader.int32();
|
|
38275
40633
|
break;
|
|
38276
40634
|
}
|
|
38277
40635
|
default:
|
|
@@ -38283,37 +40641,77 @@
|
|
|
38283
40641
|
};
|
|
38284
40642
|
|
|
38285
40643
|
/**
|
|
38286
|
-
* Decodes
|
|
40644
|
+
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
38287
40645
|
* @function decodeDelimited
|
|
38288
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40646
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38289
40647
|
* @static
|
|
38290
40648
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38291
|
-
* @returns {google.protobuf.FieldOptions.
|
|
40649
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
38292
40650
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38293
40651
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38294
40652
|
*/
|
|
38295
|
-
|
|
40653
|
+
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
38296
40654
|
if (!(reader instanceof $Reader))
|
|
38297
40655
|
reader = new $Reader(reader);
|
|
38298
40656
|
return this.decode(reader, reader.uint32());
|
|
38299
40657
|
};
|
|
38300
40658
|
|
|
38301
40659
|
/**
|
|
38302
|
-
* Verifies
|
|
40660
|
+
* Verifies a FeatureSupport message.
|
|
38303
40661
|
* @function verify
|
|
38304
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40662
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38305
40663
|
* @static
|
|
38306
40664
|
* @param {Object.<string,*>} message Plain object to verify
|
|
38307
40665
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38308
40666
|
*/
|
|
38309
|
-
|
|
40667
|
+
FeatureSupport.verify = function verify(message) {
|
|
38310
40668
|
if (typeof message !== "object" || message === null)
|
|
38311
40669
|
return "object expected";
|
|
38312
|
-
if (message.
|
|
38313
|
-
switch (message.
|
|
40670
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
40671
|
+
switch (message.editionIntroduced) {
|
|
38314
40672
|
default:
|
|
38315
|
-
return "
|
|
40673
|
+
return "editionIntroduced: enum value expected";
|
|
38316
40674
|
case 0:
|
|
40675
|
+
case 900:
|
|
40676
|
+
case 998:
|
|
40677
|
+
case 999:
|
|
40678
|
+
case 1000:
|
|
40679
|
+
case 1001:
|
|
40680
|
+
case 1:
|
|
40681
|
+
case 2:
|
|
40682
|
+
case 99997:
|
|
40683
|
+
case 99998:
|
|
40684
|
+
case 99999:
|
|
40685
|
+
case 2147483647:
|
|
40686
|
+
break;
|
|
40687
|
+
}
|
|
40688
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
40689
|
+
switch (message.editionDeprecated) {
|
|
40690
|
+
default:
|
|
40691
|
+
return "editionDeprecated: enum value expected";
|
|
40692
|
+
case 0:
|
|
40693
|
+
case 900:
|
|
40694
|
+
case 998:
|
|
40695
|
+
case 999:
|
|
40696
|
+
case 1000:
|
|
40697
|
+
case 1001:
|
|
40698
|
+
case 1:
|
|
40699
|
+
case 2:
|
|
40700
|
+
case 99997:
|
|
40701
|
+
case 99998:
|
|
40702
|
+
case 99999:
|
|
40703
|
+
case 2147483647:
|
|
40704
|
+
break;
|
|
40705
|
+
}
|
|
40706
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
40707
|
+
if (!$util.isString(message.deprecationWarning))
|
|
40708
|
+
return "deprecationWarning: string expected";
|
|
40709
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
40710
|
+
switch (message.editionRemoved) {
|
|
40711
|
+
default:
|
|
40712
|
+
return "editionRemoved: enum value expected";
|
|
40713
|
+
case 0:
|
|
40714
|
+
case 900:
|
|
38317
40715
|
case 998:
|
|
38318
40716
|
case 999:
|
|
38319
40717
|
case 1000:
|
|
@@ -38326,132 +40724,251 @@
|
|
|
38326
40724
|
case 2147483647:
|
|
38327
40725
|
break;
|
|
38328
40726
|
}
|
|
38329
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
38330
|
-
if (!$util.isString(message.value))
|
|
38331
|
-
return "value: string expected";
|
|
38332
40727
|
return null;
|
|
38333
40728
|
};
|
|
38334
40729
|
|
|
38335
40730
|
/**
|
|
38336
|
-
* Creates
|
|
40731
|
+
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
38337
40732
|
* @function fromObject
|
|
38338
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40733
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38339
40734
|
* @static
|
|
38340
40735
|
* @param {Object.<string,*>} object Plain object
|
|
38341
|
-
* @returns {google.protobuf.FieldOptions.
|
|
40736
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
38342
40737
|
*/
|
|
38343
|
-
|
|
38344
|
-
if (object instanceof $root.google.protobuf.FieldOptions.
|
|
40738
|
+
FeatureSupport.fromObject = function fromObject(object) {
|
|
40739
|
+
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
38345
40740
|
return object;
|
|
38346
|
-
var message = new $root.google.protobuf.FieldOptions.
|
|
38347
|
-
switch (object.
|
|
40741
|
+
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
40742
|
+
switch (object.editionIntroduced) {
|
|
38348
40743
|
default:
|
|
38349
|
-
if (typeof object.
|
|
38350
|
-
message.
|
|
40744
|
+
if (typeof object.editionIntroduced === "number") {
|
|
40745
|
+
message.editionIntroduced = object.editionIntroduced;
|
|
38351
40746
|
break;
|
|
38352
40747
|
}
|
|
38353
40748
|
break;
|
|
38354
40749
|
case "EDITION_UNKNOWN":
|
|
38355
40750
|
case 0:
|
|
38356
|
-
message.
|
|
40751
|
+
message.editionIntroduced = 0;
|
|
40752
|
+
break;
|
|
40753
|
+
case "EDITION_LEGACY":
|
|
40754
|
+
case 900:
|
|
40755
|
+
message.editionIntroduced = 900;
|
|
38357
40756
|
break;
|
|
38358
40757
|
case "EDITION_PROTO2":
|
|
38359
40758
|
case 998:
|
|
38360
|
-
message.
|
|
40759
|
+
message.editionIntroduced = 998;
|
|
38361
40760
|
break;
|
|
38362
40761
|
case "EDITION_PROTO3":
|
|
38363
40762
|
case 999:
|
|
38364
|
-
message.
|
|
40763
|
+
message.editionIntroduced = 999;
|
|
38365
40764
|
break;
|
|
38366
40765
|
case "EDITION_2023":
|
|
38367
40766
|
case 1000:
|
|
38368
|
-
message.
|
|
40767
|
+
message.editionIntroduced = 1000;
|
|
38369
40768
|
break;
|
|
38370
40769
|
case "EDITION_2024":
|
|
38371
40770
|
case 1001:
|
|
38372
|
-
message.
|
|
40771
|
+
message.editionIntroduced = 1001;
|
|
38373
40772
|
break;
|
|
38374
40773
|
case "EDITION_1_TEST_ONLY":
|
|
38375
40774
|
case 1:
|
|
38376
|
-
message.
|
|
40775
|
+
message.editionIntroduced = 1;
|
|
38377
40776
|
break;
|
|
38378
40777
|
case "EDITION_2_TEST_ONLY":
|
|
38379
40778
|
case 2:
|
|
38380
|
-
message.
|
|
40779
|
+
message.editionIntroduced = 2;
|
|
38381
40780
|
break;
|
|
38382
40781
|
case "EDITION_99997_TEST_ONLY":
|
|
38383
40782
|
case 99997:
|
|
38384
|
-
message.
|
|
40783
|
+
message.editionIntroduced = 99997;
|
|
38385
40784
|
break;
|
|
38386
40785
|
case "EDITION_99998_TEST_ONLY":
|
|
38387
40786
|
case 99998:
|
|
38388
|
-
message.
|
|
40787
|
+
message.editionIntroduced = 99998;
|
|
38389
40788
|
break;
|
|
38390
40789
|
case "EDITION_99999_TEST_ONLY":
|
|
38391
40790
|
case 99999:
|
|
38392
|
-
message.
|
|
40791
|
+
message.editionIntroduced = 99999;
|
|
38393
40792
|
break;
|
|
38394
40793
|
case "EDITION_MAX":
|
|
38395
40794
|
case 2147483647:
|
|
38396
|
-
message.
|
|
40795
|
+
message.editionIntroduced = 2147483647;
|
|
40796
|
+
break;
|
|
40797
|
+
}
|
|
40798
|
+
switch (object.editionDeprecated) {
|
|
40799
|
+
default:
|
|
40800
|
+
if (typeof object.editionDeprecated === "number") {
|
|
40801
|
+
message.editionDeprecated = object.editionDeprecated;
|
|
40802
|
+
break;
|
|
40803
|
+
}
|
|
40804
|
+
break;
|
|
40805
|
+
case "EDITION_UNKNOWN":
|
|
40806
|
+
case 0:
|
|
40807
|
+
message.editionDeprecated = 0;
|
|
40808
|
+
break;
|
|
40809
|
+
case "EDITION_LEGACY":
|
|
40810
|
+
case 900:
|
|
40811
|
+
message.editionDeprecated = 900;
|
|
40812
|
+
break;
|
|
40813
|
+
case "EDITION_PROTO2":
|
|
40814
|
+
case 998:
|
|
40815
|
+
message.editionDeprecated = 998;
|
|
40816
|
+
break;
|
|
40817
|
+
case "EDITION_PROTO3":
|
|
40818
|
+
case 999:
|
|
40819
|
+
message.editionDeprecated = 999;
|
|
40820
|
+
break;
|
|
40821
|
+
case "EDITION_2023":
|
|
40822
|
+
case 1000:
|
|
40823
|
+
message.editionDeprecated = 1000;
|
|
40824
|
+
break;
|
|
40825
|
+
case "EDITION_2024":
|
|
40826
|
+
case 1001:
|
|
40827
|
+
message.editionDeprecated = 1001;
|
|
40828
|
+
break;
|
|
40829
|
+
case "EDITION_1_TEST_ONLY":
|
|
40830
|
+
case 1:
|
|
40831
|
+
message.editionDeprecated = 1;
|
|
40832
|
+
break;
|
|
40833
|
+
case "EDITION_2_TEST_ONLY":
|
|
40834
|
+
case 2:
|
|
40835
|
+
message.editionDeprecated = 2;
|
|
40836
|
+
break;
|
|
40837
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40838
|
+
case 99997:
|
|
40839
|
+
message.editionDeprecated = 99997;
|
|
40840
|
+
break;
|
|
40841
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40842
|
+
case 99998:
|
|
40843
|
+
message.editionDeprecated = 99998;
|
|
40844
|
+
break;
|
|
40845
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40846
|
+
case 99999:
|
|
40847
|
+
message.editionDeprecated = 99999;
|
|
40848
|
+
break;
|
|
40849
|
+
case "EDITION_MAX":
|
|
40850
|
+
case 2147483647:
|
|
40851
|
+
message.editionDeprecated = 2147483647;
|
|
40852
|
+
break;
|
|
40853
|
+
}
|
|
40854
|
+
if (object.deprecationWarning != null)
|
|
40855
|
+
message.deprecationWarning = String(object.deprecationWarning);
|
|
40856
|
+
switch (object.editionRemoved) {
|
|
40857
|
+
default:
|
|
40858
|
+
if (typeof object.editionRemoved === "number") {
|
|
40859
|
+
message.editionRemoved = object.editionRemoved;
|
|
40860
|
+
break;
|
|
40861
|
+
}
|
|
40862
|
+
break;
|
|
40863
|
+
case "EDITION_UNKNOWN":
|
|
40864
|
+
case 0:
|
|
40865
|
+
message.editionRemoved = 0;
|
|
40866
|
+
break;
|
|
40867
|
+
case "EDITION_LEGACY":
|
|
40868
|
+
case 900:
|
|
40869
|
+
message.editionRemoved = 900;
|
|
40870
|
+
break;
|
|
40871
|
+
case "EDITION_PROTO2":
|
|
40872
|
+
case 998:
|
|
40873
|
+
message.editionRemoved = 998;
|
|
40874
|
+
break;
|
|
40875
|
+
case "EDITION_PROTO3":
|
|
40876
|
+
case 999:
|
|
40877
|
+
message.editionRemoved = 999;
|
|
40878
|
+
break;
|
|
40879
|
+
case "EDITION_2023":
|
|
40880
|
+
case 1000:
|
|
40881
|
+
message.editionRemoved = 1000;
|
|
40882
|
+
break;
|
|
40883
|
+
case "EDITION_2024":
|
|
40884
|
+
case 1001:
|
|
40885
|
+
message.editionRemoved = 1001;
|
|
40886
|
+
break;
|
|
40887
|
+
case "EDITION_1_TEST_ONLY":
|
|
40888
|
+
case 1:
|
|
40889
|
+
message.editionRemoved = 1;
|
|
40890
|
+
break;
|
|
40891
|
+
case "EDITION_2_TEST_ONLY":
|
|
40892
|
+
case 2:
|
|
40893
|
+
message.editionRemoved = 2;
|
|
40894
|
+
break;
|
|
40895
|
+
case "EDITION_99997_TEST_ONLY":
|
|
40896
|
+
case 99997:
|
|
40897
|
+
message.editionRemoved = 99997;
|
|
40898
|
+
break;
|
|
40899
|
+
case "EDITION_99998_TEST_ONLY":
|
|
40900
|
+
case 99998:
|
|
40901
|
+
message.editionRemoved = 99998;
|
|
40902
|
+
break;
|
|
40903
|
+
case "EDITION_99999_TEST_ONLY":
|
|
40904
|
+
case 99999:
|
|
40905
|
+
message.editionRemoved = 99999;
|
|
40906
|
+
break;
|
|
40907
|
+
case "EDITION_MAX":
|
|
40908
|
+
case 2147483647:
|
|
40909
|
+
message.editionRemoved = 2147483647;
|
|
38397
40910
|
break;
|
|
38398
40911
|
}
|
|
38399
|
-
if (object.value != null)
|
|
38400
|
-
message.value = String(object.value);
|
|
38401
40912
|
return message;
|
|
38402
40913
|
};
|
|
38403
40914
|
|
|
38404
40915
|
/**
|
|
38405
|
-
* Creates a plain object from
|
|
40916
|
+
* Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
|
|
38406
40917
|
* @function toObject
|
|
38407
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40918
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38408
40919
|
* @static
|
|
38409
|
-
* @param {google.protobuf.FieldOptions.
|
|
40920
|
+
* @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
|
|
38410
40921
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38411
40922
|
* @returns {Object.<string,*>} Plain object
|
|
38412
40923
|
*/
|
|
38413
|
-
|
|
40924
|
+
FeatureSupport.toObject = function toObject(message, options) {
|
|
38414
40925
|
if (!options)
|
|
38415
40926
|
options = {};
|
|
38416
40927
|
var object = {};
|
|
38417
40928
|
if (options.defaults) {
|
|
38418
|
-
object.
|
|
38419
|
-
object.
|
|
38420
|
-
|
|
38421
|
-
|
|
38422
|
-
|
|
38423
|
-
if (message.
|
|
38424
|
-
object.
|
|
40929
|
+
object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40930
|
+
object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40931
|
+
object.deprecationWarning = "";
|
|
40932
|
+
object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
40933
|
+
}
|
|
40934
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
40935
|
+
object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
|
|
40936
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
40937
|
+
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
40938
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
40939
|
+
object.deprecationWarning = message.deprecationWarning;
|
|
40940
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
40941
|
+
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
38425
40942
|
return object;
|
|
38426
40943
|
};
|
|
38427
40944
|
|
|
38428
40945
|
/**
|
|
38429
|
-
* Converts this
|
|
40946
|
+
* Converts this FeatureSupport to JSON.
|
|
38430
40947
|
* @function toJSON
|
|
38431
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40948
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38432
40949
|
* @instance
|
|
38433
40950
|
* @returns {Object.<string,*>} JSON object
|
|
38434
40951
|
*/
|
|
38435
|
-
|
|
40952
|
+
FeatureSupport.prototype.toJSON = function toJSON() {
|
|
38436
40953
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38437
40954
|
};
|
|
38438
40955
|
|
|
38439
40956
|
/**
|
|
38440
|
-
* Gets the default type url for
|
|
40957
|
+
* Gets the default type url for FeatureSupport
|
|
38441
40958
|
* @function getTypeUrl
|
|
38442
|
-
* @memberof google.protobuf.FieldOptions.
|
|
40959
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
38443
40960
|
* @static
|
|
38444
40961
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38445
40962
|
* @returns {string} The default type url
|
|
38446
40963
|
*/
|
|
38447
|
-
|
|
40964
|
+
FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
38448
40965
|
if (typeUrlPrefix === undefined) {
|
|
38449
40966
|
typeUrlPrefix = "type.googleapis.com";
|
|
38450
40967
|
}
|
|
38451
|
-
return typeUrlPrefix + "/google.protobuf.FieldOptions.
|
|
40968
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
|
|
38452
40969
|
};
|
|
38453
40970
|
|
|
38454
|
-
return
|
|
40971
|
+
return FeatureSupport;
|
|
38455
40972
|
})();
|
|
38456
40973
|
|
|
38457
40974
|
return FieldOptions;
|
|
@@ -39046,6 +41563,7 @@
|
|
|
39046
41563
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
39047
41564
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
39048
41565
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
41566
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
39049
41567
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
39050
41568
|
*/
|
|
39051
41569
|
|
|
@@ -39089,6 +41607,14 @@
|
|
|
39089
41607
|
*/
|
|
39090
41608
|
EnumValueOptions.prototype.debugRedact = false;
|
|
39091
41609
|
|
|
41610
|
+
/**
|
|
41611
|
+
* EnumValueOptions featureSupport.
|
|
41612
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
41613
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
41614
|
+
* @instance
|
|
41615
|
+
*/
|
|
41616
|
+
EnumValueOptions.prototype.featureSupport = null;
|
|
41617
|
+
|
|
39092
41618
|
/**
|
|
39093
41619
|
* EnumValueOptions uninterpretedOption.
|
|
39094
41620
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -39127,6 +41653,8 @@
|
|
|
39127
41653
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
39128
41654
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
39129
41655
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
41656
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
41657
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
39130
41658
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
39131
41659
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
39132
41660
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -39178,6 +41706,10 @@
|
|
|
39178
41706
|
message.debugRedact = reader.bool();
|
|
39179
41707
|
break;
|
|
39180
41708
|
}
|
|
41709
|
+
case 4: {
|
|
41710
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
41711
|
+
break;
|
|
41712
|
+
}
|
|
39181
41713
|
case 999: {
|
|
39182
41714
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
39183
41715
|
message.uninterpretedOption = [];
|
|
@@ -39230,6 +41762,11 @@
|
|
|
39230
41762
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
39231
41763
|
if (typeof message.debugRedact !== "boolean")
|
|
39232
41764
|
return "debugRedact: boolean expected";
|
|
41765
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
41766
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
41767
|
+
if (error)
|
|
41768
|
+
return "featureSupport." + error;
|
|
41769
|
+
}
|
|
39233
41770
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
39234
41771
|
if (!Array.isArray(message.uninterpretedOption))
|
|
39235
41772
|
return "uninterpretedOption: array expected";
|
|
@@ -39263,6 +41800,11 @@
|
|
|
39263
41800
|
}
|
|
39264
41801
|
if (object.debugRedact != null)
|
|
39265
41802
|
message.debugRedact = Boolean(object.debugRedact);
|
|
41803
|
+
if (object.featureSupport != null) {
|
|
41804
|
+
if (typeof object.featureSupport !== "object")
|
|
41805
|
+
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
41806
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
41807
|
+
}
|
|
39266
41808
|
if (object.uninterpretedOption) {
|
|
39267
41809
|
if (!Array.isArray(object.uninterpretedOption))
|
|
39268
41810
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -39295,6 +41837,7 @@
|
|
|
39295
41837
|
object.deprecated = false;
|
|
39296
41838
|
object.features = null;
|
|
39297
41839
|
object.debugRedact = false;
|
|
41840
|
+
object.featureSupport = null;
|
|
39298
41841
|
}
|
|
39299
41842
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
39300
41843
|
object.deprecated = message.deprecated;
|
|
@@ -39302,6 +41845,8 @@
|
|
|
39302
41845
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
39303
41846
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
39304
41847
|
object.debugRedact = message.debugRedact;
|
|
41848
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
41849
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
39305
41850
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
39306
41851
|
object.uninterpretedOption = [];
|
|
39307
41852
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -40741,6 +43286,8 @@
|
|
|
40741
43286
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
40742
43287
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
40743
43288
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
43289
|
+
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
43290
|
+
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
40744
43291
|
*/
|
|
40745
43292
|
|
|
40746
43293
|
/**
|
|
@@ -40806,6 +43353,22 @@
|
|
|
40806
43353
|
*/
|
|
40807
43354
|
FeatureSet.prototype.jsonFormat = 0;
|
|
40808
43355
|
|
|
43356
|
+
/**
|
|
43357
|
+
* FeatureSet enforceNamingStyle.
|
|
43358
|
+
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
43359
|
+
* @memberof google.protobuf.FeatureSet
|
|
43360
|
+
* @instance
|
|
43361
|
+
*/
|
|
43362
|
+
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
43363
|
+
|
|
43364
|
+
/**
|
|
43365
|
+
* FeatureSet defaultSymbolVisibility.
|
|
43366
|
+
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
43367
|
+
* @memberof google.protobuf.FeatureSet
|
|
43368
|
+
* @instance
|
|
43369
|
+
*/
|
|
43370
|
+
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
43371
|
+
|
|
40809
43372
|
/**
|
|
40810
43373
|
* Creates a new FeatureSet instance using the specified properties.
|
|
40811
43374
|
* @function create
|
|
@@ -40842,6 +43405,10 @@
|
|
|
40842
43405
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
40843
43406
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
40844
43407
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
43408
|
+
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
43409
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
43410
|
+
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
43411
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
40845
43412
|
return writer;
|
|
40846
43413
|
};
|
|
40847
43414
|
|
|
@@ -40902,6 +43469,14 @@
|
|
|
40902
43469
|
message.jsonFormat = reader.int32();
|
|
40903
43470
|
break;
|
|
40904
43471
|
}
|
|
43472
|
+
case 7: {
|
|
43473
|
+
message.enforceNamingStyle = reader.int32();
|
|
43474
|
+
break;
|
|
43475
|
+
}
|
|
43476
|
+
case 8: {
|
|
43477
|
+
message.defaultSymbolVisibility = reader.int32();
|
|
43478
|
+
break;
|
|
43479
|
+
}
|
|
40905
43480
|
default:
|
|
40906
43481
|
reader.skipType(tag & 7);
|
|
40907
43482
|
break;
|
|
@@ -40992,6 +43567,26 @@
|
|
|
40992
43567
|
case 2:
|
|
40993
43568
|
break;
|
|
40994
43569
|
}
|
|
43570
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
43571
|
+
switch (message.enforceNamingStyle) {
|
|
43572
|
+
default:
|
|
43573
|
+
return "enforceNamingStyle: enum value expected";
|
|
43574
|
+
case 0:
|
|
43575
|
+
case 1:
|
|
43576
|
+
case 2:
|
|
43577
|
+
break;
|
|
43578
|
+
}
|
|
43579
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
43580
|
+
switch (message.defaultSymbolVisibility) {
|
|
43581
|
+
default:
|
|
43582
|
+
return "defaultSymbolVisibility: enum value expected";
|
|
43583
|
+
case 0:
|
|
43584
|
+
case 1:
|
|
43585
|
+
case 2:
|
|
43586
|
+
case 3:
|
|
43587
|
+
case 4:
|
|
43588
|
+
break;
|
|
43589
|
+
}
|
|
40995
43590
|
return null;
|
|
40996
43591
|
};
|
|
40997
43592
|
|
|
@@ -41131,6 +43726,54 @@
|
|
|
41131
43726
|
message.jsonFormat = 2;
|
|
41132
43727
|
break;
|
|
41133
43728
|
}
|
|
43729
|
+
switch (object.enforceNamingStyle) {
|
|
43730
|
+
default:
|
|
43731
|
+
if (typeof object.enforceNamingStyle === "number") {
|
|
43732
|
+
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
43733
|
+
break;
|
|
43734
|
+
}
|
|
43735
|
+
break;
|
|
43736
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
43737
|
+
case 0:
|
|
43738
|
+
message.enforceNamingStyle = 0;
|
|
43739
|
+
break;
|
|
43740
|
+
case "STYLE2024":
|
|
43741
|
+
case 1:
|
|
43742
|
+
message.enforceNamingStyle = 1;
|
|
43743
|
+
break;
|
|
43744
|
+
case "STYLE_LEGACY":
|
|
43745
|
+
case 2:
|
|
43746
|
+
message.enforceNamingStyle = 2;
|
|
43747
|
+
break;
|
|
43748
|
+
}
|
|
43749
|
+
switch (object.defaultSymbolVisibility) {
|
|
43750
|
+
default:
|
|
43751
|
+
if (typeof object.defaultSymbolVisibility === "number") {
|
|
43752
|
+
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
43753
|
+
break;
|
|
43754
|
+
}
|
|
43755
|
+
break;
|
|
43756
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
43757
|
+
case 0:
|
|
43758
|
+
message.defaultSymbolVisibility = 0;
|
|
43759
|
+
break;
|
|
43760
|
+
case "EXPORT_ALL":
|
|
43761
|
+
case 1:
|
|
43762
|
+
message.defaultSymbolVisibility = 1;
|
|
43763
|
+
break;
|
|
43764
|
+
case "EXPORT_TOP_LEVEL":
|
|
43765
|
+
case 2:
|
|
43766
|
+
message.defaultSymbolVisibility = 2;
|
|
43767
|
+
break;
|
|
43768
|
+
case "LOCAL_ALL":
|
|
43769
|
+
case 3:
|
|
43770
|
+
message.defaultSymbolVisibility = 3;
|
|
43771
|
+
break;
|
|
43772
|
+
case "STRICT":
|
|
43773
|
+
case 4:
|
|
43774
|
+
message.defaultSymbolVisibility = 4;
|
|
43775
|
+
break;
|
|
43776
|
+
}
|
|
41134
43777
|
return message;
|
|
41135
43778
|
};
|
|
41136
43779
|
|
|
@@ -41154,6 +43797,8 @@
|
|
|
41154
43797
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
41155
43798
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
41156
43799
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
43800
|
+
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
43801
|
+
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
41157
43802
|
}
|
|
41158
43803
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
41159
43804
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -41167,6 +43812,10 @@
|
|
|
41167
43812
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
41168
43813
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
41169
43814
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
43815
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
43816
|
+
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
43817
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
43818
|
+
object.defaultSymbolVisibility = options.enums === String ? $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] === undefined ? message.defaultSymbolVisibility : $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] : message.defaultSymbolVisibility;
|
|
41170
43819
|
return object;
|
|
41171
43820
|
};
|
|
41172
43821
|
|
|
@@ -41294,6 +43943,219 @@
|
|
|
41294
43943
|
return values;
|
|
41295
43944
|
})();
|
|
41296
43945
|
|
|
43946
|
+
/**
|
|
43947
|
+
* EnforceNamingStyle enum.
|
|
43948
|
+
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
43949
|
+
* @enum {number}
|
|
43950
|
+
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
43951
|
+
* @property {number} STYLE2024=1 STYLE2024 value
|
|
43952
|
+
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
43953
|
+
*/
|
|
43954
|
+
FeatureSet.EnforceNamingStyle = (function() {
|
|
43955
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
43956
|
+
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
43957
|
+
values[valuesById[1] = "STYLE2024"] = 1;
|
|
43958
|
+
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
43959
|
+
return values;
|
|
43960
|
+
})();
|
|
43961
|
+
|
|
43962
|
+
FeatureSet.VisibilityFeature = (function() {
|
|
43963
|
+
|
|
43964
|
+
/**
|
|
43965
|
+
* Properties of a VisibilityFeature.
|
|
43966
|
+
* @memberof google.protobuf.FeatureSet
|
|
43967
|
+
* @interface IVisibilityFeature
|
|
43968
|
+
*/
|
|
43969
|
+
|
|
43970
|
+
/**
|
|
43971
|
+
* Constructs a new VisibilityFeature.
|
|
43972
|
+
* @memberof google.protobuf.FeatureSet
|
|
43973
|
+
* @classdesc Represents a VisibilityFeature.
|
|
43974
|
+
* @implements IVisibilityFeature
|
|
43975
|
+
* @constructor
|
|
43976
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
43977
|
+
*/
|
|
43978
|
+
function VisibilityFeature(properties) {
|
|
43979
|
+
if (properties)
|
|
43980
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43981
|
+
if (properties[keys[i]] != null)
|
|
43982
|
+
this[keys[i]] = properties[keys[i]];
|
|
43983
|
+
}
|
|
43984
|
+
|
|
43985
|
+
/**
|
|
43986
|
+
* Creates a new VisibilityFeature instance using the specified properties.
|
|
43987
|
+
* @function create
|
|
43988
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
43989
|
+
* @static
|
|
43990
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
43991
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
43992
|
+
*/
|
|
43993
|
+
VisibilityFeature.create = function create(properties) {
|
|
43994
|
+
return new VisibilityFeature(properties);
|
|
43995
|
+
};
|
|
43996
|
+
|
|
43997
|
+
/**
|
|
43998
|
+
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
43999
|
+
* @function encode
|
|
44000
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44001
|
+
* @static
|
|
44002
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
44003
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44004
|
+
* @returns {$protobuf.Writer} Writer
|
|
44005
|
+
*/
|
|
44006
|
+
VisibilityFeature.encode = function encode(message, writer) {
|
|
44007
|
+
if (!writer)
|
|
44008
|
+
writer = $Writer.create();
|
|
44009
|
+
return writer;
|
|
44010
|
+
};
|
|
44011
|
+
|
|
44012
|
+
/**
|
|
44013
|
+
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
44014
|
+
* @function encodeDelimited
|
|
44015
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44016
|
+
* @static
|
|
44017
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
44018
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44019
|
+
* @returns {$protobuf.Writer} Writer
|
|
44020
|
+
*/
|
|
44021
|
+
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44022
|
+
return this.encode(message, writer).ldelim();
|
|
44023
|
+
};
|
|
44024
|
+
|
|
44025
|
+
/**
|
|
44026
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
44027
|
+
* @function decode
|
|
44028
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44029
|
+
* @static
|
|
44030
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44031
|
+
* @param {number} [length] Message length if known beforehand
|
|
44032
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44035
|
+
*/
|
|
44036
|
+
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
44037
|
+
if (!(reader instanceof $Reader))
|
|
44038
|
+
reader = $Reader.create(reader);
|
|
44039
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
44040
|
+
while (reader.pos < end) {
|
|
44041
|
+
var tag = reader.uint32();
|
|
44042
|
+
if (tag === error)
|
|
44043
|
+
break;
|
|
44044
|
+
switch (tag >>> 3) {
|
|
44045
|
+
default:
|
|
44046
|
+
reader.skipType(tag & 7);
|
|
44047
|
+
break;
|
|
44048
|
+
}
|
|
44049
|
+
}
|
|
44050
|
+
return message;
|
|
44051
|
+
};
|
|
44052
|
+
|
|
44053
|
+
/**
|
|
44054
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
44055
|
+
* @function decodeDelimited
|
|
44056
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44057
|
+
* @static
|
|
44058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44059
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44060
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44061
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44062
|
+
*/
|
|
44063
|
+
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
44064
|
+
if (!(reader instanceof $Reader))
|
|
44065
|
+
reader = new $Reader(reader);
|
|
44066
|
+
return this.decode(reader, reader.uint32());
|
|
44067
|
+
};
|
|
44068
|
+
|
|
44069
|
+
/**
|
|
44070
|
+
* Verifies a VisibilityFeature message.
|
|
44071
|
+
* @function verify
|
|
44072
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44073
|
+
* @static
|
|
44074
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44075
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44076
|
+
*/
|
|
44077
|
+
VisibilityFeature.verify = function verify(message) {
|
|
44078
|
+
if (typeof message !== "object" || message === null)
|
|
44079
|
+
return "object expected";
|
|
44080
|
+
return null;
|
|
44081
|
+
};
|
|
44082
|
+
|
|
44083
|
+
/**
|
|
44084
|
+
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
44085
|
+
* @function fromObject
|
|
44086
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44087
|
+
* @static
|
|
44088
|
+
* @param {Object.<string,*>} object Plain object
|
|
44089
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
44090
|
+
*/
|
|
44091
|
+
VisibilityFeature.fromObject = function fromObject(object) {
|
|
44092
|
+
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
44093
|
+
return object;
|
|
44094
|
+
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
44095
|
+
};
|
|
44096
|
+
|
|
44097
|
+
/**
|
|
44098
|
+
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
44099
|
+
* @function toObject
|
|
44100
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44101
|
+
* @static
|
|
44102
|
+
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
44103
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44104
|
+
* @returns {Object.<string,*>} Plain object
|
|
44105
|
+
*/
|
|
44106
|
+
VisibilityFeature.toObject = function toObject() {
|
|
44107
|
+
return {};
|
|
44108
|
+
};
|
|
44109
|
+
|
|
44110
|
+
/**
|
|
44111
|
+
* Converts this VisibilityFeature to JSON.
|
|
44112
|
+
* @function toJSON
|
|
44113
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44114
|
+
* @instance
|
|
44115
|
+
* @returns {Object.<string,*>} JSON object
|
|
44116
|
+
*/
|
|
44117
|
+
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
44118
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44119
|
+
};
|
|
44120
|
+
|
|
44121
|
+
/**
|
|
44122
|
+
* Gets the default type url for VisibilityFeature
|
|
44123
|
+
* @function getTypeUrl
|
|
44124
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
44125
|
+
* @static
|
|
44126
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44127
|
+
* @returns {string} The default type url
|
|
44128
|
+
*/
|
|
44129
|
+
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44130
|
+
if (typeUrlPrefix === undefined) {
|
|
44131
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44132
|
+
}
|
|
44133
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
44134
|
+
};
|
|
44135
|
+
|
|
44136
|
+
/**
|
|
44137
|
+
* DefaultSymbolVisibility enum.
|
|
44138
|
+
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
44139
|
+
* @enum {number}
|
|
44140
|
+
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
44141
|
+
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
44142
|
+
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
44143
|
+
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
44144
|
+
* @property {number} STRICT=4 STRICT value
|
|
44145
|
+
*/
|
|
44146
|
+
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
44147
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
44148
|
+
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
44149
|
+
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
44150
|
+
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
44151
|
+
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
44152
|
+
values[valuesById[4] = "STRICT"] = 4;
|
|
44153
|
+
return values;
|
|
44154
|
+
})();
|
|
44155
|
+
|
|
44156
|
+
return VisibilityFeature;
|
|
44157
|
+
})();
|
|
44158
|
+
|
|
41297
44159
|
return FeatureSet;
|
|
41298
44160
|
})();
|
|
41299
44161
|
|
|
@@ -41478,6 +44340,7 @@
|
|
|
41478
44340
|
default:
|
|
41479
44341
|
return "minimumEdition: enum value expected";
|
|
41480
44342
|
case 0:
|
|
44343
|
+
case 900:
|
|
41481
44344
|
case 998:
|
|
41482
44345
|
case 999:
|
|
41483
44346
|
case 1000:
|
|
@@ -41495,6 +44358,7 @@
|
|
|
41495
44358
|
default:
|
|
41496
44359
|
return "maximumEdition: enum value expected";
|
|
41497
44360
|
case 0:
|
|
44361
|
+
case 900:
|
|
41498
44362
|
case 998:
|
|
41499
44363
|
case 999:
|
|
41500
44364
|
case 1000:
|
|
@@ -41543,6 +44407,10 @@
|
|
|
41543
44407
|
case 0:
|
|
41544
44408
|
message.minimumEdition = 0;
|
|
41545
44409
|
break;
|
|
44410
|
+
case "EDITION_LEGACY":
|
|
44411
|
+
case 900:
|
|
44412
|
+
message.minimumEdition = 900;
|
|
44413
|
+
break;
|
|
41546
44414
|
case "EDITION_PROTO2":
|
|
41547
44415
|
case 998:
|
|
41548
44416
|
message.minimumEdition = 998;
|
|
@@ -41595,6 +44463,10 @@
|
|
|
41595
44463
|
case 0:
|
|
41596
44464
|
message.maximumEdition = 0;
|
|
41597
44465
|
break;
|
|
44466
|
+
case "EDITION_LEGACY":
|
|
44467
|
+
case 900:
|
|
44468
|
+
message.maximumEdition = 900;
|
|
44469
|
+
break;
|
|
41598
44470
|
case "EDITION_PROTO2":
|
|
41599
44471
|
case 998:
|
|
41600
44472
|
message.maximumEdition = 998;
|
|
@@ -41703,7 +44575,8 @@
|
|
|
41703
44575
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
41704
44576
|
* @interface IFeatureSetEditionDefault
|
|
41705
44577
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
41706
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
44578
|
+
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
|
|
44579
|
+
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
41707
44580
|
*/
|
|
41708
44581
|
|
|
41709
44582
|
/**
|
|
@@ -41730,12 +44603,20 @@
|
|
|
41730
44603
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
41731
44604
|
|
|
41732
44605
|
/**
|
|
41733
|
-
* FeatureSetEditionDefault
|
|
41734
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
44606
|
+
* FeatureSetEditionDefault overridableFeatures.
|
|
44607
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
|
|
44608
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
44609
|
+
* @instance
|
|
44610
|
+
*/
|
|
44611
|
+
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
44612
|
+
|
|
44613
|
+
/**
|
|
44614
|
+
* FeatureSetEditionDefault fixedFeatures.
|
|
44615
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
41735
44616
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
41736
44617
|
* @instance
|
|
41737
44618
|
*/
|
|
41738
|
-
FeatureSetEditionDefault.prototype.
|
|
44619
|
+
FeatureSetEditionDefault.prototype.fixedFeatures = null;
|
|
41739
44620
|
|
|
41740
44621
|
/**
|
|
41741
44622
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -41761,10 +44642,12 @@
|
|
|
41761
44642
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
41762
44643
|
if (!writer)
|
|
41763
44644
|
writer = $Writer.create();
|
|
41764
|
-
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
41765
|
-
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41766
44645
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
41767
44646
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
44647
|
+
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
44648
|
+
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
44649
|
+
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
44650
|
+
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
41768
44651
|
return writer;
|
|
41769
44652
|
};
|
|
41770
44653
|
|
|
@@ -41805,8 +44688,12 @@
|
|
|
41805
44688
|
message.edition = reader.int32();
|
|
41806
44689
|
break;
|
|
41807
44690
|
}
|
|
41808
|
-
case
|
|
41809
|
-
message.
|
|
44691
|
+
case 4: {
|
|
44692
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
44693
|
+
break;
|
|
44694
|
+
}
|
|
44695
|
+
case 5: {
|
|
44696
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
41810
44697
|
break;
|
|
41811
44698
|
}
|
|
41812
44699
|
default:
|
|
@@ -41849,6 +44736,7 @@
|
|
|
41849
44736
|
default:
|
|
41850
44737
|
return "edition: enum value expected";
|
|
41851
44738
|
case 0:
|
|
44739
|
+
case 900:
|
|
41852
44740
|
case 998:
|
|
41853
44741
|
case 999:
|
|
41854
44742
|
case 1000:
|
|
@@ -41861,10 +44749,15 @@
|
|
|
41861
44749
|
case 2147483647:
|
|
41862
44750
|
break;
|
|
41863
44751
|
}
|
|
41864
|
-
if (message.
|
|
41865
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
44752
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
|
|
44753
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
|
|
44754
|
+
if (error)
|
|
44755
|
+
return "overridableFeatures." + error;
|
|
44756
|
+
}
|
|
44757
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
44758
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
41866
44759
|
if (error)
|
|
41867
|
-
return "
|
|
44760
|
+
return "fixedFeatures." + error;
|
|
41868
44761
|
}
|
|
41869
44762
|
return null;
|
|
41870
44763
|
};
|
|
@@ -41892,6 +44785,10 @@
|
|
|
41892
44785
|
case 0:
|
|
41893
44786
|
message.edition = 0;
|
|
41894
44787
|
break;
|
|
44788
|
+
case "EDITION_LEGACY":
|
|
44789
|
+
case 900:
|
|
44790
|
+
message.edition = 900;
|
|
44791
|
+
break;
|
|
41895
44792
|
case "EDITION_PROTO2":
|
|
41896
44793
|
case 998:
|
|
41897
44794
|
message.edition = 998;
|
|
@@ -41933,10 +44830,15 @@
|
|
|
41933
44830
|
message.edition = 2147483647;
|
|
41934
44831
|
break;
|
|
41935
44832
|
}
|
|
41936
|
-
if (object.
|
|
41937
|
-
if (typeof object.
|
|
41938
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
41939
|
-
message.
|
|
44833
|
+
if (object.overridableFeatures != null) {
|
|
44834
|
+
if (typeof object.overridableFeatures !== "object")
|
|
44835
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
|
|
44836
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
|
|
44837
|
+
}
|
|
44838
|
+
if (object.fixedFeatures != null) {
|
|
44839
|
+
if (typeof object.fixedFeatures !== "object")
|
|
44840
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
44841
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
41940
44842
|
}
|
|
41941
44843
|
return message;
|
|
41942
44844
|
};
|
|
@@ -41955,13 +44857,16 @@
|
|
|
41955
44857
|
options = {};
|
|
41956
44858
|
var object = {};
|
|
41957
44859
|
if (options.defaults) {
|
|
41958
|
-
object.features = null;
|
|
41959
44860
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
44861
|
+
object.overridableFeatures = null;
|
|
44862
|
+
object.fixedFeatures = null;
|
|
41960
44863
|
}
|
|
41961
|
-
if (message.features != null && message.hasOwnProperty("features"))
|
|
41962
|
-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
41963
44864
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
41964
44865
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
44866
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
44867
|
+
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
44868
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
44869
|
+
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
41965
44870
|
return object;
|
|
41966
44871
|
};
|
|
41967
44872
|
|
|
@@ -43176,6 +46081,22 @@
|
|
|
43176
46081
|
return GeneratedCodeInfo;
|
|
43177
46082
|
})();
|
|
43178
46083
|
|
|
46084
|
+
/**
|
|
46085
|
+
* SymbolVisibility enum.
|
|
46086
|
+
* @name google.protobuf.SymbolVisibility
|
|
46087
|
+
* @enum {number}
|
|
46088
|
+
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
46089
|
+
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
46090
|
+
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
46091
|
+
*/
|
|
46092
|
+
protobuf.SymbolVisibility = (function() {
|
|
46093
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
46094
|
+
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
46095
|
+
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
46096
|
+
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
46097
|
+
return values;
|
|
46098
|
+
})();
|
|
46099
|
+
|
|
43179
46100
|
protobuf.Duration = (function() {
|
|
43180
46101
|
|
|
43181
46102
|
/**
|