core-3nweb-client-lib 0.41.6 → 0.41.7
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.
|
@@ -497,8 +497,8 @@ $root.json_ipc = (function() {
|
|
|
497
497
|
* Properties of a TransferredObj.
|
|
498
498
|
* @memberof json_ipc.ValuesSequence
|
|
499
499
|
* @interface ITransferredObj
|
|
500
|
-
* @property {number|null} [indexInPassed] TransferredObj indexInPassed
|
|
501
500
|
* @property {Array.<string>|null} [objLocation] TransferredObj objLocation
|
|
501
|
+
* @property {common.IObjectReference|null} [objRef] TransferredObj objRef
|
|
502
502
|
*/
|
|
503
503
|
|
|
504
504
|
/**
|
|
@@ -518,20 +518,20 @@ $root.json_ipc = (function() {
|
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
|
-
* TransferredObj
|
|
522
|
-
* @member {
|
|
521
|
+
* TransferredObj objLocation.
|
|
522
|
+
* @member {Array.<string>} objLocation
|
|
523
523
|
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
524
524
|
* @instance
|
|
525
525
|
*/
|
|
526
|
-
TransferredObj.prototype.
|
|
526
|
+
TransferredObj.prototype.objLocation = $util.emptyArray;
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
|
-
* TransferredObj
|
|
530
|
-
* @member {
|
|
529
|
+
* TransferredObj objRef.
|
|
530
|
+
* @member {common.IObjectReference|null|undefined} objRef
|
|
531
531
|
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
532
532
|
* @instance
|
|
533
533
|
*/
|
|
534
|
-
TransferredObj.prototype.
|
|
534
|
+
TransferredObj.prototype.objRef = null;
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
537
|
* Creates a new TransferredObj instance using the specified properties.
|
|
@@ -557,11 +557,11 @@ $root.json_ipc = (function() {
|
|
|
557
557
|
TransferredObj.encode = function encode(message, writer) {
|
|
558
558
|
if (!writer)
|
|
559
559
|
writer = $Writer.create();
|
|
560
|
-
if (message.indexInPassed != null && Object.hasOwnProperty.call(message, "indexInPassed"))
|
|
561
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.indexInPassed);
|
|
562
560
|
if (message.objLocation != null && message.objLocation.length)
|
|
563
561
|
for (var i = 0; i < message.objLocation.length; ++i)
|
|
564
|
-
writer.uint32(/* id
|
|
562
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objLocation[i]);
|
|
563
|
+
if (message.objRef != null && Object.hasOwnProperty.call(message, "objRef"))
|
|
564
|
+
$root.common.ObjectReference.encode(message.objRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
565
565
|
return writer;
|
|
566
566
|
};
|
|
567
567
|
|
|
@@ -597,15 +597,15 @@ $root.json_ipc = (function() {
|
|
|
597
597
|
var tag = reader.uint32();
|
|
598
598
|
switch (tag >>> 3) {
|
|
599
599
|
case 1: {
|
|
600
|
-
message.indexInPassed = reader.uint32();
|
|
601
|
-
break;
|
|
602
|
-
}
|
|
603
|
-
case 2: {
|
|
604
600
|
if (!(message.objLocation && message.objLocation.length))
|
|
605
601
|
message.objLocation = [];
|
|
606
602
|
message.objLocation.push(reader.string());
|
|
607
603
|
break;
|
|
608
604
|
}
|
|
605
|
+
case 2: {
|
|
606
|
+
message.objRef = $root.common.ObjectReference.decode(reader, reader.uint32());
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
609
|
default:
|
|
610
610
|
reader.skipType(tag & 7);
|
|
611
611
|
break;
|
|
@@ -641,9 +641,6 @@ $root.json_ipc = (function() {
|
|
|
641
641
|
TransferredObj.verify = function verify(message) {
|
|
642
642
|
if (typeof message !== "object" || message === null)
|
|
643
643
|
return "object expected";
|
|
644
|
-
if (message.indexInPassed != null && message.hasOwnProperty("indexInPassed"))
|
|
645
|
-
if (!$util.isInteger(message.indexInPassed))
|
|
646
|
-
return "indexInPassed: integer expected";
|
|
647
644
|
if (message.objLocation != null && message.hasOwnProperty("objLocation")) {
|
|
648
645
|
if (!Array.isArray(message.objLocation))
|
|
649
646
|
return "objLocation: array expected";
|
|
@@ -651,6 +648,11 @@ $root.json_ipc = (function() {
|
|
|
651
648
|
if (!$util.isString(message.objLocation[i]))
|
|
652
649
|
return "objLocation: string[] expected";
|
|
653
650
|
}
|
|
651
|
+
if (message.objRef != null && message.hasOwnProperty("objRef")) {
|
|
652
|
+
var error = $root.common.ObjectReference.verify(message.objRef);
|
|
653
|
+
if (error)
|
|
654
|
+
return "objRef." + error;
|
|
655
|
+
}
|
|
654
656
|
return null;
|
|
655
657
|
};
|
|
656
658
|
|
|
@@ -666,8 +668,6 @@ $root.json_ipc = (function() {
|
|
|
666
668
|
if (object instanceof $root.json_ipc.ValuesSequence.TransferredObj)
|
|
667
669
|
return object;
|
|
668
670
|
var message = new $root.json_ipc.ValuesSequence.TransferredObj();
|
|
669
|
-
if (object.indexInPassed != null)
|
|
670
|
-
message.indexInPassed = object.indexInPassed >>> 0;
|
|
671
671
|
if (object.objLocation) {
|
|
672
672
|
if (!Array.isArray(object.objLocation))
|
|
673
673
|
throw TypeError(".json_ipc.ValuesSequence.TransferredObj.objLocation: array expected");
|
|
@@ -675,6 +675,11 @@ $root.json_ipc = (function() {
|
|
|
675
675
|
for (var i = 0; i < object.objLocation.length; ++i)
|
|
676
676
|
message.objLocation[i] = String(object.objLocation[i]);
|
|
677
677
|
}
|
|
678
|
+
if (object.objRef != null) {
|
|
679
|
+
if (typeof object.objRef !== "object")
|
|
680
|
+
throw TypeError(".json_ipc.ValuesSequence.TransferredObj.objRef: object expected");
|
|
681
|
+
message.objRef = $root.common.ObjectReference.fromObject(object.objRef);
|
|
682
|
+
}
|
|
678
683
|
return message;
|
|
679
684
|
};
|
|
680
685
|
|
|
@@ -694,14 +699,14 @@ $root.json_ipc = (function() {
|
|
|
694
699
|
if (options.arrays || options.defaults)
|
|
695
700
|
object.objLocation = [];
|
|
696
701
|
if (options.defaults)
|
|
697
|
-
object.
|
|
698
|
-
if (message.indexInPassed != null && message.hasOwnProperty("indexInPassed"))
|
|
699
|
-
object.indexInPassed = message.indexInPassed;
|
|
702
|
+
object.objRef = null;
|
|
700
703
|
if (message.objLocation && message.objLocation.length) {
|
|
701
704
|
object.objLocation = [];
|
|
702
705
|
for (var j = 0; j < message.objLocation.length; ++j)
|
|
703
706
|
object.objLocation[j] = message.objLocation[j];
|
|
704
707
|
}
|
|
708
|
+
if (message.objRef != null && message.hasOwnProperty("objRef"))
|
|
709
|
+
object.objRef = $root.common.ObjectReference.toObject(message.objRef, options);
|
|
705
710
|
return object;
|
|
706
711
|
};
|
|
707
712
|
|
|
@@ -1090,4 +1095,2003 @@ $root.json_ipc = (function() {
|
|
|
1090
1095
|
return json_ipc;
|
|
1091
1096
|
})();
|
|
1092
1097
|
|
|
1098
|
+
$root.common = (function() {
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Namespace common.
|
|
1102
|
+
* @exports common
|
|
1103
|
+
* @namespace
|
|
1104
|
+
*/
|
|
1105
|
+
var common = {};
|
|
1106
|
+
|
|
1107
|
+
common.ObjectReference = (function() {
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Properties of an ObjectReference.
|
|
1111
|
+
* @memberof common
|
|
1112
|
+
* @interface IObjectReference
|
|
1113
|
+
* @property {string|null} [objType] ObjectReference objType
|
|
1114
|
+
* @property {Array.<string>|null} [path] ObjectReference path
|
|
1115
|
+
*/
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Constructs a new ObjectReference.
|
|
1119
|
+
* @memberof common
|
|
1120
|
+
* @classdesc Represents an ObjectReference.
|
|
1121
|
+
* @implements IObjectReference
|
|
1122
|
+
* @constructor
|
|
1123
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
1124
|
+
*/
|
|
1125
|
+
function ObjectReference(properties) {
|
|
1126
|
+
this.path = [];
|
|
1127
|
+
if (properties)
|
|
1128
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1129
|
+
if (properties[keys[i]] != null)
|
|
1130
|
+
this[keys[i]] = properties[keys[i]];
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* ObjectReference objType.
|
|
1135
|
+
* @member {string} objType
|
|
1136
|
+
* @memberof common.ObjectReference
|
|
1137
|
+
* @instance
|
|
1138
|
+
*/
|
|
1139
|
+
ObjectReference.prototype.objType = "";
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* ObjectReference path.
|
|
1143
|
+
* @member {Array.<string>} path
|
|
1144
|
+
* @memberof common.ObjectReference
|
|
1145
|
+
* @instance
|
|
1146
|
+
*/
|
|
1147
|
+
ObjectReference.prototype.path = $util.emptyArray;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Creates a new ObjectReference instance using the specified properties.
|
|
1151
|
+
* @function create
|
|
1152
|
+
* @memberof common.ObjectReference
|
|
1153
|
+
* @static
|
|
1154
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
1155
|
+
* @returns {common.ObjectReference} ObjectReference instance
|
|
1156
|
+
*/
|
|
1157
|
+
ObjectReference.create = function create(properties) {
|
|
1158
|
+
return new ObjectReference(properties);
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Encodes the specified ObjectReference message. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
1163
|
+
* @function encode
|
|
1164
|
+
* @memberof common.ObjectReference
|
|
1165
|
+
* @static
|
|
1166
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
1167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1168
|
+
* @returns {$protobuf.Writer} Writer
|
|
1169
|
+
*/
|
|
1170
|
+
ObjectReference.encode = function encode(message, writer) {
|
|
1171
|
+
if (!writer)
|
|
1172
|
+
writer = $Writer.create();
|
|
1173
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1174
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
1175
|
+
if (message.path != null && message.path.length)
|
|
1176
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
1177
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path[i]);
|
|
1178
|
+
return writer;
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Encodes the specified ObjectReference message, length delimited. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
1183
|
+
* @function encodeDelimited
|
|
1184
|
+
* @memberof common.ObjectReference
|
|
1185
|
+
* @static
|
|
1186
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
1187
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1188
|
+
* @returns {$protobuf.Writer} Writer
|
|
1189
|
+
*/
|
|
1190
|
+
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1191
|
+
return this.encode(message, writer).ldelim();
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Decodes an ObjectReference message from the specified reader or buffer.
|
|
1196
|
+
* @function decode
|
|
1197
|
+
* @memberof common.ObjectReference
|
|
1198
|
+
* @static
|
|
1199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1200
|
+
* @param {number} [length] Message length if known beforehand
|
|
1201
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1204
|
+
*/
|
|
1205
|
+
ObjectReference.decode = function decode(reader, length) {
|
|
1206
|
+
if (!(reader instanceof $Reader))
|
|
1207
|
+
reader = $Reader.create(reader);
|
|
1208
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
1209
|
+
while (reader.pos < end) {
|
|
1210
|
+
var tag = reader.uint32();
|
|
1211
|
+
switch (tag >>> 3) {
|
|
1212
|
+
case 1: {
|
|
1213
|
+
message.objType = reader.string();
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
case 2: {
|
|
1217
|
+
if (!(message.path && message.path.length))
|
|
1218
|
+
message.path = [];
|
|
1219
|
+
message.path.push(reader.string());
|
|
1220
|
+
break;
|
|
1221
|
+
}
|
|
1222
|
+
default:
|
|
1223
|
+
reader.skipType(tag & 7);
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
return message;
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Decodes an ObjectReference message from the specified reader or buffer, length delimited.
|
|
1232
|
+
* @function decodeDelimited
|
|
1233
|
+
* @memberof common.ObjectReference
|
|
1234
|
+
* @static
|
|
1235
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1236
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1237
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1238
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1239
|
+
*/
|
|
1240
|
+
ObjectReference.decodeDelimited = function decodeDelimited(reader) {
|
|
1241
|
+
if (!(reader instanceof $Reader))
|
|
1242
|
+
reader = new $Reader(reader);
|
|
1243
|
+
return this.decode(reader, reader.uint32());
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Verifies an ObjectReference message.
|
|
1248
|
+
* @function verify
|
|
1249
|
+
* @memberof common.ObjectReference
|
|
1250
|
+
* @static
|
|
1251
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1252
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1253
|
+
*/
|
|
1254
|
+
ObjectReference.verify = function verify(message) {
|
|
1255
|
+
if (typeof message !== "object" || message === null)
|
|
1256
|
+
return "object expected";
|
|
1257
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
1258
|
+
if (!$util.isString(message.objType))
|
|
1259
|
+
return "objType: string expected";
|
|
1260
|
+
if (message.path != null && message.hasOwnProperty("path")) {
|
|
1261
|
+
if (!Array.isArray(message.path))
|
|
1262
|
+
return "path: array expected";
|
|
1263
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
1264
|
+
if (!$util.isString(message.path[i]))
|
|
1265
|
+
return "path: string[] expected";
|
|
1266
|
+
}
|
|
1267
|
+
return null;
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Creates an ObjectReference message from a plain object. Also converts values to their respective internal types.
|
|
1272
|
+
* @function fromObject
|
|
1273
|
+
* @memberof common.ObjectReference
|
|
1274
|
+
* @static
|
|
1275
|
+
* @param {Object.<string,*>} object Plain object
|
|
1276
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1277
|
+
*/
|
|
1278
|
+
ObjectReference.fromObject = function fromObject(object) {
|
|
1279
|
+
if (object instanceof $root.common.ObjectReference)
|
|
1280
|
+
return object;
|
|
1281
|
+
var message = new $root.common.ObjectReference();
|
|
1282
|
+
if (object.objType != null)
|
|
1283
|
+
message.objType = String(object.objType);
|
|
1284
|
+
if (object.path) {
|
|
1285
|
+
if (!Array.isArray(object.path))
|
|
1286
|
+
throw TypeError(".common.ObjectReference.path: array expected");
|
|
1287
|
+
message.path = [];
|
|
1288
|
+
for (var i = 0; i < object.path.length; ++i)
|
|
1289
|
+
message.path[i] = String(object.path[i]);
|
|
1290
|
+
}
|
|
1291
|
+
return message;
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Creates a plain object from an ObjectReference message. Also converts values to other types if specified.
|
|
1296
|
+
* @function toObject
|
|
1297
|
+
* @memberof common.ObjectReference
|
|
1298
|
+
* @static
|
|
1299
|
+
* @param {common.ObjectReference} message ObjectReference
|
|
1300
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1301
|
+
* @returns {Object.<string,*>} Plain object
|
|
1302
|
+
*/
|
|
1303
|
+
ObjectReference.toObject = function toObject(message, options) {
|
|
1304
|
+
if (!options)
|
|
1305
|
+
options = {};
|
|
1306
|
+
var object = {};
|
|
1307
|
+
if (options.arrays || options.defaults)
|
|
1308
|
+
object.path = [];
|
|
1309
|
+
if (options.defaults)
|
|
1310
|
+
object.objType = "";
|
|
1311
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
1312
|
+
object.objType = message.objType;
|
|
1313
|
+
if (message.path && message.path.length) {
|
|
1314
|
+
object.path = [];
|
|
1315
|
+
for (var j = 0; j < message.path.length; ++j)
|
|
1316
|
+
object.path[j] = message.path[j];
|
|
1317
|
+
}
|
|
1318
|
+
return object;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Converts this ObjectReference to JSON.
|
|
1323
|
+
* @function toJSON
|
|
1324
|
+
* @memberof common.ObjectReference
|
|
1325
|
+
* @instance
|
|
1326
|
+
* @returns {Object.<string,*>} JSON object
|
|
1327
|
+
*/
|
|
1328
|
+
ObjectReference.prototype.toJSON = function toJSON() {
|
|
1329
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Gets the default type url for ObjectReference
|
|
1334
|
+
* @function getTypeUrl
|
|
1335
|
+
* @memberof common.ObjectReference
|
|
1336
|
+
* @static
|
|
1337
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1338
|
+
* @returns {string} The default type url
|
|
1339
|
+
*/
|
|
1340
|
+
ObjectReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1341
|
+
if (typeUrlPrefix === undefined) {
|
|
1342
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1343
|
+
}
|
|
1344
|
+
return typeUrlPrefix + "/common.ObjectReference";
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
return ObjectReference;
|
|
1348
|
+
})();
|
|
1349
|
+
|
|
1350
|
+
common.BooleanValue = (function() {
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Properties of a BooleanValue.
|
|
1354
|
+
* @memberof common
|
|
1355
|
+
* @interface IBooleanValue
|
|
1356
|
+
* @property {boolean|null} [value] BooleanValue value
|
|
1357
|
+
*/
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Constructs a new BooleanValue.
|
|
1361
|
+
* @memberof common
|
|
1362
|
+
* @classdesc Represents a BooleanValue.
|
|
1363
|
+
* @implements IBooleanValue
|
|
1364
|
+
* @constructor
|
|
1365
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
1366
|
+
*/
|
|
1367
|
+
function BooleanValue(properties) {
|
|
1368
|
+
if (properties)
|
|
1369
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1370
|
+
if (properties[keys[i]] != null)
|
|
1371
|
+
this[keys[i]] = properties[keys[i]];
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* BooleanValue value.
|
|
1376
|
+
* @member {boolean} value
|
|
1377
|
+
* @memberof common.BooleanValue
|
|
1378
|
+
* @instance
|
|
1379
|
+
*/
|
|
1380
|
+
BooleanValue.prototype.value = false;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Creates a new BooleanValue instance using the specified properties.
|
|
1384
|
+
* @function create
|
|
1385
|
+
* @memberof common.BooleanValue
|
|
1386
|
+
* @static
|
|
1387
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
1388
|
+
* @returns {common.BooleanValue} BooleanValue instance
|
|
1389
|
+
*/
|
|
1390
|
+
BooleanValue.create = function create(properties) {
|
|
1391
|
+
return new BooleanValue(properties);
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Encodes the specified BooleanValue message. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
1396
|
+
* @function encode
|
|
1397
|
+
* @memberof common.BooleanValue
|
|
1398
|
+
* @static
|
|
1399
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
1400
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1401
|
+
* @returns {$protobuf.Writer} Writer
|
|
1402
|
+
*/
|
|
1403
|
+
BooleanValue.encode = function encode(message, writer) {
|
|
1404
|
+
if (!writer)
|
|
1405
|
+
writer = $Writer.create();
|
|
1406
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1407
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
1408
|
+
return writer;
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Encodes the specified BooleanValue message, length delimited. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
1413
|
+
* @function encodeDelimited
|
|
1414
|
+
* @memberof common.BooleanValue
|
|
1415
|
+
* @static
|
|
1416
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
1417
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1418
|
+
* @returns {$protobuf.Writer} Writer
|
|
1419
|
+
*/
|
|
1420
|
+
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1421
|
+
return this.encode(message, writer).ldelim();
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Decodes a BooleanValue message from the specified reader or buffer.
|
|
1426
|
+
* @function decode
|
|
1427
|
+
* @memberof common.BooleanValue
|
|
1428
|
+
* @static
|
|
1429
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1430
|
+
* @param {number} [length] Message length if known beforehand
|
|
1431
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1432
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1433
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1434
|
+
*/
|
|
1435
|
+
BooleanValue.decode = function decode(reader, length) {
|
|
1436
|
+
if (!(reader instanceof $Reader))
|
|
1437
|
+
reader = $Reader.create(reader);
|
|
1438
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
1439
|
+
while (reader.pos < end) {
|
|
1440
|
+
var tag = reader.uint32();
|
|
1441
|
+
switch (tag >>> 3) {
|
|
1442
|
+
case 1: {
|
|
1443
|
+
message.value = reader.bool();
|
|
1444
|
+
break;
|
|
1445
|
+
}
|
|
1446
|
+
default:
|
|
1447
|
+
reader.skipType(tag & 7);
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
return message;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Decodes a BooleanValue message from the specified reader or buffer, length delimited.
|
|
1456
|
+
* @function decodeDelimited
|
|
1457
|
+
* @memberof common.BooleanValue
|
|
1458
|
+
* @static
|
|
1459
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1460
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1463
|
+
*/
|
|
1464
|
+
BooleanValue.decodeDelimited = function decodeDelimited(reader) {
|
|
1465
|
+
if (!(reader instanceof $Reader))
|
|
1466
|
+
reader = new $Reader(reader);
|
|
1467
|
+
return this.decode(reader, reader.uint32());
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Verifies a BooleanValue message.
|
|
1472
|
+
* @function verify
|
|
1473
|
+
* @memberof common.BooleanValue
|
|
1474
|
+
* @static
|
|
1475
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1476
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1477
|
+
*/
|
|
1478
|
+
BooleanValue.verify = function verify(message) {
|
|
1479
|
+
if (typeof message !== "object" || message === null)
|
|
1480
|
+
return "object expected";
|
|
1481
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1482
|
+
if (typeof message.value !== "boolean")
|
|
1483
|
+
return "value: boolean expected";
|
|
1484
|
+
return null;
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Creates a BooleanValue message from a plain object. Also converts values to their respective internal types.
|
|
1489
|
+
* @function fromObject
|
|
1490
|
+
* @memberof common.BooleanValue
|
|
1491
|
+
* @static
|
|
1492
|
+
* @param {Object.<string,*>} object Plain object
|
|
1493
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1494
|
+
*/
|
|
1495
|
+
BooleanValue.fromObject = function fromObject(object) {
|
|
1496
|
+
if (object instanceof $root.common.BooleanValue)
|
|
1497
|
+
return object;
|
|
1498
|
+
var message = new $root.common.BooleanValue();
|
|
1499
|
+
if (object.value != null)
|
|
1500
|
+
message.value = Boolean(object.value);
|
|
1501
|
+
return message;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Creates a plain object from a BooleanValue message. Also converts values to other types if specified.
|
|
1506
|
+
* @function toObject
|
|
1507
|
+
* @memberof common.BooleanValue
|
|
1508
|
+
* @static
|
|
1509
|
+
* @param {common.BooleanValue} message BooleanValue
|
|
1510
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1511
|
+
* @returns {Object.<string,*>} Plain object
|
|
1512
|
+
*/
|
|
1513
|
+
BooleanValue.toObject = function toObject(message, options) {
|
|
1514
|
+
if (!options)
|
|
1515
|
+
options = {};
|
|
1516
|
+
var object = {};
|
|
1517
|
+
if (options.defaults)
|
|
1518
|
+
object.value = false;
|
|
1519
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1520
|
+
object.value = message.value;
|
|
1521
|
+
return object;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Converts this BooleanValue to JSON.
|
|
1526
|
+
* @function toJSON
|
|
1527
|
+
* @memberof common.BooleanValue
|
|
1528
|
+
* @instance
|
|
1529
|
+
* @returns {Object.<string,*>} JSON object
|
|
1530
|
+
*/
|
|
1531
|
+
BooleanValue.prototype.toJSON = function toJSON() {
|
|
1532
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Gets the default type url for BooleanValue
|
|
1537
|
+
* @function getTypeUrl
|
|
1538
|
+
* @memberof common.BooleanValue
|
|
1539
|
+
* @static
|
|
1540
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1541
|
+
* @returns {string} The default type url
|
|
1542
|
+
*/
|
|
1543
|
+
BooleanValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1544
|
+
if (typeUrlPrefix === undefined) {
|
|
1545
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1546
|
+
}
|
|
1547
|
+
return typeUrlPrefix + "/common.BooleanValue";
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
return BooleanValue;
|
|
1551
|
+
})();
|
|
1552
|
+
|
|
1553
|
+
common.StringArrayValue = (function() {
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* Properties of a StringArrayValue.
|
|
1557
|
+
* @memberof common
|
|
1558
|
+
* @interface IStringArrayValue
|
|
1559
|
+
* @property {Array.<string>|null} [values] StringArrayValue values
|
|
1560
|
+
*/
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Constructs a new StringArrayValue.
|
|
1564
|
+
* @memberof common
|
|
1565
|
+
* @classdesc Represents a StringArrayValue.
|
|
1566
|
+
* @implements IStringArrayValue
|
|
1567
|
+
* @constructor
|
|
1568
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
1569
|
+
*/
|
|
1570
|
+
function StringArrayValue(properties) {
|
|
1571
|
+
this.values = [];
|
|
1572
|
+
if (properties)
|
|
1573
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1574
|
+
if (properties[keys[i]] != null)
|
|
1575
|
+
this[keys[i]] = properties[keys[i]];
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* StringArrayValue values.
|
|
1580
|
+
* @member {Array.<string>} values
|
|
1581
|
+
* @memberof common.StringArrayValue
|
|
1582
|
+
* @instance
|
|
1583
|
+
*/
|
|
1584
|
+
StringArrayValue.prototype.values = $util.emptyArray;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Creates a new StringArrayValue instance using the specified properties.
|
|
1588
|
+
* @function create
|
|
1589
|
+
* @memberof common.StringArrayValue
|
|
1590
|
+
* @static
|
|
1591
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
1592
|
+
* @returns {common.StringArrayValue} StringArrayValue instance
|
|
1593
|
+
*/
|
|
1594
|
+
StringArrayValue.create = function create(properties) {
|
|
1595
|
+
return new StringArrayValue(properties);
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Encodes the specified StringArrayValue message. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
1600
|
+
* @function encode
|
|
1601
|
+
* @memberof common.StringArrayValue
|
|
1602
|
+
* @static
|
|
1603
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
1604
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1605
|
+
* @returns {$protobuf.Writer} Writer
|
|
1606
|
+
*/
|
|
1607
|
+
StringArrayValue.encode = function encode(message, writer) {
|
|
1608
|
+
if (!writer)
|
|
1609
|
+
writer = $Writer.create();
|
|
1610
|
+
if (message.values != null && message.values.length)
|
|
1611
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
1612
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
1613
|
+
return writer;
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Encodes the specified StringArrayValue message, length delimited. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
1618
|
+
* @function encodeDelimited
|
|
1619
|
+
* @memberof common.StringArrayValue
|
|
1620
|
+
* @static
|
|
1621
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
1622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1623
|
+
* @returns {$protobuf.Writer} Writer
|
|
1624
|
+
*/
|
|
1625
|
+
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1626
|
+
return this.encode(message, writer).ldelim();
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Decodes a StringArrayValue message from the specified reader or buffer.
|
|
1631
|
+
* @function decode
|
|
1632
|
+
* @memberof common.StringArrayValue
|
|
1633
|
+
* @static
|
|
1634
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1635
|
+
* @param {number} [length] Message length if known beforehand
|
|
1636
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1637
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1638
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1639
|
+
*/
|
|
1640
|
+
StringArrayValue.decode = function decode(reader, length) {
|
|
1641
|
+
if (!(reader instanceof $Reader))
|
|
1642
|
+
reader = $Reader.create(reader);
|
|
1643
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
1644
|
+
while (reader.pos < end) {
|
|
1645
|
+
var tag = reader.uint32();
|
|
1646
|
+
switch (tag >>> 3) {
|
|
1647
|
+
case 1: {
|
|
1648
|
+
if (!(message.values && message.values.length))
|
|
1649
|
+
message.values = [];
|
|
1650
|
+
message.values.push(reader.string());
|
|
1651
|
+
break;
|
|
1652
|
+
}
|
|
1653
|
+
default:
|
|
1654
|
+
reader.skipType(tag & 7);
|
|
1655
|
+
break;
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
return message;
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* Decodes a StringArrayValue message from the specified reader or buffer, length delimited.
|
|
1663
|
+
* @function decodeDelimited
|
|
1664
|
+
* @memberof common.StringArrayValue
|
|
1665
|
+
* @static
|
|
1666
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1667
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1670
|
+
*/
|
|
1671
|
+
StringArrayValue.decodeDelimited = function decodeDelimited(reader) {
|
|
1672
|
+
if (!(reader instanceof $Reader))
|
|
1673
|
+
reader = new $Reader(reader);
|
|
1674
|
+
return this.decode(reader, reader.uint32());
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* Verifies a StringArrayValue message.
|
|
1679
|
+
* @function verify
|
|
1680
|
+
* @memberof common.StringArrayValue
|
|
1681
|
+
* @static
|
|
1682
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1683
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1684
|
+
*/
|
|
1685
|
+
StringArrayValue.verify = function verify(message) {
|
|
1686
|
+
if (typeof message !== "object" || message === null)
|
|
1687
|
+
return "object expected";
|
|
1688
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
1689
|
+
if (!Array.isArray(message.values))
|
|
1690
|
+
return "values: array expected";
|
|
1691
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
1692
|
+
if (!$util.isString(message.values[i]))
|
|
1693
|
+
return "values: string[] expected";
|
|
1694
|
+
}
|
|
1695
|
+
return null;
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Creates a StringArrayValue message from a plain object. Also converts values to their respective internal types.
|
|
1700
|
+
* @function fromObject
|
|
1701
|
+
* @memberof common.StringArrayValue
|
|
1702
|
+
* @static
|
|
1703
|
+
* @param {Object.<string,*>} object Plain object
|
|
1704
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1705
|
+
*/
|
|
1706
|
+
StringArrayValue.fromObject = function fromObject(object) {
|
|
1707
|
+
if (object instanceof $root.common.StringArrayValue)
|
|
1708
|
+
return object;
|
|
1709
|
+
var message = new $root.common.StringArrayValue();
|
|
1710
|
+
if (object.values) {
|
|
1711
|
+
if (!Array.isArray(object.values))
|
|
1712
|
+
throw TypeError(".common.StringArrayValue.values: array expected");
|
|
1713
|
+
message.values = [];
|
|
1714
|
+
for (var i = 0; i < object.values.length; ++i)
|
|
1715
|
+
message.values[i] = String(object.values[i]);
|
|
1716
|
+
}
|
|
1717
|
+
return message;
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Creates a plain object from a StringArrayValue message. Also converts values to other types if specified.
|
|
1722
|
+
* @function toObject
|
|
1723
|
+
* @memberof common.StringArrayValue
|
|
1724
|
+
* @static
|
|
1725
|
+
* @param {common.StringArrayValue} message StringArrayValue
|
|
1726
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1727
|
+
* @returns {Object.<string,*>} Plain object
|
|
1728
|
+
*/
|
|
1729
|
+
StringArrayValue.toObject = function toObject(message, options) {
|
|
1730
|
+
if (!options)
|
|
1731
|
+
options = {};
|
|
1732
|
+
var object = {};
|
|
1733
|
+
if (options.arrays || options.defaults)
|
|
1734
|
+
object.values = [];
|
|
1735
|
+
if (message.values && message.values.length) {
|
|
1736
|
+
object.values = [];
|
|
1737
|
+
for (var j = 0; j < message.values.length; ++j)
|
|
1738
|
+
object.values[j] = message.values[j];
|
|
1739
|
+
}
|
|
1740
|
+
return object;
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* Converts this StringArrayValue to JSON.
|
|
1745
|
+
* @function toJSON
|
|
1746
|
+
* @memberof common.StringArrayValue
|
|
1747
|
+
* @instance
|
|
1748
|
+
* @returns {Object.<string,*>} JSON object
|
|
1749
|
+
*/
|
|
1750
|
+
StringArrayValue.prototype.toJSON = function toJSON() {
|
|
1751
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* Gets the default type url for StringArrayValue
|
|
1756
|
+
* @function getTypeUrl
|
|
1757
|
+
* @memberof common.StringArrayValue
|
|
1758
|
+
* @static
|
|
1759
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1760
|
+
* @returns {string} The default type url
|
|
1761
|
+
*/
|
|
1762
|
+
StringArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1763
|
+
if (typeUrlPrefix === undefined) {
|
|
1764
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1765
|
+
}
|
|
1766
|
+
return typeUrlPrefix + "/common.StringArrayValue";
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
return StringArrayValue;
|
|
1770
|
+
})();
|
|
1771
|
+
|
|
1772
|
+
common.UInt64Value = (function() {
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Properties of a UInt64Value.
|
|
1776
|
+
* @memberof common
|
|
1777
|
+
* @interface IUInt64Value
|
|
1778
|
+
* @property {number|Long|null} [value] UInt64Value value
|
|
1779
|
+
*/
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Constructs a new UInt64Value.
|
|
1783
|
+
* @memberof common
|
|
1784
|
+
* @classdesc Represents a UInt64Value.
|
|
1785
|
+
* @implements IUInt64Value
|
|
1786
|
+
* @constructor
|
|
1787
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
1788
|
+
*/
|
|
1789
|
+
function UInt64Value(properties) {
|
|
1790
|
+
if (properties)
|
|
1791
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1792
|
+
if (properties[keys[i]] != null)
|
|
1793
|
+
this[keys[i]] = properties[keys[i]];
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* UInt64Value value.
|
|
1798
|
+
* @member {number|Long} value
|
|
1799
|
+
* @memberof common.UInt64Value
|
|
1800
|
+
* @instance
|
|
1801
|
+
*/
|
|
1802
|
+
UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Creates a new UInt64Value instance using the specified properties.
|
|
1806
|
+
* @function create
|
|
1807
|
+
* @memberof common.UInt64Value
|
|
1808
|
+
* @static
|
|
1809
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
1810
|
+
* @returns {common.UInt64Value} UInt64Value instance
|
|
1811
|
+
*/
|
|
1812
|
+
UInt64Value.create = function create(properties) {
|
|
1813
|
+
return new UInt64Value(properties);
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* Encodes the specified UInt64Value message. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
1818
|
+
* @function encode
|
|
1819
|
+
* @memberof common.UInt64Value
|
|
1820
|
+
* @static
|
|
1821
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
1822
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1823
|
+
* @returns {$protobuf.Writer} Writer
|
|
1824
|
+
*/
|
|
1825
|
+
UInt64Value.encode = function encode(message, writer) {
|
|
1826
|
+
if (!writer)
|
|
1827
|
+
writer = $Writer.create();
|
|
1828
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1829
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
1830
|
+
return writer;
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
1835
|
+
* @function encodeDelimited
|
|
1836
|
+
* @memberof common.UInt64Value
|
|
1837
|
+
* @static
|
|
1838
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
1839
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1840
|
+
* @returns {$protobuf.Writer} Writer
|
|
1841
|
+
*/
|
|
1842
|
+
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1843
|
+
return this.encode(message, writer).ldelim();
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Decodes a UInt64Value message from the specified reader or buffer.
|
|
1848
|
+
* @function decode
|
|
1849
|
+
* @memberof common.UInt64Value
|
|
1850
|
+
* @static
|
|
1851
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1852
|
+
* @param {number} [length] Message length if known beforehand
|
|
1853
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1856
|
+
*/
|
|
1857
|
+
UInt64Value.decode = function decode(reader, length) {
|
|
1858
|
+
if (!(reader instanceof $Reader))
|
|
1859
|
+
reader = $Reader.create(reader);
|
|
1860
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
1861
|
+
while (reader.pos < end) {
|
|
1862
|
+
var tag = reader.uint32();
|
|
1863
|
+
switch (tag >>> 3) {
|
|
1864
|
+
case 1: {
|
|
1865
|
+
message.value = reader.uint64();
|
|
1866
|
+
break;
|
|
1867
|
+
}
|
|
1868
|
+
default:
|
|
1869
|
+
reader.skipType(tag & 7);
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
return message;
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Decodes a UInt64Value message from the specified reader or buffer, length delimited.
|
|
1878
|
+
* @function decodeDelimited
|
|
1879
|
+
* @memberof common.UInt64Value
|
|
1880
|
+
* @static
|
|
1881
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1882
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1883
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1884
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1885
|
+
*/
|
|
1886
|
+
UInt64Value.decodeDelimited = function decodeDelimited(reader) {
|
|
1887
|
+
if (!(reader instanceof $Reader))
|
|
1888
|
+
reader = new $Reader(reader);
|
|
1889
|
+
return this.decode(reader, reader.uint32());
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Verifies a UInt64Value message.
|
|
1894
|
+
* @function verify
|
|
1895
|
+
* @memberof common.UInt64Value
|
|
1896
|
+
* @static
|
|
1897
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1898
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1899
|
+
*/
|
|
1900
|
+
UInt64Value.verify = function verify(message) {
|
|
1901
|
+
if (typeof message !== "object" || message === null)
|
|
1902
|
+
return "object expected";
|
|
1903
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1904
|
+
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
1905
|
+
return "value: integer|Long expected";
|
|
1906
|
+
return null;
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
|
|
1911
|
+
* @function fromObject
|
|
1912
|
+
* @memberof common.UInt64Value
|
|
1913
|
+
* @static
|
|
1914
|
+
* @param {Object.<string,*>} object Plain object
|
|
1915
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1916
|
+
*/
|
|
1917
|
+
UInt64Value.fromObject = function fromObject(object) {
|
|
1918
|
+
if (object instanceof $root.common.UInt64Value)
|
|
1919
|
+
return object;
|
|
1920
|
+
var message = new $root.common.UInt64Value();
|
|
1921
|
+
if (object.value != null)
|
|
1922
|
+
if ($util.Long)
|
|
1923
|
+
(message.value = $util.Long.fromValue(object.value)).unsigned = true;
|
|
1924
|
+
else if (typeof object.value === "string")
|
|
1925
|
+
message.value = parseInt(object.value, 10);
|
|
1926
|
+
else if (typeof object.value === "number")
|
|
1927
|
+
message.value = object.value;
|
|
1928
|
+
else if (typeof object.value === "object")
|
|
1929
|
+
message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
|
|
1930
|
+
return message;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
|
|
1935
|
+
* @function toObject
|
|
1936
|
+
* @memberof common.UInt64Value
|
|
1937
|
+
* @static
|
|
1938
|
+
* @param {common.UInt64Value} message UInt64Value
|
|
1939
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1940
|
+
* @returns {Object.<string,*>} Plain object
|
|
1941
|
+
*/
|
|
1942
|
+
UInt64Value.toObject = function toObject(message, options) {
|
|
1943
|
+
if (!options)
|
|
1944
|
+
options = {};
|
|
1945
|
+
var object = {};
|
|
1946
|
+
if (options.defaults)
|
|
1947
|
+
if ($util.Long) {
|
|
1948
|
+
var long = new $util.Long(0, 0, true);
|
|
1949
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1950
|
+
} else
|
|
1951
|
+
object.value = options.longs === String ? "0" : 0;
|
|
1952
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1953
|
+
if (typeof message.value === "number")
|
|
1954
|
+
object.value = options.longs === String ? String(message.value) : message.value;
|
|
1955
|
+
else
|
|
1956
|
+
object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
|
|
1957
|
+
return object;
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* Converts this UInt64Value to JSON.
|
|
1962
|
+
* @function toJSON
|
|
1963
|
+
* @memberof common.UInt64Value
|
|
1964
|
+
* @instance
|
|
1965
|
+
* @returns {Object.<string,*>} JSON object
|
|
1966
|
+
*/
|
|
1967
|
+
UInt64Value.prototype.toJSON = function toJSON() {
|
|
1968
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Gets the default type url for UInt64Value
|
|
1973
|
+
* @function getTypeUrl
|
|
1974
|
+
* @memberof common.UInt64Value
|
|
1975
|
+
* @static
|
|
1976
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1977
|
+
* @returns {string} The default type url
|
|
1978
|
+
*/
|
|
1979
|
+
UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1980
|
+
if (typeUrlPrefix === undefined) {
|
|
1981
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1982
|
+
}
|
|
1983
|
+
return typeUrlPrefix + "/common.UInt64Value";
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
return UInt64Value;
|
|
1987
|
+
})();
|
|
1988
|
+
|
|
1989
|
+
common.UInt32Value = (function() {
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Properties of a UInt32Value.
|
|
1993
|
+
* @memberof common
|
|
1994
|
+
* @interface IUInt32Value
|
|
1995
|
+
* @property {number|null} [value] UInt32Value value
|
|
1996
|
+
*/
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Constructs a new UInt32Value.
|
|
2000
|
+
* @memberof common
|
|
2001
|
+
* @classdesc Represents a UInt32Value.
|
|
2002
|
+
* @implements IUInt32Value
|
|
2003
|
+
* @constructor
|
|
2004
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
2005
|
+
*/
|
|
2006
|
+
function UInt32Value(properties) {
|
|
2007
|
+
if (properties)
|
|
2008
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2009
|
+
if (properties[keys[i]] != null)
|
|
2010
|
+
this[keys[i]] = properties[keys[i]];
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* UInt32Value value.
|
|
2015
|
+
* @member {number} value
|
|
2016
|
+
* @memberof common.UInt32Value
|
|
2017
|
+
* @instance
|
|
2018
|
+
*/
|
|
2019
|
+
UInt32Value.prototype.value = 0;
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* Creates a new UInt32Value instance using the specified properties.
|
|
2023
|
+
* @function create
|
|
2024
|
+
* @memberof common.UInt32Value
|
|
2025
|
+
* @static
|
|
2026
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
2027
|
+
* @returns {common.UInt32Value} UInt32Value instance
|
|
2028
|
+
*/
|
|
2029
|
+
UInt32Value.create = function create(properties) {
|
|
2030
|
+
return new UInt32Value(properties);
|
|
2031
|
+
};
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* Encodes the specified UInt32Value message. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
2035
|
+
* @function encode
|
|
2036
|
+
* @memberof common.UInt32Value
|
|
2037
|
+
* @static
|
|
2038
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
2039
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2040
|
+
* @returns {$protobuf.Writer} Writer
|
|
2041
|
+
*/
|
|
2042
|
+
UInt32Value.encode = function encode(message, writer) {
|
|
2043
|
+
if (!writer)
|
|
2044
|
+
writer = $Writer.create();
|
|
2045
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2046
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
2047
|
+
return writer;
|
|
2048
|
+
};
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
2052
|
+
* @function encodeDelimited
|
|
2053
|
+
* @memberof common.UInt32Value
|
|
2054
|
+
* @static
|
|
2055
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
2056
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2057
|
+
* @returns {$protobuf.Writer} Writer
|
|
2058
|
+
*/
|
|
2059
|
+
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2060
|
+
return this.encode(message, writer).ldelim();
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Decodes a UInt32Value message from the specified reader or buffer.
|
|
2065
|
+
* @function decode
|
|
2066
|
+
* @memberof common.UInt32Value
|
|
2067
|
+
* @static
|
|
2068
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2069
|
+
* @param {number} [length] Message length if known beforehand
|
|
2070
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2071
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2072
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2073
|
+
*/
|
|
2074
|
+
UInt32Value.decode = function decode(reader, length) {
|
|
2075
|
+
if (!(reader instanceof $Reader))
|
|
2076
|
+
reader = $Reader.create(reader);
|
|
2077
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
2078
|
+
while (reader.pos < end) {
|
|
2079
|
+
var tag = reader.uint32();
|
|
2080
|
+
switch (tag >>> 3) {
|
|
2081
|
+
case 1: {
|
|
2082
|
+
message.value = reader.uint32();
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
default:
|
|
2086
|
+
reader.skipType(tag & 7);
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
return message;
|
|
2091
|
+
};
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* Decodes a UInt32Value message from the specified reader or buffer, length delimited.
|
|
2095
|
+
* @function decodeDelimited
|
|
2096
|
+
* @memberof common.UInt32Value
|
|
2097
|
+
* @static
|
|
2098
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2099
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2100
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2101
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2102
|
+
*/
|
|
2103
|
+
UInt32Value.decodeDelimited = function decodeDelimited(reader) {
|
|
2104
|
+
if (!(reader instanceof $Reader))
|
|
2105
|
+
reader = new $Reader(reader);
|
|
2106
|
+
return this.decode(reader, reader.uint32());
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Verifies a UInt32Value message.
|
|
2111
|
+
* @function verify
|
|
2112
|
+
* @memberof common.UInt32Value
|
|
2113
|
+
* @static
|
|
2114
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2115
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2116
|
+
*/
|
|
2117
|
+
UInt32Value.verify = function verify(message) {
|
|
2118
|
+
if (typeof message !== "object" || message === null)
|
|
2119
|
+
return "object expected";
|
|
2120
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2121
|
+
if (!$util.isInteger(message.value))
|
|
2122
|
+
return "value: integer expected";
|
|
2123
|
+
return null;
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
|
|
2128
|
+
* @function fromObject
|
|
2129
|
+
* @memberof common.UInt32Value
|
|
2130
|
+
* @static
|
|
2131
|
+
* @param {Object.<string,*>} object Plain object
|
|
2132
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2133
|
+
*/
|
|
2134
|
+
UInt32Value.fromObject = function fromObject(object) {
|
|
2135
|
+
if (object instanceof $root.common.UInt32Value)
|
|
2136
|
+
return object;
|
|
2137
|
+
var message = new $root.common.UInt32Value();
|
|
2138
|
+
if (object.value != null)
|
|
2139
|
+
message.value = object.value >>> 0;
|
|
2140
|
+
return message;
|
|
2141
|
+
};
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
|
|
2145
|
+
* @function toObject
|
|
2146
|
+
* @memberof common.UInt32Value
|
|
2147
|
+
* @static
|
|
2148
|
+
* @param {common.UInt32Value} message UInt32Value
|
|
2149
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2150
|
+
* @returns {Object.<string,*>} Plain object
|
|
2151
|
+
*/
|
|
2152
|
+
UInt32Value.toObject = function toObject(message, options) {
|
|
2153
|
+
if (!options)
|
|
2154
|
+
options = {};
|
|
2155
|
+
var object = {};
|
|
2156
|
+
if (options.defaults)
|
|
2157
|
+
object.value = 0;
|
|
2158
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2159
|
+
object.value = message.value;
|
|
2160
|
+
return object;
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Converts this UInt32Value to JSON.
|
|
2165
|
+
* @function toJSON
|
|
2166
|
+
* @memberof common.UInt32Value
|
|
2167
|
+
* @instance
|
|
2168
|
+
* @returns {Object.<string,*>} JSON object
|
|
2169
|
+
*/
|
|
2170
|
+
UInt32Value.prototype.toJSON = function toJSON() {
|
|
2171
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* Gets the default type url for UInt32Value
|
|
2176
|
+
* @function getTypeUrl
|
|
2177
|
+
* @memberof common.UInt32Value
|
|
2178
|
+
* @static
|
|
2179
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2180
|
+
* @returns {string} The default type url
|
|
2181
|
+
*/
|
|
2182
|
+
UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2183
|
+
if (typeUrlPrefix === undefined) {
|
|
2184
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2185
|
+
}
|
|
2186
|
+
return typeUrlPrefix + "/common.UInt32Value";
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
return UInt32Value;
|
|
2190
|
+
})();
|
|
2191
|
+
|
|
2192
|
+
common.StringValue = (function() {
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* Properties of a StringValue.
|
|
2196
|
+
* @memberof common
|
|
2197
|
+
* @interface IStringValue
|
|
2198
|
+
* @property {string|null} [value] StringValue value
|
|
2199
|
+
*/
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* Constructs a new StringValue.
|
|
2203
|
+
* @memberof common
|
|
2204
|
+
* @classdesc Represents a StringValue.
|
|
2205
|
+
* @implements IStringValue
|
|
2206
|
+
* @constructor
|
|
2207
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
2208
|
+
*/
|
|
2209
|
+
function StringValue(properties) {
|
|
2210
|
+
if (properties)
|
|
2211
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2212
|
+
if (properties[keys[i]] != null)
|
|
2213
|
+
this[keys[i]] = properties[keys[i]];
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* StringValue value.
|
|
2218
|
+
* @member {string} value
|
|
2219
|
+
* @memberof common.StringValue
|
|
2220
|
+
* @instance
|
|
2221
|
+
*/
|
|
2222
|
+
StringValue.prototype.value = "";
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Creates a new StringValue instance using the specified properties.
|
|
2226
|
+
* @function create
|
|
2227
|
+
* @memberof common.StringValue
|
|
2228
|
+
* @static
|
|
2229
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
2230
|
+
* @returns {common.StringValue} StringValue instance
|
|
2231
|
+
*/
|
|
2232
|
+
StringValue.create = function create(properties) {
|
|
2233
|
+
return new StringValue(properties);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Encodes the specified StringValue message. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
2238
|
+
* @function encode
|
|
2239
|
+
* @memberof common.StringValue
|
|
2240
|
+
* @static
|
|
2241
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
2242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2243
|
+
* @returns {$protobuf.Writer} Writer
|
|
2244
|
+
*/
|
|
2245
|
+
StringValue.encode = function encode(message, writer) {
|
|
2246
|
+
if (!writer)
|
|
2247
|
+
writer = $Writer.create();
|
|
2248
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2249
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
2250
|
+
return writer;
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* Encodes the specified StringValue message, length delimited. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
2255
|
+
* @function encodeDelimited
|
|
2256
|
+
* @memberof common.StringValue
|
|
2257
|
+
* @static
|
|
2258
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
2259
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2260
|
+
* @returns {$protobuf.Writer} Writer
|
|
2261
|
+
*/
|
|
2262
|
+
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2263
|
+
return this.encode(message, writer).ldelim();
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Decodes a StringValue message from the specified reader or buffer.
|
|
2268
|
+
* @function decode
|
|
2269
|
+
* @memberof common.StringValue
|
|
2270
|
+
* @static
|
|
2271
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2272
|
+
* @param {number} [length] Message length if known beforehand
|
|
2273
|
+
* @returns {common.StringValue} StringValue
|
|
2274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2276
|
+
*/
|
|
2277
|
+
StringValue.decode = function decode(reader, length) {
|
|
2278
|
+
if (!(reader instanceof $Reader))
|
|
2279
|
+
reader = $Reader.create(reader);
|
|
2280
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
2281
|
+
while (reader.pos < end) {
|
|
2282
|
+
var tag = reader.uint32();
|
|
2283
|
+
switch (tag >>> 3) {
|
|
2284
|
+
case 1: {
|
|
2285
|
+
message.value = reader.string();
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
default:
|
|
2289
|
+
reader.skipType(tag & 7);
|
|
2290
|
+
break;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
return message;
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* Decodes a StringValue message from the specified reader or buffer, length delimited.
|
|
2298
|
+
* @function decodeDelimited
|
|
2299
|
+
* @memberof common.StringValue
|
|
2300
|
+
* @static
|
|
2301
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2302
|
+
* @returns {common.StringValue} StringValue
|
|
2303
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2304
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2305
|
+
*/
|
|
2306
|
+
StringValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2307
|
+
if (!(reader instanceof $Reader))
|
|
2308
|
+
reader = new $Reader(reader);
|
|
2309
|
+
return this.decode(reader, reader.uint32());
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Verifies a StringValue message.
|
|
2314
|
+
* @function verify
|
|
2315
|
+
* @memberof common.StringValue
|
|
2316
|
+
* @static
|
|
2317
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2318
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2319
|
+
*/
|
|
2320
|
+
StringValue.verify = function verify(message) {
|
|
2321
|
+
if (typeof message !== "object" || message === null)
|
|
2322
|
+
return "object expected";
|
|
2323
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2324
|
+
if (!$util.isString(message.value))
|
|
2325
|
+
return "value: string expected";
|
|
2326
|
+
return null;
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* Creates a StringValue message from a plain object. Also converts values to their respective internal types.
|
|
2331
|
+
* @function fromObject
|
|
2332
|
+
* @memberof common.StringValue
|
|
2333
|
+
* @static
|
|
2334
|
+
* @param {Object.<string,*>} object Plain object
|
|
2335
|
+
* @returns {common.StringValue} StringValue
|
|
2336
|
+
*/
|
|
2337
|
+
StringValue.fromObject = function fromObject(object) {
|
|
2338
|
+
if (object instanceof $root.common.StringValue)
|
|
2339
|
+
return object;
|
|
2340
|
+
var message = new $root.common.StringValue();
|
|
2341
|
+
if (object.value != null)
|
|
2342
|
+
message.value = String(object.value);
|
|
2343
|
+
return message;
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Creates a plain object from a StringValue message. Also converts values to other types if specified.
|
|
2348
|
+
* @function toObject
|
|
2349
|
+
* @memberof common.StringValue
|
|
2350
|
+
* @static
|
|
2351
|
+
* @param {common.StringValue} message StringValue
|
|
2352
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2353
|
+
* @returns {Object.<string,*>} Plain object
|
|
2354
|
+
*/
|
|
2355
|
+
StringValue.toObject = function toObject(message, options) {
|
|
2356
|
+
if (!options)
|
|
2357
|
+
options = {};
|
|
2358
|
+
var object = {};
|
|
2359
|
+
if (options.defaults)
|
|
2360
|
+
object.value = "";
|
|
2361
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2362
|
+
object.value = message.value;
|
|
2363
|
+
return object;
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Converts this StringValue to JSON.
|
|
2368
|
+
* @function toJSON
|
|
2369
|
+
* @memberof common.StringValue
|
|
2370
|
+
* @instance
|
|
2371
|
+
* @returns {Object.<string,*>} JSON object
|
|
2372
|
+
*/
|
|
2373
|
+
StringValue.prototype.toJSON = function toJSON() {
|
|
2374
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* Gets the default type url for StringValue
|
|
2379
|
+
* @function getTypeUrl
|
|
2380
|
+
* @memberof common.StringValue
|
|
2381
|
+
* @static
|
|
2382
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2383
|
+
* @returns {string} The default type url
|
|
2384
|
+
*/
|
|
2385
|
+
StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2386
|
+
if (typeUrlPrefix === undefined) {
|
|
2387
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2388
|
+
}
|
|
2389
|
+
return typeUrlPrefix + "/common.StringValue";
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
return StringValue;
|
|
2393
|
+
})();
|
|
2394
|
+
|
|
2395
|
+
common.BytesValue = (function() {
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Properties of a BytesValue.
|
|
2399
|
+
* @memberof common
|
|
2400
|
+
* @interface IBytesValue
|
|
2401
|
+
* @property {Uint8Array|null} [value] BytesValue value
|
|
2402
|
+
*/
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Constructs a new BytesValue.
|
|
2406
|
+
* @memberof common
|
|
2407
|
+
* @classdesc Represents a BytesValue.
|
|
2408
|
+
* @implements IBytesValue
|
|
2409
|
+
* @constructor
|
|
2410
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
2411
|
+
*/
|
|
2412
|
+
function BytesValue(properties) {
|
|
2413
|
+
if (properties)
|
|
2414
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2415
|
+
if (properties[keys[i]] != null)
|
|
2416
|
+
this[keys[i]] = properties[keys[i]];
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* BytesValue value.
|
|
2421
|
+
* @member {Uint8Array} value
|
|
2422
|
+
* @memberof common.BytesValue
|
|
2423
|
+
* @instance
|
|
2424
|
+
*/
|
|
2425
|
+
BytesValue.prototype.value = $util.newBuffer([]);
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Creates a new BytesValue instance using the specified properties.
|
|
2429
|
+
* @function create
|
|
2430
|
+
* @memberof common.BytesValue
|
|
2431
|
+
* @static
|
|
2432
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
2433
|
+
* @returns {common.BytesValue} BytesValue instance
|
|
2434
|
+
*/
|
|
2435
|
+
BytesValue.create = function create(properties) {
|
|
2436
|
+
return new BytesValue(properties);
|
|
2437
|
+
};
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* Encodes the specified BytesValue message. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
2441
|
+
* @function encode
|
|
2442
|
+
* @memberof common.BytesValue
|
|
2443
|
+
* @static
|
|
2444
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
2445
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2446
|
+
* @returns {$protobuf.Writer} Writer
|
|
2447
|
+
*/
|
|
2448
|
+
BytesValue.encode = function encode(message, writer) {
|
|
2449
|
+
if (!writer)
|
|
2450
|
+
writer = $Writer.create();
|
|
2451
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2452
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
2453
|
+
return writer;
|
|
2454
|
+
};
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* Encodes the specified BytesValue message, length delimited. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
2458
|
+
* @function encodeDelimited
|
|
2459
|
+
* @memberof common.BytesValue
|
|
2460
|
+
* @static
|
|
2461
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
2462
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2463
|
+
* @returns {$protobuf.Writer} Writer
|
|
2464
|
+
*/
|
|
2465
|
+
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2466
|
+
return this.encode(message, writer).ldelim();
|
|
2467
|
+
};
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Decodes a BytesValue message from the specified reader or buffer.
|
|
2471
|
+
* @function decode
|
|
2472
|
+
* @memberof common.BytesValue
|
|
2473
|
+
* @static
|
|
2474
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2475
|
+
* @param {number} [length] Message length if known beforehand
|
|
2476
|
+
* @returns {common.BytesValue} BytesValue
|
|
2477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2479
|
+
*/
|
|
2480
|
+
BytesValue.decode = function decode(reader, length) {
|
|
2481
|
+
if (!(reader instanceof $Reader))
|
|
2482
|
+
reader = $Reader.create(reader);
|
|
2483
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
2484
|
+
while (reader.pos < end) {
|
|
2485
|
+
var tag = reader.uint32();
|
|
2486
|
+
switch (tag >>> 3) {
|
|
2487
|
+
case 1: {
|
|
2488
|
+
message.value = reader.bytes();
|
|
2489
|
+
break;
|
|
2490
|
+
}
|
|
2491
|
+
default:
|
|
2492
|
+
reader.skipType(tag & 7);
|
|
2493
|
+
break;
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
return message;
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* Decodes a BytesValue message from the specified reader or buffer, length delimited.
|
|
2501
|
+
* @function decodeDelimited
|
|
2502
|
+
* @memberof common.BytesValue
|
|
2503
|
+
* @static
|
|
2504
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2505
|
+
* @returns {common.BytesValue} BytesValue
|
|
2506
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2507
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2508
|
+
*/
|
|
2509
|
+
BytesValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2510
|
+
if (!(reader instanceof $Reader))
|
|
2511
|
+
reader = new $Reader(reader);
|
|
2512
|
+
return this.decode(reader, reader.uint32());
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* Verifies a BytesValue message.
|
|
2517
|
+
* @function verify
|
|
2518
|
+
* @memberof common.BytesValue
|
|
2519
|
+
* @static
|
|
2520
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2521
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2522
|
+
*/
|
|
2523
|
+
BytesValue.verify = function verify(message) {
|
|
2524
|
+
if (typeof message !== "object" || message === null)
|
|
2525
|
+
return "object expected";
|
|
2526
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2527
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
2528
|
+
return "value: buffer expected";
|
|
2529
|
+
return null;
|
|
2530
|
+
};
|
|
2531
|
+
|
|
2532
|
+
/**
|
|
2533
|
+
* Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
|
|
2534
|
+
* @function fromObject
|
|
2535
|
+
* @memberof common.BytesValue
|
|
2536
|
+
* @static
|
|
2537
|
+
* @param {Object.<string,*>} object Plain object
|
|
2538
|
+
* @returns {common.BytesValue} BytesValue
|
|
2539
|
+
*/
|
|
2540
|
+
BytesValue.fromObject = function fromObject(object) {
|
|
2541
|
+
if (object instanceof $root.common.BytesValue)
|
|
2542
|
+
return object;
|
|
2543
|
+
var message = new $root.common.BytesValue();
|
|
2544
|
+
if (object.value != null)
|
|
2545
|
+
if (typeof object.value === "string")
|
|
2546
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
2547
|
+
else if (object.value.length >= 0)
|
|
2548
|
+
message.value = object.value;
|
|
2549
|
+
return message;
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Creates a plain object from a BytesValue message. Also converts values to other types if specified.
|
|
2554
|
+
* @function toObject
|
|
2555
|
+
* @memberof common.BytesValue
|
|
2556
|
+
* @static
|
|
2557
|
+
* @param {common.BytesValue} message BytesValue
|
|
2558
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2559
|
+
* @returns {Object.<string,*>} Plain object
|
|
2560
|
+
*/
|
|
2561
|
+
BytesValue.toObject = function toObject(message, options) {
|
|
2562
|
+
if (!options)
|
|
2563
|
+
options = {};
|
|
2564
|
+
var object = {};
|
|
2565
|
+
if (options.defaults)
|
|
2566
|
+
if (options.bytes === String)
|
|
2567
|
+
object.value = "";
|
|
2568
|
+
else {
|
|
2569
|
+
object.value = [];
|
|
2570
|
+
if (options.bytes !== Array)
|
|
2571
|
+
object.value = $util.newBuffer(object.value);
|
|
2572
|
+
}
|
|
2573
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2574
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
|
2575
|
+
return object;
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Converts this BytesValue to JSON.
|
|
2580
|
+
* @function toJSON
|
|
2581
|
+
* @memberof common.BytesValue
|
|
2582
|
+
* @instance
|
|
2583
|
+
* @returns {Object.<string,*>} JSON object
|
|
2584
|
+
*/
|
|
2585
|
+
BytesValue.prototype.toJSON = function toJSON() {
|
|
2586
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* Gets the default type url for BytesValue
|
|
2591
|
+
* @function getTypeUrl
|
|
2592
|
+
* @memberof common.BytesValue
|
|
2593
|
+
* @static
|
|
2594
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2595
|
+
* @returns {string} The default type url
|
|
2596
|
+
*/
|
|
2597
|
+
BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2598
|
+
if (typeUrlPrefix === undefined) {
|
|
2599
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2600
|
+
}
|
|
2601
|
+
return typeUrlPrefix + "/common.BytesValue";
|
|
2602
|
+
};
|
|
2603
|
+
|
|
2604
|
+
return BytesValue;
|
|
2605
|
+
})();
|
|
2606
|
+
|
|
2607
|
+
common.ErrorValue = (function() {
|
|
2608
|
+
|
|
2609
|
+
/**
|
|
2610
|
+
* Properties of an ErrorValue.
|
|
2611
|
+
* @memberof common
|
|
2612
|
+
* @interface IErrorValue
|
|
2613
|
+
* @property {string|null} [runtimeExcJson] ErrorValue runtimeExcJson
|
|
2614
|
+
* @property {string|null} [err] ErrorValue err
|
|
2615
|
+
*/
|
|
2616
|
+
|
|
2617
|
+
/**
|
|
2618
|
+
* Constructs a new ErrorValue.
|
|
2619
|
+
* @memberof common
|
|
2620
|
+
* @classdesc Represents an ErrorValue.
|
|
2621
|
+
* @implements IErrorValue
|
|
2622
|
+
* @constructor
|
|
2623
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
2624
|
+
*/
|
|
2625
|
+
function ErrorValue(properties) {
|
|
2626
|
+
if (properties)
|
|
2627
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2628
|
+
if (properties[keys[i]] != null)
|
|
2629
|
+
this[keys[i]] = properties[keys[i]];
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* ErrorValue runtimeExcJson.
|
|
2634
|
+
* @member {string} runtimeExcJson
|
|
2635
|
+
* @memberof common.ErrorValue
|
|
2636
|
+
* @instance
|
|
2637
|
+
*/
|
|
2638
|
+
ErrorValue.prototype.runtimeExcJson = "";
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* ErrorValue err.
|
|
2642
|
+
* @member {string} err
|
|
2643
|
+
* @memberof common.ErrorValue
|
|
2644
|
+
* @instance
|
|
2645
|
+
*/
|
|
2646
|
+
ErrorValue.prototype.err = "";
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* Creates a new ErrorValue instance using the specified properties.
|
|
2650
|
+
* @function create
|
|
2651
|
+
* @memberof common.ErrorValue
|
|
2652
|
+
* @static
|
|
2653
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
2654
|
+
* @returns {common.ErrorValue} ErrorValue instance
|
|
2655
|
+
*/
|
|
2656
|
+
ErrorValue.create = function create(properties) {
|
|
2657
|
+
return new ErrorValue(properties);
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* Encodes the specified ErrorValue message. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
2662
|
+
* @function encode
|
|
2663
|
+
* @memberof common.ErrorValue
|
|
2664
|
+
* @static
|
|
2665
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
2666
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2667
|
+
* @returns {$protobuf.Writer} Writer
|
|
2668
|
+
*/
|
|
2669
|
+
ErrorValue.encode = function encode(message, writer) {
|
|
2670
|
+
if (!writer)
|
|
2671
|
+
writer = $Writer.create();
|
|
2672
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2673
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
2674
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2675
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.err);
|
|
2676
|
+
return writer;
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Encodes the specified ErrorValue message, length delimited. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
2681
|
+
* @function encodeDelimited
|
|
2682
|
+
* @memberof common.ErrorValue
|
|
2683
|
+
* @static
|
|
2684
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
2685
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2686
|
+
* @returns {$protobuf.Writer} Writer
|
|
2687
|
+
*/
|
|
2688
|
+
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2689
|
+
return this.encode(message, writer).ldelim();
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
/**
|
|
2693
|
+
* Decodes an ErrorValue message from the specified reader or buffer.
|
|
2694
|
+
* @function decode
|
|
2695
|
+
* @memberof common.ErrorValue
|
|
2696
|
+
* @static
|
|
2697
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2698
|
+
* @param {number} [length] Message length if known beforehand
|
|
2699
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2700
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2701
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2702
|
+
*/
|
|
2703
|
+
ErrorValue.decode = function decode(reader, length) {
|
|
2704
|
+
if (!(reader instanceof $Reader))
|
|
2705
|
+
reader = $Reader.create(reader);
|
|
2706
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
2707
|
+
while (reader.pos < end) {
|
|
2708
|
+
var tag = reader.uint32();
|
|
2709
|
+
switch (tag >>> 3) {
|
|
2710
|
+
case 1: {
|
|
2711
|
+
message.runtimeExcJson = reader.string();
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
case 2: {
|
|
2715
|
+
message.err = reader.string();
|
|
2716
|
+
break;
|
|
2717
|
+
}
|
|
2718
|
+
default:
|
|
2719
|
+
reader.skipType(tag & 7);
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
return message;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* Decodes an ErrorValue message from the specified reader or buffer, length delimited.
|
|
2728
|
+
* @function decodeDelimited
|
|
2729
|
+
* @memberof common.ErrorValue
|
|
2730
|
+
* @static
|
|
2731
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2732
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2733
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2734
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2735
|
+
*/
|
|
2736
|
+
ErrorValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2737
|
+
if (!(reader instanceof $Reader))
|
|
2738
|
+
reader = new $Reader(reader);
|
|
2739
|
+
return this.decode(reader, reader.uint32());
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* Verifies an ErrorValue message.
|
|
2744
|
+
* @function verify
|
|
2745
|
+
* @memberof common.ErrorValue
|
|
2746
|
+
* @static
|
|
2747
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2748
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2749
|
+
*/
|
|
2750
|
+
ErrorValue.verify = function verify(message) {
|
|
2751
|
+
if (typeof message !== "object" || message === null)
|
|
2752
|
+
return "object expected";
|
|
2753
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
2754
|
+
if (!$util.isString(message.runtimeExcJson))
|
|
2755
|
+
return "runtimeExcJson: string expected";
|
|
2756
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
2757
|
+
if (!$util.isString(message.err))
|
|
2758
|
+
return "err: string expected";
|
|
2759
|
+
return null;
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* Creates an ErrorValue message from a plain object. Also converts values to their respective internal types.
|
|
2764
|
+
* @function fromObject
|
|
2765
|
+
* @memberof common.ErrorValue
|
|
2766
|
+
* @static
|
|
2767
|
+
* @param {Object.<string,*>} object Plain object
|
|
2768
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2769
|
+
*/
|
|
2770
|
+
ErrorValue.fromObject = function fromObject(object) {
|
|
2771
|
+
if (object instanceof $root.common.ErrorValue)
|
|
2772
|
+
return object;
|
|
2773
|
+
var message = new $root.common.ErrorValue();
|
|
2774
|
+
if (object.runtimeExcJson != null)
|
|
2775
|
+
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
2776
|
+
if (object.err != null)
|
|
2777
|
+
message.err = String(object.err);
|
|
2778
|
+
return message;
|
|
2779
|
+
};
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* Creates a plain object from an ErrorValue message. Also converts values to other types if specified.
|
|
2783
|
+
* @function toObject
|
|
2784
|
+
* @memberof common.ErrorValue
|
|
2785
|
+
* @static
|
|
2786
|
+
* @param {common.ErrorValue} message ErrorValue
|
|
2787
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2788
|
+
* @returns {Object.<string,*>} Plain object
|
|
2789
|
+
*/
|
|
2790
|
+
ErrorValue.toObject = function toObject(message, options) {
|
|
2791
|
+
if (!options)
|
|
2792
|
+
options = {};
|
|
2793
|
+
var object = {};
|
|
2794
|
+
if (options.defaults) {
|
|
2795
|
+
object.runtimeExcJson = "";
|
|
2796
|
+
object.err = "";
|
|
2797
|
+
}
|
|
2798
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
2799
|
+
object.runtimeExcJson = message.runtimeExcJson;
|
|
2800
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
2801
|
+
object.err = message.err;
|
|
2802
|
+
return object;
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* Converts this ErrorValue to JSON.
|
|
2807
|
+
* @function toJSON
|
|
2808
|
+
* @memberof common.ErrorValue
|
|
2809
|
+
* @instance
|
|
2810
|
+
* @returns {Object.<string,*>} JSON object
|
|
2811
|
+
*/
|
|
2812
|
+
ErrorValue.prototype.toJSON = function toJSON() {
|
|
2813
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Gets the default type url for ErrorValue
|
|
2818
|
+
* @function getTypeUrl
|
|
2819
|
+
* @memberof common.ErrorValue
|
|
2820
|
+
* @static
|
|
2821
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2822
|
+
* @returns {string} The default type url
|
|
2823
|
+
*/
|
|
2824
|
+
ErrorValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2825
|
+
if (typeUrlPrefix === undefined) {
|
|
2826
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2827
|
+
}
|
|
2828
|
+
return typeUrlPrefix + "/common.ErrorValue";
|
|
2829
|
+
};
|
|
2830
|
+
|
|
2831
|
+
return ErrorValue;
|
|
2832
|
+
})();
|
|
2833
|
+
|
|
2834
|
+
common.AnyValue = (function() {
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* Properties of an AnyValue.
|
|
2838
|
+
* @memberof common
|
|
2839
|
+
* @interface IAnyValue
|
|
2840
|
+
* @property {string|null} [type] AnyValue type
|
|
2841
|
+
* @property {common.IStringValue|null} [json] AnyValue json
|
|
2842
|
+
* @property {common.IBytesValue|null} [bytes] AnyValue bytes
|
|
2843
|
+
*/
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Constructs a new AnyValue.
|
|
2847
|
+
* @memberof common
|
|
2848
|
+
* @classdesc Represents an AnyValue.
|
|
2849
|
+
* @implements IAnyValue
|
|
2850
|
+
* @constructor
|
|
2851
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
2852
|
+
*/
|
|
2853
|
+
function AnyValue(properties) {
|
|
2854
|
+
if (properties)
|
|
2855
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2856
|
+
if (properties[keys[i]] != null)
|
|
2857
|
+
this[keys[i]] = properties[keys[i]];
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* AnyValue type.
|
|
2862
|
+
* @member {string} type
|
|
2863
|
+
* @memberof common.AnyValue
|
|
2864
|
+
* @instance
|
|
2865
|
+
*/
|
|
2866
|
+
AnyValue.prototype.type = "";
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* AnyValue json.
|
|
2870
|
+
* @member {common.IStringValue|null|undefined} json
|
|
2871
|
+
* @memberof common.AnyValue
|
|
2872
|
+
* @instance
|
|
2873
|
+
*/
|
|
2874
|
+
AnyValue.prototype.json = null;
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* AnyValue bytes.
|
|
2878
|
+
* @member {common.IBytesValue|null|undefined} bytes
|
|
2879
|
+
* @memberof common.AnyValue
|
|
2880
|
+
* @instance
|
|
2881
|
+
*/
|
|
2882
|
+
AnyValue.prototype.bytes = null;
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* Creates a new AnyValue instance using the specified properties.
|
|
2886
|
+
* @function create
|
|
2887
|
+
* @memberof common.AnyValue
|
|
2888
|
+
* @static
|
|
2889
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
2890
|
+
* @returns {common.AnyValue} AnyValue instance
|
|
2891
|
+
*/
|
|
2892
|
+
AnyValue.create = function create(properties) {
|
|
2893
|
+
return new AnyValue(properties);
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Encodes the specified AnyValue message. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
2898
|
+
* @function encode
|
|
2899
|
+
* @memberof common.AnyValue
|
|
2900
|
+
* @static
|
|
2901
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
2902
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2903
|
+
* @returns {$protobuf.Writer} Writer
|
|
2904
|
+
*/
|
|
2905
|
+
AnyValue.encode = function encode(message, writer) {
|
|
2906
|
+
if (!writer)
|
|
2907
|
+
writer = $Writer.create();
|
|
2908
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2909
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
2910
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
2911
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2912
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
2913
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2914
|
+
return writer;
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Encodes the specified AnyValue message, length delimited. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
2919
|
+
* @function encodeDelimited
|
|
2920
|
+
* @memberof common.AnyValue
|
|
2921
|
+
* @static
|
|
2922
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
2923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2924
|
+
* @returns {$protobuf.Writer} Writer
|
|
2925
|
+
*/
|
|
2926
|
+
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2927
|
+
return this.encode(message, writer).ldelim();
|
|
2928
|
+
};
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Decodes an AnyValue message from the specified reader or buffer.
|
|
2932
|
+
* @function decode
|
|
2933
|
+
* @memberof common.AnyValue
|
|
2934
|
+
* @static
|
|
2935
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2936
|
+
* @param {number} [length] Message length if known beforehand
|
|
2937
|
+
* @returns {common.AnyValue} AnyValue
|
|
2938
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2939
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2940
|
+
*/
|
|
2941
|
+
AnyValue.decode = function decode(reader, length) {
|
|
2942
|
+
if (!(reader instanceof $Reader))
|
|
2943
|
+
reader = $Reader.create(reader);
|
|
2944
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
2945
|
+
while (reader.pos < end) {
|
|
2946
|
+
var tag = reader.uint32();
|
|
2947
|
+
switch (tag >>> 3) {
|
|
2948
|
+
case 1: {
|
|
2949
|
+
message.type = reader.string();
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2952
|
+
case 2: {
|
|
2953
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
2954
|
+
break;
|
|
2955
|
+
}
|
|
2956
|
+
case 3: {
|
|
2957
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
2958
|
+
break;
|
|
2959
|
+
}
|
|
2960
|
+
default:
|
|
2961
|
+
reader.skipType(tag & 7);
|
|
2962
|
+
break;
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
return message;
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* Decodes an AnyValue message from the specified reader or buffer, length delimited.
|
|
2970
|
+
* @function decodeDelimited
|
|
2971
|
+
* @memberof common.AnyValue
|
|
2972
|
+
* @static
|
|
2973
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2974
|
+
* @returns {common.AnyValue} AnyValue
|
|
2975
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2976
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2977
|
+
*/
|
|
2978
|
+
AnyValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2979
|
+
if (!(reader instanceof $Reader))
|
|
2980
|
+
reader = new $Reader(reader);
|
|
2981
|
+
return this.decode(reader, reader.uint32());
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Verifies an AnyValue message.
|
|
2986
|
+
* @function verify
|
|
2987
|
+
* @memberof common.AnyValue
|
|
2988
|
+
* @static
|
|
2989
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2990
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2991
|
+
*/
|
|
2992
|
+
AnyValue.verify = function verify(message) {
|
|
2993
|
+
if (typeof message !== "object" || message === null)
|
|
2994
|
+
return "object expected";
|
|
2995
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
2996
|
+
if (!$util.isString(message.type))
|
|
2997
|
+
return "type: string expected";
|
|
2998
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
2999
|
+
var error = $root.common.StringValue.verify(message.json);
|
|
3000
|
+
if (error)
|
|
3001
|
+
return "json." + error;
|
|
3002
|
+
}
|
|
3003
|
+
if (message.bytes != null && message.hasOwnProperty("bytes")) {
|
|
3004
|
+
var error = $root.common.BytesValue.verify(message.bytes);
|
|
3005
|
+
if (error)
|
|
3006
|
+
return "bytes." + error;
|
|
3007
|
+
}
|
|
3008
|
+
return null;
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* Creates an AnyValue message from a plain object. Also converts values to their respective internal types.
|
|
3013
|
+
* @function fromObject
|
|
3014
|
+
* @memberof common.AnyValue
|
|
3015
|
+
* @static
|
|
3016
|
+
* @param {Object.<string,*>} object Plain object
|
|
3017
|
+
* @returns {common.AnyValue} AnyValue
|
|
3018
|
+
*/
|
|
3019
|
+
AnyValue.fromObject = function fromObject(object) {
|
|
3020
|
+
if (object instanceof $root.common.AnyValue)
|
|
3021
|
+
return object;
|
|
3022
|
+
var message = new $root.common.AnyValue();
|
|
3023
|
+
if (object.type != null)
|
|
3024
|
+
message.type = String(object.type);
|
|
3025
|
+
if (object.json != null) {
|
|
3026
|
+
if (typeof object.json !== "object")
|
|
3027
|
+
throw TypeError(".common.AnyValue.json: object expected");
|
|
3028
|
+
message.json = $root.common.StringValue.fromObject(object.json);
|
|
3029
|
+
}
|
|
3030
|
+
if (object.bytes != null) {
|
|
3031
|
+
if (typeof object.bytes !== "object")
|
|
3032
|
+
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
3033
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
3034
|
+
}
|
|
3035
|
+
return message;
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* Creates a plain object from an AnyValue message. Also converts values to other types if specified.
|
|
3040
|
+
* @function toObject
|
|
3041
|
+
* @memberof common.AnyValue
|
|
3042
|
+
* @static
|
|
3043
|
+
* @param {common.AnyValue} message AnyValue
|
|
3044
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3045
|
+
* @returns {Object.<string,*>} Plain object
|
|
3046
|
+
*/
|
|
3047
|
+
AnyValue.toObject = function toObject(message, options) {
|
|
3048
|
+
if (!options)
|
|
3049
|
+
options = {};
|
|
3050
|
+
var object = {};
|
|
3051
|
+
if (options.defaults) {
|
|
3052
|
+
object.type = "";
|
|
3053
|
+
object.json = null;
|
|
3054
|
+
object.bytes = null;
|
|
3055
|
+
}
|
|
3056
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
3057
|
+
object.type = message.type;
|
|
3058
|
+
if (message.json != null && message.hasOwnProperty("json"))
|
|
3059
|
+
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
3060
|
+
if (message.bytes != null && message.hasOwnProperty("bytes"))
|
|
3061
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
3062
|
+
return object;
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* Converts this AnyValue to JSON.
|
|
3067
|
+
* @function toJSON
|
|
3068
|
+
* @memberof common.AnyValue
|
|
3069
|
+
* @instance
|
|
3070
|
+
* @returns {Object.<string,*>} JSON object
|
|
3071
|
+
*/
|
|
3072
|
+
AnyValue.prototype.toJSON = function toJSON() {
|
|
3073
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Gets the default type url for AnyValue
|
|
3078
|
+
* @function getTypeUrl
|
|
3079
|
+
* @memberof common.AnyValue
|
|
3080
|
+
* @static
|
|
3081
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3082
|
+
* @returns {string} The default type url
|
|
3083
|
+
*/
|
|
3084
|
+
AnyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3085
|
+
if (typeUrlPrefix === undefined) {
|
|
3086
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3087
|
+
}
|
|
3088
|
+
return typeUrlPrefix + "/common.AnyValue";
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3091
|
+
return AnyValue;
|
|
3092
|
+
})();
|
|
3093
|
+
|
|
3094
|
+
return common;
|
|
3095
|
+
})();
|
|
3096
|
+
|
|
1093
3097
|
module.exports = $root;
|