@dashevo/dapi-grpc 4.1.1 → 4.2.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +19 -8
- package/build.rs +11 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +699 -367
- package/clients/platform/v0/nodejs/platform_pbjs.js +699 -367
- package/clients/platform/v0/nodejs/platform_protoc.js +730 -290
- package/clients/platform/v0/web/platform_pb.d.ts +92 -42
- package/clients/platform/v0/web/platform_pb.js +730 -290
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +316 -93
|
@@ -20039,6 +20039,7 @@ $root.org = (function() {
|
|
|
20039
20039
|
* @property {number} BETWEEN_EXCLUDE_RIGHT=8 BETWEEN_EXCLUDE_RIGHT value
|
|
20040
20040
|
* @property {number} IN=9 IN value
|
|
20041
20041
|
* @property {number} STARTS_WITH=10 STARTS_WITH value
|
|
20042
|
+
* @property {number} IN_TIME_RANGE=11 IN_TIME_RANGE value
|
|
20042
20043
|
*/
|
|
20043
20044
|
GetDocumentsRequest.WhereOperator = (function() {
|
|
20044
20045
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -20053,6 +20054,7 @@ $root.org = (function() {
|
|
|
20053
20054
|
values[valuesById[8] = "BETWEEN_EXCLUDE_RIGHT"] = 8;
|
|
20054
20055
|
values[valuesById[9] = "IN"] = 9;
|
|
20055
20056
|
values[valuesById[10] = "STARTS_WITH"] = 10;
|
|
20057
|
+
values[valuesById[11] = "IN_TIME_RANGE"] = 11;
|
|
20056
20058
|
return values;
|
|
20057
20059
|
})();
|
|
20058
20060
|
|
|
@@ -20870,6 +20872,7 @@ $root.org = (function() {
|
|
|
20870
20872
|
case 8:
|
|
20871
20873
|
case 9:
|
|
20872
20874
|
case 10:
|
|
20875
|
+
case 11:
|
|
20873
20876
|
break;
|
|
20874
20877
|
}
|
|
20875
20878
|
if (message.value != null && message.hasOwnProperty("value")) {
|
|
@@ -20939,6 +20942,10 @@ $root.org = (function() {
|
|
|
20939
20942
|
case 10:
|
|
20940
20943
|
message.operator = 10;
|
|
20941
20944
|
break;
|
|
20945
|
+
case "IN_TIME_RANGE":
|
|
20946
|
+
case 11:
|
|
20947
|
+
message.operator = 11;
|
|
20948
|
+
break;
|
|
20942
20949
|
}
|
|
20943
20950
|
if (object.value != null) {
|
|
20944
20951
|
if (typeof object.value !== "object")
|
|
@@ -21233,271 +21240,6 @@ $root.org = (function() {
|
|
|
21233
21240
|
return HavingAggregate;
|
|
21234
21241
|
})();
|
|
21235
21242
|
|
|
21236
|
-
GetDocumentsRequest.HavingRanking = (function() {
|
|
21237
|
-
|
|
21238
|
-
/**
|
|
21239
|
-
* Properties of a HavingRanking.
|
|
21240
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
|
|
21241
|
-
* @interface IHavingRanking
|
|
21242
|
-
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind|null} [kind] HavingRanking kind
|
|
21243
|
-
* @property {number|Long|null} [n] HavingRanking n
|
|
21244
|
-
*/
|
|
21245
|
-
|
|
21246
|
-
/**
|
|
21247
|
-
* Constructs a new HavingRanking.
|
|
21248
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
|
|
21249
|
-
* @classdesc Represents a HavingRanking.
|
|
21250
|
-
* @implements IHavingRanking
|
|
21251
|
-
* @constructor
|
|
21252
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking=} [properties] Properties to set
|
|
21253
|
-
*/
|
|
21254
|
-
function HavingRanking(properties) {
|
|
21255
|
-
if (properties)
|
|
21256
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21257
|
-
if (properties[keys[i]] != null)
|
|
21258
|
-
this[keys[i]] = properties[keys[i]];
|
|
21259
|
-
}
|
|
21260
|
-
|
|
21261
|
-
/**
|
|
21262
|
-
* HavingRanking kind.
|
|
21263
|
-
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind} kind
|
|
21264
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21265
|
-
* @instance
|
|
21266
|
-
*/
|
|
21267
|
-
HavingRanking.prototype.kind = 0;
|
|
21268
|
-
|
|
21269
|
-
/**
|
|
21270
|
-
* HavingRanking n.
|
|
21271
|
-
* @member {number|Long} n
|
|
21272
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21273
|
-
* @instance
|
|
21274
|
-
*/
|
|
21275
|
-
HavingRanking.prototype.n = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
21276
|
-
|
|
21277
|
-
/**
|
|
21278
|
-
* Creates a new HavingRanking instance using the specified properties.
|
|
21279
|
-
* @function create
|
|
21280
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21281
|
-
* @static
|
|
21282
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking=} [properties] Properties to set
|
|
21283
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking instance
|
|
21284
|
-
*/
|
|
21285
|
-
HavingRanking.create = function create(properties) {
|
|
21286
|
-
return new HavingRanking(properties);
|
|
21287
|
-
};
|
|
21288
|
-
|
|
21289
|
-
/**
|
|
21290
|
-
* Encodes the specified HavingRanking message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify|verify} messages.
|
|
21291
|
-
* @function encode
|
|
21292
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21293
|
-
* @static
|
|
21294
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking} message HavingRanking message or plain object to encode
|
|
21295
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21296
|
-
* @returns {$protobuf.Writer} Writer
|
|
21297
|
-
*/
|
|
21298
|
-
HavingRanking.encode = function encode(message, writer) {
|
|
21299
|
-
if (!writer)
|
|
21300
|
-
writer = $Writer.create();
|
|
21301
|
-
if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
|
|
21302
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.kind);
|
|
21303
|
-
if (message.n != null && Object.hasOwnProperty.call(message, "n"))
|
|
21304
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.n);
|
|
21305
|
-
return writer;
|
|
21306
|
-
};
|
|
21307
|
-
|
|
21308
|
-
/**
|
|
21309
|
-
* Encodes the specified HavingRanking message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify|verify} messages.
|
|
21310
|
-
* @function encodeDelimited
|
|
21311
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21312
|
-
* @static
|
|
21313
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking} message HavingRanking message or plain object to encode
|
|
21314
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21315
|
-
* @returns {$protobuf.Writer} Writer
|
|
21316
|
-
*/
|
|
21317
|
-
HavingRanking.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21318
|
-
return this.encode(message, writer).ldelim();
|
|
21319
|
-
};
|
|
21320
|
-
|
|
21321
|
-
/**
|
|
21322
|
-
* Decodes a HavingRanking message from the specified reader or buffer.
|
|
21323
|
-
* @function decode
|
|
21324
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21325
|
-
* @static
|
|
21326
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21327
|
-
* @param {number} [length] Message length if known beforehand
|
|
21328
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
|
|
21329
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21330
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21331
|
-
*/
|
|
21332
|
-
HavingRanking.decode = function decode(reader, length) {
|
|
21333
|
-
if (!(reader instanceof $Reader))
|
|
21334
|
-
reader = $Reader.create(reader);
|
|
21335
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking();
|
|
21336
|
-
while (reader.pos < end) {
|
|
21337
|
-
var tag = reader.uint32();
|
|
21338
|
-
switch (tag >>> 3) {
|
|
21339
|
-
case 1:
|
|
21340
|
-
message.kind = reader.int32();
|
|
21341
|
-
break;
|
|
21342
|
-
case 2:
|
|
21343
|
-
message.n = reader.uint64();
|
|
21344
|
-
break;
|
|
21345
|
-
default:
|
|
21346
|
-
reader.skipType(tag & 7);
|
|
21347
|
-
break;
|
|
21348
|
-
}
|
|
21349
|
-
}
|
|
21350
|
-
return message;
|
|
21351
|
-
};
|
|
21352
|
-
|
|
21353
|
-
/**
|
|
21354
|
-
* Decodes a HavingRanking message from the specified reader or buffer, length delimited.
|
|
21355
|
-
* @function decodeDelimited
|
|
21356
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21357
|
-
* @static
|
|
21358
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21359
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
|
|
21360
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21361
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21362
|
-
*/
|
|
21363
|
-
HavingRanking.decodeDelimited = function decodeDelimited(reader) {
|
|
21364
|
-
if (!(reader instanceof $Reader))
|
|
21365
|
-
reader = new $Reader(reader);
|
|
21366
|
-
return this.decode(reader, reader.uint32());
|
|
21367
|
-
};
|
|
21368
|
-
|
|
21369
|
-
/**
|
|
21370
|
-
* Verifies a HavingRanking message.
|
|
21371
|
-
* @function verify
|
|
21372
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21373
|
-
* @static
|
|
21374
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
21375
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21376
|
-
*/
|
|
21377
|
-
HavingRanking.verify = function verify(message) {
|
|
21378
|
-
if (typeof message !== "object" || message === null)
|
|
21379
|
-
return "object expected";
|
|
21380
|
-
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
21381
|
-
switch (message.kind) {
|
|
21382
|
-
default:
|
|
21383
|
-
return "kind: enum value expected";
|
|
21384
|
-
case 0:
|
|
21385
|
-
case 1:
|
|
21386
|
-
case 2:
|
|
21387
|
-
case 3:
|
|
21388
|
-
break;
|
|
21389
|
-
}
|
|
21390
|
-
if (message.n != null && message.hasOwnProperty("n"))
|
|
21391
|
-
if (!$util.isInteger(message.n) && !(message.n && $util.isInteger(message.n.low) && $util.isInteger(message.n.high)))
|
|
21392
|
-
return "n: integer|Long expected";
|
|
21393
|
-
return null;
|
|
21394
|
-
};
|
|
21395
|
-
|
|
21396
|
-
/**
|
|
21397
|
-
* Creates a HavingRanking message from a plain object. Also converts values to their respective internal types.
|
|
21398
|
-
* @function fromObject
|
|
21399
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21400
|
-
* @static
|
|
21401
|
-
* @param {Object.<string,*>} object Plain object
|
|
21402
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
|
|
21403
|
-
*/
|
|
21404
|
-
HavingRanking.fromObject = function fromObject(object) {
|
|
21405
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking)
|
|
21406
|
-
return object;
|
|
21407
|
-
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking();
|
|
21408
|
-
switch (object.kind) {
|
|
21409
|
-
case "MIN":
|
|
21410
|
-
case 0:
|
|
21411
|
-
message.kind = 0;
|
|
21412
|
-
break;
|
|
21413
|
-
case "MAX":
|
|
21414
|
-
case 1:
|
|
21415
|
-
message.kind = 1;
|
|
21416
|
-
break;
|
|
21417
|
-
case "TOP":
|
|
21418
|
-
case 2:
|
|
21419
|
-
message.kind = 2;
|
|
21420
|
-
break;
|
|
21421
|
-
case "BOTTOM":
|
|
21422
|
-
case 3:
|
|
21423
|
-
message.kind = 3;
|
|
21424
|
-
break;
|
|
21425
|
-
}
|
|
21426
|
-
if (object.n != null)
|
|
21427
|
-
if ($util.Long)
|
|
21428
|
-
(message.n = $util.Long.fromValue(object.n)).unsigned = true;
|
|
21429
|
-
else if (typeof object.n === "string")
|
|
21430
|
-
message.n = parseInt(object.n, 10);
|
|
21431
|
-
else if (typeof object.n === "number")
|
|
21432
|
-
message.n = object.n;
|
|
21433
|
-
else if (typeof object.n === "object")
|
|
21434
|
-
message.n = new $util.LongBits(object.n.low >>> 0, object.n.high >>> 0).toNumber(true);
|
|
21435
|
-
return message;
|
|
21436
|
-
};
|
|
21437
|
-
|
|
21438
|
-
/**
|
|
21439
|
-
* Creates a plain object from a HavingRanking message. Also converts values to other types if specified.
|
|
21440
|
-
* @function toObject
|
|
21441
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21442
|
-
* @static
|
|
21443
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} message HavingRanking
|
|
21444
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21445
|
-
* @returns {Object.<string,*>} Plain object
|
|
21446
|
-
*/
|
|
21447
|
-
HavingRanking.toObject = function toObject(message, options) {
|
|
21448
|
-
if (!options)
|
|
21449
|
-
options = {};
|
|
21450
|
-
var object = {};
|
|
21451
|
-
if (options.defaults) {
|
|
21452
|
-
object.kind = options.enums === String ? "MIN" : 0;
|
|
21453
|
-
if ($util.Long) {
|
|
21454
|
-
var long = new $util.Long(0, 0, true);
|
|
21455
|
-
object.n = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21456
|
-
} else
|
|
21457
|
-
object.n = options.longs === String ? "0" : 0;
|
|
21458
|
-
}
|
|
21459
|
-
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
21460
|
-
object.kind = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind[message.kind] : message.kind;
|
|
21461
|
-
if (message.n != null && message.hasOwnProperty("n"))
|
|
21462
|
-
if (typeof message.n === "number")
|
|
21463
|
-
object.n = options.longs === String ? String(message.n) : message.n;
|
|
21464
|
-
else
|
|
21465
|
-
object.n = options.longs === String ? $util.Long.prototype.toString.call(message.n) : options.longs === Number ? new $util.LongBits(message.n.low >>> 0, message.n.high >>> 0).toNumber(true) : message.n;
|
|
21466
|
-
return object;
|
|
21467
|
-
};
|
|
21468
|
-
|
|
21469
|
-
/**
|
|
21470
|
-
* Converts this HavingRanking to JSON.
|
|
21471
|
-
* @function toJSON
|
|
21472
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
|
|
21473
|
-
* @instance
|
|
21474
|
-
* @returns {Object.<string,*>} JSON object
|
|
21475
|
-
*/
|
|
21476
|
-
HavingRanking.prototype.toJSON = function toJSON() {
|
|
21477
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21478
|
-
};
|
|
21479
|
-
|
|
21480
|
-
/**
|
|
21481
|
-
* Kind enum.
|
|
21482
|
-
* @name org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind
|
|
21483
|
-
* @enum {number}
|
|
21484
|
-
* @property {number} MIN=0 MIN value
|
|
21485
|
-
* @property {number} MAX=1 MAX value
|
|
21486
|
-
* @property {number} TOP=2 TOP value
|
|
21487
|
-
* @property {number} BOTTOM=3 BOTTOM value
|
|
21488
|
-
*/
|
|
21489
|
-
HavingRanking.Kind = (function() {
|
|
21490
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
21491
|
-
values[valuesById[0] = "MIN"] = 0;
|
|
21492
|
-
values[valuesById[1] = "MAX"] = 1;
|
|
21493
|
-
values[valuesById[2] = "TOP"] = 2;
|
|
21494
|
-
values[valuesById[3] = "BOTTOM"] = 3;
|
|
21495
|
-
return values;
|
|
21496
|
-
})();
|
|
21497
|
-
|
|
21498
|
-
return HavingRanking;
|
|
21499
|
-
})();
|
|
21500
|
-
|
|
21501
21243
|
GetDocumentsRequest.HavingClause = (function() {
|
|
21502
21244
|
|
|
21503
21245
|
/**
|
|
@@ -21507,7 +21249,6 @@ $root.org = (function() {
|
|
|
21507
21249
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingAggregate|null} [aggregate] HavingClause aggregate
|
|
21508
21250
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator|null} [operator] HavingClause operator
|
|
21509
21251
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] HavingClause value
|
|
21510
|
-
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking|null} [ranking] HavingClause ranking
|
|
21511
21252
|
*/
|
|
21512
21253
|
|
|
21513
21254
|
/**
|
|
@@ -21549,25 +21290,17 @@ $root.org = (function() {
|
|
|
21549
21290
|
*/
|
|
21550
21291
|
HavingClause.prototype.value = null;
|
|
21551
21292
|
|
|
21552
|
-
/**
|
|
21553
|
-
* HavingClause ranking.
|
|
21554
|
-
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking|null|undefined} ranking
|
|
21555
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
|
|
21556
|
-
* @instance
|
|
21557
|
-
*/
|
|
21558
|
-
HavingClause.prototype.ranking = null;
|
|
21559
|
-
|
|
21560
21293
|
// OneOf field names bound to virtual getters and setters
|
|
21561
21294
|
var $oneOfFields;
|
|
21562
21295
|
|
|
21563
21296
|
/**
|
|
21564
21297
|
* HavingClause right.
|
|
21565
|
-
* @member {"value"|
|
|
21298
|
+
* @member {"value"|undefined} right
|
|
21566
21299
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
|
|
21567
21300
|
* @instance
|
|
21568
21301
|
*/
|
|
21569
21302
|
Object.defineProperty(HavingClause.prototype, "right", {
|
|
21570
|
-
get: $util.oneOfGetter($oneOfFields = ["value"
|
|
21303
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
21571
21304
|
set: $util.oneOfSetter($oneOfFields)
|
|
21572
21305
|
});
|
|
21573
21306
|
|
|
@@ -21601,8 +21334,6 @@ $root.org = (function() {
|
|
|
21601
21334
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
|
|
21602
21335
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
21603
21336
|
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
21604
|
-
if (message.ranking != null && Object.hasOwnProperty.call(message, "ranking"))
|
|
21605
|
-
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.encode(message.ranking, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
21606
21337
|
return writer;
|
|
21607
21338
|
};
|
|
21608
21339
|
|
|
@@ -21646,9 +21377,6 @@ $root.org = (function() {
|
|
|
21646
21377
|
case 3:
|
|
21647
21378
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
|
|
21648
21379
|
break;
|
|
21649
|
-
case 4:
|
|
21650
|
-
message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.decode(reader, reader.uint32());
|
|
21651
|
-
break;
|
|
21652
21380
|
default:
|
|
21653
21381
|
reader.skipType(tag & 7);
|
|
21654
21382
|
break;
|
|
@@ -21715,16 +21443,6 @@ $root.org = (function() {
|
|
|
21715
21443
|
return "value." + error;
|
|
21716
21444
|
}
|
|
21717
21445
|
}
|
|
21718
|
-
if (message.ranking != null && message.hasOwnProperty("ranking")) {
|
|
21719
|
-
if (properties.right === 1)
|
|
21720
|
-
return "right: multiple values";
|
|
21721
|
-
properties.right = 1;
|
|
21722
|
-
{
|
|
21723
|
-
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify(message.ranking);
|
|
21724
|
-
if (error)
|
|
21725
|
-
return "ranking." + error;
|
|
21726
|
-
}
|
|
21727
|
-
}
|
|
21728
21446
|
return null;
|
|
21729
21447
|
};
|
|
21730
21448
|
|
|
@@ -21796,11 +21514,6 @@ $root.org = (function() {
|
|
|
21796
21514
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.value: object expected");
|
|
21797
21515
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
|
|
21798
21516
|
}
|
|
21799
|
-
if (object.ranking != null) {
|
|
21800
|
-
if (typeof object.ranking !== "object")
|
|
21801
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.ranking: object expected");
|
|
21802
|
-
message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.fromObject(object.ranking);
|
|
21803
|
-
}
|
|
21804
21517
|
return message;
|
|
21805
21518
|
};
|
|
21806
21519
|
|
|
@@ -21830,11 +21543,6 @@ $root.org = (function() {
|
|
|
21830
21543
|
if (options.oneofs)
|
|
21831
21544
|
object.right = "value";
|
|
21832
21545
|
}
|
|
21833
|
-
if (message.ranking != null && message.hasOwnProperty("ranking")) {
|
|
21834
|
-
object.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.toObject(message.ranking, options);
|
|
21835
|
-
if (options.oneofs)
|
|
21836
|
-
object.right = "ranking";
|
|
21837
|
-
}
|
|
21838
21546
|
return object;
|
|
21839
21547
|
};
|
|
21840
21548
|
|
|
@@ -27016,27 +26724,28 @@ $root.org = (function() {
|
|
|
27016
26724
|
return AverageResults;
|
|
27017
26725
|
})();
|
|
27018
26726
|
|
|
27019
|
-
GetDocumentsResponseV1.
|
|
26727
|
+
GetDocumentsResponseV1.RankedEntry = (function() {
|
|
27020
26728
|
|
|
27021
26729
|
/**
|
|
27022
|
-
* Properties of a
|
|
26730
|
+
* Properties of a RankedEntry.
|
|
27023
26731
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27024
|
-
* @interface
|
|
27025
|
-
* @property {
|
|
27026
|
-
* @property {
|
|
27027
|
-
* @property {
|
|
27028
|
-
* @property {
|
|
26732
|
+
* @interface IRankedEntry
|
|
26733
|
+
* @property {Uint8Array|null} [key] RankedEntry key
|
|
26734
|
+
* @property {number|Long|null} [count] RankedEntry count
|
|
26735
|
+
* @property {number|Long|null} [sum] RankedEntry sum
|
|
26736
|
+
* @property {number|null} [avg] RankedEntry avg
|
|
26737
|
+
* @property {Uint8Array|null} [inKey] RankedEntry inKey
|
|
27029
26738
|
*/
|
|
27030
26739
|
|
|
27031
26740
|
/**
|
|
27032
|
-
* Constructs a new
|
|
26741
|
+
* Constructs a new RankedEntry.
|
|
27033
26742
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27034
|
-
* @classdesc Represents a
|
|
27035
|
-
* @implements
|
|
26743
|
+
* @classdesc Represents a RankedEntry.
|
|
26744
|
+
* @implements IRankedEntry
|
|
27036
26745
|
* @constructor
|
|
27037
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26746
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
27038
26747
|
*/
|
|
27039
|
-
function
|
|
26748
|
+
function RankedEntry(properties) {
|
|
27040
26749
|
if (properties)
|
|
27041
26750
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27042
26751
|
if (properties[keys[i]] != null)
|
|
@@ -27044,131 +26753,734 @@ $root.org = (function() {
|
|
|
27044
26753
|
}
|
|
27045
26754
|
|
|
27046
26755
|
/**
|
|
27047
|
-
*
|
|
27048
|
-
* @member {
|
|
27049
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26756
|
+
* RankedEntry key.
|
|
26757
|
+
* @member {Uint8Array} key
|
|
26758
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27050
26759
|
* @instance
|
|
27051
26760
|
*/
|
|
27052
|
-
|
|
26761
|
+
RankedEntry.prototype.key = $util.newBuffer([]);
|
|
27053
26762
|
|
|
27054
26763
|
/**
|
|
27055
|
-
*
|
|
27056
|
-
* @member {
|
|
27057
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26764
|
+
* RankedEntry count.
|
|
26765
|
+
* @member {number|Long} count
|
|
26766
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27058
26767
|
* @instance
|
|
27059
26768
|
*/
|
|
27060
|
-
|
|
26769
|
+
RankedEntry.prototype.count = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27061
26770
|
|
|
27062
26771
|
/**
|
|
27063
|
-
*
|
|
27064
|
-
* @member {
|
|
27065
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26772
|
+
* RankedEntry sum.
|
|
26773
|
+
* @member {number|Long} sum
|
|
26774
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27066
26775
|
* @instance
|
|
27067
26776
|
*/
|
|
27068
|
-
|
|
26777
|
+
RankedEntry.prototype.sum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
27069
26778
|
|
|
27070
26779
|
/**
|
|
27071
|
-
*
|
|
27072
|
-
* @member {
|
|
27073
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26780
|
+
* RankedEntry avg.
|
|
26781
|
+
* @member {number} avg
|
|
26782
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27074
26783
|
* @instance
|
|
27075
26784
|
*/
|
|
27076
|
-
|
|
26785
|
+
RankedEntry.prototype.avg = 0;
|
|
26786
|
+
|
|
26787
|
+
/**
|
|
26788
|
+
* RankedEntry inKey.
|
|
26789
|
+
* @member {Uint8Array} inKey
|
|
26790
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26791
|
+
* @instance
|
|
26792
|
+
*/
|
|
26793
|
+
RankedEntry.prototype.inKey = $util.newBuffer([]);
|
|
27077
26794
|
|
|
27078
26795
|
// OneOf field names bound to virtual getters and setters
|
|
27079
26796
|
var $oneOfFields;
|
|
27080
26797
|
|
|
27081
26798
|
/**
|
|
27082
|
-
*
|
|
27083
|
-
* @member {"
|
|
27084
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26799
|
+
* RankedEntry value.
|
|
26800
|
+
* @member {"count"|"sum"|"avg"|undefined} value
|
|
26801
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27085
26802
|
* @instance
|
|
27086
26803
|
*/
|
|
27087
|
-
Object.defineProperty(
|
|
27088
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
26804
|
+
Object.defineProperty(RankedEntry.prototype, "value", {
|
|
26805
|
+
get: $util.oneOfGetter($oneOfFields = ["count", "sum", "avg"]),
|
|
27089
26806
|
set: $util.oneOfSetter($oneOfFields)
|
|
27090
26807
|
});
|
|
27091
26808
|
|
|
27092
26809
|
/**
|
|
27093
|
-
* Creates a new
|
|
26810
|
+
* Creates a new RankedEntry instance using the specified properties.
|
|
27094
26811
|
* @function create
|
|
27095
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26812
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27096
26813
|
* @static
|
|
27097
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
27098
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26814
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
26815
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry instance
|
|
27099
26816
|
*/
|
|
27100
|
-
|
|
27101
|
-
return new
|
|
26817
|
+
RankedEntry.create = function create(properties) {
|
|
26818
|
+
return new RankedEntry(properties);
|
|
27102
26819
|
};
|
|
27103
26820
|
|
|
27104
26821
|
/**
|
|
27105
|
-
* Encodes the specified
|
|
26822
|
+
* Encodes the specified RankedEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
27106
26823
|
* @function encode
|
|
27107
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26824
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27108
26825
|
* @static
|
|
27109
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26826
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
27110
26827
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27111
26828
|
* @returns {$protobuf.Writer} Writer
|
|
27112
26829
|
*/
|
|
27113
|
-
|
|
26830
|
+
RankedEntry.encode = function encode(message, writer) {
|
|
27114
26831
|
if (!writer)
|
|
27115
26832
|
writer = $Writer.create();
|
|
27116
|
-
if (message.
|
|
27117
|
-
|
|
27118
|
-
if (message.
|
|
27119
|
-
|
|
27120
|
-
if (message.
|
|
27121
|
-
|
|
27122
|
-
if (message.
|
|
27123
|
-
|
|
26833
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
26834
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
|
|
26835
|
+
if (message.count != null && Object.hasOwnProperty.call(message, "count"))
|
|
26836
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.count);
|
|
26837
|
+
if (message.sum != null && Object.hasOwnProperty.call(message, "sum"))
|
|
26838
|
+
writer.uint32(/* id 3, wireType 0 =*/24).sint64(message.sum);
|
|
26839
|
+
if (message.avg != null && Object.hasOwnProperty.call(message, "avg"))
|
|
26840
|
+
writer.uint32(/* id 4, wireType 1 =*/33).double(message.avg);
|
|
26841
|
+
if (message.inKey != null && Object.hasOwnProperty.call(message, "inKey"))
|
|
26842
|
+
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.inKey);
|
|
27124
26843
|
return writer;
|
|
27125
26844
|
};
|
|
27126
26845
|
|
|
27127
26846
|
/**
|
|
27128
|
-
* Encodes the specified
|
|
26847
|
+
* Encodes the specified RankedEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
27129
26848
|
* @function encodeDelimited
|
|
27130
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26849
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27131
26850
|
* @static
|
|
27132
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26851
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
27133
26852
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27134
26853
|
* @returns {$protobuf.Writer} Writer
|
|
27135
26854
|
*/
|
|
27136
|
-
|
|
26855
|
+
RankedEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27137
26856
|
return this.encode(message, writer).ldelim();
|
|
27138
26857
|
};
|
|
27139
26858
|
|
|
27140
26859
|
/**
|
|
27141
|
-
* Decodes a
|
|
26860
|
+
* Decodes a RankedEntry message from the specified reader or buffer.
|
|
27142
26861
|
* @function decode
|
|
27143
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26862
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27144
26863
|
* @static
|
|
27145
26864
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27146
26865
|
* @param {number} [length] Message length if known beforehand
|
|
27147
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26866
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
27148
26867
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27149
26868
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27150
26869
|
*/
|
|
27151
|
-
|
|
26870
|
+
RankedEntry.decode = function decode(reader, length) {
|
|
27152
26871
|
if (!(reader instanceof $Reader))
|
|
27153
26872
|
reader = $Reader.create(reader);
|
|
27154
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26873
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
27155
26874
|
while (reader.pos < end) {
|
|
27156
26875
|
var tag = reader.uint32();
|
|
27157
26876
|
switch (tag >>> 3) {
|
|
27158
26877
|
case 1:
|
|
27159
|
-
message.
|
|
26878
|
+
message.key = reader.bytes();
|
|
27160
26879
|
break;
|
|
27161
26880
|
case 2:
|
|
27162
|
-
message.
|
|
26881
|
+
message.count = reader.uint64();
|
|
27163
26882
|
break;
|
|
27164
26883
|
case 3:
|
|
27165
|
-
message.
|
|
26884
|
+
message.sum = reader.sint64();
|
|
27166
26885
|
break;
|
|
27167
26886
|
case 4:
|
|
27168
|
-
message.
|
|
26887
|
+
message.avg = reader.double();
|
|
27169
26888
|
break;
|
|
27170
|
-
|
|
27171
|
-
reader.
|
|
26889
|
+
case 5:
|
|
26890
|
+
message.inKey = reader.bytes();
|
|
26891
|
+
break;
|
|
26892
|
+
default:
|
|
26893
|
+
reader.skipType(tag & 7);
|
|
26894
|
+
break;
|
|
26895
|
+
}
|
|
26896
|
+
}
|
|
26897
|
+
return message;
|
|
26898
|
+
};
|
|
26899
|
+
|
|
26900
|
+
/**
|
|
26901
|
+
* Decodes a RankedEntry message from the specified reader or buffer, length delimited.
|
|
26902
|
+
* @function decodeDelimited
|
|
26903
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26904
|
+
* @static
|
|
26905
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26906
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26907
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26908
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26909
|
+
*/
|
|
26910
|
+
RankedEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
26911
|
+
if (!(reader instanceof $Reader))
|
|
26912
|
+
reader = new $Reader(reader);
|
|
26913
|
+
return this.decode(reader, reader.uint32());
|
|
26914
|
+
};
|
|
26915
|
+
|
|
26916
|
+
/**
|
|
26917
|
+
* Verifies a RankedEntry message.
|
|
26918
|
+
* @function verify
|
|
26919
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26920
|
+
* @static
|
|
26921
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26922
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26923
|
+
*/
|
|
26924
|
+
RankedEntry.verify = function verify(message) {
|
|
26925
|
+
if (typeof message !== "object" || message === null)
|
|
26926
|
+
return "object expected";
|
|
26927
|
+
var properties = {};
|
|
26928
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
26929
|
+
if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
|
|
26930
|
+
return "key: buffer expected";
|
|
26931
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
26932
|
+
properties.value = 1;
|
|
26933
|
+
if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
|
|
26934
|
+
return "count: integer|Long expected";
|
|
26935
|
+
}
|
|
26936
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
26937
|
+
if (properties.value === 1)
|
|
26938
|
+
return "value: multiple values";
|
|
26939
|
+
properties.value = 1;
|
|
26940
|
+
if (!$util.isInteger(message.sum) && !(message.sum && $util.isInteger(message.sum.low) && $util.isInteger(message.sum.high)))
|
|
26941
|
+
return "sum: integer|Long expected";
|
|
26942
|
+
}
|
|
26943
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
26944
|
+
if (properties.value === 1)
|
|
26945
|
+
return "value: multiple values";
|
|
26946
|
+
properties.value = 1;
|
|
26947
|
+
if (typeof message.avg !== "number")
|
|
26948
|
+
return "avg: number expected";
|
|
26949
|
+
}
|
|
26950
|
+
if (message.inKey != null && message.hasOwnProperty("inKey"))
|
|
26951
|
+
if (!(message.inKey && typeof message.inKey.length === "number" || $util.isString(message.inKey)))
|
|
26952
|
+
return "inKey: buffer expected";
|
|
26953
|
+
return null;
|
|
26954
|
+
};
|
|
26955
|
+
|
|
26956
|
+
/**
|
|
26957
|
+
* Creates a RankedEntry message from a plain object. Also converts values to their respective internal types.
|
|
26958
|
+
* @function fromObject
|
|
26959
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26960
|
+
* @static
|
|
26961
|
+
* @param {Object.<string,*>} object Plain object
|
|
26962
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26963
|
+
*/
|
|
26964
|
+
RankedEntry.fromObject = function fromObject(object) {
|
|
26965
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry)
|
|
26966
|
+
return object;
|
|
26967
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
26968
|
+
if (object.key != null)
|
|
26969
|
+
if (typeof object.key === "string")
|
|
26970
|
+
$util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
|
|
26971
|
+
else if (object.key.length >= 0)
|
|
26972
|
+
message.key = object.key;
|
|
26973
|
+
if (object.count != null)
|
|
26974
|
+
if ($util.Long)
|
|
26975
|
+
(message.count = $util.Long.fromValue(object.count)).unsigned = true;
|
|
26976
|
+
else if (typeof object.count === "string")
|
|
26977
|
+
message.count = parseInt(object.count, 10);
|
|
26978
|
+
else if (typeof object.count === "number")
|
|
26979
|
+
message.count = object.count;
|
|
26980
|
+
else if (typeof object.count === "object")
|
|
26981
|
+
message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(true);
|
|
26982
|
+
if (object.sum != null)
|
|
26983
|
+
if ($util.Long)
|
|
26984
|
+
(message.sum = $util.Long.fromValue(object.sum)).unsigned = false;
|
|
26985
|
+
else if (typeof object.sum === "string")
|
|
26986
|
+
message.sum = parseInt(object.sum, 10);
|
|
26987
|
+
else if (typeof object.sum === "number")
|
|
26988
|
+
message.sum = object.sum;
|
|
26989
|
+
else if (typeof object.sum === "object")
|
|
26990
|
+
message.sum = new $util.LongBits(object.sum.low >>> 0, object.sum.high >>> 0).toNumber();
|
|
26991
|
+
if (object.avg != null)
|
|
26992
|
+
message.avg = Number(object.avg);
|
|
26993
|
+
if (object.inKey != null)
|
|
26994
|
+
if (typeof object.inKey === "string")
|
|
26995
|
+
$util.base64.decode(object.inKey, message.inKey = $util.newBuffer($util.base64.length(object.inKey)), 0);
|
|
26996
|
+
else if (object.inKey.length >= 0)
|
|
26997
|
+
message.inKey = object.inKey;
|
|
26998
|
+
return message;
|
|
26999
|
+
};
|
|
27000
|
+
|
|
27001
|
+
/**
|
|
27002
|
+
* Creates a plain object from a RankedEntry message. Also converts values to other types if specified.
|
|
27003
|
+
* @function toObject
|
|
27004
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27005
|
+
* @static
|
|
27006
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} message RankedEntry
|
|
27007
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27008
|
+
* @returns {Object.<string,*>} Plain object
|
|
27009
|
+
*/
|
|
27010
|
+
RankedEntry.toObject = function toObject(message, options) {
|
|
27011
|
+
if (!options)
|
|
27012
|
+
options = {};
|
|
27013
|
+
var object = {};
|
|
27014
|
+
if (options.defaults) {
|
|
27015
|
+
if (options.bytes === String)
|
|
27016
|
+
object.key = "";
|
|
27017
|
+
else {
|
|
27018
|
+
object.key = [];
|
|
27019
|
+
if (options.bytes !== Array)
|
|
27020
|
+
object.key = $util.newBuffer(object.key);
|
|
27021
|
+
}
|
|
27022
|
+
if (options.bytes === String)
|
|
27023
|
+
object.inKey = "";
|
|
27024
|
+
else {
|
|
27025
|
+
object.inKey = [];
|
|
27026
|
+
if (options.bytes !== Array)
|
|
27027
|
+
object.inKey = $util.newBuffer(object.inKey);
|
|
27028
|
+
}
|
|
27029
|
+
}
|
|
27030
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
27031
|
+
object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key;
|
|
27032
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
27033
|
+
if (typeof message.count === "number")
|
|
27034
|
+
object.count = options.longs === String ? String(message.count) : message.count;
|
|
27035
|
+
else
|
|
27036
|
+
object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber(true) : message.count;
|
|
27037
|
+
if (options.oneofs)
|
|
27038
|
+
object.value = "count";
|
|
27039
|
+
}
|
|
27040
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
27041
|
+
if (typeof message.sum === "number")
|
|
27042
|
+
object.sum = options.longs === String ? String(message.sum) : message.sum;
|
|
27043
|
+
else
|
|
27044
|
+
object.sum = options.longs === String ? $util.Long.prototype.toString.call(message.sum) : options.longs === Number ? new $util.LongBits(message.sum.low >>> 0, message.sum.high >>> 0).toNumber() : message.sum;
|
|
27045
|
+
if (options.oneofs)
|
|
27046
|
+
object.value = "sum";
|
|
27047
|
+
}
|
|
27048
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
27049
|
+
object.avg = options.json && !isFinite(message.avg) ? String(message.avg) : message.avg;
|
|
27050
|
+
if (options.oneofs)
|
|
27051
|
+
object.value = "avg";
|
|
27052
|
+
}
|
|
27053
|
+
if (message.inKey != null && message.hasOwnProperty("inKey"))
|
|
27054
|
+
object.inKey = options.bytes === String ? $util.base64.encode(message.inKey, 0, message.inKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.inKey) : message.inKey;
|
|
27055
|
+
return object;
|
|
27056
|
+
};
|
|
27057
|
+
|
|
27058
|
+
/**
|
|
27059
|
+
* Converts this RankedEntry to JSON.
|
|
27060
|
+
* @function toJSON
|
|
27061
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27062
|
+
* @instance
|
|
27063
|
+
* @returns {Object.<string,*>} JSON object
|
|
27064
|
+
*/
|
|
27065
|
+
RankedEntry.prototype.toJSON = function toJSON() {
|
|
27066
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27067
|
+
};
|
|
27068
|
+
|
|
27069
|
+
return RankedEntry;
|
|
27070
|
+
})();
|
|
27071
|
+
|
|
27072
|
+
GetDocumentsResponseV1.RankedEntries = (function() {
|
|
27073
|
+
|
|
27074
|
+
/**
|
|
27075
|
+
* Properties of a RankedEntries.
|
|
27076
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27077
|
+
* @interface IRankedEntries
|
|
27078
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>|null} [entries] RankedEntries entries
|
|
27079
|
+
* @property {number|Long|null} [skipped] RankedEntries skipped
|
|
27080
|
+
*/
|
|
27081
|
+
|
|
27082
|
+
/**
|
|
27083
|
+
* Constructs a new RankedEntries.
|
|
27084
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27085
|
+
* @classdesc Represents a RankedEntries.
|
|
27086
|
+
* @implements IRankedEntries
|
|
27087
|
+
* @constructor
|
|
27088
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
27089
|
+
*/
|
|
27090
|
+
function RankedEntries(properties) {
|
|
27091
|
+
this.entries = [];
|
|
27092
|
+
if (properties)
|
|
27093
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27094
|
+
if (properties[keys[i]] != null)
|
|
27095
|
+
this[keys[i]] = properties[keys[i]];
|
|
27096
|
+
}
|
|
27097
|
+
|
|
27098
|
+
/**
|
|
27099
|
+
* RankedEntries entries.
|
|
27100
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>} entries
|
|
27101
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27102
|
+
* @instance
|
|
27103
|
+
*/
|
|
27104
|
+
RankedEntries.prototype.entries = $util.emptyArray;
|
|
27105
|
+
|
|
27106
|
+
/**
|
|
27107
|
+
* RankedEntries skipped.
|
|
27108
|
+
* @member {number|Long} skipped
|
|
27109
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27110
|
+
* @instance
|
|
27111
|
+
*/
|
|
27112
|
+
RankedEntries.prototype.skipped = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27113
|
+
|
|
27114
|
+
/**
|
|
27115
|
+
* Creates a new RankedEntries instance using the specified properties.
|
|
27116
|
+
* @function create
|
|
27117
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27118
|
+
* @static
|
|
27119
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
27120
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries instance
|
|
27121
|
+
*/
|
|
27122
|
+
RankedEntries.create = function create(properties) {
|
|
27123
|
+
return new RankedEntries(properties);
|
|
27124
|
+
};
|
|
27125
|
+
|
|
27126
|
+
/**
|
|
27127
|
+
* Encodes the specified RankedEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
27128
|
+
* @function encode
|
|
27129
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27130
|
+
* @static
|
|
27131
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
27132
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27133
|
+
* @returns {$protobuf.Writer} Writer
|
|
27134
|
+
*/
|
|
27135
|
+
RankedEntries.encode = function encode(message, writer) {
|
|
27136
|
+
if (!writer)
|
|
27137
|
+
writer = $Writer.create();
|
|
27138
|
+
if (message.entries != null && message.entries.length)
|
|
27139
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
27140
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27141
|
+
if (message.skipped != null && Object.hasOwnProperty.call(message, "skipped"))
|
|
27142
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.skipped);
|
|
27143
|
+
return writer;
|
|
27144
|
+
};
|
|
27145
|
+
|
|
27146
|
+
/**
|
|
27147
|
+
* Encodes the specified RankedEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
27148
|
+
* @function encodeDelimited
|
|
27149
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27150
|
+
* @static
|
|
27151
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
27152
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27153
|
+
* @returns {$protobuf.Writer} Writer
|
|
27154
|
+
*/
|
|
27155
|
+
RankedEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27156
|
+
return this.encode(message, writer).ldelim();
|
|
27157
|
+
};
|
|
27158
|
+
|
|
27159
|
+
/**
|
|
27160
|
+
* Decodes a RankedEntries message from the specified reader or buffer.
|
|
27161
|
+
* @function decode
|
|
27162
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27163
|
+
* @static
|
|
27164
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27165
|
+
* @param {number} [length] Message length if known beforehand
|
|
27166
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27167
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27168
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27169
|
+
*/
|
|
27170
|
+
RankedEntries.decode = function decode(reader, length) {
|
|
27171
|
+
if (!(reader instanceof $Reader))
|
|
27172
|
+
reader = $Reader.create(reader);
|
|
27173
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
27174
|
+
while (reader.pos < end) {
|
|
27175
|
+
var tag = reader.uint32();
|
|
27176
|
+
switch (tag >>> 3) {
|
|
27177
|
+
case 1:
|
|
27178
|
+
if (!(message.entries && message.entries.length))
|
|
27179
|
+
message.entries = [];
|
|
27180
|
+
message.entries.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.decode(reader, reader.uint32()));
|
|
27181
|
+
break;
|
|
27182
|
+
case 2:
|
|
27183
|
+
message.skipped = reader.uint64();
|
|
27184
|
+
break;
|
|
27185
|
+
default:
|
|
27186
|
+
reader.skipType(tag & 7);
|
|
27187
|
+
break;
|
|
27188
|
+
}
|
|
27189
|
+
}
|
|
27190
|
+
return message;
|
|
27191
|
+
};
|
|
27192
|
+
|
|
27193
|
+
/**
|
|
27194
|
+
* Decodes a RankedEntries message from the specified reader or buffer, length delimited.
|
|
27195
|
+
* @function decodeDelimited
|
|
27196
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27197
|
+
* @static
|
|
27198
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27199
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27200
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27201
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27202
|
+
*/
|
|
27203
|
+
RankedEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
27204
|
+
if (!(reader instanceof $Reader))
|
|
27205
|
+
reader = new $Reader(reader);
|
|
27206
|
+
return this.decode(reader, reader.uint32());
|
|
27207
|
+
};
|
|
27208
|
+
|
|
27209
|
+
/**
|
|
27210
|
+
* Verifies a RankedEntries message.
|
|
27211
|
+
* @function verify
|
|
27212
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27213
|
+
* @static
|
|
27214
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27215
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27216
|
+
*/
|
|
27217
|
+
RankedEntries.verify = function verify(message) {
|
|
27218
|
+
if (typeof message !== "object" || message === null)
|
|
27219
|
+
return "object expected";
|
|
27220
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
27221
|
+
if (!Array.isArray(message.entries))
|
|
27222
|
+
return "entries: array expected";
|
|
27223
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
27224
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify(message.entries[i]);
|
|
27225
|
+
if (error)
|
|
27226
|
+
return "entries." + error;
|
|
27227
|
+
}
|
|
27228
|
+
}
|
|
27229
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
27230
|
+
if (!$util.isInteger(message.skipped) && !(message.skipped && $util.isInteger(message.skipped.low) && $util.isInteger(message.skipped.high)))
|
|
27231
|
+
return "skipped: integer|Long expected";
|
|
27232
|
+
return null;
|
|
27233
|
+
};
|
|
27234
|
+
|
|
27235
|
+
/**
|
|
27236
|
+
* Creates a RankedEntries message from a plain object. Also converts values to their respective internal types.
|
|
27237
|
+
* @function fromObject
|
|
27238
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27239
|
+
* @static
|
|
27240
|
+
* @param {Object.<string,*>} object Plain object
|
|
27241
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27242
|
+
*/
|
|
27243
|
+
RankedEntries.fromObject = function fromObject(object) {
|
|
27244
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries)
|
|
27245
|
+
return object;
|
|
27246
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
27247
|
+
if (object.entries) {
|
|
27248
|
+
if (!Array.isArray(object.entries))
|
|
27249
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: array expected");
|
|
27250
|
+
message.entries = [];
|
|
27251
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
27252
|
+
if (typeof object.entries[i] !== "object")
|
|
27253
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: object expected");
|
|
27254
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.fromObject(object.entries[i]);
|
|
27255
|
+
}
|
|
27256
|
+
}
|
|
27257
|
+
if (object.skipped != null)
|
|
27258
|
+
if ($util.Long)
|
|
27259
|
+
(message.skipped = $util.Long.fromValue(object.skipped)).unsigned = true;
|
|
27260
|
+
else if (typeof object.skipped === "string")
|
|
27261
|
+
message.skipped = parseInt(object.skipped, 10);
|
|
27262
|
+
else if (typeof object.skipped === "number")
|
|
27263
|
+
message.skipped = object.skipped;
|
|
27264
|
+
else if (typeof object.skipped === "object")
|
|
27265
|
+
message.skipped = new $util.LongBits(object.skipped.low >>> 0, object.skipped.high >>> 0).toNumber(true);
|
|
27266
|
+
return message;
|
|
27267
|
+
};
|
|
27268
|
+
|
|
27269
|
+
/**
|
|
27270
|
+
* Creates a plain object from a RankedEntries message. Also converts values to other types if specified.
|
|
27271
|
+
* @function toObject
|
|
27272
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27273
|
+
* @static
|
|
27274
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} message RankedEntries
|
|
27275
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27276
|
+
* @returns {Object.<string,*>} Plain object
|
|
27277
|
+
*/
|
|
27278
|
+
RankedEntries.toObject = function toObject(message, options) {
|
|
27279
|
+
if (!options)
|
|
27280
|
+
options = {};
|
|
27281
|
+
var object = {};
|
|
27282
|
+
if (options.arrays || options.defaults)
|
|
27283
|
+
object.entries = [];
|
|
27284
|
+
if (options.defaults)
|
|
27285
|
+
if ($util.Long) {
|
|
27286
|
+
var long = new $util.Long(0, 0, true);
|
|
27287
|
+
object.skipped = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
27288
|
+
} else
|
|
27289
|
+
object.skipped = options.longs === String ? "0" : 0;
|
|
27290
|
+
if (message.entries && message.entries.length) {
|
|
27291
|
+
object.entries = [];
|
|
27292
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
27293
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject(message.entries[j], options);
|
|
27294
|
+
}
|
|
27295
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
27296
|
+
if (typeof message.skipped === "number")
|
|
27297
|
+
object.skipped = options.longs === String ? String(message.skipped) : message.skipped;
|
|
27298
|
+
else
|
|
27299
|
+
object.skipped = options.longs === String ? $util.Long.prototype.toString.call(message.skipped) : options.longs === Number ? new $util.LongBits(message.skipped.low >>> 0, message.skipped.high >>> 0).toNumber(true) : message.skipped;
|
|
27300
|
+
return object;
|
|
27301
|
+
};
|
|
27302
|
+
|
|
27303
|
+
/**
|
|
27304
|
+
* Converts this RankedEntries to JSON.
|
|
27305
|
+
* @function toJSON
|
|
27306
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27307
|
+
* @instance
|
|
27308
|
+
* @returns {Object.<string,*>} JSON object
|
|
27309
|
+
*/
|
|
27310
|
+
RankedEntries.prototype.toJSON = function toJSON() {
|
|
27311
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27312
|
+
};
|
|
27313
|
+
|
|
27314
|
+
return RankedEntries;
|
|
27315
|
+
})();
|
|
27316
|
+
|
|
27317
|
+
GetDocumentsResponseV1.ResultData = (function() {
|
|
27318
|
+
|
|
27319
|
+
/**
|
|
27320
|
+
* Properties of a ResultData.
|
|
27321
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27322
|
+
* @interface IResultData
|
|
27323
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] ResultData documents
|
|
27324
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null} [counts] ResultData counts
|
|
27325
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
|
|
27326
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
|
|
27327
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
|
|
27328
|
+
*/
|
|
27329
|
+
|
|
27330
|
+
/**
|
|
27331
|
+
* Constructs a new ResultData.
|
|
27332
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27333
|
+
* @classdesc Represents a ResultData.
|
|
27334
|
+
* @implements IResultData
|
|
27335
|
+
* @constructor
|
|
27336
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
27337
|
+
*/
|
|
27338
|
+
function ResultData(properties) {
|
|
27339
|
+
if (properties)
|
|
27340
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27341
|
+
if (properties[keys[i]] != null)
|
|
27342
|
+
this[keys[i]] = properties[keys[i]];
|
|
27343
|
+
}
|
|
27344
|
+
|
|
27345
|
+
/**
|
|
27346
|
+
* ResultData documents.
|
|
27347
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
|
|
27348
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27349
|
+
* @instance
|
|
27350
|
+
*/
|
|
27351
|
+
ResultData.prototype.documents = null;
|
|
27352
|
+
|
|
27353
|
+
/**
|
|
27354
|
+
* ResultData counts.
|
|
27355
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null|undefined} counts
|
|
27356
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27357
|
+
* @instance
|
|
27358
|
+
*/
|
|
27359
|
+
ResultData.prototype.counts = null;
|
|
27360
|
+
|
|
27361
|
+
/**
|
|
27362
|
+
* ResultData sums.
|
|
27363
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null|undefined} sums
|
|
27364
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27365
|
+
* @instance
|
|
27366
|
+
*/
|
|
27367
|
+
ResultData.prototype.sums = null;
|
|
27368
|
+
|
|
27369
|
+
/**
|
|
27370
|
+
* ResultData averages.
|
|
27371
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null|undefined} averages
|
|
27372
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27373
|
+
* @instance
|
|
27374
|
+
*/
|
|
27375
|
+
ResultData.prototype.averages = null;
|
|
27376
|
+
|
|
27377
|
+
/**
|
|
27378
|
+
* ResultData ranked.
|
|
27379
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null|undefined} ranked
|
|
27380
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27381
|
+
* @instance
|
|
27382
|
+
*/
|
|
27383
|
+
ResultData.prototype.ranked = null;
|
|
27384
|
+
|
|
27385
|
+
// OneOf field names bound to virtual getters and setters
|
|
27386
|
+
var $oneOfFields;
|
|
27387
|
+
|
|
27388
|
+
/**
|
|
27389
|
+
* ResultData variant.
|
|
27390
|
+
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
|
|
27391
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27392
|
+
* @instance
|
|
27393
|
+
*/
|
|
27394
|
+
Object.defineProperty(ResultData.prototype, "variant", {
|
|
27395
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
|
|
27396
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27397
|
+
});
|
|
27398
|
+
|
|
27399
|
+
/**
|
|
27400
|
+
* Creates a new ResultData instance using the specified properties.
|
|
27401
|
+
* @function create
|
|
27402
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27403
|
+
* @static
|
|
27404
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
27405
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData instance
|
|
27406
|
+
*/
|
|
27407
|
+
ResultData.create = function create(properties) {
|
|
27408
|
+
return new ResultData(properties);
|
|
27409
|
+
};
|
|
27410
|
+
|
|
27411
|
+
/**
|
|
27412
|
+
* Encodes the specified ResultData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
27413
|
+
* @function encode
|
|
27414
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27415
|
+
* @static
|
|
27416
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
27417
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27418
|
+
* @returns {$protobuf.Writer} Writer
|
|
27419
|
+
*/
|
|
27420
|
+
ResultData.encode = function encode(message, writer) {
|
|
27421
|
+
if (!writer)
|
|
27422
|
+
writer = $Writer.create();
|
|
27423
|
+
if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
|
|
27424
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27425
|
+
if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
|
|
27426
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
27427
|
+
if (message.sums != null && Object.hasOwnProperty.call(message, "sums"))
|
|
27428
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.encode(message.sums, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27429
|
+
if (message.averages != null && Object.hasOwnProperty.call(message, "averages"))
|
|
27430
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27431
|
+
if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
|
|
27432
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
27433
|
+
return writer;
|
|
27434
|
+
};
|
|
27435
|
+
|
|
27436
|
+
/**
|
|
27437
|
+
* Encodes the specified ResultData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
27438
|
+
* @function encodeDelimited
|
|
27439
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27440
|
+
* @static
|
|
27441
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
27442
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27443
|
+
* @returns {$protobuf.Writer} Writer
|
|
27444
|
+
*/
|
|
27445
|
+
ResultData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27446
|
+
return this.encode(message, writer).ldelim();
|
|
27447
|
+
};
|
|
27448
|
+
|
|
27449
|
+
/**
|
|
27450
|
+
* Decodes a ResultData message from the specified reader or buffer.
|
|
27451
|
+
* @function decode
|
|
27452
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27453
|
+
* @static
|
|
27454
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27455
|
+
* @param {number} [length] Message length if known beforehand
|
|
27456
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
|
|
27457
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27458
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27459
|
+
*/
|
|
27460
|
+
ResultData.decode = function decode(reader, length) {
|
|
27461
|
+
if (!(reader instanceof $Reader))
|
|
27462
|
+
reader = $Reader.create(reader);
|
|
27463
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData();
|
|
27464
|
+
while (reader.pos < end) {
|
|
27465
|
+
var tag = reader.uint32();
|
|
27466
|
+
switch (tag >>> 3) {
|
|
27467
|
+
case 1:
|
|
27468
|
+
message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
|
|
27469
|
+
break;
|
|
27470
|
+
case 2:
|
|
27471
|
+
message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.decode(reader, reader.uint32());
|
|
27472
|
+
break;
|
|
27473
|
+
case 3:
|
|
27474
|
+
message.sums = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.decode(reader, reader.uint32());
|
|
27475
|
+
break;
|
|
27476
|
+
case 4:
|
|
27477
|
+
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.decode(reader, reader.uint32());
|
|
27478
|
+
break;
|
|
27479
|
+
case 5:
|
|
27480
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
|
|
27481
|
+
break;
|
|
27482
|
+
default:
|
|
27483
|
+
reader.skipType(tag & 7);
|
|
27172
27484
|
break;
|
|
27173
27485
|
}
|
|
27174
27486
|
}
|
|
@@ -27241,6 +27553,16 @@ $root.org = (function() {
|
|
|
27241
27553
|
return "averages." + error;
|
|
27242
27554
|
}
|
|
27243
27555
|
}
|
|
27556
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27557
|
+
if (properties.variant === 1)
|
|
27558
|
+
return "variant: multiple values";
|
|
27559
|
+
properties.variant = 1;
|
|
27560
|
+
{
|
|
27561
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify(message.ranked);
|
|
27562
|
+
if (error)
|
|
27563
|
+
return "ranked." + error;
|
|
27564
|
+
}
|
|
27565
|
+
}
|
|
27244
27566
|
return null;
|
|
27245
27567
|
};
|
|
27246
27568
|
|
|
@@ -27276,6 +27598,11 @@ $root.org = (function() {
|
|
|
27276
27598
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.averages: object expected");
|
|
27277
27599
|
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.fromObject(object.averages);
|
|
27278
27600
|
}
|
|
27601
|
+
if (object.ranked != null) {
|
|
27602
|
+
if (typeof object.ranked !== "object")
|
|
27603
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
|
|
27604
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
|
|
27605
|
+
}
|
|
27279
27606
|
return message;
|
|
27280
27607
|
};
|
|
27281
27608
|
|
|
@@ -27312,6 +27639,11 @@ $root.org = (function() {
|
|
|
27312
27639
|
if (options.oneofs)
|
|
27313
27640
|
object.variant = "averages";
|
|
27314
27641
|
}
|
|
27642
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27643
|
+
object.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(message.ranked, options);
|
|
27644
|
+
if (options.oneofs)
|
|
27645
|
+
object.variant = "ranked";
|
|
27646
|
+
}
|
|
27315
27647
|
return object;
|
|
27316
27648
|
};
|
|
27317
27649
|
|