@dashevo/dapi-grpc 4.2.0-dev.7 → 4.2.0-dev.8

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.
@@ -20188,6 +20188,565 @@ $root.org = (function() {
20188
20188
  return DocumentFieldValue;
20189
20189
  })();
20190
20190
 
20191
+ GetDocumentsRequest.TimeRangeSelection = (function() {
20192
+
20193
+ /**
20194
+ * Properties of a TimeRangeSelection.
20195
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
20196
+ * @interface ITimeRangeSelection
20197
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector|null} [selector] TimeRangeSelection selector
20198
+ * @property {number|Long|null} [startMs] TimeRangeSelection startMs
20199
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid|null} [grid] TimeRangeSelection grid
20200
+ */
20201
+
20202
+ /**
20203
+ * Constructs a new TimeRangeSelection.
20204
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
20205
+ * @classdesc Represents a TimeRangeSelection.
20206
+ * @implements ITimeRangeSelection
20207
+ * @constructor
20208
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection=} [properties] Properties to set
20209
+ */
20210
+ function TimeRangeSelection(properties) {
20211
+ if (properties)
20212
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20213
+ if (properties[keys[i]] != null)
20214
+ this[keys[i]] = properties[keys[i]];
20215
+ }
20216
+
20217
+ /**
20218
+ * TimeRangeSelection selector.
20219
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector} selector
20220
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20221
+ * @instance
20222
+ */
20223
+ TimeRangeSelection.prototype.selector = 0;
20224
+
20225
+ /**
20226
+ * TimeRangeSelection startMs.
20227
+ * @member {number|Long} startMs
20228
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20229
+ * @instance
20230
+ */
20231
+ TimeRangeSelection.prototype.startMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20232
+
20233
+ /**
20234
+ * TimeRangeSelection grid.
20235
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid|null|undefined} grid
20236
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20237
+ * @instance
20238
+ */
20239
+ TimeRangeSelection.prototype.grid = null;
20240
+
20241
+ /**
20242
+ * Creates a new TimeRangeSelection instance using the specified properties.
20243
+ * @function create
20244
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20245
+ * @static
20246
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection=} [properties] Properties to set
20247
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection instance
20248
+ */
20249
+ TimeRangeSelection.create = function create(properties) {
20250
+ return new TimeRangeSelection(properties);
20251
+ };
20252
+
20253
+ /**
20254
+ * Encodes the specified TimeRangeSelection message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify|verify} messages.
20255
+ * @function encode
20256
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20257
+ * @static
20258
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection} message TimeRangeSelection message or plain object to encode
20259
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20260
+ * @returns {$protobuf.Writer} Writer
20261
+ */
20262
+ TimeRangeSelection.encode = function encode(message, writer) {
20263
+ if (!writer)
20264
+ writer = $Writer.create();
20265
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
20266
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.selector);
20267
+ if (message.startMs != null && Object.hasOwnProperty.call(message, "startMs"))
20268
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.startMs);
20269
+ if (message.grid != null && Object.hasOwnProperty.call(message, "grid"))
20270
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.encode(message.grid, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
20271
+ return writer;
20272
+ };
20273
+
20274
+ /**
20275
+ * Encodes the specified TimeRangeSelection message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify|verify} messages.
20276
+ * @function encodeDelimited
20277
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20278
+ * @static
20279
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection} message TimeRangeSelection message or plain object to encode
20280
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20281
+ * @returns {$protobuf.Writer} Writer
20282
+ */
20283
+ TimeRangeSelection.encodeDelimited = function encodeDelimited(message, writer) {
20284
+ return this.encode(message, writer).ldelim();
20285
+ };
20286
+
20287
+ /**
20288
+ * Decodes a TimeRangeSelection message from the specified reader or buffer.
20289
+ * @function decode
20290
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20291
+ * @static
20292
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20293
+ * @param {number} [length] Message length if known beforehand
20294
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
20295
+ * @throws {Error} If the payload is not a reader or valid buffer
20296
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20297
+ */
20298
+ TimeRangeSelection.decode = function decode(reader, length) {
20299
+ if (!(reader instanceof $Reader))
20300
+ reader = $Reader.create(reader);
20301
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection();
20302
+ while (reader.pos < end) {
20303
+ var tag = reader.uint32();
20304
+ switch (tag >>> 3) {
20305
+ case 1:
20306
+ message.selector = reader.int32();
20307
+ break;
20308
+ case 2:
20309
+ message.startMs = reader.uint64();
20310
+ break;
20311
+ case 3:
20312
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.decode(reader, reader.uint32());
20313
+ break;
20314
+ default:
20315
+ reader.skipType(tag & 7);
20316
+ break;
20317
+ }
20318
+ }
20319
+ return message;
20320
+ };
20321
+
20322
+ /**
20323
+ * Decodes a TimeRangeSelection message from the specified reader or buffer, length delimited.
20324
+ * @function decodeDelimited
20325
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20326
+ * @static
20327
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20328
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
20329
+ * @throws {Error} If the payload is not a reader or valid buffer
20330
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20331
+ */
20332
+ TimeRangeSelection.decodeDelimited = function decodeDelimited(reader) {
20333
+ if (!(reader instanceof $Reader))
20334
+ reader = new $Reader(reader);
20335
+ return this.decode(reader, reader.uint32());
20336
+ };
20337
+
20338
+ /**
20339
+ * Verifies a TimeRangeSelection message.
20340
+ * @function verify
20341
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20342
+ * @static
20343
+ * @param {Object.<string,*>} message Plain object to verify
20344
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20345
+ */
20346
+ TimeRangeSelection.verify = function verify(message) {
20347
+ if (typeof message !== "object" || message === null)
20348
+ return "object expected";
20349
+ if (message.selector != null && message.hasOwnProperty("selector"))
20350
+ switch (message.selector) {
20351
+ default:
20352
+ return "selector: enum value expected";
20353
+ case 0:
20354
+ case 1:
20355
+ case 2:
20356
+ break;
20357
+ }
20358
+ if (message.startMs != null && message.hasOwnProperty("startMs"))
20359
+ if (!$util.isInteger(message.startMs) && !(message.startMs && $util.isInteger(message.startMs.low) && $util.isInteger(message.startMs.high)))
20360
+ return "startMs: integer|Long expected";
20361
+ if (message.grid != null && message.hasOwnProperty("grid")) {
20362
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify(message.grid);
20363
+ if (error)
20364
+ return "grid." + error;
20365
+ }
20366
+ return null;
20367
+ };
20368
+
20369
+ /**
20370
+ * Creates a TimeRangeSelection message from a plain object. Also converts values to their respective internal types.
20371
+ * @function fromObject
20372
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20373
+ * @static
20374
+ * @param {Object.<string,*>} object Plain object
20375
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
20376
+ */
20377
+ TimeRangeSelection.fromObject = function fromObject(object) {
20378
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection)
20379
+ return object;
20380
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection();
20381
+ switch (object.selector) {
20382
+ case "NEWEST":
20383
+ case 0:
20384
+ message.selector = 0;
20385
+ break;
20386
+ case "OLDEST":
20387
+ case 1:
20388
+ message.selector = 1;
20389
+ break;
20390
+ case "BY_START":
20391
+ case 2:
20392
+ message.selector = 2;
20393
+ break;
20394
+ }
20395
+ if (object.startMs != null)
20396
+ if ($util.Long)
20397
+ (message.startMs = $util.Long.fromValue(object.startMs)).unsigned = true;
20398
+ else if (typeof object.startMs === "string")
20399
+ message.startMs = parseInt(object.startMs, 10);
20400
+ else if (typeof object.startMs === "number")
20401
+ message.startMs = object.startMs;
20402
+ else if (typeof object.startMs === "object")
20403
+ message.startMs = new $util.LongBits(object.startMs.low >>> 0, object.startMs.high >>> 0).toNumber(true);
20404
+ if (object.grid != null) {
20405
+ if (typeof object.grid !== "object")
20406
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.grid: object expected");
20407
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.fromObject(object.grid);
20408
+ }
20409
+ return message;
20410
+ };
20411
+
20412
+ /**
20413
+ * Creates a plain object from a TimeRangeSelection message. Also converts values to other types if specified.
20414
+ * @function toObject
20415
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20416
+ * @static
20417
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} message TimeRangeSelection
20418
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20419
+ * @returns {Object.<string,*>} Plain object
20420
+ */
20421
+ TimeRangeSelection.toObject = function toObject(message, options) {
20422
+ if (!options)
20423
+ options = {};
20424
+ var object = {};
20425
+ if (options.defaults) {
20426
+ object.selector = options.enums === String ? "NEWEST" : 0;
20427
+ if ($util.Long) {
20428
+ var long = new $util.Long(0, 0, true);
20429
+ object.startMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20430
+ } else
20431
+ object.startMs = options.longs === String ? "0" : 0;
20432
+ object.grid = null;
20433
+ }
20434
+ if (message.selector != null && message.hasOwnProperty("selector"))
20435
+ object.selector = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector[message.selector] : message.selector;
20436
+ if (message.startMs != null && message.hasOwnProperty("startMs"))
20437
+ if (typeof message.startMs === "number")
20438
+ object.startMs = options.longs === String ? String(message.startMs) : message.startMs;
20439
+ else
20440
+ object.startMs = options.longs === String ? $util.Long.prototype.toString.call(message.startMs) : options.longs === Number ? new $util.LongBits(message.startMs.low >>> 0, message.startMs.high >>> 0).toNumber(true) : message.startMs;
20441
+ if (message.grid != null && message.hasOwnProperty("grid"))
20442
+ object.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.toObject(message.grid, options);
20443
+ return object;
20444
+ };
20445
+
20446
+ /**
20447
+ * Converts this TimeRangeSelection to JSON.
20448
+ * @function toJSON
20449
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20450
+ * @instance
20451
+ * @returns {Object.<string,*>} JSON object
20452
+ */
20453
+ TimeRangeSelection.prototype.toJSON = function toJSON() {
20454
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20455
+ };
20456
+
20457
+ /**
20458
+ * Selector enum.
20459
+ * @name org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector
20460
+ * @enum {number}
20461
+ * @property {number} NEWEST=0 NEWEST value
20462
+ * @property {number} OLDEST=1 OLDEST value
20463
+ * @property {number} BY_START=2 BY_START value
20464
+ */
20465
+ TimeRangeSelection.Selector = (function() {
20466
+ var valuesById = {}, values = Object.create(valuesById);
20467
+ values[valuesById[0] = "NEWEST"] = 0;
20468
+ values[valuesById[1] = "OLDEST"] = 1;
20469
+ values[valuesById[2] = "BY_START"] = 2;
20470
+ return values;
20471
+ })();
20472
+
20473
+ TimeRangeSelection.Grid = (function() {
20474
+
20475
+ /**
20476
+ * Properties of a Grid.
20477
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20478
+ * @interface IGrid
20479
+ * @property {number|Long|null} [range] Grid range
20480
+ * @property {number|Long|null} [step] Grid step
20481
+ * @property {number|Long|null} [phase] Grid phase
20482
+ */
20483
+
20484
+ /**
20485
+ * Constructs a new Grid.
20486
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
20487
+ * @classdesc Represents a Grid.
20488
+ * @implements IGrid
20489
+ * @constructor
20490
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid=} [properties] Properties to set
20491
+ */
20492
+ function Grid(properties) {
20493
+ if (properties)
20494
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20495
+ if (properties[keys[i]] != null)
20496
+ this[keys[i]] = properties[keys[i]];
20497
+ }
20498
+
20499
+ /**
20500
+ * Grid range.
20501
+ * @member {number|Long} range
20502
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20503
+ * @instance
20504
+ */
20505
+ Grid.prototype.range = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20506
+
20507
+ /**
20508
+ * Grid step.
20509
+ * @member {number|Long} step
20510
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20511
+ * @instance
20512
+ */
20513
+ Grid.prototype.step = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20514
+
20515
+ /**
20516
+ * Grid phase.
20517
+ * @member {number|Long} phase
20518
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20519
+ * @instance
20520
+ */
20521
+ Grid.prototype.phase = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20522
+
20523
+ /**
20524
+ * Creates a new Grid instance using the specified properties.
20525
+ * @function create
20526
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20527
+ * @static
20528
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid=} [properties] Properties to set
20529
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid instance
20530
+ */
20531
+ Grid.create = function create(properties) {
20532
+ return new Grid(properties);
20533
+ };
20534
+
20535
+ /**
20536
+ * Encodes the specified Grid message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify|verify} messages.
20537
+ * @function encode
20538
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20539
+ * @static
20540
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid} message Grid message or plain object to encode
20541
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20542
+ * @returns {$protobuf.Writer} Writer
20543
+ */
20544
+ Grid.encode = function encode(message, writer) {
20545
+ if (!writer)
20546
+ writer = $Writer.create();
20547
+ if (message.range != null && Object.hasOwnProperty.call(message, "range"))
20548
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.range);
20549
+ if (message.step != null && Object.hasOwnProperty.call(message, "step"))
20550
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.step);
20551
+ if (message.phase != null && Object.hasOwnProperty.call(message, "phase"))
20552
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.phase);
20553
+ return writer;
20554
+ };
20555
+
20556
+ /**
20557
+ * Encodes the specified Grid message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify|verify} messages.
20558
+ * @function encodeDelimited
20559
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20560
+ * @static
20561
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid} message Grid message or plain object to encode
20562
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20563
+ * @returns {$protobuf.Writer} Writer
20564
+ */
20565
+ Grid.encodeDelimited = function encodeDelimited(message, writer) {
20566
+ return this.encode(message, writer).ldelim();
20567
+ };
20568
+
20569
+ /**
20570
+ * Decodes a Grid message from the specified reader or buffer.
20571
+ * @function decode
20572
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20573
+ * @static
20574
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20575
+ * @param {number} [length] Message length if known beforehand
20576
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
20577
+ * @throws {Error} If the payload is not a reader or valid buffer
20578
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20579
+ */
20580
+ Grid.decode = function decode(reader, length) {
20581
+ if (!(reader instanceof $Reader))
20582
+ reader = $Reader.create(reader);
20583
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid();
20584
+ while (reader.pos < end) {
20585
+ var tag = reader.uint32();
20586
+ switch (tag >>> 3) {
20587
+ case 1:
20588
+ message.range = reader.uint64();
20589
+ break;
20590
+ case 2:
20591
+ message.step = reader.uint64();
20592
+ break;
20593
+ case 3:
20594
+ message.phase = reader.uint64();
20595
+ break;
20596
+ default:
20597
+ reader.skipType(tag & 7);
20598
+ break;
20599
+ }
20600
+ }
20601
+ return message;
20602
+ };
20603
+
20604
+ /**
20605
+ * Decodes a Grid message from the specified reader or buffer, length delimited.
20606
+ * @function decodeDelimited
20607
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20608
+ * @static
20609
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20610
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
20611
+ * @throws {Error} If the payload is not a reader or valid buffer
20612
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20613
+ */
20614
+ Grid.decodeDelimited = function decodeDelimited(reader) {
20615
+ if (!(reader instanceof $Reader))
20616
+ reader = new $Reader(reader);
20617
+ return this.decode(reader, reader.uint32());
20618
+ };
20619
+
20620
+ /**
20621
+ * Verifies a Grid message.
20622
+ * @function verify
20623
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20624
+ * @static
20625
+ * @param {Object.<string,*>} message Plain object to verify
20626
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20627
+ */
20628
+ Grid.verify = function verify(message) {
20629
+ if (typeof message !== "object" || message === null)
20630
+ return "object expected";
20631
+ if (message.range != null && message.hasOwnProperty("range"))
20632
+ if (!$util.isInteger(message.range) && !(message.range && $util.isInteger(message.range.low) && $util.isInteger(message.range.high)))
20633
+ return "range: integer|Long expected";
20634
+ if (message.step != null && message.hasOwnProperty("step"))
20635
+ if (!$util.isInteger(message.step) && !(message.step && $util.isInteger(message.step.low) && $util.isInteger(message.step.high)))
20636
+ return "step: integer|Long expected";
20637
+ if (message.phase != null && message.hasOwnProperty("phase"))
20638
+ if (!$util.isInteger(message.phase) && !(message.phase && $util.isInteger(message.phase.low) && $util.isInteger(message.phase.high)))
20639
+ return "phase: integer|Long expected";
20640
+ return null;
20641
+ };
20642
+
20643
+ /**
20644
+ * Creates a Grid message from a plain object. Also converts values to their respective internal types.
20645
+ * @function fromObject
20646
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20647
+ * @static
20648
+ * @param {Object.<string,*>} object Plain object
20649
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
20650
+ */
20651
+ Grid.fromObject = function fromObject(object) {
20652
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid)
20653
+ return object;
20654
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid();
20655
+ if (object.range != null)
20656
+ if ($util.Long)
20657
+ (message.range = $util.Long.fromValue(object.range)).unsigned = true;
20658
+ else if (typeof object.range === "string")
20659
+ message.range = parseInt(object.range, 10);
20660
+ else if (typeof object.range === "number")
20661
+ message.range = object.range;
20662
+ else if (typeof object.range === "object")
20663
+ message.range = new $util.LongBits(object.range.low >>> 0, object.range.high >>> 0).toNumber(true);
20664
+ if (object.step != null)
20665
+ if ($util.Long)
20666
+ (message.step = $util.Long.fromValue(object.step)).unsigned = true;
20667
+ else if (typeof object.step === "string")
20668
+ message.step = parseInt(object.step, 10);
20669
+ else if (typeof object.step === "number")
20670
+ message.step = object.step;
20671
+ else if (typeof object.step === "object")
20672
+ message.step = new $util.LongBits(object.step.low >>> 0, object.step.high >>> 0).toNumber(true);
20673
+ if (object.phase != null)
20674
+ if ($util.Long)
20675
+ (message.phase = $util.Long.fromValue(object.phase)).unsigned = true;
20676
+ else if (typeof object.phase === "string")
20677
+ message.phase = parseInt(object.phase, 10);
20678
+ else if (typeof object.phase === "number")
20679
+ message.phase = object.phase;
20680
+ else if (typeof object.phase === "object")
20681
+ message.phase = new $util.LongBits(object.phase.low >>> 0, object.phase.high >>> 0).toNumber(true);
20682
+ return message;
20683
+ };
20684
+
20685
+ /**
20686
+ * Creates a plain object from a Grid message. Also converts values to other types if specified.
20687
+ * @function toObject
20688
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20689
+ * @static
20690
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} message Grid
20691
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20692
+ * @returns {Object.<string,*>} Plain object
20693
+ */
20694
+ Grid.toObject = function toObject(message, options) {
20695
+ if (!options)
20696
+ options = {};
20697
+ var object = {};
20698
+ if (options.defaults) {
20699
+ if ($util.Long) {
20700
+ var long = new $util.Long(0, 0, true);
20701
+ object.range = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20702
+ } else
20703
+ object.range = options.longs === String ? "0" : 0;
20704
+ if ($util.Long) {
20705
+ var long = new $util.Long(0, 0, true);
20706
+ object.step = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20707
+ } else
20708
+ object.step = options.longs === String ? "0" : 0;
20709
+ if ($util.Long) {
20710
+ var long = new $util.Long(0, 0, true);
20711
+ object.phase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20712
+ } else
20713
+ object.phase = options.longs === String ? "0" : 0;
20714
+ }
20715
+ if (message.range != null && message.hasOwnProperty("range"))
20716
+ if (typeof message.range === "number")
20717
+ object.range = options.longs === String ? String(message.range) : message.range;
20718
+ else
20719
+ object.range = options.longs === String ? $util.Long.prototype.toString.call(message.range) : options.longs === Number ? new $util.LongBits(message.range.low >>> 0, message.range.high >>> 0).toNumber(true) : message.range;
20720
+ if (message.step != null && message.hasOwnProperty("step"))
20721
+ if (typeof message.step === "number")
20722
+ object.step = options.longs === String ? String(message.step) : message.step;
20723
+ else
20724
+ object.step = options.longs === String ? $util.Long.prototype.toString.call(message.step) : options.longs === Number ? new $util.LongBits(message.step.low >>> 0, message.step.high >>> 0).toNumber(true) : message.step;
20725
+ if (message.phase != null && message.hasOwnProperty("phase"))
20726
+ if (typeof message.phase === "number")
20727
+ object.phase = options.longs === String ? String(message.phase) : message.phase;
20728
+ else
20729
+ object.phase = options.longs === String ? $util.Long.prototype.toString.call(message.phase) : options.longs === Number ? new $util.LongBits(message.phase.low >>> 0, message.phase.high >>> 0).toNumber(true) : message.phase;
20730
+ return object;
20731
+ };
20732
+
20733
+ /**
20734
+ * Converts this Grid to JSON.
20735
+ * @function toJSON
20736
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
20737
+ * @instance
20738
+ * @returns {Object.<string,*>} JSON object
20739
+ */
20740
+ Grid.prototype.toJSON = function toJSON() {
20741
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20742
+ };
20743
+
20744
+ return Grid;
20745
+ })();
20746
+
20747
+ return TimeRangeSelection;
20748
+ })();
20749
+
20191
20750
  GetDocumentsRequest.WhereClause = (function() {
20192
20751
 
20193
20752
  /**
@@ -20197,6 +20756,7 @@ $root.org = (function() {
20197
20756
  * @property {string|null} [field] WhereClause field
20198
20757
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator|null} [operator] WhereClause operator
20199
20758
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] WhereClause value
20759
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null} [timeRange] WhereClause timeRange
20200
20760
  */
20201
20761
 
20202
20762
  /**
@@ -20238,6 +20798,14 @@ $root.org = (function() {
20238
20798
  */
20239
20799
  WhereClause.prototype.value = null;
20240
20800
 
20801
+ /**
20802
+ * WhereClause timeRange.
20803
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null|undefined} timeRange
20804
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause
20805
+ * @instance
20806
+ */
20807
+ WhereClause.prototype.timeRange = null;
20808
+
20241
20809
  /**
20242
20810
  * Creates a new WhereClause instance using the specified properties.
20243
20811
  * @function create
@@ -20268,6 +20836,8 @@ $root.org = (function() {
20268
20836
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
20269
20837
  if (message.value != null && Object.hasOwnProperty.call(message, "value"))
20270
20838
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
20839
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
20840
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.encode(message.timeRange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
20271
20841
  return writer;
20272
20842
  };
20273
20843
 
@@ -20311,6 +20881,9 @@ $root.org = (function() {
20311
20881
  case 3:
20312
20882
  message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
20313
20883
  break;
20884
+ case 4:
20885
+ message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.decode(reader, reader.uint32());
20886
+ break;
20314
20887
  default:
20315
20888
  reader.skipType(tag & 7);
20316
20889
  break;
@@ -20372,6 +20945,11 @@ $root.org = (function() {
20372
20945
  if (error)
20373
20946
  return "value." + error;
20374
20947
  }
20948
+ if (message.timeRange != null && message.hasOwnProperty("timeRange")) {
20949
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify(message.timeRange);
20950
+ if (error)
20951
+ return "timeRange." + error;
20952
+ }
20375
20953
  return null;
20376
20954
  };
20377
20955
 
@@ -20444,6 +21022,11 @@ $root.org = (function() {
20444
21022
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.value: object expected");
20445
21023
  message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
20446
21024
  }
21025
+ if (object.timeRange != null) {
21026
+ if (typeof object.timeRange !== "object")
21027
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.timeRange: object expected");
21028
+ message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.fromObject(object.timeRange);
21029
+ }
20447
21030
  return message;
20448
21031
  };
20449
21032
 
@@ -20464,6 +21047,7 @@ $root.org = (function() {
20464
21047
  object.field = "";
20465
21048
  object.operator = options.enums === String ? "EQUAL" : 0;
20466
21049
  object.value = null;
21050
+ object.timeRange = null;
20467
21051
  }
20468
21052
  if (message.field != null && message.hasOwnProperty("field"))
20469
21053
  object.field = message.field;
@@ -20471,6 +21055,8 @@ $root.org = (function() {
20471
21055
  object.operator = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator[message.operator] : message.operator;
20472
21056
  if (message.value != null && message.hasOwnProperty("value"))
20473
21057
  object.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.value, options);
21058
+ if (message.timeRange != null && message.hasOwnProperty("timeRange"))
21059
+ object.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(message.timeRange, options);
20474
21060
  return object;
20475
21061
  };
20476
21062
 
@@ -21764,6 +22350,7 @@ $root.org = (function() {
21764
22350
  * @property {Array.<string>|null} [groupBy] GetDocumentsRequestV1 groupBy
21765
22351
  * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingClause>|null} [having] GetDocumentsRequestV1 having
21766
22352
  * @property {number|null} [offset] GetDocumentsRequestV1 offset
22353
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null} [chained] GetDocumentsRequestV1 chained
21767
22354
  */
21768
22355
 
21769
22356
  /**
@@ -21882,6 +22469,14 @@ $root.org = (function() {
21882
22469
  */
21883
22470
  GetDocumentsRequestV1.prototype.offset = 0;
21884
22471
 
22472
+ /**
22473
+ * GetDocumentsRequestV1 chained.
22474
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null|undefined} chained
22475
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
22476
+ * @instance
22477
+ */
22478
+ GetDocumentsRequestV1.prototype.chained = null;
22479
+
21885
22480
  // OneOf field names bound to virtual getters and setters
21886
22481
  var $oneOfFields;
21887
22482
 
@@ -21949,6 +22544,8 @@ $root.org = (function() {
21949
22544
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.encode(message.having[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
21950
22545
  if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
21951
22546
  writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.offset);
22547
+ if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
22548
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.encode(message.chained, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
21952
22549
  return writer;
21953
22550
  };
21954
22551
 
@@ -22029,6 +22626,9 @@ $root.org = (function() {
22029
22626
  case 12:
22030
22627
  message.offset = reader.uint32();
22031
22628
  break;
22629
+ case 13:
22630
+ message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.decode(reader, reader.uint32());
22631
+ break;
22032
22632
  default:
22033
22633
  reader.skipType(tag & 7);
22034
22634
  break;
@@ -22135,6 +22735,11 @@ $root.org = (function() {
22135
22735
  if (message.offset != null && message.hasOwnProperty("offset"))
22136
22736
  if (!$util.isInteger(message.offset))
22137
22737
  return "offset: integer expected";
22738
+ if (message.chained != null && message.hasOwnProperty("chained")) {
22739
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify(message.chained);
22740
+ if (error)
22741
+ return "chained." + error;
22742
+ }
22138
22743
  return null;
22139
22744
  };
22140
22745
 
@@ -22220,6 +22825,11 @@ $root.org = (function() {
22220
22825
  }
22221
22826
  if (object.offset != null)
22222
22827
  message.offset = object.offset >>> 0;
22828
+ if (object.chained != null) {
22829
+ if (typeof object.chained !== "object")
22830
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.chained: object expected");
22831
+ message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.fromObject(object.chained);
22832
+ }
22223
22833
  return message;
22224
22834
  };
22225
22835
 
@@ -22255,6 +22865,7 @@ $root.org = (function() {
22255
22865
  object.limit = 0;
22256
22866
  object.prove = false;
22257
22867
  object.offset = 0;
22868
+ object.chained = null;
22258
22869
  }
22259
22870
  if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
22260
22871
  object.dataContractId = options.bytes === String ? $util.base64.encode(message.dataContractId, 0, message.dataContractId.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataContractId) : message.dataContractId;
@@ -22301,6 +22912,8 @@ $root.org = (function() {
22301
22912
  }
22302
22913
  if (message.offset != null && message.hasOwnProperty("offset"))
22303
22914
  object.offset = message.offset;
22915
+ if (message.chained != null && message.hasOwnProperty("chained"))
22916
+ object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.toObject(message.chained, options);
22304
22917
  return object;
22305
22918
  };
22306
22919
 
@@ -22388,41 +23001,306 @@ $root.org = (function() {
22388
23001
  };
22389
23002
 
22390
23003
  /**
22391
- * Encodes the specified Select message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.verify|verify} messages.
23004
+ * Encodes the specified Select message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.verify|verify} messages.
23005
+ * @function encodeDelimited
23006
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23007
+ * @static
23008
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISelect} message Select message or plain object to encode
23009
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23010
+ * @returns {$protobuf.Writer} Writer
23011
+ */
23012
+ Select.encodeDelimited = function encodeDelimited(message, writer) {
23013
+ return this.encode(message, writer).ldelim();
23014
+ };
23015
+
23016
+ /**
23017
+ * Decodes a Select message from the specified reader or buffer.
23018
+ * @function decode
23019
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23020
+ * @static
23021
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23022
+ * @param {number} [length] Message length if known beforehand
23023
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23024
+ * @throws {Error} If the payload is not a reader or valid buffer
23025
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23026
+ */
23027
+ Select.decode = function decode(reader, length) {
23028
+ if (!(reader instanceof $Reader))
23029
+ reader = $Reader.create(reader);
23030
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
23031
+ while (reader.pos < end) {
23032
+ var tag = reader.uint32();
23033
+ switch (tag >>> 3) {
23034
+ case 1:
23035
+ message["function"] = reader.int32();
23036
+ break;
23037
+ case 2:
23038
+ message.field = reader.string();
23039
+ break;
23040
+ default:
23041
+ reader.skipType(tag & 7);
23042
+ break;
23043
+ }
23044
+ }
23045
+ return message;
23046
+ };
23047
+
23048
+ /**
23049
+ * Decodes a Select message from the specified reader or buffer, length delimited.
23050
+ * @function decodeDelimited
23051
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23052
+ * @static
23053
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23054
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23055
+ * @throws {Error} If the payload is not a reader or valid buffer
23056
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23057
+ */
23058
+ Select.decodeDelimited = function decodeDelimited(reader) {
23059
+ if (!(reader instanceof $Reader))
23060
+ reader = new $Reader(reader);
23061
+ return this.decode(reader, reader.uint32());
23062
+ };
23063
+
23064
+ /**
23065
+ * Verifies a Select message.
23066
+ * @function verify
23067
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23068
+ * @static
23069
+ * @param {Object.<string,*>} message Plain object to verify
23070
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23071
+ */
23072
+ Select.verify = function verify(message) {
23073
+ if (typeof message !== "object" || message === null)
23074
+ return "object expected";
23075
+ if (message["function"] != null && message.hasOwnProperty("function"))
23076
+ switch (message["function"]) {
23077
+ default:
23078
+ return "function: enum value expected";
23079
+ case 0:
23080
+ case 1:
23081
+ case 2:
23082
+ case 3:
23083
+ case 4:
23084
+ case 5:
23085
+ break;
23086
+ }
23087
+ if (message.field != null && message.hasOwnProperty("field"))
23088
+ if (!$util.isString(message.field))
23089
+ return "field: string expected";
23090
+ return null;
23091
+ };
23092
+
23093
+ /**
23094
+ * Creates a Select message from a plain object. Also converts values to their respective internal types.
23095
+ * @function fromObject
23096
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23097
+ * @static
23098
+ * @param {Object.<string,*>} object Plain object
23099
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23100
+ */
23101
+ Select.fromObject = function fromObject(object) {
23102
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select)
23103
+ return object;
23104
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
23105
+ switch (object["function"]) {
23106
+ case "DOCUMENTS":
23107
+ case 0:
23108
+ message["function"] = 0;
23109
+ break;
23110
+ case "COUNT":
23111
+ case 1:
23112
+ message["function"] = 1;
23113
+ break;
23114
+ case "SUM":
23115
+ case 2:
23116
+ message["function"] = 2;
23117
+ break;
23118
+ case "AVG":
23119
+ case 3:
23120
+ message["function"] = 3;
23121
+ break;
23122
+ case "MIN":
23123
+ case 4:
23124
+ message["function"] = 4;
23125
+ break;
23126
+ case "MAX":
23127
+ case 5:
23128
+ message["function"] = 5;
23129
+ break;
23130
+ }
23131
+ if (object.field != null)
23132
+ message.field = String(object.field);
23133
+ return message;
23134
+ };
23135
+
23136
+ /**
23137
+ * Creates a plain object from a Select message. Also converts values to other types if specified.
23138
+ * @function toObject
23139
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23140
+ * @static
23141
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} message Select
23142
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23143
+ * @returns {Object.<string,*>} Plain object
23144
+ */
23145
+ Select.toObject = function toObject(message, options) {
23146
+ if (!options)
23147
+ options = {};
23148
+ var object = {};
23149
+ if (options.defaults) {
23150
+ object["function"] = options.enums === String ? "DOCUMENTS" : 0;
23151
+ object.field = "";
23152
+ }
23153
+ if (message["function"] != null && message.hasOwnProperty("function"))
23154
+ object["function"] = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function[message["function"]] : message["function"];
23155
+ if (message.field != null && message.hasOwnProperty("field"))
23156
+ object.field = message.field;
23157
+ return object;
23158
+ };
23159
+
23160
+ /**
23161
+ * Converts this Select to JSON.
23162
+ * @function toJSON
23163
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23164
+ * @instance
23165
+ * @returns {Object.<string,*>} JSON object
23166
+ */
23167
+ Select.prototype.toJSON = function toJSON() {
23168
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23169
+ };
23170
+
23171
+ /**
23172
+ * Function enum.
23173
+ * @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function
23174
+ * @enum {number}
23175
+ * @property {number} DOCUMENTS=0 DOCUMENTS value
23176
+ * @property {number} COUNT=1 COUNT value
23177
+ * @property {number} SUM=2 SUM value
23178
+ * @property {number} AVG=3 AVG value
23179
+ * @property {number} MIN=4 MIN value
23180
+ * @property {number} MAX=5 MAX value
23181
+ */
23182
+ Select.Function = (function() {
23183
+ var valuesById = {}, values = Object.create(valuesById);
23184
+ values[valuesById[0] = "DOCUMENTS"] = 0;
23185
+ values[valuesById[1] = "COUNT"] = 1;
23186
+ values[valuesById[2] = "SUM"] = 2;
23187
+ values[valuesById[3] = "AVG"] = 3;
23188
+ values[valuesById[4] = "MIN"] = 4;
23189
+ values[valuesById[5] = "MAX"] = 5;
23190
+ return values;
23191
+ })();
23192
+
23193
+ return Select;
23194
+ })();
23195
+
23196
+ GetDocumentsRequestV1.ChainedJoin = (function() {
23197
+
23198
+ /**
23199
+ * Properties of a ChainedJoin.
23200
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
23201
+ * @interface IChainedJoin
23202
+ * @property {string|null} [joinProperty] ChainedJoin joinProperty
23203
+ * @property {string|null} [outerDocumentType] ChainedJoin outerDocumentType
23204
+ */
23205
+
23206
+ /**
23207
+ * Constructs a new ChainedJoin.
23208
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
23209
+ * @classdesc Represents a ChainedJoin.
23210
+ * @implements IChainedJoin
23211
+ * @constructor
23212
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin=} [properties] Properties to set
23213
+ */
23214
+ function ChainedJoin(properties) {
23215
+ if (properties)
23216
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23217
+ if (properties[keys[i]] != null)
23218
+ this[keys[i]] = properties[keys[i]];
23219
+ }
23220
+
23221
+ /**
23222
+ * ChainedJoin joinProperty.
23223
+ * @member {string} joinProperty
23224
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
23225
+ * @instance
23226
+ */
23227
+ ChainedJoin.prototype.joinProperty = "";
23228
+
23229
+ /**
23230
+ * ChainedJoin outerDocumentType.
23231
+ * @member {string} outerDocumentType
23232
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
23233
+ * @instance
23234
+ */
23235
+ ChainedJoin.prototype.outerDocumentType = "";
23236
+
23237
+ /**
23238
+ * Creates a new ChainedJoin instance using the specified properties.
23239
+ * @function create
23240
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
23241
+ * @static
23242
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin=} [properties] Properties to set
23243
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin instance
23244
+ */
23245
+ ChainedJoin.create = function create(properties) {
23246
+ return new ChainedJoin(properties);
23247
+ };
23248
+
23249
+ /**
23250
+ * Encodes the specified ChainedJoin message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify|verify} messages.
23251
+ * @function encode
23252
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
23253
+ * @static
23254
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin} message ChainedJoin message or plain object to encode
23255
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23256
+ * @returns {$protobuf.Writer} Writer
23257
+ */
23258
+ ChainedJoin.encode = function encode(message, writer) {
23259
+ if (!writer)
23260
+ writer = $Writer.create();
23261
+ if (message.joinProperty != null && Object.hasOwnProperty.call(message, "joinProperty"))
23262
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.joinProperty);
23263
+ if (message.outerDocumentType != null && Object.hasOwnProperty.call(message, "outerDocumentType"))
23264
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.outerDocumentType);
23265
+ return writer;
23266
+ };
23267
+
23268
+ /**
23269
+ * Encodes the specified ChainedJoin message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify|verify} messages.
22392
23270
  * @function encodeDelimited
22393
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23271
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22394
23272
  * @static
22395
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISelect} message Select message or plain object to encode
23273
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin} message ChainedJoin message or plain object to encode
22396
23274
  * @param {$protobuf.Writer} [writer] Writer to encode to
22397
23275
  * @returns {$protobuf.Writer} Writer
22398
23276
  */
22399
- Select.encodeDelimited = function encodeDelimited(message, writer) {
23277
+ ChainedJoin.encodeDelimited = function encodeDelimited(message, writer) {
22400
23278
  return this.encode(message, writer).ldelim();
22401
23279
  };
22402
23280
 
22403
23281
  /**
22404
- * Decodes a Select message from the specified reader or buffer.
23282
+ * Decodes a ChainedJoin message from the specified reader or buffer.
22405
23283
  * @function decode
22406
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23284
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22407
23285
  * @static
22408
23286
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22409
23287
  * @param {number} [length] Message length if known beforehand
22410
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23288
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
22411
23289
  * @throws {Error} If the payload is not a reader or valid buffer
22412
23290
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22413
23291
  */
22414
- Select.decode = function decode(reader, length) {
23292
+ ChainedJoin.decode = function decode(reader, length) {
22415
23293
  if (!(reader instanceof $Reader))
22416
23294
  reader = $Reader.create(reader);
22417
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
23295
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin();
22418
23296
  while (reader.pos < end) {
22419
23297
  var tag = reader.uint32();
22420
23298
  switch (tag >>> 3) {
22421
23299
  case 1:
22422
- message["function"] = reader.int32();
23300
+ message.joinProperty = reader.string();
22423
23301
  break;
22424
23302
  case 2:
22425
- message.field = reader.string();
23303
+ message.outerDocumentType = reader.string();
22426
23304
  break;
22427
23305
  default:
22428
23306
  reader.skipType(tag & 7);
@@ -22433,151 +23311,96 @@ $root.org = (function() {
22433
23311
  };
22434
23312
 
22435
23313
  /**
22436
- * Decodes a Select message from the specified reader or buffer, length delimited.
23314
+ * Decodes a ChainedJoin message from the specified reader or buffer, length delimited.
22437
23315
  * @function decodeDelimited
22438
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23316
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22439
23317
  * @static
22440
23318
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22441
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23319
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
22442
23320
  * @throws {Error} If the payload is not a reader or valid buffer
22443
23321
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22444
23322
  */
22445
- Select.decodeDelimited = function decodeDelimited(reader) {
23323
+ ChainedJoin.decodeDelimited = function decodeDelimited(reader) {
22446
23324
  if (!(reader instanceof $Reader))
22447
23325
  reader = new $Reader(reader);
22448
23326
  return this.decode(reader, reader.uint32());
22449
23327
  };
22450
23328
 
22451
23329
  /**
22452
- * Verifies a Select message.
23330
+ * Verifies a ChainedJoin message.
22453
23331
  * @function verify
22454
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23332
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22455
23333
  * @static
22456
23334
  * @param {Object.<string,*>} message Plain object to verify
22457
23335
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
22458
23336
  */
22459
- Select.verify = function verify(message) {
23337
+ ChainedJoin.verify = function verify(message) {
22460
23338
  if (typeof message !== "object" || message === null)
22461
23339
  return "object expected";
22462
- if (message["function"] != null && message.hasOwnProperty("function"))
22463
- switch (message["function"]) {
22464
- default:
22465
- return "function: enum value expected";
22466
- case 0:
22467
- case 1:
22468
- case 2:
22469
- case 3:
22470
- case 4:
22471
- case 5:
22472
- break;
22473
- }
22474
- if (message.field != null && message.hasOwnProperty("field"))
22475
- if (!$util.isString(message.field))
22476
- return "field: string expected";
23340
+ if (message.joinProperty != null && message.hasOwnProperty("joinProperty"))
23341
+ if (!$util.isString(message.joinProperty))
23342
+ return "joinProperty: string expected";
23343
+ if (message.outerDocumentType != null && message.hasOwnProperty("outerDocumentType"))
23344
+ if (!$util.isString(message.outerDocumentType))
23345
+ return "outerDocumentType: string expected";
22477
23346
  return null;
22478
23347
  };
22479
23348
 
22480
23349
  /**
22481
- * Creates a Select message from a plain object. Also converts values to their respective internal types.
23350
+ * Creates a ChainedJoin message from a plain object. Also converts values to their respective internal types.
22482
23351
  * @function fromObject
22483
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23352
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22484
23353
  * @static
22485
23354
  * @param {Object.<string,*>} object Plain object
22486
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
23355
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
22487
23356
  */
22488
- Select.fromObject = function fromObject(object) {
22489
- if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select)
23357
+ ChainedJoin.fromObject = function fromObject(object) {
23358
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin)
22490
23359
  return object;
22491
- var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
22492
- switch (object["function"]) {
22493
- case "DOCUMENTS":
22494
- case 0:
22495
- message["function"] = 0;
22496
- break;
22497
- case "COUNT":
22498
- case 1:
22499
- message["function"] = 1;
22500
- break;
22501
- case "SUM":
22502
- case 2:
22503
- message["function"] = 2;
22504
- break;
22505
- case "AVG":
22506
- case 3:
22507
- message["function"] = 3;
22508
- break;
22509
- case "MIN":
22510
- case 4:
22511
- message["function"] = 4;
22512
- break;
22513
- case "MAX":
22514
- case 5:
22515
- message["function"] = 5;
22516
- break;
22517
- }
22518
- if (object.field != null)
22519
- message.field = String(object.field);
23360
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin();
23361
+ if (object.joinProperty != null)
23362
+ message.joinProperty = String(object.joinProperty);
23363
+ if (object.outerDocumentType != null)
23364
+ message.outerDocumentType = String(object.outerDocumentType);
22520
23365
  return message;
22521
23366
  };
22522
23367
 
22523
23368
  /**
22524
- * Creates a plain object from a Select message. Also converts values to other types if specified.
23369
+ * Creates a plain object from a ChainedJoin message. Also converts values to other types if specified.
22525
23370
  * @function toObject
22526
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23371
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22527
23372
  * @static
22528
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} message Select
23373
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} message ChainedJoin
22529
23374
  * @param {$protobuf.IConversionOptions} [options] Conversion options
22530
23375
  * @returns {Object.<string,*>} Plain object
22531
23376
  */
22532
- Select.toObject = function toObject(message, options) {
23377
+ ChainedJoin.toObject = function toObject(message, options) {
22533
23378
  if (!options)
22534
23379
  options = {};
22535
23380
  var object = {};
22536
23381
  if (options.defaults) {
22537
- object["function"] = options.enums === String ? "DOCUMENTS" : 0;
22538
- object.field = "";
23382
+ object.joinProperty = "";
23383
+ object.outerDocumentType = "";
22539
23384
  }
22540
- if (message["function"] != null && message.hasOwnProperty("function"))
22541
- object["function"] = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function[message["function"]] : message["function"];
22542
- if (message.field != null && message.hasOwnProperty("field"))
22543
- object.field = message.field;
23385
+ if (message.joinProperty != null && message.hasOwnProperty("joinProperty"))
23386
+ object.joinProperty = message.joinProperty;
23387
+ if (message.outerDocumentType != null && message.hasOwnProperty("outerDocumentType"))
23388
+ object.outerDocumentType = message.outerDocumentType;
22544
23389
  return object;
22545
23390
  };
22546
23391
 
22547
23392
  /**
22548
- * Converts this Select to JSON.
23393
+ * Converts this ChainedJoin to JSON.
22549
23394
  * @function toJSON
22550
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
23395
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
22551
23396
  * @instance
22552
23397
  * @returns {Object.<string,*>} JSON object
22553
23398
  */
22554
- Select.prototype.toJSON = function toJSON() {
23399
+ ChainedJoin.prototype.toJSON = function toJSON() {
22555
23400
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22556
23401
  };
22557
23402
 
22558
- /**
22559
- * Function enum.
22560
- * @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function
22561
- * @enum {number}
22562
- * @property {number} DOCUMENTS=0 DOCUMENTS value
22563
- * @property {number} COUNT=1 COUNT value
22564
- * @property {number} SUM=2 SUM value
22565
- * @property {number} AVG=3 AVG value
22566
- * @property {number} MIN=4 MIN value
22567
- * @property {number} MAX=5 MAX value
22568
- */
22569
- Select.Function = (function() {
22570
- var valuesById = {}, values = Object.create(valuesById);
22571
- values[valuesById[0] = "DOCUMENTS"] = 0;
22572
- values[valuesById[1] = "COUNT"] = 1;
22573
- values[valuesById[2] = "SUM"] = 2;
22574
- values[valuesById[3] = "AVG"] = 3;
22575
- values[valuesById[4] = "MIN"] = 4;
22576
- values[valuesById[5] = "MAX"] = 5;
22577
- return values;
22578
- })();
22579
-
22580
- return Select;
23403
+ return ChainedJoin;
22581
23404
  })();
22582
23405
 
22583
23406
  return GetDocumentsRequestV1;
@@ -26817,6 +27640,7 @@ $root.org = (function() {
26817
27640
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
26818
27641
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
26819
27642
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
27643
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null} [chained] ResultData chained
26820
27644
  */
26821
27645
 
26822
27646
  /**
@@ -26874,17 +27698,25 @@ $root.org = (function() {
26874
27698
  */
26875
27699
  ResultData.prototype.ranked = null;
26876
27700
 
27701
+ /**
27702
+ * ResultData chained.
27703
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null|undefined} chained
27704
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
27705
+ * @instance
27706
+ */
27707
+ ResultData.prototype.chained = null;
27708
+
26877
27709
  // OneOf field names bound to virtual getters and setters
26878
27710
  var $oneOfFields;
26879
27711
 
26880
27712
  /**
26881
27713
  * ResultData variant.
26882
- * @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
27714
+ * @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|undefined} variant
26883
27715
  * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26884
27716
  * @instance
26885
27717
  */
26886
27718
  Object.defineProperty(ResultData.prototype, "variant", {
26887
- get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
27719
+ get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained"]),
26888
27720
  set: $util.oneOfSetter($oneOfFields)
26889
27721
  });
26890
27722
 
@@ -26922,6 +27754,8 @@ $root.org = (function() {
26922
27754
  $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26923
27755
  if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
26924
27756
  $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
27757
+ if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
27758
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.encode(message.chained, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
26925
27759
  return writer;
26926
27760
  };
26927
27761
 
@@ -26971,6 +27805,9 @@ $root.org = (function() {
26971
27805
  case 5:
26972
27806
  message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
26973
27807
  break;
27808
+ case 6:
27809
+ message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.decode(reader, reader.uint32());
27810
+ break;
26974
27811
  default:
26975
27812
  reader.skipType(tag & 7);
26976
27813
  break;
@@ -27055,6 +27892,16 @@ $root.org = (function() {
27055
27892
  return "ranked." + error;
27056
27893
  }
27057
27894
  }
27895
+ if (message.chained != null && message.hasOwnProperty("chained")) {
27896
+ if (properties.variant === 1)
27897
+ return "variant: multiple values";
27898
+ properties.variant = 1;
27899
+ {
27900
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify(message.chained);
27901
+ if (error)
27902
+ return "chained." + error;
27903
+ }
27904
+ }
27058
27905
  return null;
27059
27906
  };
27060
27907
 
@@ -27095,6 +27942,11 @@ $root.org = (function() {
27095
27942
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
27096
27943
  message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
27097
27944
  }
27945
+ if (object.chained != null) {
27946
+ if (typeof object.chained !== "object")
27947
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.chained: object expected");
27948
+ message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.fromObject(object.chained);
27949
+ }
27098
27950
  return message;
27099
27951
  };
27100
27952
 
@@ -27136,6 +27988,11 @@ $root.org = (function() {
27136
27988
  if (options.oneofs)
27137
27989
  object.variant = "ranked";
27138
27990
  }
27991
+ if (message.chained != null && message.hasOwnProperty("chained")) {
27992
+ object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.toObject(message.chained, options);
27993
+ if (options.oneofs)
27994
+ object.variant = "chained";
27995
+ }
27139
27996
  return object;
27140
27997
  };
27141
27998
 
@@ -27153,6 +28010,254 @@ $root.org = (function() {
27153
28010
  return ResultData;
27154
28011
  })();
27155
28012
 
28013
+ GetDocumentsResponseV1.ChainedDocuments = (function() {
28014
+
28015
+ /**
28016
+ * Properties of a ChainedDocuments.
28017
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
28018
+ * @interface IChainedDocuments
28019
+ * @property {Array.<Uint8Array>|null} [innerDocuments] ChainedDocuments innerDocuments
28020
+ * @property {Array.<Uint8Array>|null} [outerDocuments] ChainedDocuments outerDocuments
28021
+ */
28022
+
28023
+ /**
28024
+ * Constructs a new ChainedDocuments.
28025
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
28026
+ * @classdesc Represents a ChainedDocuments.
28027
+ * @implements IChainedDocuments
28028
+ * @constructor
28029
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
28030
+ */
28031
+ function ChainedDocuments(properties) {
28032
+ this.innerDocuments = [];
28033
+ this.outerDocuments = [];
28034
+ if (properties)
28035
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28036
+ if (properties[keys[i]] != null)
28037
+ this[keys[i]] = properties[keys[i]];
28038
+ }
28039
+
28040
+ /**
28041
+ * ChainedDocuments innerDocuments.
28042
+ * @member {Array.<Uint8Array>} innerDocuments
28043
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28044
+ * @instance
28045
+ */
28046
+ ChainedDocuments.prototype.innerDocuments = $util.emptyArray;
28047
+
28048
+ /**
28049
+ * ChainedDocuments outerDocuments.
28050
+ * @member {Array.<Uint8Array>} outerDocuments
28051
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28052
+ * @instance
28053
+ */
28054
+ ChainedDocuments.prototype.outerDocuments = $util.emptyArray;
28055
+
28056
+ /**
28057
+ * Creates a new ChainedDocuments instance using the specified properties.
28058
+ * @function create
28059
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28060
+ * @static
28061
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
28062
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments instance
28063
+ */
28064
+ ChainedDocuments.create = function create(properties) {
28065
+ return new ChainedDocuments(properties);
28066
+ };
28067
+
28068
+ /**
28069
+ * Encodes the specified ChainedDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
28070
+ * @function encode
28071
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28072
+ * @static
28073
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
28074
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28075
+ * @returns {$protobuf.Writer} Writer
28076
+ */
28077
+ ChainedDocuments.encode = function encode(message, writer) {
28078
+ if (!writer)
28079
+ writer = $Writer.create();
28080
+ if (message.innerDocuments != null && message.innerDocuments.length)
28081
+ for (var i = 0; i < message.innerDocuments.length; ++i)
28082
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.innerDocuments[i]);
28083
+ if (message.outerDocuments != null && message.outerDocuments.length)
28084
+ for (var i = 0; i < message.outerDocuments.length; ++i)
28085
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.outerDocuments[i]);
28086
+ return writer;
28087
+ };
28088
+
28089
+ /**
28090
+ * Encodes the specified ChainedDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
28091
+ * @function encodeDelimited
28092
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28093
+ * @static
28094
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
28095
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28096
+ * @returns {$protobuf.Writer} Writer
28097
+ */
28098
+ ChainedDocuments.encodeDelimited = function encodeDelimited(message, writer) {
28099
+ return this.encode(message, writer).ldelim();
28100
+ };
28101
+
28102
+ /**
28103
+ * Decodes a ChainedDocuments message from the specified reader or buffer.
28104
+ * @function decode
28105
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28106
+ * @static
28107
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28108
+ * @param {number} [length] Message length if known beforehand
28109
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28110
+ * @throws {Error} If the payload is not a reader or valid buffer
28111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28112
+ */
28113
+ ChainedDocuments.decode = function decode(reader, length) {
28114
+ if (!(reader instanceof $Reader))
28115
+ reader = $Reader.create(reader);
28116
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
28117
+ while (reader.pos < end) {
28118
+ var tag = reader.uint32();
28119
+ switch (tag >>> 3) {
28120
+ case 1:
28121
+ if (!(message.innerDocuments && message.innerDocuments.length))
28122
+ message.innerDocuments = [];
28123
+ message.innerDocuments.push(reader.bytes());
28124
+ break;
28125
+ case 2:
28126
+ if (!(message.outerDocuments && message.outerDocuments.length))
28127
+ message.outerDocuments = [];
28128
+ message.outerDocuments.push(reader.bytes());
28129
+ break;
28130
+ default:
28131
+ reader.skipType(tag & 7);
28132
+ break;
28133
+ }
28134
+ }
28135
+ return message;
28136
+ };
28137
+
28138
+ /**
28139
+ * Decodes a ChainedDocuments message from the specified reader or buffer, length delimited.
28140
+ * @function decodeDelimited
28141
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28142
+ * @static
28143
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28144
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28145
+ * @throws {Error} If the payload is not a reader or valid buffer
28146
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28147
+ */
28148
+ ChainedDocuments.decodeDelimited = function decodeDelimited(reader) {
28149
+ if (!(reader instanceof $Reader))
28150
+ reader = new $Reader(reader);
28151
+ return this.decode(reader, reader.uint32());
28152
+ };
28153
+
28154
+ /**
28155
+ * Verifies a ChainedDocuments message.
28156
+ * @function verify
28157
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28158
+ * @static
28159
+ * @param {Object.<string,*>} message Plain object to verify
28160
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28161
+ */
28162
+ ChainedDocuments.verify = function verify(message) {
28163
+ if (typeof message !== "object" || message === null)
28164
+ return "object expected";
28165
+ if (message.innerDocuments != null && message.hasOwnProperty("innerDocuments")) {
28166
+ if (!Array.isArray(message.innerDocuments))
28167
+ return "innerDocuments: array expected";
28168
+ for (var i = 0; i < message.innerDocuments.length; ++i)
28169
+ if (!(message.innerDocuments[i] && typeof message.innerDocuments[i].length === "number" || $util.isString(message.innerDocuments[i])))
28170
+ return "innerDocuments: buffer[] expected";
28171
+ }
28172
+ if (message.outerDocuments != null && message.hasOwnProperty("outerDocuments")) {
28173
+ if (!Array.isArray(message.outerDocuments))
28174
+ return "outerDocuments: array expected";
28175
+ for (var i = 0; i < message.outerDocuments.length; ++i)
28176
+ if (!(message.outerDocuments[i] && typeof message.outerDocuments[i].length === "number" || $util.isString(message.outerDocuments[i])))
28177
+ return "outerDocuments: buffer[] expected";
28178
+ }
28179
+ return null;
28180
+ };
28181
+
28182
+ /**
28183
+ * Creates a ChainedDocuments message from a plain object. Also converts values to their respective internal types.
28184
+ * @function fromObject
28185
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28186
+ * @static
28187
+ * @param {Object.<string,*>} object Plain object
28188
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28189
+ */
28190
+ ChainedDocuments.fromObject = function fromObject(object) {
28191
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments)
28192
+ return object;
28193
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
28194
+ if (object.innerDocuments) {
28195
+ if (!Array.isArray(object.innerDocuments))
28196
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.innerDocuments: array expected");
28197
+ message.innerDocuments = [];
28198
+ for (var i = 0; i < object.innerDocuments.length; ++i)
28199
+ if (typeof object.innerDocuments[i] === "string")
28200
+ $util.base64.decode(object.innerDocuments[i], message.innerDocuments[i] = $util.newBuffer($util.base64.length(object.innerDocuments[i])), 0);
28201
+ else if (object.innerDocuments[i].length >= 0)
28202
+ message.innerDocuments[i] = object.innerDocuments[i];
28203
+ }
28204
+ if (object.outerDocuments) {
28205
+ if (!Array.isArray(object.outerDocuments))
28206
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.outerDocuments: array expected");
28207
+ message.outerDocuments = [];
28208
+ for (var i = 0; i < object.outerDocuments.length; ++i)
28209
+ if (typeof object.outerDocuments[i] === "string")
28210
+ $util.base64.decode(object.outerDocuments[i], message.outerDocuments[i] = $util.newBuffer($util.base64.length(object.outerDocuments[i])), 0);
28211
+ else if (object.outerDocuments[i].length >= 0)
28212
+ message.outerDocuments[i] = object.outerDocuments[i];
28213
+ }
28214
+ return message;
28215
+ };
28216
+
28217
+ /**
28218
+ * Creates a plain object from a ChainedDocuments message. Also converts values to other types if specified.
28219
+ * @function toObject
28220
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28221
+ * @static
28222
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} message ChainedDocuments
28223
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28224
+ * @returns {Object.<string,*>} Plain object
28225
+ */
28226
+ ChainedDocuments.toObject = function toObject(message, options) {
28227
+ if (!options)
28228
+ options = {};
28229
+ var object = {};
28230
+ if (options.arrays || options.defaults) {
28231
+ object.innerDocuments = [];
28232
+ object.outerDocuments = [];
28233
+ }
28234
+ if (message.innerDocuments && message.innerDocuments.length) {
28235
+ object.innerDocuments = [];
28236
+ for (var j = 0; j < message.innerDocuments.length; ++j)
28237
+ object.innerDocuments[j] = options.bytes === String ? $util.base64.encode(message.innerDocuments[j], 0, message.innerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.innerDocuments[j]) : message.innerDocuments[j];
28238
+ }
28239
+ if (message.outerDocuments && message.outerDocuments.length) {
28240
+ object.outerDocuments = [];
28241
+ for (var j = 0; j < message.outerDocuments.length; ++j)
28242
+ object.outerDocuments[j] = options.bytes === String ? $util.base64.encode(message.outerDocuments[j], 0, message.outerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.outerDocuments[j]) : message.outerDocuments[j];
28243
+ }
28244
+ return object;
28245
+ };
28246
+
28247
+ /**
28248
+ * Converts this ChainedDocuments to JSON.
28249
+ * @function toJSON
28250
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28251
+ * @instance
28252
+ * @returns {Object.<string,*>} JSON object
28253
+ */
28254
+ ChainedDocuments.prototype.toJSON = function toJSON() {
28255
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28256
+ };
28257
+
28258
+ return ChainedDocuments;
28259
+ })();
28260
+
27156
28261
  return GetDocumentsResponseV1;
27157
28262
  })();
27158
28263