@dashevo/dapi-grpc 4.1.0 → 4.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +19 -8
- package/build.rs +11 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +668 -375
- package/clients/platform/v0/nodejs/platform_pbjs.js +668 -375
- package/clients/platform/v0/nodejs/platform_protoc.js +656 -289
- package/clients/platform/v0/web/platform_pb.d.ts +83 -42
- package/clients/platform/v0/web/platform_pb.js +656 -289
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +263 -93
|
@@ -21233,271 +21233,6 @@ $root.org = (function() {
|
|
|
21233
21233
|
return HavingAggregate;
|
|
21234
21234
|
})();
|
|
21235
21235
|
|
|
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
21236
|
GetDocumentsRequest.HavingClause = (function() {
|
|
21502
21237
|
|
|
21503
21238
|
/**
|
|
@@ -21507,7 +21242,6 @@ $root.org = (function() {
|
|
|
21507
21242
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingAggregate|null} [aggregate] HavingClause aggregate
|
|
21508
21243
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator|null} [operator] HavingClause operator
|
|
21509
21244
|
* @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
21245
|
*/
|
|
21512
21246
|
|
|
21513
21247
|
/**
|
|
@@ -21549,25 +21283,17 @@ $root.org = (function() {
|
|
|
21549
21283
|
*/
|
|
21550
21284
|
HavingClause.prototype.value = null;
|
|
21551
21285
|
|
|
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
21286
|
// OneOf field names bound to virtual getters and setters
|
|
21561
21287
|
var $oneOfFields;
|
|
21562
21288
|
|
|
21563
21289
|
/**
|
|
21564
21290
|
* HavingClause right.
|
|
21565
|
-
* @member {"value"|
|
|
21291
|
+
* @member {"value"|undefined} right
|
|
21566
21292
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
|
|
21567
21293
|
* @instance
|
|
21568
21294
|
*/
|
|
21569
21295
|
Object.defineProperty(HavingClause.prototype, "right", {
|
|
21570
|
-
get: $util.oneOfGetter($oneOfFields = ["value"
|
|
21296
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
21571
21297
|
set: $util.oneOfSetter($oneOfFields)
|
|
21572
21298
|
});
|
|
21573
21299
|
|
|
@@ -21601,8 +21327,6 @@ $root.org = (function() {
|
|
|
21601
21327
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
|
|
21602
21328
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
21603
21329
|
$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
21330
|
return writer;
|
|
21607
21331
|
};
|
|
21608
21332
|
|
|
@@ -21646,9 +21370,6 @@ $root.org = (function() {
|
|
|
21646
21370
|
case 3:
|
|
21647
21371
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
|
|
21648
21372
|
break;
|
|
21649
|
-
case 4:
|
|
21650
|
-
message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.decode(reader, reader.uint32());
|
|
21651
|
-
break;
|
|
21652
21373
|
default:
|
|
21653
21374
|
reader.skipType(tag & 7);
|
|
21654
21375
|
break;
|
|
@@ -21715,16 +21436,6 @@ $root.org = (function() {
|
|
|
21715
21436
|
return "value." + error;
|
|
21716
21437
|
}
|
|
21717
21438
|
}
|
|
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
21439
|
return null;
|
|
21729
21440
|
};
|
|
21730
21441
|
|
|
@@ -21796,11 +21507,6 @@ $root.org = (function() {
|
|
|
21796
21507
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.value: object expected");
|
|
21797
21508
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
|
|
21798
21509
|
}
|
|
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
21510
|
return message;
|
|
21805
21511
|
};
|
|
21806
21512
|
|
|
@@ -21830,11 +21536,6 @@ $root.org = (function() {
|
|
|
21830
21536
|
if (options.oneofs)
|
|
21831
21537
|
object.right = "value";
|
|
21832
21538
|
}
|
|
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
21539
|
return object;
|
|
21839
21540
|
};
|
|
21840
21541
|
|
|
@@ -27016,27 +26717,27 @@ $root.org = (function() {
|
|
|
27016
26717
|
return AverageResults;
|
|
27017
26718
|
})();
|
|
27018
26719
|
|
|
27019
|
-
GetDocumentsResponseV1.
|
|
26720
|
+
GetDocumentsResponseV1.RankedEntry = (function() {
|
|
27020
26721
|
|
|
27021
26722
|
/**
|
|
27022
|
-
* Properties of a
|
|
26723
|
+
* Properties of a RankedEntry.
|
|
27023
26724
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27024
|
-
* @interface
|
|
27025
|
-
* @property {
|
|
27026
|
-
* @property {
|
|
27027
|
-
* @property {
|
|
27028
|
-
* @property {
|
|
26725
|
+
* @interface IRankedEntry
|
|
26726
|
+
* @property {Uint8Array|null} [key] RankedEntry key
|
|
26727
|
+
* @property {number|Long|null} [count] RankedEntry count
|
|
26728
|
+
* @property {number|Long|null} [sum] RankedEntry sum
|
|
26729
|
+
* @property {number|null} [avg] RankedEntry avg
|
|
27029
26730
|
*/
|
|
27030
26731
|
|
|
27031
26732
|
/**
|
|
27032
|
-
* Constructs a new
|
|
26733
|
+
* Constructs a new RankedEntry.
|
|
27033
26734
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27034
|
-
* @classdesc Represents a
|
|
27035
|
-
* @implements
|
|
26735
|
+
* @classdesc Represents a RankedEntry.
|
|
26736
|
+
* @implements IRankedEntry
|
|
27036
26737
|
* @constructor
|
|
27037
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26738
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
27038
26739
|
*/
|
|
27039
|
-
function
|
|
26740
|
+
function RankedEntry(properties) {
|
|
27040
26741
|
if (properties)
|
|
27041
26742
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27042
26743
|
if (properties[keys[i]] != null)
|
|
@@ -27044,128 +26745,128 @@ $root.org = (function() {
|
|
|
27044
26745
|
}
|
|
27045
26746
|
|
|
27046
26747
|
/**
|
|
27047
|
-
*
|
|
27048
|
-
* @member {
|
|
27049
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26748
|
+
* RankedEntry key.
|
|
26749
|
+
* @member {Uint8Array} key
|
|
26750
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27050
26751
|
* @instance
|
|
27051
26752
|
*/
|
|
27052
|
-
|
|
26753
|
+
RankedEntry.prototype.key = $util.newBuffer([]);
|
|
27053
26754
|
|
|
27054
26755
|
/**
|
|
27055
|
-
*
|
|
27056
|
-
* @member {
|
|
27057
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26756
|
+
* RankedEntry count.
|
|
26757
|
+
* @member {number|Long} count
|
|
26758
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27058
26759
|
* @instance
|
|
27059
26760
|
*/
|
|
27060
|
-
|
|
26761
|
+
RankedEntry.prototype.count = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27061
26762
|
|
|
27062
26763
|
/**
|
|
27063
|
-
*
|
|
27064
|
-
* @member {
|
|
27065
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26764
|
+
* RankedEntry sum.
|
|
26765
|
+
* @member {number|Long} sum
|
|
26766
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27066
26767
|
* @instance
|
|
27067
26768
|
*/
|
|
27068
|
-
|
|
26769
|
+
RankedEntry.prototype.sum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
27069
26770
|
|
|
27070
26771
|
/**
|
|
27071
|
-
*
|
|
27072
|
-
* @member {
|
|
27073
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26772
|
+
* RankedEntry avg.
|
|
26773
|
+
* @member {number} avg
|
|
26774
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27074
26775
|
* @instance
|
|
27075
26776
|
*/
|
|
27076
|
-
|
|
26777
|
+
RankedEntry.prototype.avg = 0;
|
|
27077
26778
|
|
|
27078
26779
|
// OneOf field names bound to virtual getters and setters
|
|
27079
26780
|
var $oneOfFields;
|
|
27080
26781
|
|
|
27081
26782
|
/**
|
|
27082
|
-
*
|
|
27083
|
-
* @member {"
|
|
27084
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26783
|
+
* RankedEntry value.
|
|
26784
|
+
* @member {"count"|"sum"|"avg"|undefined} value
|
|
26785
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27085
26786
|
* @instance
|
|
27086
26787
|
*/
|
|
27087
|
-
Object.defineProperty(
|
|
27088
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
26788
|
+
Object.defineProperty(RankedEntry.prototype, "value", {
|
|
26789
|
+
get: $util.oneOfGetter($oneOfFields = ["count", "sum", "avg"]),
|
|
27089
26790
|
set: $util.oneOfSetter($oneOfFields)
|
|
27090
26791
|
});
|
|
27091
26792
|
|
|
27092
26793
|
/**
|
|
27093
|
-
* Creates a new
|
|
26794
|
+
* Creates a new RankedEntry instance using the specified properties.
|
|
27094
26795
|
* @function create
|
|
27095
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26796
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27096
26797
|
* @static
|
|
27097
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
27098
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26798
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
26799
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry instance
|
|
27099
26800
|
*/
|
|
27100
|
-
|
|
27101
|
-
return new
|
|
26801
|
+
RankedEntry.create = function create(properties) {
|
|
26802
|
+
return new RankedEntry(properties);
|
|
27102
26803
|
};
|
|
27103
26804
|
|
|
27104
26805
|
/**
|
|
27105
|
-
* Encodes the specified
|
|
26806
|
+
* Encodes the specified RankedEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
27106
26807
|
* @function encode
|
|
27107
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26808
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27108
26809
|
* @static
|
|
27109
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26810
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
27110
26811
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27111
26812
|
* @returns {$protobuf.Writer} Writer
|
|
27112
26813
|
*/
|
|
27113
|
-
|
|
26814
|
+
RankedEntry.encode = function encode(message, writer) {
|
|
27114
26815
|
if (!writer)
|
|
27115
26816
|
writer = $Writer.create();
|
|
27116
|
-
if (message.
|
|
27117
|
-
|
|
27118
|
-
if (message.
|
|
27119
|
-
|
|
27120
|
-
if (message.
|
|
27121
|
-
|
|
27122
|
-
if (message.
|
|
27123
|
-
|
|
26817
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
26818
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
|
|
26819
|
+
if (message.count != null && Object.hasOwnProperty.call(message, "count"))
|
|
26820
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.count);
|
|
26821
|
+
if (message.sum != null && Object.hasOwnProperty.call(message, "sum"))
|
|
26822
|
+
writer.uint32(/* id 3, wireType 0 =*/24).sint64(message.sum);
|
|
26823
|
+
if (message.avg != null && Object.hasOwnProperty.call(message, "avg"))
|
|
26824
|
+
writer.uint32(/* id 4, wireType 1 =*/33).double(message.avg);
|
|
27124
26825
|
return writer;
|
|
27125
26826
|
};
|
|
27126
26827
|
|
|
27127
26828
|
/**
|
|
27128
|
-
* Encodes the specified
|
|
26829
|
+
* Encodes the specified RankedEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
27129
26830
|
* @function encodeDelimited
|
|
27130
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26831
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27131
26832
|
* @static
|
|
27132
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26833
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
27133
26834
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27134
26835
|
* @returns {$protobuf.Writer} Writer
|
|
27135
26836
|
*/
|
|
27136
|
-
|
|
26837
|
+
RankedEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27137
26838
|
return this.encode(message, writer).ldelim();
|
|
27138
26839
|
};
|
|
27139
26840
|
|
|
27140
26841
|
/**
|
|
27141
|
-
* Decodes a
|
|
26842
|
+
* Decodes a RankedEntry message from the specified reader or buffer.
|
|
27142
26843
|
* @function decode
|
|
27143
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26844
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27144
26845
|
* @static
|
|
27145
26846
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27146
26847
|
* @param {number} [length] Message length if known beforehand
|
|
27147
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26848
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
27148
26849
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27149
26850
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27150
26851
|
*/
|
|
27151
|
-
|
|
26852
|
+
RankedEntry.decode = function decode(reader, length) {
|
|
27152
26853
|
if (!(reader instanceof $Reader))
|
|
27153
26854
|
reader = $Reader.create(reader);
|
|
27154
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26855
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
27155
26856
|
while (reader.pos < end) {
|
|
27156
26857
|
var tag = reader.uint32();
|
|
27157
26858
|
switch (tag >>> 3) {
|
|
27158
26859
|
case 1:
|
|
27159
|
-
message.
|
|
26860
|
+
message.key = reader.bytes();
|
|
27160
26861
|
break;
|
|
27161
26862
|
case 2:
|
|
27162
|
-
message.
|
|
26863
|
+
message.count = reader.uint64();
|
|
27163
26864
|
break;
|
|
27164
26865
|
case 3:
|
|
27165
|
-
message.
|
|
26866
|
+
message.sum = reader.sint64();
|
|
27166
26867
|
break;
|
|
27167
26868
|
case 4:
|
|
27168
|
-
message.
|
|
26869
|
+
message.avg = reader.double();
|
|
27169
26870
|
break;
|
|
27170
26871
|
default:
|
|
27171
26872
|
reader.skipType(tag & 7);
|
|
@@ -27176,36 +26877,608 @@ $root.org = (function() {
|
|
|
27176
26877
|
};
|
|
27177
26878
|
|
|
27178
26879
|
/**
|
|
27179
|
-
* Decodes a
|
|
26880
|
+
* Decodes a RankedEntry message from the specified reader or buffer, length delimited.
|
|
27180
26881
|
* @function decodeDelimited
|
|
27181
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26882
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27182
26883
|
* @static
|
|
27183
26884
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27184
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26885
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
27185
26886
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27186
26887
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27187
26888
|
*/
|
|
27188
|
-
|
|
26889
|
+
RankedEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
27189
26890
|
if (!(reader instanceof $Reader))
|
|
27190
26891
|
reader = new $Reader(reader);
|
|
27191
26892
|
return this.decode(reader, reader.uint32());
|
|
27192
26893
|
};
|
|
27193
26894
|
|
|
27194
26895
|
/**
|
|
27195
|
-
* Verifies a
|
|
26896
|
+
* Verifies a RankedEntry message.
|
|
27196
26897
|
* @function verify
|
|
27197
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26898
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27198
26899
|
* @static
|
|
27199
26900
|
* @param {Object.<string,*>} message Plain object to verify
|
|
27200
26901
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27201
26902
|
*/
|
|
27202
|
-
|
|
26903
|
+
RankedEntry.verify = function verify(message) {
|
|
27203
26904
|
if (typeof message !== "object" || message === null)
|
|
27204
26905
|
return "object expected";
|
|
27205
26906
|
var properties = {};
|
|
27206
|
-
if (message.
|
|
27207
|
-
|
|
27208
|
-
|
|
26907
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
26908
|
+
if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
|
|
26909
|
+
return "key: buffer expected";
|
|
26910
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
26911
|
+
properties.value = 1;
|
|
26912
|
+
if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
|
|
26913
|
+
return "count: integer|Long expected";
|
|
26914
|
+
}
|
|
26915
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
26916
|
+
if (properties.value === 1)
|
|
26917
|
+
return "value: multiple values";
|
|
26918
|
+
properties.value = 1;
|
|
26919
|
+
if (!$util.isInteger(message.sum) && !(message.sum && $util.isInteger(message.sum.low) && $util.isInteger(message.sum.high)))
|
|
26920
|
+
return "sum: integer|Long expected";
|
|
26921
|
+
}
|
|
26922
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
26923
|
+
if (properties.value === 1)
|
|
26924
|
+
return "value: multiple values";
|
|
26925
|
+
properties.value = 1;
|
|
26926
|
+
if (typeof message.avg !== "number")
|
|
26927
|
+
return "avg: number expected";
|
|
26928
|
+
}
|
|
26929
|
+
return null;
|
|
26930
|
+
};
|
|
26931
|
+
|
|
26932
|
+
/**
|
|
26933
|
+
* Creates a RankedEntry message from a plain object. Also converts values to their respective internal types.
|
|
26934
|
+
* @function fromObject
|
|
26935
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26936
|
+
* @static
|
|
26937
|
+
* @param {Object.<string,*>} object Plain object
|
|
26938
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26939
|
+
*/
|
|
26940
|
+
RankedEntry.fromObject = function fromObject(object) {
|
|
26941
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry)
|
|
26942
|
+
return object;
|
|
26943
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
26944
|
+
if (object.key != null)
|
|
26945
|
+
if (typeof object.key === "string")
|
|
26946
|
+
$util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
|
|
26947
|
+
else if (object.key.length >= 0)
|
|
26948
|
+
message.key = object.key;
|
|
26949
|
+
if (object.count != null)
|
|
26950
|
+
if ($util.Long)
|
|
26951
|
+
(message.count = $util.Long.fromValue(object.count)).unsigned = true;
|
|
26952
|
+
else if (typeof object.count === "string")
|
|
26953
|
+
message.count = parseInt(object.count, 10);
|
|
26954
|
+
else if (typeof object.count === "number")
|
|
26955
|
+
message.count = object.count;
|
|
26956
|
+
else if (typeof object.count === "object")
|
|
26957
|
+
message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(true);
|
|
26958
|
+
if (object.sum != null)
|
|
26959
|
+
if ($util.Long)
|
|
26960
|
+
(message.sum = $util.Long.fromValue(object.sum)).unsigned = false;
|
|
26961
|
+
else if (typeof object.sum === "string")
|
|
26962
|
+
message.sum = parseInt(object.sum, 10);
|
|
26963
|
+
else if (typeof object.sum === "number")
|
|
26964
|
+
message.sum = object.sum;
|
|
26965
|
+
else if (typeof object.sum === "object")
|
|
26966
|
+
message.sum = new $util.LongBits(object.sum.low >>> 0, object.sum.high >>> 0).toNumber();
|
|
26967
|
+
if (object.avg != null)
|
|
26968
|
+
message.avg = Number(object.avg);
|
|
26969
|
+
return message;
|
|
26970
|
+
};
|
|
26971
|
+
|
|
26972
|
+
/**
|
|
26973
|
+
* Creates a plain object from a RankedEntry message. Also converts values to other types if specified.
|
|
26974
|
+
* @function toObject
|
|
26975
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26976
|
+
* @static
|
|
26977
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} message RankedEntry
|
|
26978
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26979
|
+
* @returns {Object.<string,*>} Plain object
|
|
26980
|
+
*/
|
|
26981
|
+
RankedEntry.toObject = function toObject(message, options) {
|
|
26982
|
+
if (!options)
|
|
26983
|
+
options = {};
|
|
26984
|
+
var object = {};
|
|
26985
|
+
if (options.defaults)
|
|
26986
|
+
if (options.bytes === String)
|
|
26987
|
+
object.key = "";
|
|
26988
|
+
else {
|
|
26989
|
+
object.key = [];
|
|
26990
|
+
if (options.bytes !== Array)
|
|
26991
|
+
object.key = $util.newBuffer(object.key);
|
|
26992
|
+
}
|
|
26993
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
26994
|
+
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;
|
|
26995
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
26996
|
+
if (typeof message.count === "number")
|
|
26997
|
+
object.count = options.longs === String ? String(message.count) : message.count;
|
|
26998
|
+
else
|
|
26999
|
+
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;
|
|
27000
|
+
if (options.oneofs)
|
|
27001
|
+
object.value = "count";
|
|
27002
|
+
}
|
|
27003
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
27004
|
+
if (typeof message.sum === "number")
|
|
27005
|
+
object.sum = options.longs === String ? String(message.sum) : message.sum;
|
|
27006
|
+
else
|
|
27007
|
+
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;
|
|
27008
|
+
if (options.oneofs)
|
|
27009
|
+
object.value = "sum";
|
|
27010
|
+
}
|
|
27011
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
27012
|
+
object.avg = options.json && !isFinite(message.avg) ? String(message.avg) : message.avg;
|
|
27013
|
+
if (options.oneofs)
|
|
27014
|
+
object.value = "avg";
|
|
27015
|
+
}
|
|
27016
|
+
return object;
|
|
27017
|
+
};
|
|
27018
|
+
|
|
27019
|
+
/**
|
|
27020
|
+
* Converts this RankedEntry to JSON.
|
|
27021
|
+
* @function toJSON
|
|
27022
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
27023
|
+
* @instance
|
|
27024
|
+
* @returns {Object.<string,*>} JSON object
|
|
27025
|
+
*/
|
|
27026
|
+
RankedEntry.prototype.toJSON = function toJSON() {
|
|
27027
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27028
|
+
};
|
|
27029
|
+
|
|
27030
|
+
return RankedEntry;
|
|
27031
|
+
})();
|
|
27032
|
+
|
|
27033
|
+
GetDocumentsResponseV1.RankedEntries = (function() {
|
|
27034
|
+
|
|
27035
|
+
/**
|
|
27036
|
+
* Properties of a RankedEntries.
|
|
27037
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27038
|
+
* @interface IRankedEntries
|
|
27039
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>|null} [entries] RankedEntries entries
|
|
27040
|
+
* @property {number|Long|null} [skipped] RankedEntries skipped
|
|
27041
|
+
*/
|
|
27042
|
+
|
|
27043
|
+
/**
|
|
27044
|
+
* Constructs a new RankedEntries.
|
|
27045
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27046
|
+
* @classdesc Represents a RankedEntries.
|
|
27047
|
+
* @implements IRankedEntries
|
|
27048
|
+
* @constructor
|
|
27049
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
27050
|
+
*/
|
|
27051
|
+
function RankedEntries(properties) {
|
|
27052
|
+
this.entries = [];
|
|
27053
|
+
if (properties)
|
|
27054
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27055
|
+
if (properties[keys[i]] != null)
|
|
27056
|
+
this[keys[i]] = properties[keys[i]];
|
|
27057
|
+
}
|
|
27058
|
+
|
|
27059
|
+
/**
|
|
27060
|
+
* RankedEntries entries.
|
|
27061
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>} entries
|
|
27062
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27063
|
+
* @instance
|
|
27064
|
+
*/
|
|
27065
|
+
RankedEntries.prototype.entries = $util.emptyArray;
|
|
27066
|
+
|
|
27067
|
+
/**
|
|
27068
|
+
* RankedEntries skipped.
|
|
27069
|
+
* @member {number|Long} skipped
|
|
27070
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27071
|
+
* @instance
|
|
27072
|
+
*/
|
|
27073
|
+
RankedEntries.prototype.skipped = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27074
|
+
|
|
27075
|
+
/**
|
|
27076
|
+
* Creates a new RankedEntries instance using the specified properties.
|
|
27077
|
+
* @function create
|
|
27078
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27079
|
+
* @static
|
|
27080
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
27081
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries instance
|
|
27082
|
+
*/
|
|
27083
|
+
RankedEntries.create = function create(properties) {
|
|
27084
|
+
return new RankedEntries(properties);
|
|
27085
|
+
};
|
|
27086
|
+
|
|
27087
|
+
/**
|
|
27088
|
+
* Encodes the specified RankedEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
27089
|
+
* @function encode
|
|
27090
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27091
|
+
* @static
|
|
27092
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
27093
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27094
|
+
* @returns {$protobuf.Writer} Writer
|
|
27095
|
+
*/
|
|
27096
|
+
RankedEntries.encode = function encode(message, writer) {
|
|
27097
|
+
if (!writer)
|
|
27098
|
+
writer = $Writer.create();
|
|
27099
|
+
if (message.entries != null && message.entries.length)
|
|
27100
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
27101
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27102
|
+
if (message.skipped != null && Object.hasOwnProperty.call(message, "skipped"))
|
|
27103
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.skipped);
|
|
27104
|
+
return writer;
|
|
27105
|
+
};
|
|
27106
|
+
|
|
27107
|
+
/**
|
|
27108
|
+
* Encodes the specified RankedEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
27109
|
+
* @function encodeDelimited
|
|
27110
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27111
|
+
* @static
|
|
27112
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
27113
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27114
|
+
* @returns {$protobuf.Writer} Writer
|
|
27115
|
+
*/
|
|
27116
|
+
RankedEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27117
|
+
return this.encode(message, writer).ldelim();
|
|
27118
|
+
};
|
|
27119
|
+
|
|
27120
|
+
/**
|
|
27121
|
+
* Decodes a RankedEntries message from the specified reader or buffer.
|
|
27122
|
+
* @function decode
|
|
27123
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27124
|
+
* @static
|
|
27125
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27126
|
+
* @param {number} [length] Message length if known beforehand
|
|
27127
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27128
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27129
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27130
|
+
*/
|
|
27131
|
+
RankedEntries.decode = function decode(reader, length) {
|
|
27132
|
+
if (!(reader instanceof $Reader))
|
|
27133
|
+
reader = $Reader.create(reader);
|
|
27134
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
27135
|
+
while (reader.pos < end) {
|
|
27136
|
+
var tag = reader.uint32();
|
|
27137
|
+
switch (tag >>> 3) {
|
|
27138
|
+
case 1:
|
|
27139
|
+
if (!(message.entries && message.entries.length))
|
|
27140
|
+
message.entries = [];
|
|
27141
|
+
message.entries.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.decode(reader, reader.uint32()));
|
|
27142
|
+
break;
|
|
27143
|
+
case 2:
|
|
27144
|
+
message.skipped = reader.uint64();
|
|
27145
|
+
break;
|
|
27146
|
+
default:
|
|
27147
|
+
reader.skipType(tag & 7);
|
|
27148
|
+
break;
|
|
27149
|
+
}
|
|
27150
|
+
}
|
|
27151
|
+
return message;
|
|
27152
|
+
};
|
|
27153
|
+
|
|
27154
|
+
/**
|
|
27155
|
+
* Decodes a RankedEntries message from the specified reader or buffer, length delimited.
|
|
27156
|
+
* @function decodeDelimited
|
|
27157
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27158
|
+
* @static
|
|
27159
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27160
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27161
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27162
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27163
|
+
*/
|
|
27164
|
+
RankedEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
27165
|
+
if (!(reader instanceof $Reader))
|
|
27166
|
+
reader = new $Reader(reader);
|
|
27167
|
+
return this.decode(reader, reader.uint32());
|
|
27168
|
+
};
|
|
27169
|
+
|
|
27170
|
+
/**
|
|
27171
|
+
* Verifies a RankedEntries message.
|
|
27172
|
+
* @function verify
|
|
27173
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27174
|
+
* @static
|
|
27175
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27176
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27177
|
+
*/
|
|
27178
|
+
RankedEntries.verify = function verify(message) {
|
|
27179
|
+
if (typeof message !== "object" || message === null)
|
|
27180
|
+
return "object expected";
|
|
27181
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
27182
|
+
if (!Array.isArray(message.entries))
|
|
27183
|
+
return "entries: array expected";
|
|
27184
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
27185
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify(message.entries[i]);
|
|
27186
|
+
if (error)
|
|
27187
|
+
return "entries." + error;
|
|
27188
|
+
}
|
|
27189
|
+
}
|
|
27190
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
27191
|
+
if (!$util.isInteger(message.skipped) && !(message.skipped && $util.isInteger(message.skipped.low) && $util.isInteger(message.skipped.high)))
|
|
27192
|
+
return "skipped: integer|Long expected";
|
|
27193
|
+
return null;
|
|
27194
|
+
};
|
|
27195
|
+
|
|
27196
|
+
/**
|
|
27197
|
+
* Creates a RankedEntries message from a plain object. Also converts values to their respective internal types.
|
|
27198
|
+
* @function fromObject
|
|
27199
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27200
|
+
* @static
|
|
27201
|
+
* @param {Object.<string,*>} object Plain object
|
|
27202
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
27203
|
+
*/
|
|
27204
|
+
RankedEntries.fromObject = function fromObject(object) {
|
|
27205
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries)
|
|
27206
|
+
return object;
|
|
27207
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
27208
|
+
if (object.entries) {
|
|
27209
|
+
if (!Array.isArray(object.entries))
|
|
27210
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: array expected");
|
|
27211
|
+
message.entries = [];
|
|
27212
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
27213
|
+
if (typeof object.entries[i] !== "object")
|
|
27214
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: object expected");
|
|
27215
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.fromObject(object.entries[i]);
|
|
27216
|
+
}
|
|
27217
|
+
}
|
|
27218
|
+
if (object.skipped != null)
|
|
27219
|
+
if ($util.Long)
|
|
27220
|
+
(message.skipped = $util.Long.fromValue(object.skipped)).unsigned = true;
|
|
27221
|
+
else if (typeof object.skipped === "string")
|
|
27222
|
+
message.skipped = parseInt(object.skipped, 10);
|
|
27223
|
+
else if (typeof object.skipped === "number")
|
|
27224
|
+
message.skipped = object.skipped;
|
|
27225
|
+
else if (typeof object.skipped === "object")
|
|
27226
|
+
message.skipped = new $util.LongBits(object.skipped.low >>> 0, object.skipped.high >>> 0).toNumber(true);
|
|
27227
|
+
return message;
|
|
27228
|
+
};
|
|
27229
|
+
|
|
27230
|
+
/**
|
|
27231
|
+
* Creates a plain object from a RankedEntries message. Also converts values to other types if specified.
|
|
27232
|
+
* @function toObject
|
|
27233
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27234
|
+
* @static
|
|
27235
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} message RankedEntries
|
|
27236
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27237
|
+
* @returns {Object.<string,*>} Plain object
|
|
27238
|
+
*/
|
|
27239
|
+
RankedEntries.toObject = function toObject(message, options) {
|
|
27240
|
+
if (!options)
|
|
27241
|
+
options = {};
|
|
27242
|
+
var object = {};
|
|
27243
|
+
if (options.arrays || options.defaults)
|
|
27244
|
+
object.entries = [];
|
|
27245
|
+
if (options.defaults)
|
|
27246
|
+
if ($util.Long) {
|
|
27247
|
+
var long = new $util.Long(0, 0, true);
|
|
27248
|
+
object.skipped = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
27249
|
+
} else
|
|
27250
|
+
object.skipped = options.longs === String ? "0" : 0;
|
|
27251
|
+
if (message.entries && message.entries.length) {
|
|
27252
|
+
object.entries = [];
|
|
27253
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
27254
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject(message.entries[j], options);
|
|
27255
|
+
}
|
|
27256
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
27257
|
+
if (typeof message.skipped === "number")
|
|
27258
|
+
object.skipped = options.longs === String ? String(message.skipped) : message.skipped;
|
|
27259
|
+
else
|
|
27260
|
+
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;
|
|
27261
|
+
return object;
|
|
27262
|
+
};
|
|
27263
|
+
|
|
27264
|
+
/**
|
|
27265
|
+
* Converts this RankedEntries to JSON.
|
|
27266
|
+
* @function toJSON
|
|
27267
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
27268
|
+
* @instance
|
|
27269
|
+
* @returns {Object.<string,*>} JSON object
|
|
27270
|
+
*/
|
|
27271
|
+
RankedEntries.prototype.toJSON = function toJSON() {
|
|
27272
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27273
|
+
};
|
|
27274
|
+
|
|
27275
|
+
return RankedEntries;
|
|
27276
|
+
})();
|
|
27277
|
+
|
|
27278
|
+
GetDocumentsResponseV1.ResultData = (function() {
|
|
27279
|
+
|
|
27280
|
+
/**
|
|
27281
|
+
* Properties of a ResultData.
|
|
27282
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27283
|
+
* @interface IResultData
|
|
27284
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] ResultData documents
|
|
27285
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null} [counts] ResultData counts
|
|
27286
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
|
|
27287
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
|
|
27288
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
|
|
27289
|
+
*/
|
|
27290
|
+
|
|
27291
|
+
/**
|
|
27292
|
+
* Constructs a new ResultData.
|
|
27293
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
27294
|
+
* @classdesc Represents a ResultData.
|
|
27295
|
+
* @implements IResultData
|
|
27296
|
+
* @constructor
|
|
27297
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
27298
|
+
*/
|
|
27299
|
+
function ResultData(properties) {
|
|
27300
|
+
if (properties)
|
|
27301
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27302
|
+
if (properties[keys[i]] != null)
|
|
27303
|
+
this[keys[i]] = properties[keys[i]];
|
|
27304
|
+
}
|
|
27305
|
+
|
|
27306
|
+
/**
|
|
27307
|
+
* ResultData documents.
|
|
27308
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
|
|
27309
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27310
|
+
* @instance
|
|
27311
|
+
*/
|
|
27312
|
+
ResultData.prototype.documents = null;
|
|
27313
|
+
|
|
27314
|
+
/**
|
|
27315
|
+
* ResultData counts.
|
|
27316
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null|undefined} counts
|
|
27317
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27318
|
+
* @instance
|
|
27319
|
+
*/
|
|
27320
|
+
ResultData.prototype.counts = null;
|
|
27321
|
+
|
|
27322
|
+
/**
|
|
27323
|
+
* ResultData sums.
|
|
27324
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null|undefined} sums
|
|
27325
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27326
|
+
* @instance
|
|
27327
|
+
*/
|
|
27328
|
+
ResultData.prototype.sums = null;
|
|
27329
|
+
|
|
27330
|
+
/**
|
|
27331
|
+
* ResultData averages.
|
|
27332
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null|undefined} averages
|
|
27333
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27334
|
+
* @instance
|
|
27335
|
+
*/
|
|
27336
|
+
ResultData.prototype.averages = null;
|
|
27337
|
+
|
|
27338
|
+
/**
|
|
27339
|
+
* ResultData ranked.
|
|
27340
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null|undefined} ranked
|
|
27341
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27342
|
+
* @instance
|
|
27343
|
+
*/
|
|
27344
|
+
ResultData.prototype.ranked = null;
|
|
27345
|
+
|
|
27346
|
+
// OneOf field names bound to virtual getters and setters
|
|
27347
|
+
var $oneOfFields;
|
|
27348
|
+
|
|
27349
|
+
/**
|
|
27350
|
+
* ResultData variant.
|
|
27351
|
+
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
|
|
27352
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27353
|
+
* @instance
|
|
27354
|
+
*/
|
|
27355
|
+
Object.defineProperty(ResultData.prototype, "variant", {
|
|
27356
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
|
|
27357
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27358
|
+
});
|
|
27359
|
+
|
|
27360
|
+
/**
|
|
27361
|
+
* Creates a new ResultData instance using the specified properties.
|
|
27362
|
+
* @function create
|
|
27363
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27364
|
+
* @static
|
|
27365
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
27366
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData instance
|
|
27367
|
+
*/
|
|
27368
|
+
ResultData.create = function create(properties) {
|
|
27369
|
+
return new ResultData(properties);
|
|
27370
|
+
};
|
|
27371
|
+
|
|
27372
|
+
/**
|
|
27373
|
+
* Encodes the specified ResultData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
27374
|
+
* @function encode
|
|
27375
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27376
|
+
* @static
|
|
27377
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
27378
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27379
|
+
* @returns {$protobuf.Writer} Writer
|
|
27380
|
+
*/
|
|
27381
|
+
ResultData.encode = function encode(message, writer) {
|
|
27382
|
+
if (!writer)
|
|
27383
|
+
writer = $Writer.create();
|
|
27384
|
+
if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
|
|
27385
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27386
|
+
if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
|
|
27387
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
27388
|
+
if (message.sums != null && Object.hasOwnProperty.call(message, "sums"))
|
|
27389
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.encode(message.sums, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27390
|
+
if (message.averages != null && Object.hasOwnProperty.call(message, "averages"))
|
|
27391
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27392
|
+
if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
|
|
27393
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
27394
|
+
return writer;
|
|
27395
|
+
};
|
|
27396
|
+
|
|
27397
|
+
/**
|
|
27398
|
+
* Encodes the specified ResultData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
27399
|
+
* @function encodeDelimited
|
|
27400
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27401
|
+
* @static
|
|
27402
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
27403
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27404
|
+
* @returns {$protobuf.Writer} Writer
|
|
27405
|
+
*/
|
|
27406
|
+
ResultData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27407
|
+
return this.encode(message, writer).ldelim();
|
|
27408
|
+
};
|
|
27409
|
+
|
|
27410
|
+
/**
|
|
27411
|
+
* Decodes a ResultData message from the specified reader or buffer.
|
|
27412
|
+
* @function decode
|
|
27413
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27414
|
+
* @static
|
|
27415
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27416
|
+
* @param {number} [length] Message length if known beforehand
|
|
27417
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
|
|
27418
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27419
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27420
|
+
*/
|
|
27421
|
+
ResultData.decode = function decode(reader, length) {
|
|
27422
|
+
if (!(reader instanceof $Reader))
|
|
27423
|
+
reader = $Reader.create(reader);
|
|
27424
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData();
|
|
27425
|
+
while (reader.pos < end) {
|
|
27426
|
+
var tag = reader.uint32();
|
|
27427
|
+
switch (tag >>> 3) {
|
|
27428
|
+
case 1:
|
|
27429
|
+
message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
|
|
27430
|
+
break;
|
|
27431
|
+
case 2:
|
|
27432
|
+
message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.decode(reader, reader.uint32());
|
|
27433
|
+
break;
|
|
27434
|
+
case 3:
|
|
27435
|
+
message.sums = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.decode(reader, reader.uint32());
|
|
27436
|
+
break;
|
|
27437
|
+
case 4:
|
|
27438
|
+
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.decode(reader, reader.uint32());
|
|
27439
|
+
break;
|
|
27440
|
+
case 5:
|
|
27441
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
|
|
27442
|
+
break;
|
|
27443
|
+
default:
|
|
27444
|
+
reader.skipType(tag & 7);
|
|
27445
|
+
break;
|
|
27446
|
+
}
|
|
27447
|
+
}
|
|
27448
|
+
return message;
|
|
27449
|
+
};
|
|
27450
|
+
|
|
27451
|
+
/**
|
|
27452
|
+
* Decodes a ResultData message from the specified reader or buffer, length delimited.
|
|
27453
|
+
* @function decodeDelimited
|
|
27454
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27455
|
+
* @static
|
|
27456
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27457
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
|
|
27458
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27459
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27460
|
+
*/
|
|
27461
|
+
ResultData.decodeDelimited = function decodeDelimited(reader) {
|
|
27462
|
+
if (!(reader instanceof $Reader))
|
|
27463
|
+
reader = new $Reader(reader);
|
|
27464
|
+
return this.decode(reader, reader.uint32());
|
|
27465
|
+
};
|
|
27466
|
+
|
|
27467
|
+
/**
|
|
27468
|
+
* Verifies a ResultData message.
|
|
27469
|
+
* @function verify
|
|
27470
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27471
|
+
* @static
|
|
27472
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27473
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27474
|
+
*/
|
|
27475
|
+
ResultData.verify = function verify(message) {
|
|
27476
|
+
if (typeof message !== "object" || message === null)
|
|
27477
|
+
return "object expected";
|
|
27478
|
+
var properties = {};
|
|
27479
|
+
if (message.documents != null && message.hasOwnProperty("documents")) {
|
|
27480
|
+
properties.variant = 1;
|
|
27481
|
+
{
|
|
27209
27482
|
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.verify(message.documents);
|
|
27210
27483
|
if (error)
|
|
27211
27484
|
return "documents." + error;
|
|
@@ -27241,6 +27514,16 @@ $root.org = (function() {
|
|
|
27241
27514
|
return "averages." + error;
|
|
27242
27515
|
}
|
|
27243
27516
|
}
|
|
27517
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27518
|
+
if (properties.variant === 1)
|
|
27519
|
+
return "variant: multiple values";
|
|
27520
|
+
properties.variant = 1;
|
|
27521
|
+
{
|
|
27522
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify(message.ranked);
|
|
27523
|
+
if (error)
|
|
27524
|
+
return "ranked." + error;
|
|
27525
|
+
}
|
|
27526
|
+
}
|
|
27244
27527
|
return null;
|
|
27245
27528
|
};
|
|
27246
27529
|
|
|
@@ -27276,6 +27559,11 @@ $root.org = (function() {
|
|
|
27276
27559
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.averages: object expected");
|
|
27277
27560
|
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.fromObject(object.averages);
|
|
27278
27561
|
}
|
|
27562
|
+
if (object.ranked != null) {
|
|
27563
|
+
if (typeof object.ranked !== "object")
|
|
27564
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
|
|
27565
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
|
|
27566
|
+
}
|
|
27279
27567
|
return message;
|
|
27280
27568
|
};
|
|
27281
27569
|
|
|
@@ -27312,6 +27600,11 @@ $root.org = (function() {
|
|
|
27312
27600
|
if (options.oneofs)
|
|
27313
27601
|
object.variant = "averages";
|
|
27314
27602
|
}
|
|
27603
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27604
|
+
object.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(message.ranked, options);
|
|
27605
|
+
if (options.oneofs)
|
|
27606
|
+
object.variant = "ranked";
|
|
27607
|
+
}
|
|
27315
27608
|
return object;
|
|
27316
27609
|
};
|
|
27317
27610
|
|