@google-cloud/pubsub 4.1.1 → 4.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/CHANGELOG.md +14 -0
- package/README.md +10 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +503 -352
- package/build/protos/google/pubsub/v1/schema.proto +2 -2
- package/build/protos/protos.d.ts +521 -30
- package/build/protos/protos.js +1677 -119
- package/build/protos/protos.json +583 -135
- package/build/src/pubsub.d.ts +5 -3
- package/build/src/pubsub.js +8 -6
- package/build/src/pubsub.js.map +1 -1
- package/build/src/schema.d.ts +4 -0
- package/build/src/schema.js +4 -3
- package/build/src/schema.js.map +1 -1
- package/build/src/subscription.d.ts +1 -1
- package/build/src/subscription.js +1 -1
- package/build/src/v1/publisher_client.d.ts +81 -75
- package/build/src/v1/publisher_client.js +36 -36
- package/build/src/v1/publisher_client.js.map +1 -1
- package/build/src/v1/schema_service_client.d.ts +2 -2
- package/build/src/v1/subscriber_client.d.ts +103 -100
- package/build/src/v1/subscriber_client.js +26 -25
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -396,6 +396,7 @@
|
|
|
396
396
|
* @memberof google.pubsub.v1
|
|
397
397
|
* @interface IMessageStoragePolicy
|
|
398
398
|
* @property {Array.<string>|null} [allowedPersistenceRegions] MessageStoragePolicy allowedPersistenceRegions
|
|
399
|
+
* @property {boolean|null} [enforceInTransit] MessageStoragePolicy enforceInTransit
|
|
399
400
|
*/
|
|
400
401
|
|
|
401
402
|
/**
|
|
@@ -422,6 +423,14 @@
|
|
|
422
423
|
*/
|
|
423
424
|
MessageStoragePolicy.prototype.allowedPersistenceRegions = $util.emptyArray;
|
|
424
425
|
|
|
426
|
+
/**
|
|
427
|
+
* MessageStoragePolicy enforceInTransit.
|
|
428
|
+
* @member {boolean} enforceInTransit
|
|
429
|
+
* @memberof google.pubsub.v1.MessageStoragePolicy
|
|
430
|
+
* @instance
|
|
431
|
+
*/
|
|
432
|
+
MessageStoragePolicy.prototype.enforceInTransit = false;
|
|
433
|
+
|
|
425
434
|
/**
|
|
426
435
|
* Creates a new MessageStoragePolicy instance using the specified properties.
|
|
427
436
|
* @function create
|
|
@@ -449,6 +458,8 @@
|
|
|
449
458
|
if (message.allowedPersistenceRegions != null && message.allowedPersistenceRegions.length)
|
|
450
459
|
for (var i = 0; i < message.allowedPersistenceRegions.length; ++i)
|
|
451
460
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedPersistenceRegions[i]);
|
|
461
|
+
if (message.enforceInTransit != null && Object.hasOwnProperty.call(message, "enforceInTransit"))
|
|
462
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enforceInTransit);
|
|
452
463
|
return writer;
|
|
453
464
|
};
|
|
454
465
|
|
|
@@ -489,6 +500,10 @@
|
|
|
489
500
|
message.allowedPersistenceRegions.push(reader.string());
|
|
490
501
|
break;
|
|
491
502
|
}
|
|
503
|
+
case 2: {
|
|
504
|
+
message.enforceInTransit = reader.bool();
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
492
507
|
default:
|
|
493
508
|
reader.skipType(tag & 7);
|
|
494
509
|
break;
|
|
@@ -531,6 +546,9 @@
|
|
|
531
546
|
if (!$util.isString(message.allowedPersistenceRegions[i]))
|
|
532
547
|
return "allowedPersistenceRegions: string[] expected";
|
|
533
548
|
}
|
|
549
|
+
if (message.enforceInTransit != null && message.hasOwnProperty("enforceInTransit"))
|
|
550
|
+
if (typeof message.enforceInTransit !== "boolean")
|
|
551
|
+
return "enforceInTransit: boolean expected";
|
|
534
552
|
return null;
|
|
535
553
|
};
|
|
536
554
|
|
|
@@ -553,6 +571,8 @@
|
|
|
553
571
|
for (var i = 0; i < object.allowedPersistenceRegions.length; ++i)
|
|
554
572
|
message.allowedPersistenceRegions[i] = String(object.allowedPersistenceRegions[i]);
|
|
555
573
|
}
|
|
574
|
+
if (object.enforceInTransit != null)
|
|
575
|
+
message.enforceInTransit = Boolean(object.enforceInTransit);
|
|
556
576
|
return message;
|
|
557
577
|
};
|
|
558
578
|
|
|
@@ -571,11 +591,15 @@
|
|
|
571
591
|
var object = {};
|
|
572
592
|
if (options.arrays || options.defaults)
|
|
573
593
|
object.allowedPersistenceRegions = [];
|
|
594
|
+
if (options.defaults)
|
|
595
|
+
object.enforceInTransit = false;
|
|
574
596
|
if (message.allowedPersistenceRegions && message.allowedPersistenceRegions.length) {
|
|
575
597
|
object.allowedPersistenceRegions = [];
|
|
576
598
|
for (var j = 0; j < message.allowedPersistenceRegions.length; ++j)
|
|
577
599
|
object.allowedPersistenceRegions[j] = message.allowedPersistenceRegions[j];
|
|
578
600
|
}
|
|
601
|
+
if (message.enforceInTransit != null && message.hasOwnProperty("enforceInTransit"))
|
|
602
|
+
object.enforceInTransit = message.enforceInTransit;
|
|
579
603
|
return object;
|
|
580
604
|
};
|
|
581
605
|
|
|
@@ -905,6 +929,590 @@
|
|
|
905
929
|
return SchemaSettings;
|
|
906
930
|
})();
|
|
907
931
|
|
|
932
|
+
v1.IngestionDataSourceSettings = (function() {
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Properties of an IngestionDataSourceSettings.
|
|
936
|
+
* @memberof google.pubsub.v1
|
|
937
|
+
* @interface IIngestionDataSourceSettings
|
|
938
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis|null} [awsKinesis] IngestionDataSourceSettings awsKinesis
|
|
939
|
+
*/
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Constructs a new IngestionDataSourceSettings.
|
|
943
|
+
* @memberof google.pubsub.v1
|
|
944
|
+
* @classdesc Represents an IngestionDataSourceSettings.
|
|
945
|
+
* @implements IIngestionDataSourceSettings
|
|
946
|
+
* @constructor
|
|
947
|
+
* @param {google.pubsub.v1.IIngestionDataSourceSettings=} [properties] Properties to set
|
|
948
|
+
*/
|
|
949
|
+
function IngestionDataSourceSettings(properties) {
|
|
950
|
+
if (properties)
|
|
951
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
952
|
+
if (properties[keys[i]] != null)
|
|
953
|
+
this[keys[i]] = properties[keys[i]];
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* IngestionDataSourceSettings awsKinesis.
|
|
958
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis|null|undefined} awsKinesis
|
|
959
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
960
|
+
* @instance
|
|
961
|
+
*/
|
|
962
|
+
IngestionDataSourceSettings.prototype.awsKinesis = null;
|
|
963
|
+
|
|
964
|
+
// OneOf field names bound to virtual getters and setters
|
|
965
|
+
var $oneOfFields;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* IngestionDataSourceSettings source.
|
|
969
|
+
* @member {"awsKinesis"|undefined} source
|
|
970
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
971
|
+
* @instance
|
|
972
|
+
*/
|
|
973
|
+
Object.defineProperty(IngestionDataSourceSettings.prototype, "source", {
|
|
974
|
+
get: $util.oneOfGetter($oneOfFields = ["awsKinesis"]),
|
|
975
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Creates a new IngestionDataSourceSettings instance using the specified properties.
|
|
980
|
+
* @function create
|
|
981
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
982
|
+
* @static
|
|
983
|
+
* @param {google.pubsub.v1.IIngestionDataSourceSettings=} [properties] Properties to set
|
|
984
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings} IngestionDataSourceSettings instance
|
|
985
|
+
*/
|
|
986
|
+
IngestionDataSourceSettings.create = function create(properties) {
|
|
987
|
+
return new IngestionDataSourceSettings(properties);
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Encodes the specified IngestionDataSourceSettings message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.verify|verify} messages.
|
|
992
|
+
* @function encode
|
|
993
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
994
|
+
* @static
|
|
995
|
+
* @param {google.pubsub.v1.IIngestionDataSourceSettings} message IngestionDataSourceSettings message or plain object to encode
|
|
996
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
997
|
+
* @returns {$protobuf.Writer} Writer
|
|
998
|
+
*/
|
|
999
|
+
IngestionDataSourceSettings.encode = function encode(message, writer) {
|
|
1000
|
+
if (!writer)
|
|
1001
|
+
writer = $Writer.create();
|
|
1002
|
+
if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis"))
|
|
1003
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.encode(message.awsKinesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1004
|
+
return writer;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Encodes the specified IngestionDataSourceSettings message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.verify|verify} messages.
|
|
1009
|
+
* @function encodeDelimited
|
|
1010
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1011
|
+
* @static
|
|
1012
|
+
* @param {google.pubsub.v1.IIngestionDataSourceSettings} message IngestionDataSourceSettings message or plain object to encode
|
|
1013
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1014
|
+
* @returns {$protobuf.Writer} Writer
|
|
1015
|
+
*/
|
|
1016
|
+
IngestionDataSourceSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1017
|
+
return this.encode(message, writer).ldelim();
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Decodes an IngestionDataSourceSettings message from the specified reader or buffer.
|
|
1022
|
+
* @function decode
|
|
1023
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1024
|
+
* @static
|
|
1025
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1026
|
+
* @param {number} [length] Message length if known beforehand
|
|
1027
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings} IngestionDataSourceSettings
|
|
1028
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1029
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1030
|
+
*/
|
|
1031
|
+
IngestionDataSourceSettings.decode = function decode(reader, length) {
|
|
1032
|
+
if (!(reader instanceof $Reader))
|
|
1033
|
+
reader = $Reader.create(reader);
|
|
1034
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings();
|
|
1035
|
+
while (reader.pos < end) {
|
|
1036
|
+
var tag = reader.uint32();
|
|
1037
|
+
switch (tag >>> 3) {
|
|
1038
|
+
case 1: {
|
|
1039
|
+
message.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.decode(reader, reader.uint32());
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
default:
|
|
1043
|
+
reader.skipType(tag & 7);
|
|
1044
|
+
break;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
return message;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Decodes an IngestionDataSourceSettings message from the specified reader or buffer, length delimited.
|
|
1052
|
+
* @function decodeDelimited
|
|
1053
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1054
|
+
* @static
|
|
1055
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1056
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings} IngestionDataSourceSettings
|
|
1057
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1058
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1059
|
+
*/
|
|
1060
|
+
IngestionDataSourceSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
1061
|
+
if (!(reader instanceof $Reader))
|
|
1062
|
+
reader = new $Reader(reader);
|
|
1063
|
+
return this.decode(reader, reader.uint32());
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Verifies an IngestionDataSourceSettings message.
|
|
1068
|
+
* @function verify
|
|
1069
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1070
|
+
* @static
|
|
1071
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1072
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1073
|
+
*/
|
|
1074
|
+
IngestionDataSourceSettings.verify = function verify(message) {
|
|
1075
|
+
if (typeof message !== "object" || message === null)
|
|
1076
|
+
return "object expected";
|
|
1077
|
+
var properties = {};
|
|
1078
|
+
if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) {
|
|
1079
|
+
properties.source = 1;
|
|
1080
|
+
{
|
|
1081
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.verify(message.awsKinesis);
|
|
1082
|
+
if (error)
|
|
1083
|
+
return "awsKinesis." + error;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
return null;
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Creates an IngestionDataSourceSettings message from a plain object. Also converts values to their respective internal types.
|
|
1091
|
+
* @function fromObject
|
|
1092
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1093
|
+
* @static
|
|
1094
|
+
* @param {Object.<string,*>} object Plain object
|
|
1095
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings} IngestionDataSourceSettings
|
|
1096
|
+
*/
|
|
1097
|
+
IngestionDataSourceSettings.fromObject = function fromObject(object) {
|
|
1098
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings)
|
|
1099
|
+
return object;
|
|
1100
|
+
var message = new $root.google.pubsub.v1.IngestionDataSourceSettings();
|
|
1101
|
+
if (object.awsKinesis != null) {
|
|
1102
|
+
if (typeof object.awsKinesis !== "object")
|
|
1103
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.awsKinesis: object expected");
|
|
1104
|
+
message.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.fromObject(object.awsKinesis);
|
|
1105
|
+
}
|
|
1106
|
+
return message;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Creates a plain object from an IngestionDataSourceSettings message. Also converts values to other types if specified.
|
|
1111
|
+
* @function toObject
|
|
1112
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1113
|
+
* @static
|
|
1114
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings} message IngestionDataSourceSettings
|
|
1115
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1116
|
+
* @returns {Object.<string,*>} Plain object
|
|
1117
|
+
*/
|
|
1118
|
+
IngestionDataSourceSettings.toObject = function toObject(message, options) {
|
|
1119
|
+
if (!options)
|
|
1120
|
+
options = {};
|
|
1121
|
+
var object = {};
|
|
1122
|
+
if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) {
|
|
1123
|
+
object.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.toObject(message.awsKinesis, options);
|
|
1124
|
+
if (options.oneofs)
|
|
1125
|
+
object.source = "awsKinesis";
|
|
1126
|
+
}
|
|
1127
|
+
return object;
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Converts this IngestionDataSourceSettings to JSON.
|
|
1132
|
+
* @function toJSON
|
|
1133
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1134
|
+
* @instance
|
|
1135
|
+
* @returns {Object.<string,*>} JSON object
|
|
1136
|
+
*/
|
|
1137
|
+
IngestionDataSourceSettings.prototype.toJSON = function toJSON() {
|
|
1138
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Gets the default type url for IngestionDataSourceSettings
|
|
1143
|
+
* @function getTypeUrl
|
|
1144
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1145
|
+
* @static
|
|
1146
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1147
|
+
* @returns {string} The default type url
|
|
1148
|
+
*/
|
|
1149
|
+
IngestionDataSourceSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1150
|
+
if (typeUrlPrefix === undefined) {
|
|
1151
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1152
|
+
}
|
|
1153
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings";
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
IngestionDataSourceSettings.AwsKinesis = (function() {
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Properties of an AwsKinesis.
|
|
1160
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1161
|
+
* @interface IAwsKinesis
|
|
1162
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State|null} [state] AwsKinesis state
|
|
1163
|
+
* @property {string|null} [streamArn] AwsKinesis streamArn
|
|
1164
|
+
* @property {string|null} [consumerArn] AwsKinesis consumerArn
|
|
1165
|
+
* @property {string|null} [awsRoleArn] AwsKinesis awsRoleArn
|
|
1166
|
+
* @property {string|null} [gcpServiceAccount] AwsKinesis gcpServiceAccount
|
|
1167
|
+
*/
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Constructs a new AwsKinesis.
|
|
1171
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1172
|
+
* @classdesc Represents an AwsKinesis.
|
|
1173
|
+
* @implements IAwsKinesis
|
|
1174
|
+
* @constructor
|
|
1175
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis=} [properties] Properties to set
|
|
1176
|
+
*/
|
|
1177
|
+
function AwsKinesis(properties) {
|
|
1178
|
+
if (properties)
|
|
1179
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1180
|
+
if (properties[keys[i]] != null)
|
|
1181
|
+
this[keys[i]] = properties[keys[i]];
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* AwsKinesis state.
|
|
1186
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} state
|
|
1187
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1188
|
+
* @instance
|
|
1189
|
+
*/
|
|
1190
|
+
AwsKinesis.prototype.state = 0;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* AwsKinesis streamArn.
|
|
1194
|
+
* @member {string} streamArn
|
|
1195
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1196
|
+
* @instance
|
|
1197
|
+
*/
|
|
1198
|
+
AwsKinesis.prototype.streamArn = "";
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* AwsKinesis consumerArn.
|
|
1202
|
+
* @member {string} consumerArn
|
|
1203
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1204
|
+
* @instance
|
|
1205
|
+
*/
|
|
1206
|
+
AwsKinesis.prototype.consumerArn = "";
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* AwsKinesis awsRoleArn.
|
|
1210
|
+
* @member {string} awsRoleArn
|
|
1211
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1212
|
+
* @instance
|
|
1213
|
+
*/
|
|
1214
|
+
AwsKinesis.prototype.awsRoleArn = "";
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* AwsKinesis gcpServiceAccount.
|
|
1218
|
+
* @member {string} gcpServiceAccount
|
|
1219
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1220
|
+
* @instance
|
|
1221
|
+
*/
|
|
1222
|
+
AwsKinesis.prototype.gcpServiceAccount = "";
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Creates a new AwsKinesis instance using the specified properties.
|
|
1226
|
+
* @function create
|
|
1227
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1228
|
+
* @static
|
|
1229
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis=} [properties] Properties to set
|
|
1230
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} AwsKinesis instance
|
|
1231
|
+
*/
|
|
1232
|
+
AwsKinesis.create = function create(properties) {
|
|
1233
|
+
return new AwsKinesis(properties);
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Encodes the specified AwsKinesis message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.verify|verify} messages.
|
|
1238
|
+
* @function encode
|
|
1239
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1240
|
+
* @static
|
|
1241
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis} message AwsKinesis message or plain object to encode
|
|
1242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1243
|
+
* @returns {$protobuf.Writer} Writer
|
|
1244
|
+
*/
|
|
1245
|
+
AwsKinesis.encode = function encode(message, writer) {
|
|
1246
|
+
if (!writer)
|
|
1247
|
+
writer = $Writer.create();
|
|
1248
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
1249
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
|
|
1250
|
+
if (message.streamArn != null && Object.hasOwnProperty.call(message, "streamArn"))
|
|
1251
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.streamArn);
|
|
1252
|
+
if (message.consumerArn != null && Object.hasOwnProperty.call(message, "consumerArn"))
|
|
1253
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.consumerArn);
|
|
1254
|
+
if (message.awsRoleArn != null && Object.hasOwnProperty.call(message, "awsRoleArn"))
|
|
1255
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsRoleArn);
|
|
1256
|
+
if (message.gcpServiceAccount != null && Object.hasOwnProperty.call(message, "gcpServiceAccount"))
|
|
1257
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.gcpServiceAccount);
|
|
1258
|
+
return writer;
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Encodes the specified AwsKinesis message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.verify|verify} messages.
|
|
1263
|
+
* @function encodeDelimited
|
|
1264
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1265
|
+
* @static
|
|
1266
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis} message AwsKinesis message or plain object to encode
|
|
1267
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1268
|
+
* @returns {$protobuf.Writer} Writer
|
|
1269
|
+
*/
|
|
1270
|
+
AwsKinesis.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1271
|
+
return this.encode(message, writer).ldelim();
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Decodes an AwsKinesis message from the specified reader or buffer.
|
|
1276
|
+
* @function decode
|
|
1277
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1278
|
+
* @static
|
|
1279
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1280
|
+
* @param {number} [length] Message length if known beforehand
|
|
1281
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} AwsKinesis
|
|
1282
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1283
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1284
|
+
*/
|
|
1285
|
+
AwsKinesis.decode = function decode(reader, length) {
|
|
1286
|
+
if (!(reader instanceof $Reader))
|
|
1287
|
+
reader = $Reader.create(reader);
|
|
1288
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis();
|
|
1289
|
+
while (reader.pos < end) {
|
|
1290
|
+
var tag = reader.uint32();
|
|
1291
|
+
switch (tag >>> 3) {
|
|
1292
|
+
case 1: {
|
|
1293
|
+
message.state = reader.int32();
|
|
1294
|
+
break;
|
|
1295
|
+
}
|
|
1296
|
+
case 2: {
|
|
1297
|
+
message.streamArn = reader.string();
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
case 3: {
|
|
1301
|
+
message.consumerArn = reader.string();
|
|
1302
|
+
break;
|
|
1303
|
+
}
|
|
1304
|
+
case 4: {
|
|
1305
|
+
message.awsRoleArn = reader.string();
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
case 5: {
|
|
1309
|
+
message.gcpServiceAccount = reader.string();
|
|
1310
|
+
break;
|
|
1311
|
+
}
|
|
1312
|
+
default:
|
|
1313
|
+
reader.skipType(tag & 7);
|
|
1314
|
+
break;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return message;
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Decodes an AwsKinesis message from the specified reader or buffer, length delimited.
|
|
1322
|
+
* @function decodeDelimited
|
|
1323
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1324
|
+
* @static
|
|
1325
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1326
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} AwsKinesis
|
|
1327
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1328
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1329
|
+
*/
|
|
1330
|
+
AwsKinesis.decodeDelimited = function decodeDelimited(reader) {
|
|
1331
|
+
if (!(reader instanceof $Reader))
|
|
1332
|
+
reader = new $Reader(reader);
|
|
1333
|
+
return this.decode(reader, reader.uint32());
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Verifies an AwsKinesis message.
|
|
1338
|
+
* @function verify
|
|
1339
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1340
|
+
* @static
|
|
1341
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1342
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1343
|
+
*/
|
|
1344
|
+
AwsKinesis.verify = function verify(message) {
|
|
1345
|
+
if (typeof message !== "object" || message === null)
|
|
1346
|
+
return "object expected";
|
|
1347
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1348
|
+
switch (message.state) {
|
|
1349
|
+
default:
|
|
1350
|
+
return "state: enum value expected";
|
|
1351
|
+
case 0:
|
|
1352
|
+
case 1:
|
|
1353
|
+
case 2:
|
|
1354
|
+
case 3:
|
|
1355
|
+
case 4:
|
|
1356
|
+
case 5:
|
|
1357
|
+
break;
|
|
1358
|
+
}
|
|
1359
|
+
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
1360
|
+
if (!$util.isString(message.streamArn))
|
|
1361
|
+
return "streamArn: string expected";
|
|
1362
|
+
if (message.consumerArn != null && message.hasOwnProperty("consumerArn"))
|
|
1363
|
+
if (!$util.isString(message.consumerArn))
|
|
1364
|
+
return "consumerArn: string expected";
|
|
1365
|
+
if (message.awsRoleArn != null && message.hasOwnProperty("awsRoleArn"))
|
|
1366
|
+
if (!$util.isString(message.awsRoleArn))
|
|
1367
|
+
return "awsRoleArn: string expected";
|
|
1368
|
+
if (message.gcpServiceAccount != null && message.hasOwnProperty("gcpServiceAccount"))
|
|
1369
|
+
if (!$util.isString(message.gcpServiceAccount))
|
|
1370
|
+
return "gcpServiceAccount: string expected";
|
|
1371
|
+
return null;
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Creates an AwsKinesis message from a plain object. Also converts values to their respective internal types.
|
|
1376
|
+
* @function fromObject
|
|
1377
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1378
|
+
* @static
|
|
1379
|
+
* @param {Object.<string,*>} object Plain object
|
|
1380
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} AwsKinesis
|
|
1381
|
+
*/
|
|
1382
|
+
AwsKinesis.fromObject = function fromObject(object) {
|
|
1383
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)
|
|
1384
|
+
return object;
|
|
1385
|
+
var message = new $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis();
|
|
1386
|
+
switch (object.state) {
|
|
1387
|
+
default:
|
|
1388
|
+
if (typeof object.state === "number") {
|
|
1389
|
+
message.state = object.state;
|
|
1390
|
+
break;
|
|
1391
|
+
}
|
|
1392
|
+
break;
|
|
1393
|
+
case "STATE_UNSPECIFIED":
|
|
1394
|
+
case 0:
|
|
1395
|
+
message.state = 0;
|
|
1396
|
+
break;
|
|
1397
|
+
case "ACTIVE":
|
|
1398
|
+
case 1:
|
|
1399
|
+
message.state = 1;
|
|
1400
|
+
break;
|
|
1401
|
+
case "KINESIS_PERMISSION_DENIED":
|
|
1402
|
+
case 2:
|
|
1403
|
+
message.state = 2;
|
|
1404
|
+
break;
|
|
1405
|
+
case "PUBLISH_PERMISSION_DENIED":
|
|
1406
|
+
case 3:
|
|
1407
|
+
message.state = 3;
|
|
1408
|
+
break;
|
|
1409
|
+
case "STREAM_NOT_FOUND":
|
|
1410
|
+
case 4:
|
|
1411
|
+
message.state = 4;
|
|
1412
|
+
break;
|
|
1413
|
+
case "CONSUMER_NOT_FOUND":
|
|
1414
|
+
case 5:
|
|
1415
|
+
message.state = 5;
|
|
1416
|
+
break;
|
|
1417
|
+
}
|
|
1418
|
+
if (object.streamArn != null)
|
|
1419
|
+
message.streamArn = String(object.streamArn);
|
|
1420
|
+
if (object.consumerArn != null)
|
|
1421
|
+
message.consumerArn = String(object.consumerArn);
|
|
1422
|
+
if (object.awsRoleArn != null)
|
|
1423
|
+
message.awsRoleArn = String(object.awsRoleArn);
|
|
1424
|
+
if (object.gcpServiceAccount != null)
|
|
1425
|
+
message.gcpServiceAccount = String(object.gcpServiceAccount);
|
|
1426
|
+
return message;
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Creates a plain object from an AwsKinesis message. Also converts values to other types if specified.
|
|
1431
|
+
* @function toObject
|
|
1432
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1433
|
+
* @static
|
|
1434
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} message AwsKinesis
|
|
1435
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1436
|
+
* @returns {Object.<string,*>} Plain object
|
|
1437
|
+
*/
|
|
1438
|
+
AwsKinesis.toObject = function toObject(message, options) {
|
|
1439
|
+
if (!options)
|
|
1440
|
+
options = {};
|
|
1441
|
+
var object = {};
|
|
1442
|
+
if (options.defaults) {
|
|
1443
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
1444
|
+
object.streamArn = "";
|
|
1445
|
+
object.consumerArn = "";
|
|
1446
|
+
object.awsRoleArn = "";
|
|
1447
|
+
object.gcpServiceAccount = "";
|
|
1448
|
+
}
|
|
1449
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1450
|
+
object.state = options.enums === String ? $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] : message.state;
|
|
1451
|
+
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
1452
|
+
object.streamArn = message.streamArn;
|
|
1453
|
+
if (message.consumerArn != null && message.hasOwnProperty("consumerArn"))
|
|
1454
|
+
object.consumerArn = message.consumerArn;
|
|
1455
|
+
if (message.awsRoleArn != null && message.hasOwnProperty("awsRoleArn"))
|
|
1456
|
+
object.awsRoleArn = message.awsRoleArn;
|
|
1457
|
+
if (message.gcpServiceAccount != null && message.hasOwnProperty("gcpServiceAccount"))
|
|
1458
|
+
object.gcpServiceAccount = message.gcpServiceAccount;
|
|
1459
|
+
return object;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Converts this AwsKinesis to JSON.
|
|
1464
|
+
* @function toJSON
|
|
1465
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1466
|
+
* @instance
|
|
1467
|
+
* @returns {Object.<string,*>} JSON object
|
|
1468
|
+
*/
|
|
1469
|
+
AwsKinesis.prototype.toJSON = function toJSON() {
|
|
1470
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Gets the default type url for AwsKinesis
|
|
1475
|
+
* @function getTypeUrl
|
|
1476
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1477
|
+
* @static
|
|
1478
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1479
|
+
* @returns {string} The default type url
|
|
1480
|
+
*/
|
|
1481
|
+
AwsKinesis.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1482
|
+
if (typeUrlPrefix === undefined) {
|
|
1483
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1484
|
+
}
|
|
1485
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis";
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* State enum.
|
|
1490
|
+
* @name google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State
|
|
1491
|
+
* @enum {number}
|
|
1492
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
1493
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
1494
|
+
* @property {number} KINESIS_PERMISSION_DENIED=2 KINESIS_PERMISSION_DENIED value
|
|
1495
|
+
* @property {number} PUBLISH_PERMISSION_DENIED=3 PUBLISH_PERMISSION_DENIED value
|
|
1496
|
+
* @property {number} STREAM_NOT_FOUND=4 STREAM_NOT_FOUND value
|
|
1497
|
+
* @property {number} CONSUMER_NOT_FOUND=5 CONSUMER_NOT_FOUND value
|
|
1498
|
+
*/
|
|
1499
|
+
AwsKinesis.State = (function() {
|
|
1500
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
1501
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
1502
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
1503
|
+
values[valuesById[2] = "KINESIS_PERMISSION_DENIED"] = 2;
|
|
1504
|
+
values[valuesById[3] = "PUBLISH_PERMISSION_DENIED"] = 3;
|
|
1505
|
+
values[valuesById[4] = "STREAM_NOT_FOUND"] = 4;
|
|
1506
|
+
values[valuesById[5] = "CONSUMER_NOT_FOUND"] = 5;
|
|
1507
|
+
return values;
|
|
1508
|
+
})();
|
|
1509
|
+
|
|
1510
|
+
return AwsKinesis;
|
|
1511
|
+
})();
|
|
1512
|
+
|
|
1513
|
+
return IngestionDataSourceSettings;
|
|
1514
|
+
})();
|
|
1515
|
+
|
|
908
1516
|
v1.Topic = (function() {
|
|
909
1517
|
|
|
910
1518
|
/**
|
|
@@ -918,6 +1526,8 @@
|
|
|
918
1526
|
* @property {google.pubsub.v1.ISchemaSettings|null} [schemaSettings] Topic schemaSettings
|
|
919
1527
|
* @property {boolean|null} [satisfiesPzs] Topic satisfiesPzs
|
|
920
1528
|
* @property {google.protobuf.IDuration|null} [messageRetentionDuration] Topic messageRetentionDuration
|
|
1529
|
+
* @property {google.pubsub.v1.Topic.State|null} [state] Topic state
|
|
1530
|
+
* @property {google.pubsub.v1.IIngestionDataSourceSettings|null} [ingestionDataSourceSettings] Topic ingestionDataSourceSettings
|
|
921
1531
|
*/
|
|
922
1532
|
|
|
923
1533
|
/**
|
|
@@ -992,6 +1602,22 @@
|
|
|
992
1602
|
*/
|
|
993
1603
|
Topic.prototype.messageRetentionDuration = null;
|
|
994
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* Topic state.
|
|
1607
|
+
* @member {google.pubsub.v1.Topic.State} state
|
|
1608
|
+
* @memberof google.pubsub.v1.Topic
|
|
1609
|
+
* @instance
|
|
1610
|
+
*/
|
|
1611
|
+
Topic.prototype.state = 0;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Topic ingestionDataSourceSettings.
|
|
1615
|
+
* @member {google.pubsub.v1.IIngestionDataSourceSettings|null|undefined} ingestionDataSourceSettings
|
|
1616
|
+
* @memberof google.pubsub.v1.Topic
|
|
1617
|
+
* @instance
|
|
1618
|
+
*/
|
|
1619
|
+
Topic.prototype.ingestionDataSourceSettings = null;
|
|
1620
|
+
|
|
995
1621
|
/**
|
|
996
1622
|
* Creates a new Topic instance using the specified properties.
|
|
997
1623
|
* @function create
|
|
@@ -1031,6 +1657,10 @@
|
|
|
1031
1657
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.satisfiesPzs);
|
|
1032
1658
|
if (message.messageRetentionDuration != null && Object.hasOwnProperty.call(message, "messageRetentionDuration"))
|
|
1033
1659
|
$root.google.protobuf.Duration.encode(message.messageRetentionDuration, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
1660
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
1661
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state);
|
|
1662
|
+
if (message.ingestionDataSourceSettings != null && Object.hasOwnProperty.call(message, "ingestionDataSourceSettings"))
|
|
1663
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.encode(message.ingestionDataSourceSettings, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
1034
1664
|
return writer;
|
|
1035
1665
|
};
|
|
1036
1666
|
|
|
@@ -1112,6 +1742,14 @@
|
|
|
1112
1742
|
message.messageRetentionDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
1113
1743
|
break;
|
|
1114
1744
|
}
|
|
1745
|
+
case 9: {
|
|
1746
|
+
message.state = reader.int32();
|
|
1747
|
+
break;
|
|
1748
|
+
}
|
|
1749
|
+
case 10: {
|
|
1750
|
+
message.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.decode(reader, reader.uint32());
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1115
1753
|
default:
|
|
1116
1754
|
reader.skipType(tag & 7);
|
|
1117
1755
|
break;
|
|
@@ -1179,6 +1817,20 @@
|
|
|
1179
1817
|
if (error)
|
|
1180
1818
|
return "messageRetentionDuration." + error;
|
|
1181
1819
|
}
|
|
1820
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1821
|
+
switch (message.state) {
|
|
1822
|
+
default:
|
|
1823
|
+
return "state: enum value expected";
|
|
1824
|
+
case 0:
|
|
1825
|
+
case 1:
|
|
1826
|
+
case 2:
|
|
1827
|
+
break;
|
|
1828
|
+
}
|
|
1829
|
+
if (message.ingestionDataSourceSettings != null && message.hasOwnProperty("ingestionDataSourceSettings")) {
|
|
1830
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.verify(message.ingestionDataSourceSettings);
|
|
1831
|
+
if (error)
|
|
1832
|
+
return "ingestionDataSourceSettings." + error;
|
|
1833
|
+
}
|
|
1182
1834
|
return null;
|
|
1183
1835
|
};
|
|
1184
1836
|
|
|
@@ -1222,6 +1874,31 @@
|
|
|
1222
1874
|
throw TypeError(".google.pubsub.v1.Topic.messageRetentionDuration: object expected");
|
|
1223
1875
|
message.messageRetentionDuration = $root.google.protobuf.Duration.fromObject(object.messageRetentionDuration);
|
|
1224
1876
|
}
|
|
1877
|
+
switch (object.state) {
|
|
1878
|
+
default:
|
|
1879
|
+
if (typeof object.state === "number") {
|
|
1880
|
+
message.state = object.state;
|
|
1881
|
+
break;
|
|
1882
|
+
}
|
|
1883
|
+
break;
|
|
1884
|
+
case "STATE_UNSPECIFIED":
|
|
1885
|
+
case 0:
|
|
1886
|
+
message.state = 0;
|
|
1887
|
+
break;
|
|
1888
|
+
case "ACTIVE":
|
|
1889
|
+
case 1:
|
|
1890
|
+
message.state = 1;
|
|
1891
|
+
break;
|
|
1892
|
+
case "INGESTION_RESOURCE_ERROR":
|
|
1893
|
+
case 2:
|
|
1894
|
+
message.state = 2;
|
|
1895
|
+
break;
|
|
1896
|
+
}
|
|
1897
|
+
if (object.ingestionDataSourceSettings != null) {
|
|
1898
|
+
if (typeof object.ingestionDataSourceSettings !== "object")
|
|
1899
|
+
throw TypeError(".google.pubsub.v1.Topic.ingestionDataSourceSettings: object expected");
|
|
1900
|
+
message.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.fromObject(object.ingestionDataSourceSettings);
|
|
1901
|
+
}
|
|
1225
1902
|
return message;
|
|
1226
1903
|
};
|
|
1227
1904
|
|
|
@@ -1247,6 +1924,8 @@
|
|
|
1247
1924
|
object.schemaSettings = null;
|
|
1248
1925
|
object.satisfiesPzs = false;
|
|
1249
1926
|
object.messageRetentionDuration = null;
|
|
1927
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
1928
|
+
object.ingestionDataSourceSettings = null;
|
|
1250
1929
|
}
|
|
1251
1930
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
1252
1931
|
object.name = message.name;
|
|
@@ -1266,6 +1945,10 @@
|
|
|
1266
1945
|
object.satisfiesPzs = message.satisfiesPzs;
|
|
1267
1946
|
if (message.messageRetentionDuration != null && message.hasOwnProperty("messageRetentionDuration"))
|
|
1268
1947
|
object.messageRetentionDuration = $root.google.protobuf.Duration.toObject(message.messageRetentionDuration, options);
|
|
1948
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1949
|
+
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;
|
|
1950
|
+
if (message.ingestionDataSourceSettings != null && message.hasOwnProperty("ingestionDataSourceSettings"))
|
|
1951
|
+
object.ingestionDataSourceSettings = $root.google.pubsub.v1.IngestionDataSourceSettings.toObject(message.ingestionDataSourceSettings, options);
|
|
1269
1952
|
return object;
|
|
1270
1953
|
};
|
|
1271
1954
|
|
|
@@ -1295,6 +1978,22 @@
|
|
|
1295
1978
|
return typeUrlPrefix + "/google.pubsub.v1.Topic";
|
|
1296
1979
|
};
|
|
1297
1980
|
|
|
1981
|
+
/**
|
|
1982
|
+
* State enum.
|
|
1983
|
+
* @name google.pubsub.v1.Topic.State
|
|
1984
|
+
* @enum {number}
|
|
1985
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
1986
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
1987
|
+
* @property {number} INGESTION_RESOURCE_ERROR=2 INGESTION_RESOURCE_ERROR value
|
|
1988
|
+
*/
|
|
1989
|
+
Topic.State = (function() {
|
|
1990
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
1991
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
1992
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
1993
|
+
values[valuesById[2] = "INGESTION_RESOURCE_ERROR"] = 2;
|
|
1994
|
+
return values;
|
|
1995
|
+
})();
|
|
1996
|
+
|
|
1298
1997
|
return Topic;
|
|
1299
1998
|
})();
|
|
1300
1999
|
|
|
@@ -7783,6 +8482,7 @@
|
|
|
7783
8482
|
case 2:
|
|
7784
8483
|
case 3:
|
|
7785
8484
|
case 4:
|
|
8485
|
+
case 5:
|
|
7786
8486
|
break;
|
|
7787
8487
|
}
|
|
7788
8488
|
if (message.useTableSchema != null && message.hasOwnProperty("useTableSchema"))
|
|
@@ -7838,6 +8538,10 @@
|
|
|
7838
8538
|
case 4:
|
|
7839
8539
|
message.state = 4;
|
|
7840
8540
|
break;
|
|
8541
|
+
case "IN_TRANSIT_LOCATION_RESTRICTION":
|
|
8542
|
+
case 5:
|
|
8543
|
+
message.state = 5;
|
|
8544
|
+
break;
|
|
7841
8545
|
}
|
|
7842
8546
|
if (object.useTableSchema != null)
|
|
7843
8547
|
message.useTableSchema = Boolean(object.useTableSchema);
|
|
@@ -7915,6 +8619,7 @@
|
|
|
7915
8619
|
* @property {number} PERMISSION_DENIED=2 PERMISSION_DENIED value
|
|
7916
8620
|
* @property {number} NOT_FOUND=3 NOT_FOUND value
|
|
7917
8621
|
* @property {number} SCHEMA_MISMATCH=4 SCHEMA_MISMATCH value
|
|
8622
|
+
* @property {number} IN_TRANSIT_LOCATION_RESTRICTION=5 IN_TRANSIT_LOCATION_RESTRICTION value
|
|
7918
8623
|
*/
|
|
7919
8624
|
BigQueryConfig.State = (function() {
|
|
7920
8625
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -7923,6 +8628,7 @@
|
|
|
7923
8628
|
values[valuesById[2] = "PERMISSION_DENIED"] = 2;
|
|
7924
8629
|
values[valuesById[3] = "NOT_FOUND"] = 3;
|
|
7925
8630
|
values[valuesById[4] = "SCHEMA_MISMATCH"] = 4;
|
|
8631
|
+
values[valuesById[5] = "IN_TRANSIT_LOCATION_RESTRICTION"] = 5;
|
|
7926
8632
|
return values;
|
|
7927
8633
|
})();
|
|
7928
8634
|
|
|
@@ -8223,6 +8929,7 @@
|
|
|
8223
8929
|
case 1:
|
|
8224
8930
|
case 2:
|
|
8225
8931
|
case 3:
|
|
8932
|
+
case 4:
|
|
8226
8933
|
break;
|
|
8227
8934
|
}
|
|
8228
8935
|
return null;
|
|
@@ -8293,6 +9000,10 @@
|
|
|
8293
9000
|
case 3:
|
|
8294
9001
|
message.state = 3;
|
|
8295
9002
|
break;
|
|
9003
|
+
case "IN_TRANSIT_LOCATION_RESTRICTION":
|
|
9004
|
+
case 4:
|
|
9005
|
+
message.state = 4;
|
|
9006
|
+
break;
|
|
8296
9007
|
}
|
|
8297
9008
|
return message;
|
|
8298
9009
|
};
|
|
@@ -8762,6 +9473,7 @@
|
|
|
8762
9473
|
* @property {number} ACTIVE=1 ACTIVE value
|
|
8763
9474
|
* @property {number} PERMISSION_DENIED=2 PERMISSION_DENIED value
|
|
8764
9475
|
* @property {number} NOT_FOUND=3 NOT_FOUND value
|
|
9476
|
+
* @property {number} IN_TRANSIT_LOCATION_RESTRICTION=4 IN_TRANSIT_LOCATION_RESTRICTION value
|
|
8765
9477
|
*/
|
|
8766
9478
|
CloudStorageConfig.State = (function() {
|
|
8767
9479
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -8769,6 +9481,7 @@
|
|
|
8769
9481
|
values[valuesById[1] = "ACTIVE"] = 1;
|
|
8770
9482
|
values[valuesById[2] = "PERMISSION_DENIED"] = 2;
|
|
8771
9483
|
values[valuesById[3] = "NOT_FOUND"] = 3;
|
|
9484
|
+
values[valuesById[4] = "IN_TRANSIT_LOCATION_RESTRICTION"] = 4;
|
|
8772
9485
|
return values;
|
|
8773
9486
|
})();
|
|
8774
9487
|
|
|
@@ -23658,6 +24371,7 @@
|
|
|
23658
24371
|
* @interface IMethodSettings
|
|
23659
24372
|
* @property {string|null} [selector] MethodSettings selector
|
|
23660
24373
|
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
|
24374
|
+
* @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
|
|
23661
24375
|
*/
|
|
23662
24376
|
|
|
23663
24377
|
/**
|
|
@@ -23669,6 +24383,7 @@
|
|
|
23669
24383
|
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
23670
24384
|
*/
|
|
23671
24385
|
function MethodSettings(properties) {
|
|
24386
|
+
this.autoPopulatedFields = [];
|
|
23672
24387
|
if (properties)
|
|
23673
24388
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23674
24389
|
if (properties[keys[i]] != null)
|
|
@@ -23691,6 +24406,14 @@
|
|
|
23691
24406
|
*/
|
|
23692
24407
|
MethodSettings.prototype.longRunning = null;
|
|
23693
24408
|
|
|
24409
|
+
/**
|
|
24410
|
+
* MethodSettings autoPopulatedFields.
|
|
24411
|
+
* @member {Array.<string>} autoPopulatedFields
|
|
24412
|
+
* @memberof google.api.MethodSettings
|
|
24413
|
+
* @instance
|
|
24414
|
+
*/
|
|
24415
|
+
MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
|
|
24416
|
+
|
|
23694
24417
|
/**
|
|
23695
24418
|
* Creates a new MethodSettings instance using the specified properties.
|
|
23696
24419
|
* @function create
|
|
@@ -23719,6 +24442,9 @@
|
|
|
23719
24442
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
23720
24443
|
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
|
23721
24444
|
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24445
|
+
if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
|
|
24446
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
24447
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
|
|
23722
24448
|
return writer;
|
|
23723
24449
|
};
|
|
23724
24450
|
|
|
@@ -23761,6 +24487,12 @@
|
|
|
23761
24487
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
|
23762
24488
|
break;
|
|
23763
24489
|
}
|
|
24490
|
+
case 3: {
|
|
24491
|
+
if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
|
|
24492
|
+
message.autoPopulatedFields = [];
|
|
24493
|
+
message.autoPopulatedFields.push(reader.string());
|
|
24494
|
+
break;
|
|
24495
|
+
}
|
|
23764
24496
|
default:
|
|
23765
24497
|
reader.skipType(tag & 7);
|
|
23766
24498
|
break;
|
|
@@ -23804,6 +24536,13 @@
|
|
|
23804
24536
|
if (error)
|
|
23805
24537
|
return "longRunning." + error;
|
|
23806
24538
|
}
|
|
24539
|
+
if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
|
|
24540
|
+
if (!Array.isArray(message.autoPopulatedFields))
|
|
24541
|
+
return "autoPopulatedFields: array expected";
|
|
24542
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
24543
|
+
if (!$util.isString(message.autoPopulatedFields[i]))
|
|
24544
|
+
return "autoPopulatedFields: string[] expected";
|
|
24545
|
+
}
|
|
23807
24546
|
return null;
|
|
23808
24547
|
};
|
|
23809
24548
|
|
|
@@ -23826,6 +24565,13 @@
|
|
|
23826
24565
|
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
|
23827
24566
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
|
23828
24567
|
}
|
|
24568
|
+
if (object.autoPopulatedFields) {
|
|
24569
|
+
if (!Array.isArray(object.autoPopulatedFields))
|
|
24570
|
+
throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
|
|
24571
|
+
message.autoPopulatedFields = [];
|
|
24572
|
+
for (var i = 0; i < object.autoPopulatedFields.length; ++i)
|
|
24573
|
+
message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
|
|
24574
|
+
}
|
|
23829
24575
|
return message;
|
|
23830
24576
|
};
|
|
23831
24577
|
|
|
@@ -23842,6 +24588,8 @@
|
|
|
23842
24588
|
if (!options)
|
|
23843
24589
|
options = {};
|
|
23844
24590
|
var object = {};
|
|
24591
|
+
if (options.arrays || options.defaults)
|
|
24592
|
+
object.autoPopulatedFields = [];
|
|
23845
24593
|
if (options.defaults) {
|
|
23846
24594
|
object.selector = "";
|
|
23847
24595
|
object.longRunning = null;
|
|
@@ -23850,6 +24598,11 @@
|
|
|
23850
24598
|
object.selector = message.selector;
|
|
23851
24599
|
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
|
23852
24600
|
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
|
24601
|
+
if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
|
|
24602
|
+
object.autoPopulatedFields = [];
|
|
24603
|
+
for (var j = 0; j < message.autoPopulatedFields.length; ++j)
|
|
24604
|
+
object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
|
|
24605
|
+
}
|
|
23853
24606
|
return object;
|
|
23854
24607
|
};
|
|
23855
24608
|
|
|
@@ -24250,6 +25003,7 @@
|
|
|
24250
25003
|
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
24251
25004
|
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
24252
25005
|
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
25006
|
+
* @property {number} IDENTIFIER=8 IDENTIFIER value
|
|
24253
25007
|
*/
|
|
24254
25008
|
api.FieldBehavior = (function() {
|
|
24255
25009
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -24261,6 +25015,7 @@
|
|
|
24261
25015
|
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
24262
25016
|
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
24263
25017
|
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
25018
|
+
values[valuesById[8] = "IDENTIFIER"] = 8;
|
|
24264
25019
|
return values;
|
|
24265
25020
|
})();
|
|
24266
25021
|
|
|
@@ -25184,6 +25939,38 @@
|
|
|
25184
25939
|
return FileDescriptorSet;
|
|
25185
25940
|
})();
|
|
25186
25941
|
|
|
25942
|
+
/**
|
|
25943
|
+
* Edition enum.
|
|
25944
|
+
* @name google.protobuf.Edition
|
|
25945
|
+
* @enum {number}
|
|
25946
|
+
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
25947
|
+
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
25948
|
+
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
25949
|
+
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
25950
|
+
* @property {number} EDITION_2024=1001 EDITION_2024 value
|
|
25951
|
+
* @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
|
|
25952
|
+
* @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
|
|
25953
|
+
* @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
|
|
25954
|
+
* @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
|
|
25955
|
+
* @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
|
|
25956
|
+
* @property {number} EDITION_MAX=2147483647 EDITION_MAX value
|
|
25957
|
+
*/
|
|
25958
|
+
protobuf.Edition = (function() {
|
|
25959
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
25960
|
+
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
25961
|
+
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
25962
|
+
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
25963
|
+
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
25964
|
+
values[valuesById[1001] = "EDITION_2024"] = 1001;
|
|
25965
|
+
values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
|
|
25966
|
+
values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
|
|
25967
|
+
values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
|
|
25968
|
+
values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
|
|
25969
|
+
values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
|
|
25970
|
+
values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
|
|
25971
|
+
return values;
|
|
25972
|
+
})();
|
|
25973
|
+
|
|
25187
25974
|
protobuf.FileDescriptorProto = (function() {
|
|
25188
25975
|
|
|
25189
25976
|
/**
|
|
@@ -25202,7 +25989,7 @@
|
|
|
25202
25989
|
* @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
|
|
25203
25990
|
* @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
|
|
25204
25991
|
* @property {string|null} [syntax] FileDescriptorProto syntax
|
|
25205
|
-
* @property {
|
|
25992
|
+
* @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
|
|
25206
25993
|
*/
|
|
25207
25994
|
|
|
25208
25995
|
/**
|
|
@@ -25325,11 +26112,11 @@
|
|
|
25325
26112
|
|
|
25326
26113
|
/**
|
|
25327
26114
|
* FileDescriptorProto edition.
|
|
25328
|
-
* @member {
|
|
26115
|
+
* @member {google.protobuf.Edition} edition
|
|
25329
26116
|
* @memberof google.protobuf.FileDescriptorProto
|
|
25330
26117
|
* @instance
|
|
25331
26118
|
*/
|
|
25332
|
-
FileDescriptorProto.prototype.edition =
|
|
26119
|
+
FileDescriptorProto.prototype.edition = 0;
|
|
25333
26120
|
|
|
25334
26121
|
/**
|
|
25335
26122
|
* Creates a new FileDescriptorProto instance using the specified properties.
|
|
@@ -25387,7 +26174,7 @@
|
|
|
25387
26174
|
if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
|
|
25388
26175
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
25389
26176
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
25390
|
-
writer.uint32(/* id
|
|
26177
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
25391
26178
|
return writer;
|
|
25392
26179
|
};
|
|
25393
26180
|
|
|
@@ -25494,8 +26281,8 @@
|
|
|
25494
26281
|
message.syntax = reader.string();
|
|
25495
26282
|
break;
|
|
25496
26283
|
}
|
|
25497
|
-
case
|
|
25498
|
-
message.edition = reader.
|
|
26284
|
+
case 14: {
|
|
26285
|
+
message.edition = reader.int32();
|
|
25499
26286
|
break;
|
|
25500
26287
|
}
|
|
25501
26288
|
default:
|
|
@@ -25610,8 +26397,22 @@
|
|
|
25610
26397
|
if (!$util.isString(message.syntax))
|
|
25611
26398
|
return "syntax: string expected";
|
|
25612
26399
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
25613
|
-
|
|
25614
|
-
|
|
26400
|
+
switch (message.edition) {
|
|
26401
|
+
default:
|
|
26402
|
+
return "edition: enum value expected";
|
|
26403
|
+
case 0:
|
|
26404
|
+
case 998:
|
|
26405
|
+
case 999:
|
|
26406
|
+
case 1000:
|
|
26407
|
+
case 1001:
|
|
26408
|
+
case 1:
|
|
26409
|
+
case 2:
|
|
26410
|
+
case 99997:
|
|
26411
|
+
case 99998:
|
|
26412
|
+
case 99999:
|
|
26413
|
+
case 2147483647:
|
|
26414
|
+
break;
|
|
26415
|
+
}
|
|
25615
26416
|
return null;
|
|
25616
26417
|
};
|
|
25617
26418
|
|
|
@@ -25704,8 +26505,58 @@
|
|
|
25704
26505
|
}
|
|
25705
26506
|
if (object.syntax != null)
|
|
25706
26507
|
message.syntax = String(object.syntax);
|
|
25707
|
-
|
|
25708
|
-
|
|
26508
|
+
switch (object.edition) {
|
|
26509
|
+
default:
|
|
26510
|
+
if (typeof object.edition === "number") {
|
|
26511
|
+
message.edition = object.edition;
|
|
26512
|
+
break;
|
|
26513
|
+
}
|
|
26514
|
+
break;
|
|
26515
|
+
case "EDITION_UNKNOWN":
|
|
26516
|
+
case 0:
|
|
26517
|
+
message.edition = 0;
|
|
26518
|
+
break;
|
|
26519
|
+
case "EDITION_PROTO2":
|
|
26520
|
+
case 998:
|
|
26521
|
+
message.edition = 998;
|
|
26522
|
+
break;
|
|
26523
|
+
case "EDITION_PROTO3":
|
|
26524
|
+
case 999:
|
|
26525
|
+
message.edition = 999;
|
|
26526
|
+
break;
|
|
26527
|
+
case "EDITION_2023":
|
|
26528
|
+
case 1000:
|
|
26529
|
+
message.edition = 1000;
|
|
26530
|
+
break;
|
|
26531
|
+
case "EDITION_2024":
|
|
26532
|
+
case 1001:
|
|
26533
|
+
message.edition = 1001;
|
|
26534
|
+
break;
|
|
26535
|
+
case "EDITION_1_TEST_ONLY":
|
|
26536
|
+
case 1:
|
|
26537
|
+
message.edition = 1;
|
|
26538
|
+
break;
|
|
26539
|
+
case "EDITION_2_TEST_ONLY":
|
|
26540
|
+
case 2:
|
|
26541
|
+
message.edition = 2;
|
|
26542
|
+
break;
|
|
26543
|
+
case "EDITION_99997_TEST_ONLY":
|
|
26544
|
+
case 99997:
|
|
26545
|
+
message.edition = 99997;
|
|
26546
|
+
break;
|
|
26547
|
+
case "EDITION_99998_TEST_ONLY":
|
|
26548
|
+
case 99998:
|
|
26549
|
+
message.edition = 99998;
|
|
26550
|
+
break;
|
|
26551
|
+
case "EDITION_99999_TEST_ONLY":
|
|
26552
|
+
case 99999:
|
|
26553
|
+
message.edition = 99999;
|
|
26554
|
+
break;
|
|
26555
|
+
case "EDITION_MAX":
|
|
26556
|
+
case 2147483647:
|
|
26557
|
+
message.edition = 2147483647;
|
|
26558
|
+
break;
|
|
26559
|
+
}
|
|
25709
26560
|
return message;
|
|
25710
26561
|
};
|
|
25711
26562
|
|
|
@@ -25737,7 +26588,7 @@
|
|
|
25737
26588
|
object.options = null;
|
|
25738
26589
|
object.sourceCodeInfo = null;
|
|
25739
26590
|
object.syntax = "";
|
|
25740
|
-
object.edition = "";
|
|
26591
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
25741
26592
|
}
|
|
25742
26593
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
25743
26594
|
object.name = message.name;
|
|
@@ -25785,7 +26636,7 @@
|
|
|
25785
26636
|
if (message.syntax != null && message.hasOwnProperty("syntax"))
|
|
25786
26637
|
object.syntax = message.syntax;
|
|
25787
26638
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
25788
|
-
object.edition = message.edition;
|
|
26639
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
25789
26640
|
return object;
|
|
25790
26641
|
};
|
|
25791
26642
|
|
|
@@ -27824,8 +28675,8 @@
|
|
|
27824
28675
|
default:
|
|
27825
28676
|
return "label: enum value expected";
|
|
27826
28677
|
case 1:
|
|
27827
|
-
case 2:
|
|
27828
28678
|
case 3:
|
|
28679
|
+
case 2:
|
|
27829
28680
|
break;
|
|
27830
28681
|
}
|
|
27831
28682
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
@@ -27905,14 +28756,14 @@
|
|
|
27905
28756
|
case 1:
|
|
27906
28757
|
message.label = 1;
|
|
27907
28758
|
break;
|
|
27908
|
-
case "LABEL_REQUIRED":
|
|
27909
|
-
case 2:
|
|
27910
|
-
message.label = 2;
|
|
27911
|
-
break;
|
|
27912
28759
|
case "LABEL_REPEATED":
|
|
27913
28760
|
case 3:
|
|
27914
28761
|
message.label = 3;
|
|
27915
28762
|
break;
|
|
28763
|
+
case "LABEL_REQUIRED":
|
|
28764
|
+
case 2:
|
|
28765
|
+
message.label = 2;
|
|
28766
|
+
break;
|
|
27916
28767
|
}
|
|
27917
28768
|
switch (object.type) {
|
|
27918
28769
|
default:
|
|
@@ -28142,14 +28993,14 @@
|
|
|
28142
28993
|
* @name google.protobuf.FieldDescriptorProto.Label
|
|
28143
28994
|
* @enum {number}
|
|
28144
28995
|
* @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value
|
|
28145
|
-
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
|
28146
28996
|
* @property {number} LABEL_REPEATED=3 LABEL_REPEATED value
|
|
28997
|
+
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
|
28147
28998
|
*/
|
|
28148
28999
|
FieldDescriptorProto.Label = (function() {
|
|
28149
29000
|
var valuesById = {}, values = Object.create(valuesById);
|
|
28150
29001
|
values[valuesById[1] = "LABEL_OPTIONAL"] = 1;
|
|
28151
|
-
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
|
28152
29002
|
values[valuesById[3] = "LABEL_REPEATED"] = 3;
|
|
29003
|
+
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
|
28153
29004
|
return values;
|
|
28154
29005
|
})();
|
|
28155
29006
|
|
|
@@ -29848,7 +30699,6 @@
|
|
|
29848
30699
|
* @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices
|
|
29849
30700
|
* @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices
|
|
29850
30701
|
* @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices
|
|
29851
|
-
* @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices
|
|
29852
30702
|
* @property {boolean|null} [deprecated] FileOptions deprecated
|
|
29853
30703
|
* @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas
|
|
29854
30704
|
* @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix
|
|
@@ -29960,14 +30810,6 @@
|
|
|
29960
30810
|
*/
|
|
29961
30811
|
FileOptions.prototype.pyGenericServices = false;
|
|
29962
30812
|
|
|
29963
|
-
/**
|
|
29964
|
-
* FileOptions phpGenericServices.
|
|
29965
|
-
* @member {boolean} phpGenericServices
|
|
29966
|
-
* @memberof google.protobuf.FileOptions
|
|
29967
|
-
* @instance
|
|
29968
|
-
*/
|
|
29969
|
-
FileOptions.prototype.phpGenericServices = false;
|
|
29970
|
-
|
|
29971
30813
|
/**
|
|
29972
30814
|
* FileOptions deprecated.
|
|
29973
30815
|
* @member {boolean} deprecated
|
|
@@ -30122,8 +30964,6 @@
|
|
|
30122
30964
|
writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix);
|
|
30123
30965
|
if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace"))
|
|
30124
30966
|
writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace);
|
|
30125
|
-
if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices"))
|
|
30126
|
-
writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices);
|
|
30127
30967
|
if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace"))
|
|
30128
30968
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
|
|
30129
30969
|
if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
|
|
@@ -30210,10 +31050,6 @@
|
|
|
30210
31050
|
message.pyGenericServices = reader.bool();
|
|
30211
31051
|
break;
|
|
30212
31052
|
}
|
|
30213
|
-
case 42: {
|
|
30214
|
-
message.phpGenericServices = reader.bool();
|
|
30215
|
-
break;
|
|
30216
|
-
}
|
|
30217
31053
|
case 23: {
|
|
30218
31054
|
message.deprecated = reader.bool();
|
|
30219
31055
|
break;
|
|
@@ -30337,9 +31173,6 @@
|
|
|
30337
31173
|
if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices"))
|
|
30338
31174
|
if (typeof message.pyGenericServices !== "boolean")
|
|
30339
31175
|
return "pyGenericServices: boolean expected";
|
|
30340
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
|
30341
|
-
if (typeof message.phpGenericServices !== "boolean")
|
|
30342
|
-
return "phpGenericServices: boolean expected";
|
|
30343
31176
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
30344
31177
|
if (typeof message.deprecated !== "boolean")
|
|
30345
31178
|
return "deprecated: boolean expected";
|
|
@@ -30443,8 +31276,6 @@
|
|
|
30443
31276
|
message.javaGenericServices = Boolean(object.javaGenericServices);
|
|
30444
31277
|
if (object.pyGenericServices != null)
|
|
30445
31278
|
message.pyGenericServices = Boolean(object.pyGenericServices);
|
|
30446
|
-
if (object.phpGenericServices != null)
|
|
30447
|
-
message.phpGenericServices = Boolean(object.phpGenericServices);
|
|
30448
31279
|
if (object.deprecated != null)
|
|
30449
31280
|
message.deprecated = Boolean(object.deprecated);
|
|
30450
31281
|
if (object.ccEnableArenas != null)
|
|
@@ -30526,7 +31357,6 @@
|
|
|
30526
31357
|
object.swiftPrefix = "";
|
|
30527
31358
|
object.phpClassPrefix = "";
|
|
30528
31359
|
object.phpNamespace = "";
|
|
30529
|
-
object.phpGenericServices = false;
|
|
30530
31360
|
object.phpMetadataNamespace = "";
|
|
30531
31361
|
object.rubyPackage = "";
|
|
30532
31362
|
object.features = null;
|
|
@@ -30565,8 +31395,6 @@
|
|
|
30565
31395
|
object.phpClassPrefix = message.phpClassPrefix;
|
|
30566
31396
|
if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace"))
|
|
30567
31397
|
object.phpNamespace = message.phpNamespace;
|
|
30568
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
|
30569
|
-
object.phpGenericServices = message.phpGenericServices;
|
|
30570
31398
|
if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace"))
|
|
30571
31399
|
object.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
30572
31400
|
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
|
|
@@ -31501,6 +32329,7 @@
|
|
|
31501
32329
|
case 5:
|
|
31502
32330
|
case 6:
|
|
31503
32331
|
case 7:
|
|
32332
|
+
case 8:
|
|
31504
32333
|
break;
|
|
31505
32334
|
}
|
|
31506
32335
|
}
|
|
@@ -31717,6 +32546,10 @@
|
|
|
31717
32546
|
case 7:
|
|
31718
32547
|
message[".google.api.fieldBehavior"][i] = 7;
|
|
31719
32548
|
break;
|
|
32549
|
+
case "IDENTIFIER":
|
|
32550
|
+
case 8:
|
|
32551
|
+
message[".google.api.fieldBehavior"][i] = 8;
|
|
32552
|
+
break;
|
|
31720
32553
|
}
|
|
31721
32554
|
}
|
|
31722
32555
|
if (object[".google.api.resourceReference"] != null) {
|
|
@@ -31914,7 +32747,7 @@
|
|
|
31914
32747
|
* Properties of an EditionDefault.
|
|
31915
32748
|
* @memberof google.protobuf.FieldOptions
|
|
31916
32749
|
* @interface IEditionDefault
|
|
31917
|
-
* @property {
|
|
32750
|
+
* @property {google.protobuf.Edition|null} [edition] EditionDefault edition
|
|
31918
32751
|
* @property {string|null} [value] EditionDefault value
|
|
31919
32752
|
*/
|
|
31920
32753
|
|
|
@@ -31935,11 +32768,11 @@
|
|
|
31935
32768
|
|
|
31936
32769
|
/**
|
|
31937
32770
|
* EditionDefault edition.
|
|
31938
|
-
* @member {
|
|
32771
|
+
* @member {google.protobuf.Edition} edition
|
|
31939
32772
|
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
31940
32773
|
* @instance
|
|
31941
32774
|
*/
|
|
31942
|
-
EditionDefault.prototype.edition =
|
|
32775
|
+
EditionDefault.prototype.edition = 0;
|
|
31943
32776
|
|
|
31944
32777
|
/**
|
|
31945
32778
|
* EditionDefault value.
|
|
@@ -31973,10 +32806,10 @@
|
|
|
31973
32806
|
EditionDefault.encode = function encode(message, writer) {
|
|
31974
32807
|
if (!writer)
|
|
31975
32808
|
writer = $Writer.create();
|
|
31976
|
-
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
31977
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.edition);
|
|
31978
32809
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
31979
32810
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
32811
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
32812
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
31980
32813
|
return writer;
|
|
31981
32814
|
};
|
|
31982
32815
|
|
|
@@ -32011,8 +32844,8 @@
|
|
|
32011
32844
|
while (reader.pos < end) {
|
|
32012
32845
|
var tag = reader.uint32();
|
|
32013
32846
|
switch (tag >>> 3) {
|
|
32014
|
-
case
|
|
32015
|
-
message.edition = reader.
|
|
32847
|
+
case 3: {
|
|
32848
|
+
message.edition = reader.int32();
|
|
32016
32849
|
break;
|
|
32017
32850
|
}
|
|
32018
32851
|
case 2: {
|
|
@@ -32055,8 +32888,22 @@
|
|
|
32055
32888
|
if (typeof message !== "object" || message === null)
|
|
32056
32889
|
return "object expected";
|
|
32057
32890
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
32058
|
-
|
|
32059
|
-
|
|
32891
|
+
switch (message.edition) {
|
|
32892
|
+
default:
|
|
32893
|
+
return "edition: enum value expected";
|
|
32894
|
+
case 0:
|
|
32895
|
+
case 998:
|
|
32896
|
+
case 999:
|
|
32897
|
+
case 1000:
|
|
32898
|
+
case 1001:
|
|
32899
|
+
case 1:
|
|
32900
|
+
case 2:
|
|
32901
|
+
case 99997:
|
|
32902
|
+
case 99998:
|
|
32903
|
+
case 99999:
|
|
32904
|
+
case 2147483647:
|
|
32905
|
+
break;
|
|
32906
|
+
}
|
|
32060
32907
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
32061
32908
|
if (!$util.isString(message.value))
|
|
32062
32909
|
return "value: string expected";
|
|
@@ -32075,8 +32922,58 @@
|
|
|
32075
32922
|
if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
|
|
32076
32923
|
return object;
|
|
32077
32924
|
var message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
32078
|
-
|
|
32079
|
-
|
|
32925
|
+
switch (object.edition) {
|
|
32926
|
+
default:
|
|
32927
|
+
if (typeof object.edition === "number") {
|
|
32928
|
+
message.edition = object.edition;
|
|
32929
|
+
break;
|
|
32930
|
+
}
|
|
32931
|
+
break;
|
|
32932
|
+
case "EDITION_UNKNOWN":
|
|
32933
|
+
case 0:
|
|
32934
|
+
message.edition = 0;
|
|
32935
|
+
break;
|
|
32936
|
+
case "EDITION_PROTO2":
|
|
32937
|
+
case 998:
|
|
32938
|
+
message.edition = 998;
|
|
32939
|
+
break;
|
|
32940
|
+
case "EDITION_PROTO3":
|
|
32941
|
+
case 999:
|
|
32942
|
+
message.edition = 999;
|
|
32943
|
+
break;
|
|
32944
|
+
case "EDITION_2023":
|
|
32945
|
+
case 1000:
|
|
32946
|
+
message.edition = 1000;
|
|
32947
|
+
break;
|
|
32948
|
+
case "EDITION_2024":
|
|
32949
|
+
case 1001:
|
|
32950
|
+
message.edition = 1001;
|
|
32951
|
+
break;
|
|
32952
|
+
case "EDITION_1_TEST_ONLY":
|
|
32953
|
+
case 1:
|
|
32954
|
+
message.edition = 1;
|
|
32955
|
+
break;
|
|
32956
|
+
case "EDITION_2_TEST_ONLY":
|
|
32957
|
+
case 2:
|
|
32958
|
+
message.edition = 2;
|
|
32959
|
+
break;
|
|
32960
|
+
case "EDITION_99997_TEST_ONLY":
|
|
32961
|
+
case 99997:
|
|
32962
|
+
message.edition = 99997;
|
|
32963
|
+
break;
|
|
32964
|
+
case "EDITION_99998_TEST_ONLY":
|
|
32965
|
+
case 99998:
|
|
32966
|
+
message.edition = 99998;
|
|
32967
|
+
break;
|
|
32968
|
+
case "EDITION_99999_TEST_ONLY":
|
|
32969
|
+
case 99999:
|
|
32970
|
+
message.edition = 99999;
|
|
32971
|
+
break;
|
|
32972
|
+
case "EDITION_MAX":
|
|
32973
|
+
case 2147483647:
|
|
32974
|
+
message.edition = 2147483647;
|
|
32975
|
+
break;
|
|
32976
|
+
}
|
|
32080
32977
|
if (object.value != null)
|
|
32081
32978
|
message.value = String(object.value);
|
|
32082
32979
|
return message;
|
|
@@ -32096,13 +32993,13 @@
|
|
|
32096
32993
|
options = {};
|
|
32097
32994
|
var object = {};
|
|
32098
32995
|
if (options.defaults) {
|
|
32099
|
-
object.edition = "";
|
|
32100
32996
|
object.value = "";
|
|
32997
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
32101
32998
|
}
|
|
32102
|
-
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
32103
|
-
object.edition = message.edition;
|
|
32104
32999
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
32105
33000
|
object.value = message.value;
|
|
33001
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
33002
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
32106
33003
|
return object;
|
|
32107
33004
|
};
|
|
32108
33005
|
|
|
@@ -34382,10 +35279,9 @@
|
|
|
34382
35279
|
* @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
|
|
34383
35280
|
* @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
|
|
34384
35281
|
* @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
|
|
34385
|
-
* @property {google.protobuf.FeatureSet.
|
|
35282
|
+
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
34386
35283
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
34387
35284
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
34388
|
-
* @property {google.protobuf.IFeatureSet|null} [rawFeatures] FeatureSet rawFeatures
|
|
34389
35285
|
*/
|
|
34390
35286
|
|
|
34391
35287
|
/**
|
|
@@ -34428,12 +35324,12 @@
|
|
|
34428
35324
|
FeatureSet.prototype.repeatedFieldEncoding = 0;
|
|
34429
35325
|
|
|
34430
35326
|
/**
|
|
34431
|
-
* FeatureSet
|
|
34432
|
-
* @member {google.protobuf.FeatureSet.
|
|
35327
|
+
* FeatureSet utf8Validation.
|
|
35328
|
+
* @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation
|
|
34433
35329
|
* @memberof google.protobuf.FeatureSet
|
|
34434
35330
|
* @instance
|
|
34435
35331
|
*/
|
|
34436
|
-
FeatureSet.prototype.
|
|
35332
|
+
FeatureSet.prototype.utf8Validation = 0;
|
|
34437
35333
|
|
|
34438
35334
|
/**
|
|
34439
35335
|
* FeatureSet messageEncoding.
|
|
@@ -34451,14 +35347,6 @@
|
|
|
34451
35347
|
*/
|
|
34452
35348
|
FeatureSet.prototype.jsonFormat = 0;
|
|
34453
35349
|
|
|
34454
|
-
/**
|
|
34455
|
-
* FeatureSet rawFeatures.
|
|
34456
|
-
* @member {google.protobuf.IFeatureSet|null|undefined} rawFeatures
|
|
34457
|
-
* @memberof google.protobuf.FeatureSet
|
|
34458
|
-
* @instance
|
|
34459
|
-
*/
|
|
34460
|
-
FeatureSet.prototype.rawFeatures = null;
|
|
34461
|
-
|
|
34462
35350
|
/**
|
|
34463
35351
|
* Creates a new FeatureSet instance using the specified properties.
|
|
34464
35352
|
* @function create
|
|
@@ -34489,14 +35377,12 @@
|
|
|
34489
35377
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
|
|
34490
35378
|
if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
|
|
34491
35379
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
|
|
34492
|
-
if (message.
|
|
34493
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.
|
|
35380
|
+
if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation"))
|
|
35381
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation);
|
|
34494
35382
|
if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
|
|
34495
35383
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
34496
35384
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
34497
35385
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
34498
|
-
if (message.rawFeatures != null && Object.hasOwnProperty.call(message, "rawFeatures"))
|
|
34499
|
-
$root.google.protobuf.FeatureSet.encode(message.rawFeatures, writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
34500
35386
|
return writer;
|
|
34501
35387
|
};
|
|
34502
35388
|
|
|
@@ -34544,7 +35430,7 @@
|
|
|
34544
35430
|
break;
|
|
34545
35431
|
}
|
|
34546
35432
|
case 4: {
|
|
34547
|
-
message.
|
|
35433
|
+
message.utf8Validation = reader.int32();
|
|
34548
35434
|
break;
|
|
34549
35435
|
}
|
|
34550
35436
|
case 5: {
|
|
@@ -34555,10 +35441,6 @@
|
|
|
34555
35441
|
message.jsonFormat = reader.int32();
|
|
34556
35442
|
break;
|
|
34557
35443
|
}
|
|
34558
|
-
case 999: {
|
|
34559
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
34560
|
-
break;
|
|
34561
|
-
}
|
|
34562
35444
|
default:
|
|
34563
35445
|
reader.skipType(tag & 7);
|
|
34564
35446
|
break;
|
|
@@ -34622,12 +35504,11 @@
|
|
|
34622
35504
|
case 2:
|
|
34623
35505
|
break;
|
|
34624
35506
|
}
|
|
34625
|
-
if (message.
|
|
34626
|
-
switch (message.
|
|
35507
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
|
35508
|
+
switch (message.utf8Validation) {
|
|
34627
35509
|
default:
|
|
34628
|
-
return "
|
|
35510
|
+
return "utf8Validation: enum value expected";
|
|
34629
35511
|
case 0:
|
|
34630
|
-
case 1:
|
|
34631
35512
|
case 2:
|
|
34632
35513
|
case 3:
|
|
34633
35514
|
break;
|
|
@@ -34650,11 +35531,6 @@
|
|
|
34650
35531
|
case 2:
|
|
34651
35532
|
break;
|
|
34652
35533
|
}
|
|
34653
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures")) {
|
|
34654
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.rawFeatures);
|
|
34655
|
-
if (error)
|
|
34656
|
-
return "rawFeatures." + error;
|
|
34657
|
-
}
|
|
34658
35534
|
return null;
|
|
34659
35535
|
};
|
|
34660
35536
|
|
|
@@ -34734,28 +35610,24 @@
|
|
|
34734
35610
|
message.repeatedFieldEncoding = 2;
|
|
34735
35611
|
break;
|
|
34736
35612
|
}
|
|
34737
|
-
switch (object.
|
|
35613
|
+
switch (object.utf8Validation) {
|
|
34738
35614
|
default:
|
|
34739
|
-
if (typeof object.
|
|
34740
|
-
message.
|
|
35615
|
+
if (typeof object.utf8Validation === "number") {
|
|
35616
|
+
message.utf8Validation = object.utf8Validation;
|
|
34741
35617
|
break;
|
|
34742
35618
|
}
|
|
34743
35619
|
break;
|
|
34744
|
-
case "
|
|
35620
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
|
34745
35621
|
case 0:
|
|
34746
|
-
message.
|
|
34747
|
-
break;
|
|
34748
|
-
case "MANDATORY":
|
|
34749
|
-
case 1:
|
|
34750
|
-
message.stringFieldValidation = 1;
|
|
35622
|
+
message.utf8Validation = 0;
|
|
34751
35623
|
break;
|
|
34752
|
-
case "
|
|
35624
|
+
case "VERIFY":
|
|
34753
35625
|
case 2:
|
|
34754
|
-
message.
|
|
35626
|
+
message.utf8Validation = 2;
|
|
34755
35627
|
break;
|
|
34756
35628
|
case "NONE":
|
|
34757
35629
|
case 3:
|
|
34758
|
-
message.
|
|
35630
|
+
message.utf8Validation = 3;
|
|
34759
35631
|
break;
|
|
34760
35632
|
}
|
|
34761
35633
|
switch (object.messageEncoding) {
|
|
@@ -34798,11 +35670,6 @@
|
|
|
34798
35670
|
message.jsonFormat = 2;
|
|
34799
35671
|
break;
|
|
34800
35672
|
}
|
|
34801
|
-
if (object.rawFeatures != null) {
|
|
34802
|
-
if (typeof object.rawFeatures !== "object")
|
|
34803
|
-
throw TypeError(".google.protobuf.FeatureSet.rawFeatures: object expected");
|
|
34804
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.fromObject(object.rawFeatures);
|
|
34805
|
-
}
|
|
34806
35673
|
return message;
|
|
34807
35674
|
};
|
|
34808
35675
|
|
|
@@ -34823,10 +35690,9 @@
|
|
|
34823
35690
|
object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
|
|
34824
35691
|
object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
|
|
34825
35692
|
object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
|
|
34826
|
-
object.
|
|
35693
|
+
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
34827
35694
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
34828
35695
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
34829
|
-
object.rawFeatures = null;
|
|
34830
35696
|
}
|
|
34831
35697
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
34832
35698
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -34834,14 +35700,12 @@
|
|
|
34834
35700
|
object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
|
|
34835
35701
|
if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
|
|
34836
35702
|
object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
|
|
34837
|
-
if (message.
|
|
34838
|
-
object.
|
|
35703
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
|
35704
|
+
object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation;
|
|
34839
35705
|
if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
|
|
34840
35706
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
34841
35707
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
34842
35708
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
34843
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures"))
|
|
34844
|
-
object.rawFeatures = $root.google.protobuf.FeatureSet.toObject(message.rawFeatures, options);
|
|
34845
35709
|
return object;
|
|
34846
35710
|
};
|
|
34847
35711
|
|
|
@@ -34922,19 +35786,17 @@
|
|
|
34922
35786
|
})();
|
|
34923
35787
|
|
|
34924
35788
|
/**
|
|
34925
|
-
*
|
|
34926
|
-
* @name google.protobuf.FeatureSet.
|
|
35789
|
+
* Utf8Validation enum.
|
|
35790
|
+
* @name google.protobuf.FeatureSet.Utf8Validation
|
|
34927
35791
|
* @enum {number}
|
|
34928
|
-
* @property {number}
|
|
34929
|
-
* @property {number}
|
|
34930
|
-
* @property {number} HINT=2 HINT value
|
|
35792
|
+
* @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value
|
|
35793
|
+
* @property {number} VERIFY=2 VERIFY value
|
|
34931
35794
|
* @property {number} NONE=3 NONE value
|
|
34932
35795
|
*/
|
|
34933
|
-
FeatureSet.
|
|
35796
|
+
FeatureSet.Utf8Validation = (function() {
|
|
34934
35797
|
var valuesById = {}, values = Object.create(valuesById);
|
|
34935
|
-
values[valuesById[0] = "
|
|
34936
|
-
values[valuesById[
|
|
34937
|
-
values[valuesById[2] = "HINT"] = 2;
|
|
35798
|
+
values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0;
|
|
35799
|
+
values[valuesById[2] = "VERIFY"] = 2;
|
|
34938
35800
|
values[valuesById[3] = "NONE"] = 3;
|
|
34939
35801
|
return values;
|
|
34940
35802
|
})();
|
|
@@ -34974,6 +35836,702 @@
|
|
|
34974
35836
|
return FeatureSet;
|
|
34975
35837
|
})();
|
|
34976
35838
|
|
|
35839
|
+
protobuf.FeatureSetDefaults = (function() {
|
|
35840
|
+
|
|
35841
|
+
/**
|
|
35842
|
+
* Properties of a FeatureSetDefaults.
|
|
35843
|
+
* @memberof google.protobuf
|
|
35844
|
+
* @interface IFeatureSetDefaults
|
|
35845
|
+
* @property {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>|null} [defaults] FeatureSetDefaults defaults
|
|
35846
|
+
* @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition
|
|
35847
|
+
* @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition
|
|
35848
|
+
*/
|
|
35849
|
+
|
|
35850
|
+
/**
|
|
35851
|
+
* Constructs a new FeatureSetDefaults.
|
|
35852
|
+
* @memberof google.protobuf
|
|
35853
|
+
* @classdesc Represents a FeatureSetDefaults.
|
|
35854
|
+
* @implements IFeatureSetDefaults
|
|
35855
|
+
* @constructor
|
|
35856
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
|
35857
|
+
*/
|
|
35858
|
+
function FeatureSetDefaults(properties) {
|
|
35859
|
+
this.defaults = [];
|
|
35860
|
+
if (properties)
|
|
35861
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35862
|
+
if (properties[keys[i]] != null)
|
|
35863
|
+
this[keys[i]] = properties[keys[i]];
|
|
35864
|
+
}
|
|
35865
|
+
|
|
35866
|
+
/**
|
|
35867
|
+
* FeatureSetDefaults defaults.
|
|
35868
|
+
* @member {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>} defaults
|
|
35869
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35870
|
+
* @instance
|
|
35871
|
+
*/
|
|
35872
|
+
FeatureSetDefaults.prototype.defaults = $util.emptyArray;
|
|
35873
|
+
|
|
35874
|
+
/**
|
|
35875
|
+
* FeatureSetDefaults minimumEdition.
|
|
35876
|
+
* @member {google.protobuf.Edition} minimumEdition
|
|
35877
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35878
|
+
* @instance
|
|
35879
|
+
*/
|
|
35880
|
+
FeatureSetDefaults.prototype.minimumEdition = 0;
|
|
35881
|
+
|
|
35882
|
+
/**
|
|
35883
|
+
* FeatureSetDefaults maximumEdition.
|
|
35884
|
+
* @member {google.protobuf.Edition} maximumEdition
|
|
35885
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35886
|
+
* @instance
|
|
35887
|
+
*/
|
|
35888
|
+
FeatureSetDefaults.prototype.maximumEdition = 0;
|
|
35889
|
+
|
|
35890
|
+
/**
|
|
35891
|
+
* Creates a new FeatureSetDefaults instance using the specified properties.
|
|
35892
|
+
* @function create
|
|
35893
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35894
|
+
* @static
|
|
35895
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
|
35896
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance
|
|
35897
|
+
*/
|
|
35898
|
+
FeatureSetDefaults.create = function create(properties) {
|
|
35899
|
+
return new FeatureSetDefaults(properties);
|
|
35900
|
+
};
|
|
35901
|
+
|
|
35902
|
+
/**
|
|
35903
|
+
* Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
|
35904
|
+
* @function encode
|
|
35905
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35906
|
+
* @static
|
|
35907
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
|
35908
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35909
|
+
* @returns {$protobuf.Writer} Writer
|
|
35910
|
+
*/
|
|
35911
|
+
FeatureSetDefaults.encode = function encode(message, writer) {
|
|
35912
|
+
if (!writer)
|
|
35913
|
+
writer = $Writer.create();
|
|
35914
|
+
if (message.defaults != null && message.defaults.length)
|
|
35915
|
+
for (var i = 0; i < message.defaults.length; ++i)
|
|
35916
|
+
$root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35917
|
+
if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition"))
|
|
35918
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition);
|
|
35919
|
+
if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition"))
|
|
35920
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition);
|
|
35921
|
+
return writer;
|
|
35922
|
+
};
|
|
35923
|
+
|
|
35924
|
+
/**
|
|
35925
|
+
* Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
|
35926
|
+
* @function encodeDelimited
|
|
35927
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35928
|
+
* @static
|
|
35929
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
|
35930
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35931
|
+
* @returns {$protobuf.Writer} Writer
|
|
35932
|
+
*/
|
|
35933
|
+
FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35934
|
+
return this.encode(message, writer).ldelim();
|
|
35935
|
+
};
|
|
35936
|
+
|
|
35937
|
+
/**
|
|
35938
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer.
|
|
35939
|
+
* @function decode
|
|
35940
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35941
|
+
* @static
|
|
35942
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35943
|
+
* @param {number} [length] Message length if known beforehand
|
|
35944
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
35945
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35946
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35947
|
+
*/
|
|
35948
|
+
FeatureSetDefaults.decode = function decode(reader, length) {
|
|
35949
|
+
if (!(reader instanceof $Reader))
|
|
35950
|
+
reader = $Reader.create(reader);
|
|
35951
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
|
|
35952
|
+
while (reader.pos < end) {
|
|
35953
|
+
var tag = reader.uint32();
|
|
35954
|
+
switch (tag >>> 3) {
|
|
35955
|
+
case 1: {
|
|
35956
|
+
if (!(message.defaults && message.defaults.length))
|
|
35957
|
+
message.defaults = [];
|
|
35958
|
+
message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
|
35959
|
+
break;
|
|
35960
|
+
}
|
|
35961
|
+
case 4: {
|
|
35962
|
+
message.minimumEdition = reader.int32();
|
|
35963
|
+
break;
|
|
35964
|
+
}
|
|
35965
|
+
case 5: {
|
|
35966
|
+
message.maximumEdition = reader.int32();
|
|
35967
|
+
break;
|
|
35968
|
+
}
|
|
35969
|
+
default:
|
|
35970
|
+
reader.skipType(tag & 7);
|
|
35971
|
+
break;
|
|
35972
|
+
}
|
|
35973
|
+
}
|
|
35974
|
+
return message;
|
|
35975
|
+
};
|
|
35976
|
+
|
|
35977
|
+
/**
|
|
35978
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
|
|
35979
|
+
* @function decodeDelimited
|
|
35980
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35981
|
+
* @static
|
|
35982
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35983
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
35984
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35985
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35986
|
+
*/
|
|
35987
|
+
FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) {
|
|
35988
|
+
if (!(reader instanceof $Reader))
|
|
35989
|
+
reader = new $Reader(reader);
|
|
35990
|
+
return this.decode(reader, reader.uint32());
|
|
35991
|
+
};
|
|
35992
|
+
|
|
35993
|
+
/**
|
|
35994
|
+
* Verifies a FeatureSetDefaults message.
|
|
35995
|
+
* @function verify
|
|
35996
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
35997
|
+
* @static
|
|
35998
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35999
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36000
|
+
*/
|
|
36001
|
+
FeatureSetDefaults.verify = function verify(message) {
|
|
36002
|
+
if (typeof message !== "object" || message === null)
|
|
36003
|
+
return "object expected";
|
|
36004
|
+
if (message.defaults != null && message.hasOwnProperty("defaults")) {
|
|
36005
|
+
if (!Array.isArray(message.defaults))
|
|
36006
|
+
return "defaults: array expected";
|
|
36007
|
+
for (var i = 0; i < message.defaults.length; ++i) {
|
|
36008
|
+
var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]);
|
|
36009
|
+
if (error)
|
|
36010
|
+
return "defaults." + error;
|
|
36011
|
+
}
|
|
36012
|
+
}
|
|
36013
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
|
36014
|
+
switch (message.minimumEdition) {
|
|
36015
|
+
default:
|
|
36016
|
+
return "minimumEdition: enum value expected";
|
|
36017
|
+
case 0:
|
|
36018
|
+
case 998:
|
|
36019
|
+
case 999:
|
|
36020
|
+
case 1000:
|
|
36021
|
+
case 1001:
|
|
36022
|
+
case 1:
|
|
36023
|
+
case 2:
|
|
36024
|
+
case 99997:
|
|
36025
|
+
case 99998:
|
|
36026
|
+
case 99999:
|
|
36027
|
+
case 2147483647:
|
|
36028
|
+
break;
|
|
36029
|
+
}
|
|
36030
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
|
36031
|
+
switch (message.maximumEdition) {
|
|
36032
|
+
default:
|
|
36033
|
+
return "maximumEdition: enum value expected";
|
|
36034
|
+
case 0:
|
|
36035
|
+
case 998:
|
|
36036
|
+
case 999:
|
|
36037
|
+
case 1000:
|
|
36038
|
+
case 1001:
|
|
36039
|
+
case 1:
|
|
36040
|
+
case 2:
|
|
36041
|
+
case 99997:
|
|
36042
|
+
case 99998:
|
|
36043
|
+
case 99999:
|
|
36044
|
+
case 2147483647:
|
|
36045
|
+
break;
|
|
36046
|
+
}
|
|
36047
|
+
return null;
|
|
36048
|
+
};
|
|
36049
|
+
|
|
36050
|
+
/**
|
|
36051
|
+
* Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
|
|
36052
|
+
* @function fromObject
|
|
36053
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36054
|
+
* @static
|
|
36055
|
+
* @param {Object.<string,*>} object Plain object
|
|
36056
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
36057
|
+
*/
|
|
36058
|
+
FeatureSetDefaults.fromObject = function fromObject(object) {
|
|
36059
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults)
|
|
36060
|
+
return object;
|
|
36061
|
+
var message = new $root.google.protobuf.FeatureSetDefaults();
|
|
36062
|
+
if (object.defaults) {
|
|
36063
|
+
if (!Array.isArray(object.defaults))
|
|
36064
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");
|
|
36065
|
+
message.defaults = [];
|
|
36066
|
+
for (var i = 0; i < object.defaults.length; ++i) {
|
|
36067
|
+
if (typeof object.defaults[i] !== "object")
|
|
36068
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");
|
|
36069
|
+
message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]);
|
|
36070
|
+
}
|
|
36071
|
+
}
|
|
36072
|
+
switch (object.minimumEdition) {
|
|
36073
|
+
default:
|
|
36074
|
+
if (typeof object.minimumEdition === "number") {
|
|
36075
|
+
message.minimumEdition = object.minimumEdition;
|
|
36076
|
+
break;
|
|
36077
|
+
}
|
|
36078
|
+
break;
|
|
36079
|
+
case "EDITION_UNKNOWN":
|
|
36080
|
+
case 0:
|
|
36081
|
+
message.minimumEdition = 0;
|
|
36082
|
+
break;
|
|
36083
|
+
case "EDITION_PROTO2":
|
|
36084
|
+
case 998:
|
|
36085
|
+
message.minimumEdition = 998;
|
|
36086
|
+
break;
|
|
36087
|
+
case "EDITION_PROTO3":
|
|
36088
|
+
case 999:
|
|
36089
|
+
message.minimumEdition = 999;
|
|
36090
|
+
break;
|
|
36091
|
+
case "EDITION_2023":
|
|
36092
|
+
case 1000:
|
|
36093
|
+
message.minimumEdition = 1000;
|
|
36094
|
+
break;
|
|
36095
|
+
case "EDITION_2024":
|
|
36096
|
+
case 1001:
|
|
36097
|
+
message.minimumEdition = 1001;
|
|
36098
|
+
break;
|
|
36099
|
+
case "EDITION_1_TEST_ONLY":
|
|
36100
|
+
case 1:
|
|
36101
|
+
message.minimumEdition = 1;
|
|
36102
|
+
break;
|
|
36103
|
+
case "EDITION_2_TEST_ONLY":
|
|
36104
|
+
case 2:
|
|
36105
|
+
message.minimumEdition = 2;
|
|
36106
|
+
break;
|
|
36107
|
+
case "EDITION_99997_TEST_ONLY":
|
|
36108
|
+
case 99997:
|
|
36109
|
+
message.minimumEdition = 99997;
|
|
36110
|
+
break;
|
|
36111
|
+
case "EDITION_99998_TEST_ONLY":
|
|
36112
|
+
case 99998:
|
|
36113
|
+
message.minimumEdition = 99998;
|
|
36114
|
+
break;
|
|
36115
|
+
case "EDITION_99999_TEST_ONLY":
|
|
36116
|
+
case 99999:
|
|
36117
|
+
message.minimumEdition = 99999;
|
|
36118
|
+
break;
|
|
36119
|
+
case "EDITION_MAX":
|
|
36120
|
+
case 2147483647:
|
|
36121
|
+
message.minimumEdition = 2147483647;
|
|
36122
|
+
break;
|
|
36123
|
+
}
|
|
36124
|
+
switch (object.maximumEdition) {
|
|
36125
|
+
default:
|
|
36126
|
+
if (typeof object.maximumEdition === "number") {
|
|
36127
|
+
message.maximumEdition = object.maximumEdition;
|
|
36128
|
+
break;
|
|
36129
|
+
}
|
|
36130
|
+
break;
|
|
36131
|
+
case "EDITION_UNKNOWN":
|
|
36132
|
+
case 0:
|
|
36133
|
+
message.maximumEdition = 0;
|
|
36134
|
+
break;
|
|
36135
|
+
case "EDITION_PROTO2":
|
|
36136
|
+
case 998:
|
|
36137
|
+
message.maximumEdition = 998;
|
|
36138
|
+
break;
|
|
36139
|
+
case "EDITION_PROTO3":
|
|
36140
|
+
case 999:
|
|
36141
|
+
message.maximumEdition = 999;
|
|
36142
|
+
break;
|
|
36143
|
+
case "EDITION_2023":
|
|
36144
|
+
case 1000:
|
|
36145
|
+
message.maximumEdition = 1000;
|
|
36146
|
+
break;
|
|
36147
|
+
case "EDITION_2024":
|
|
36148
|
+
case 1001:
|
|
36149
|
+
message.maximumEdition = 1001;
|
|
36150
|
+
break;
|
|
36151
|
+
case "EDITION_1_TEST_ONLY":
|
|
36152
|
+
case 1:
|
|
36153
|
+
message.maximumEdition = 1;
|
|
36154
|
+
break;
|
|
36155
|
+
case "EDITION_2_TEST_ONLY":
|
|
36156
|
+
case 2:
|
|
36157
|
+
message.maximumEdition = 2;
|
|
36158
|
+
break;
|
|
36159
|
+
case "EDITION_99997_TEST_ONLY":
|
|
36160
|
+
case 99997:
|
|
36161
|
+
message.maximumEdition = 99997;
|
|
36162
|
+
break;
|
|
36163
|
+
case "EDITION_99998_TEST_ONLY":
|
|
36164
|
+
case 99998:
|
|
36165
|
+
message.maximumEdition = 99998;
|
|
36166
|
+
break;
|
|
36167
|
+
case "EDITION_99999_TEST_ONLY":
|
|
36168
|
+
case 99999:
|
|
36169
|
+
message.maximumEdition = 99999;
|
|
36170
|
+
break;
|
|
36171
|
+
case "EDITION_MAX":
|
|
36172
|
+
case 2147483647:
|
|
36173
|
+
message.maximumEdition = 2147483647;
|
|
36174
|
+
break;
|
|
36175
|
+
}
|
|
36176
|
+
return message;
|
|
36177
|
+
};
|
|
36178
|
+
|
|
36179
|
+
/**
|
|
36180
|
+
* Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
|
|
36181
|
+
* @function toObject
|
|
36182
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36183
|
+
* @static
|
|
36184
|
+
* @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults
|
|
36185
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36186
|
+
* @returns {Object.<string,*>} Plain object
|
|
36187
|
+
*/
|
|
36188
|
+
FeatureSetDefaults.toObject = function toObject(message, options) {
|
|
36189
|
+
if (!options)
|
|
36190
|
+
options = {};
|
|
36191
|
+
var object = {};
|
|
36192
|
+
if (options.arrays || options.defaults)
|
|
36193
|
+
object.defaults = [];
|
|
36194
|
+
if (options.defaults) {
|
|
36195
|
+
object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
36196
|
+
object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
36197
|
+
}
|
|
36198
|
+
if (message.defaults && message.defaults.length) {
|
|
36199
|
+
object.defaults = [];
|
|
36200
|
+
for (var j = 0; j < message.defaults.length; ++j)
|
|
36201
|
+
object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options);
|
|
36202
|
+
}
|
|
36203
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
|
36204
|
+
object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition;
|
|
36205
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
|
36206
|
+
object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition;
|
|
36207
|
+
return object;
|
|
36208
|
+
};
|
|
36209
|
+
|
|
36210
|
+
/**
|
|
36211
|
+
* Converts this FeatureSetDefaults to JSON.
|
|
36212
|
+
* @function toJSON
|
|
36213
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36214
|
+
* @instance
|
|
36215
|
+
* @returns {Object.<string,*>} JSON object
|
|
36216
|
+
*/
|
|
36217
|
+
FeatureSetDefaults.prototype.toJSON = function toJSON() {
|
|
36218
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36219
|
+
};
|
|
36220
|
+
|
|
36221
|
+
/**
|
|
36222
|
+
* Gets the default type url for FeatureSetDefaults
|
|
36223
|
+
* @function getTypeUrl
|
|
36224
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36225
|
+
* @static
|
|
36226
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
36227
|
+
* @returns {string} The default type url
|
|
36228
|
+
*/
|
|
36229
|
+
FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
36230
|
+
if (typeUrlPrefix === undefined) {
|
|
36231
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
36232
|
+
}
|
|
36233
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults";
|
|
36234
|
+
};
|
|
36235
|
+
|
|
36236
|
+
FeatureSetDefaults.FeatureSetEditionDefault = (function() {
|
|
36237
|
+
|
|
36238
|
+
/**
|
|
36239
|
+
* Properties of a FeatureSetEditionDefault.
|
|
36240
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36241
|
+
* @interface IFeatureSetEditionDefault
|
|
36242
|
+
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
36243
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
|
|
36244
|
+
*/
|
|
36245
|
+
|
|
36246
|
+
/**
|
|
36247
|
+
* Constructs a new FeatureSetEditionDefault.
|
|
36248
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
36249
|
+
* @classdesc Represents a FeatureSetEditionDefault.
|
|
36250
|
+
* @implements IFeatureSetEditionDefault
|
|
36251
|
+
* @constructor
|
|
36252
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
|
36253
|
+
*/
|
|
36254
|
+
function FeatureSetEditionDefault(properties) {
|
|
36255
|
+
if (properties)
|
|
36256
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36257
|
+
if (properties[keys[i]] != null)
|
|
36258
|
+
this[keys[i]] = properties[keys[i]];
|
|
36259
|
+
}
|
|
36260
|
+
|
|
36261
|
+
/**
|
|
36262
|
+
* FeatureSetEditionDefault edition.
|
|
36263
|
+
* @member {google.protobuf.Edition} edition
|
|
36264
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36265
|
+
* @instance
|
|
36266
|
+
*/
|
|
36267
|
+
FeatureSetEditionDefault.prototype.edition = 0;
|
|
36268
|
+
|
|
36269
|
+
/**
|
|
36270
|
+
* FeatureSetEditionDefault features.
|
|
36271
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
36272
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36273
|
+
* @instance
|
|
36274
|
+
*/
|
|
36275
|
+
FeatureSetEditionDefault.prototype.features = null;
|
|
36276
|
+
|
|
36277
|
+
/**
|
|
36278
|
+
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
36279
|
+
* @function create
|
|
36280
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36281
|
+
* @static
|
|
36282
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
|
36283
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance
|
|
36284
|
+
*/
|
|
36285
|
+
FeatureSetEditionDefault.create = function create(properties) {
|
|
36286
|
+
return new FeatureSetEditionDefault(properties);
|
|
36287
|
+
};
|
|
36288
|
+
|
|
36289
|
+
/**
|
|
36290
|
+
* Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
|
36291
|
+
* @function encode
|
|
36292
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36293
|
+
* @static
|
|
36294
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
|
36295
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36296
|
+
* @returns {$protobuf.Writer} Writer
|
|
36297
|
+
*/
|
|
36298
|
+
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
36299
|
+
if (!writer)
|
|
36300
|
+
writer = $Writer.create();
|
|
36301
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
36302
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
36303
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
36304
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
36305
|
+
return writer;
|
|
36306
|
+
};
|
|
36307
|
+
|
|
36308
|
+
/**
|
|
36309
|
+
* Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
|
36310
|
+
* @function encodeDelimited
|
|
36311
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36312
|
+
* @static
|
|
36313
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
|
36314
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36315
|
+
* @returns {$protobuf.Writer} Writer
|
|
36316
|
+
*/
|
|
36317
|
+
FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36318
|
+
return this.encode(message, writer).ldelim();
|
|
36319
|
+
};
|
|
36320
|
+
|
|
36321
|
+
/**
|
|
36322
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
|
|
36323
|
+
* @function decode
|
|
36324
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36325
|
+
* @static
|
|
36326
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36327
|
+
* @param {number} [length] Message length if known beforehand
|
|
36328
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
36329
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36330
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36331
|
+
*/
|
|
36332
|
+
FeatureSetEditionDefault.decode = function decode(reader, length) {
|
|
36333
|
+
if (!(reader instanceof $Reader))
|
|
36334
|
+
reader = $Reader.create(reader);
|
|
36335
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
|
36336
|
+
while (reader.pos < end) {
|
|
36337
|
+
var tag = reader.uint32();
|
|
36338
|
+
switch (tag >>> 3) {
|
|
36339
|
+
case 3: {
|
|
36340
|
+
message.edition = reader.int32();
|
|
36341
|
+
break;
|
|
36342
|
+
}
|
|
36343
|
+
case 2: {
|
|
36344
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
36345
|
+
break;
|
|
36346
|
+
}
|
|
36347
|
+
default:
|
|
36348
|
+
reader.skipType(tag & 7);
|
|
36349
|
+
break;
|
|
36350
|
+
}
|
|
36351
|
+
}
|
|
36352
|
+
return message;
|
|
36353
|
+
};
|
|
36354
|
+
|
|
36355
|
+
/**
|
|
36356
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
|
|
36357
|
+
* @function decodeDelimited
|
|
36358
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36359
|
+
* @static
|
|
36360
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36361
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
36362
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36363
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36364
|
+
*/
|
|
36365
|
+
FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) {
|
|
36366
|
+
if (!(reader instanceof $Reader))
|
|
36367
|
+
reader = new $Reader(reader);
|
|
36368
|
+
return this.decode(reader, reader.uint32());
|
|
36369
|
+
};
|
|
36370
|
+
|
|
36371
|
+
/**
|
|
36372
|
+
* Verifies a FeatureSetEditionDefault message.
|
|
36373
|
+
* @function verify
|
|
36374
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36375
|
+
* @static
|
|
36376
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36377
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36378
|
+
*/
|
|
36379
|
+
FeatureSetEditionDefault.verify = function verify(message) {
|
|
36380
|
+
if (typeof message !== "object" || message === null)
|
|
36381
|
+
return "object expected";
|
|
36382
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
36383
|
+
switch (message.edition) {
|
|
36384
|
+
default:
|
|
36385
|
+
return "edition: enum value expected";
|
|
36386
|
+
case 0:
|
|
36387
|
+
case 998:
|
|
36388
|
+
case 999:
|
|
36389
|
+
case 1000:
|
|
36390
|
+
case 1001:
|
|
36391
|
+
case 1:
|
|
36392
|
+
case 2:
|
|
36393
|
+
case 99997:
|
|
36394
|
+
case 99998:
|
|
36395
|
+
case 99999:
|
|
36396
|
+
case 2147483647:
|
|
36397
|
+
break;
|
|
36398
|
+
}
|
|
36399
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
36400
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
36401
|
+
if (error)
|
|
36402
|
+
return "features." + error;
|
|
36403
|
+
}
|
|
36404
|
+
return null;
|
|
36405
|
+
};
|
|
36406
|
+
|
|
36407
|
+
/**
|
|
36408
|
+
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
|
|
36409
|
+
* @function fromObject
|
|
36410
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36411
|
+
* @static
|
|
36412
|
+
* @param {Object.<string,*>} object Plain object
|
|
36413
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
36414
|
+
*/
|
|
36415
|
+
FeatureSetEditionDefault.fromObject = function fromObject(object) {
|
|
36416
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
|
|
36417
|
+
return object;
|
|
36418
|
+
var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
|
36419
|
+
switch (object.edition) {
|
|
36420
|
+
default:
|
|
36421
|
+
if (typeof object.edition === "number") {
|
|
36422
|
+
message.edition = object.edition;
|
|
36423
|
+
break;
|
|
36424
|
+
}
|
|
36425
|
+
break;
|
|
36426
|
+
case "EDITION_UNKNOWN":
|
|
36427
|
+
case 0:
|
|
36428
|
+
message.edition = 0;
|
|
36429
|
+
break;
|
|
36430
|
+
case "EDITION_PROTO2":
|
|
36431
|
+
case 998:
|
|
36432
|
+
message.edition = 998;
|
|
36433
|
+
break;
|
|
36434
|
+
case "EDITION_PROTO3":
|
|
36435
|
+
case 999:
|
|
36436
|
+
message.edition = 999;
|
|
36437
|
+
break;
|
|
36438
|
+
case "EDITION_2023":
|
|
36439
|
+
case 1000:
|
|
36440
|
+
message.edition = 1000;
|
|
36441
|
+
break;
|
|
36442
|
+
case "EDITION_2024":
|
|
36443
|
+
case 1001:
|
|
36444
|
+
message.edition = 1001;
|
|
36445
|
+
break;
|
|
36446
|
+
case "EDITION_1_TEST_ONLY":
|
|
36447
|
+
case 1:
|
|
36448
|
+
message.edition = 1;
|
|
36449
|
+
break;
|
|
36450
|
+
case "EDITION_2_TEST_ONLY":
|
|
36451
|
+
case 2:
|
|
36452
|
+
message.edition = 2;
|
|
36453
|
+
break;
|
|
36454
|
+
case "EDITION_99997_TEST_ONLY":
|
|
36455
|
+
case 99997:
|
|
36456
|
+
message.edition = 99997;
|
|
36457
|
+
break;
|
|
36458
|
+
case "EDITION_99998_TEST_ONLY":
|
|
36459
|
+
case 99998:
|
|
36460
|
+
message.edition = 99998;
|
|
36461
|
+
break;
|
|
36462
|
+
case "EDITION_99999_TEST_ONLY":
|
|
36463
|
+
case 99999:
|
|
36464
|
+
message.edition = 99999;
|
|
36465
|
+
break;
|
|
36466
|
+
case "EDITION_MAX":
|
|
36467
|
+
case 2147483647:
|
|
36468
|
+
message.edition = 2147483647;
|
|
36469
|
+
break;
|
|
36470
|
+
}
|
|
36471
|
+
if (object.features != null) {
|
|
36472
|
+
if (typeof object.features !== "object")
|
|
36473
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
|
|
36474
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
36475
|
+
}
|
|
36476
|
+
return message;
|
|
36477
|
+
};
|
|
36478
|
+
|
|
36479
|
+
/**
|
|
36480
|
+
* Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
|
|
36481
|
+
* @function toObject
|
|
36482
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36483
|
+
* @static
|
|
36484
|
+
* @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault
|
|
36485
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36486
|
+
* @returns {Object.<string,*>} Plain object
|
|
36487
|
+
*/
|
|
36488
|
+
FeatureSetEditionDefault.toObject = function toObject(message, options) {
|
|
36489
|
+
if (!options)
|
|
36490
|
+
options = {};
|
|
36491
|
+
var object = {};
|
|
36492
|
+
if (options.defaults) {
|
|
36493
|
+
object.features = null;
|
|
36494
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
36495
|
+
}
|
|
36496
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
36497
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
36498
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
36499
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
36500
|
+
return object;
|
|
36501
|
+
};
|
|
36502
|
+
|
|
36503
|
+
/**
|
|
36504
|
+
* Converts this FeatureSetEditionDefault to JSON.
|
|
36505
|
+
* @function toJSON
|
|
36506
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36507
|
+
* @instance
|
|
36508
|
+
* @returns {Object.<string,*>} JSON object
|
|
36509
|
+
*/
|
|
36510
|
+
FeatureSetEditionDefault.prototype.toJSON = function toJSON() {
|
|
36511
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36512
|
+
};
|
|
36513
|
+
|
|
36514
|
+
/**
|
|
36515
|
+
* Gets the default type url for FeatureSetEditionDefault
|
|
36516
|
+
* @function getTypeUrl
|
|
36517
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
36518
|
+
* @static
|
|
36519
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
36520
|
+
* @returns {string} The default type url
|
|
36521
|
+
*/
|
|
36522
|
+
FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
36523
|
+
if (typeUrlPrefix === undefined) {
|
|
36524
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
36525
|
+
}
|
|
36526
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
36527
|
+
};
|
|
36528
|
+
|
|
36529
|
+
return FeatureSetEditionDefault;
|
|
36530
|
+
})();
|
|
36531
|
+
|
|
36532
|
+
return FeatureSetDefaults;
|
|
36533
|
+
})();
|
|
36534
|
+
|
|
34977
36535
|
protobuf.SourceCodeInfo = (function() {
|
|
34978
36536
|
|
|
34979
36537
|
/**
|