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

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.
@@ -22351,6 +22351,7 @@ $root.org = (function() {
22351
22351
  * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingClause>|null} [having] GetDocumentsRequestV1 having
22352
22352
  * @property {number|null} [offset] GetDocumentsRequestV1 offset
22353
22353
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null} [chained] GetDocumentsRequestV1 chained
22354
+ * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery>|null} [subQueries] GetDocumentsRequestV1 subQueries
22354
22355
  */
22355
22356
 
22356
22357
  /**
@@ -22367,6 +22368,7 @@ $root.org = (function() {
22367
22368
  this.selects = [];
22368
22369
  this.groupBy = [];
22369
22370
  this.having = [];
22371
+ this.subQueries = [];
22370
22372
  if (properties)
22371
22373
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22372
22374
  if (properties[keys[i]] != null)
@@ -22477,6 +22479,14 @@ $root.org = (function() {
22477
22479
  */
22478
22480
  GetDocumentsRequestV1.prototype.chained = null;
22479
22481
 
22482
+ /**
22483
+ * GetDocumentsRequestV1 subQueries.
22484
+ * @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery>} subQueries
22485
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
22486
+ * @instance
22487
+ */
22488
+ GetDocumentsRequestV1.prototype.subQueries = $util.emptyArray;
22489
+
22480
22490
  // OneOf field names bound to virtual getters and setters
22481
22491
  var $oneOfFields;
22482
22492
 
@@ -22546,6 +22556,9 @@ $root.org = (function() {
22546
22556
  writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.offset);
22547
22557
  if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
22548
22558
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.encode(message.chained, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
22559
+ if (message.subQueries != null && message.subQueries.length)
22560
+ for (var i = 0; i < message.subQueries.length; ++i)
22561
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.encode(message.subQueries[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
22549
22562
  return writer;
22550
22563
  };
22551
22564
 
@@ -22629,6 +22642,11 @@ $root.org = (function() {
22629
22642
  case 13:
22630
22643
  message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.decode(reader, reader.uint32());
22631
22644
  break;
22645
+ case 14:
22646
+ if (!(message.subQueries && message.subQueries.length))
22647
+ message.subQueries = [];
22648
+ message.subQueries.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.decode(reader, reader.uint32()));
22649
+ break;
22632
22650
  default:
22633
22651
  reader.skipType(tag & 7);
22634
22652
  break;
@@ -22740,6 +22758,15 @@ $root.org = (function() {
22740
22758
  if (error)
22741
22759
  return "chained." + error;
22742
22760
  }
22761
+ if (message.subQueries != null && message.hasOwnProperty("subQueries")) {
22762
+ if (!Array.isArray(message.subQueries))
22763
+ return "subQueries: array expected";
22764
+ for (var i = 0; i < message.subQueries.length; ++i) {
22765
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify(message.subQueries[i]);
22766
+ if (error)
22767
+ return "subQueries." + error;
22768
+ }
22769
+ }
22743
22770
  return null;
22744
22771
  };
22745
22772
 
@@ -22830,6 +22857,16 @@ $root.org = (function() {
22830
22857
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.chained: object expected");
22831
22858
  message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.fromObject(object.chained);
22832
22859
  }
22860
+ if (object.subQueries) {
22861
+ if (!Array.isArray(object.subQueries))
22862
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.subQueries: array expected");
22863
+ message.subQueries = [];
22864
+ for (var i = 0; i < object.subQueries.length; ++i) {
22865
+ if (typeof object.subQueries[i] !== "object")
22866
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.subQueries: object expected");
22867
+ message.subQueries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.fromObject(object.subQueries[i]);
22868
+ }
22869
+ }
22833
22870
  return message;
22834
22871
  };
22835
22872
 
@@ -22852,6 +22889,7 @@ $root.org = (function() {
22852
22889
  object.selects = [];
22853
22890
  object.groupBy = [];
22854
22891
  object.having = [];
22892
+ object.subQueries = [];
22855
22893
  }
22856
22894
  if (options.defaults) {
22857
22895
  if (options.bytes === String)
@@ -22914,6 +22952,11 @@ $root.org = (function() {
22914
22952
  object.offset = message.offset;
22915
22953
  if (message.chained != null && message.hasOwnProperty("chained"))
22916
22954
  object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.toObject(message.chained, options);
22955
+ if (message.subQueries && message.subQueries.length) {
22956
+ object.subQueries = [];
22957
+ for (var j = 0; j < message.subQueries.length; ++j)
22958
+ object.subQueries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.toObject(message.subQueries[j], options);
22959
+ }
22917
22960
  return object;
22918
22961
  };
22919
22962
 
@@ -23403,174 +23446,811 @@ $root.org = (function() {
23403
23446
  return ChainedJoin;
23404
23447
  })();
23405
23448
 
23406
- return GetDocumentsRequestV1;
23407
- })();
23449
+ GetDocumentsRequestV1.SubQuery = (function() {
23408
23450
 
23409
- return GetDocumentsRequest;
23410
- })();
23451
+ /**
23452
+ * Properties of a SubQuery.
23453
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
23454
+ * @interface ISubQuery
23455
+ * @property {Uint8Array|null} [dataContractId] SubQuery dataContractId
23456
+ * @property {string|null} [documentType] SubQuery documentType
23457
+ * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IWhereClause>|null} [whereClauses] SubQuery whereClauses
23458
+ * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IOrderClause>|null} [orderBy] SubQuery orderBy
23459
+ * @property {number|null} [limit] SubQuery limit
23460
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind|null} [kind] SubQuery kind
23461
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding|null} [bind] SubQuery bind
23462
+ */
23411
23463
 
23412
- v0.GetDocumentsResponse = (function() {
23464
+ /**
23465
+ * Constructs a new SubQuery.
23466
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
23467
+ * @classdesc Represents a SubQuery.
23468
+ * @implements ISubQuery
23469
+ * @constructor
23470
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery=} [properties] Properties to set
23471
+ */
23472
+ function SubQuery(properties) {
23473
+ this.whereClauses = [];
23474
+ this.orderBy = [];
23475
+ if (properties)
23476
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23477
+ if (properties[keys[i]] != null)
23478
+ this[keys[i]] = properties[keys[i]];
23479
+ }
23413
23480
 
23414
- /**
23415
- * Properties of a GetDocumentsResponse.
23416
- * @memberof org.dash.platform.dapi.v0
23417
- * @interface IGetDocumentsResponse
23418
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null} [v0] GetDocumentsResponse v0
23419
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null} [v1] GetDocumentsResponse v1
23420
- */
23481
+ /**
23482
+ * SubQuery dataContractId.
23483
+ * @member {Uint8Array} dataContractId
23484
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23485
+ * @instance
23486
+ */
23487
+ SubQuery.prototype.dataContractId = $util.newBuffer([]);
23421
23488
 
23422
- /**
23423
- * Constructs a new GetDocumentsResponse.
23424
- * @memberof org.dash.platform.dapi.v0
23425
- * @classdesc Represents a GetDocumentsResponse.
23426
- * @implements IGetDocumentsResponse
23427
- * @constructor
23428
- * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
23429
- */
23430
- function GetDocumentsResponse(properties) {
23431
- if (properties)
23432
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23433
- if (properties[keys[i]] != null)
23434
- this[keys[i]] = properties[keys[i]];
23435
- }
23489
+ /**
23490
+ * SubQuery documentType.
23491
+ * @member {string} documentType
23492
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23493
+ * @instance
23494
+ */
23495
+ SubQuery.prototype.documentType = "";
23436
23496
 
23437
- /**
23438
- * GetDocumentsResponse v0.
23439
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null|undefined} v0
23440
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23441
- * @instance
23442
- */
23443
- GetDocumentsResponse.prototype.v0 = null;
23497
+ /**
23498
+ * SubQuery whereClauses.
23499
+ * @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IWhereClause>} whereClauses
23500
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23501
+ * @instance
23502
+ */
23503
+ SubQuery.prototype.whereClauses = $util.emptyArray;
23444
23504
 
23445
- /**
23446
- * GetDocumentsResponse v1.
23447
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null|undefined} v1
23448
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23449
- * @instance
23450
- */
23451
- GetDocumentsResponse.prototype.v1 = null;
23505
+ /**
23506
+ * SubQuery orderBy.
23507
+ * @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IOrderClause>} orderBy
23508
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23509
+ * @instance
23510
+ */
23511
+ SubQuery.prototype.orderBy = $util.emptyArray;
23452
23512
 
23453
- // OneOf field names bound to virtual getters and setters
23454
- var $oneOfFields;
23513
+ /**
23514
+ * SubQuery limit.
23515
+ * @member {number} limit
23516
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23517
+ * @instance
23518
+ */
23519
+ SubQuery.prototype.limit = 0;
23455
23520
 
23456
- /**
23457
- * GetDocumentsResponse version.
23458
- * @member {"v0"|"v1"|undefined} version
23459
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23460
- * @instance
23461
- */
23462
- Object.defineProperty(GetDocumentsResponse.prototype, "version", {
23463
- get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
23464
- set: $util.oneOfSetter($oneOfFields)
23465
- });
23521
+ /**
23522
+ * SubQuery kind.
23523
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind} kind
23524
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23525
+ * @instance
23526
+ */
23527
+ SubQuery.prototype.kind = 0;
23466
23528
 
23467
- /**
23468
- * Creates a new GetDocumentsResponse instance using the specified properties.
23469
- * @function create
23470
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23471
- * @static
23472
- * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
23473
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse instance
23474
- */
23475
- GetDocumentsResponse.create = function create(properties) {
23476
- return new GetDocumentsResponse(properties);
23477
- };
23529
+ /**
23530
+ * SubQuery bind.
23531
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding|null|undefined} bind
23532
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23533
+ * @instance
23534
+ */
23535
+ SubQuery.prototype.bind = null;
23478
23536
 
23479
- /**
23480
- * Encodes the specified GetDocumentsResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
23481
- * @function encode
23482
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23483
- * @static
23484
- * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
23485
- * @param {$protobuf.Writer} [writer] Writer to encode to
23486
- * @returns {$protobuf.Writer} Writer
23487
- */
23488
- GetDocumentsResponse.encode = function encode(message, writer) {
23489
- if (!writer)
23490
- writer = $Writer.create();
23491
- if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
23492
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
23493
- if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
23494
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
23495
- return writer;
23496
- };
23537
+ /**
23538
+ * Creates a new SubQuery instance using the specified properties.
23539
+ * @function create
23540
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23541
+ * @static
23542
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery=} [properties] Properties to set
23543
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery instance
23544
+ */
23545
+ SubQuery.create = function create(properties) {
23546
+ return new SubQuery(properties);
23547
+ };
23497
23548
 
23498
- /**
23499
- * Encodes the specified GetDocumentsResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
23500
- * @function encodeDelimited
23501
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23502
- * @static
23503
- * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
23504
- * @param {$protobuf.Writer} [writer] Writer to encode to
23505
- * @returns {$protobuf.Writer} Writer
23506
- */
23507
- GetDocumentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
23508
- return this.encode(message, writer).ldelim();
23509
- };
23549
+ /**
23550
+ * Encodes the specified SubQuery message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify|verify} messages.
23551
+ * @function encode
23552
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23553
+ * @static
23554
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery} message SubQuery message or plain object to encode
23555
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23556
+ * @returns {$protobuf.Writer} Writer
23557
+ */
23558
+ SubQuery.encode = function encode(message, writer) {
23559
+ if (!writer)
23560
+ writer = $Writer.create();
23561
+ if (message.dataContractId != null && Object.hasOwnProperty.call(message, "dataContractId"))
23562
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.dataContractId);
23563
+ if (message.documentType != null && Object.hasOwnProperty.call(message, "documentType"))
23564
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.documentType);
23565
+ if (message.whereClauses != null && message.whereClauses.length)
23566
+ for (var i = 0; i < message.whereClauses.length; ++i)
23567
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.encode(message.whereClauses[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
23568
+ if (message.orderBy != null && message.orderBy.length)
23569
+ for (var i = 0; i < message.orderBy.length; ++i)
23570
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.encode(message.orderBy[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
23571
+ if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
23572
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.limit);
23573
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
23574
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.kind);
23575
+ if (message.bind != null && Object.hasOwnProperty.call(message, "bind"))
23576
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.encode(message.bind, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
23577
+ return writer;
23578
+ };
23510
23579
 
23511
- /**
23512
- * Decodes a GetDocumentsResponse message from the specified reader or buffer.
23513
- * @function decode
23514
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23515
- * @static
23516
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23517
- * @param {number} [length] Message length if known beforehand
23518
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
23519
- * @throws {Error} If the payload is not a reader or valid buffer
23520
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
23521
- */
23522
- GetDocumentsResponse.decode = function decode(reader, length) {
23523
- if (!(reader instanceof $Reader))
23524
- reader = $Reader.create(reader);
23525
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse();
23526
- while (reader.pos < end) {
23527
- var tag = reader.uint32();
23528
- switch (tag >>> 3) {
23529
- case 1:
23530
- message.v0 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.decode(reader, reader.uint32());
23531
- break;
23532
- case 2:
23533
- message.v1 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.decode(reader, reader.uint32());
23534
- break;
23535
- default:
23536
- reader.skipType(tag & 7);
23537
- break;
23538
- }
23539
- }
23540
- return message;
23541
- };
23580
+ /**
23581
+ * Encodes the specified SubQuery message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify|verify} messages.
23582
+ * @function encodeDelimited
23583
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23584
+ * @static
23585
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery} message SubQuery message or plain object to encode
23586
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23587
+ * @returns {$protobuf.Writer} Writer
23588
+ */
23589
+ SubQuery.encodeDelimited = function encodeDelimited(message, writer) {
23590
+ return this.encode(message, writer).ldelim();
23591
+ };
23542
23592
 
23543
- /**
23544
- * Decodes a GetDocumentsResponse message from the specified reader or buffer, length delimited.
23545
- * @function decodeDelimited
23546
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23547
- * @static
23548
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23549
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
23550
- * @throws {Error} If the payload is not a reader or valid buffer
23551
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
23552
- */
23553
- GetDocumentsResponse.decodeDelimited = function decodeDelimited(reader) {
23554
- if (!(reader instanceof $Reader))
23555
- reader = new $Reader(reader);
23556
- return this.decode(reader, reader.uint32());
23557
- };
23593
+ /**
23594
+ * Decodes a SubQuery message from the specified reader or buffer.
23595
+ * @function decode
23596
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23597
+ * @static
23598
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23599
+ * @param {number} [length] Message length if known beforehand
23600
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
23601
+ * @throws {Error} If the payload is not a reader or valid buffer
23602
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23603
+ */
23604
+ SubQuery.decode = function decode(reader, length) {
23605
+ if (!(reader instanceof $Reader))
23606
+ reader = $Reader.create(reader);
23607
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery();
23608
+ while (reader.pos < end) {
23609
+ var tag = reader.uint32();
23610
+ switch (tag >>> 3) {
23611
+ case 1:
23612
+ message.dataContractId = reader.bytes();
23613
+ break;
23614
+ case 2:
23615
+ message.documentType = reader.string();
23616
+ break;
23617
+ case 3:
23618
+ if (!(message.whereClauses && message.whereClauses.length))
23619
+ message.whereClauses = [];
23620
+ message.whereClauses.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.decode(reader, reader.uint32()));
23621
+ break;
23622
+ case 4:
23623
+ if (!(message.orderBy && message.orderBy.length))
23624
+ message.orderBy = [];
23625
+ message.orderBy.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.decode(reader, reader.uint32()));
23626
+ break;
23627
+ case 5:
23628
+ message.limit = reader.uint32();
23629
+ break;
23630
+ case 6:
23631
+ message.kind = reader.int32();
23632
+ break;
23633
+ case 7:
23634
+ message.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.decode(reader, reader.uint32());
23635
+ break;
23636
+ default:
23637
+ reader.skipType(tag & 7);
23638
+ break;
23639
+ }
23640
+ }
23641
+ return message;
23642
+ };
23558
23643
 
23559
- /**
23560
- * Verifies a GetDocumentsResponse message.
23561
- * @function verify
23562
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
23563
- * @static
23564
- * @param {Object.<string,*>} message Plain object to verify
23565
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
23566
- */
23567
- GetDocumentsResponse.verify = function verify(message) {
23568
- if (typeof message !== "object" || message === null)
23569
- return "object expected";
23570
- var properties = {};
23571
- if (message.v0 != null && message.hasOwnProperty("v0")) {
23572
- properties.version = 1;
23573
- {
23644
+ /**
23645
+ * Decodes a SubQuery message from the specified reader or buffer, length delimited.
23646
+ * @function decodeDelimited
23647
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23648
+ * @static
23649
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23650
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
23651
+ * @throws {Error} If the payload is not a reader or valid buffer
23652
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23653
+ */
23654
+ SubQuery.decodeDelimited = function decodeDelimited(reader) {
23655
+ if (!(reader instanceof $Reader))
23656
+ reader = new $Reader(reader);
23657
+ return this.decode(reader, reader.uint32());
23658
+ };
23659
+
23660
+ /**
23661
+ * Verifies a SubQuery message.
23662
+ * @function verify
23663
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23664
+ * @static
23665
+ * @param {Object.<string,*>} message Plain object to verify
23666
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23667
+ */
23668
+ SubQuery.verify = function verify(message) {
23669
+ if (typeof message !== "object" || message === null)
23670
+ return "object expected";
23671
+ if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
23672
+ if (!(message.dataContractId && typeof message.dataContractId.length === "number" || $util.isString(message.dataContractId)))
23673
+ return "dataContractId: buffer expected";
23674
+ if (message.documentType != null && message.hasOwnProperty("documentType"))
23675
+ if (!$util.isString(message.documentType))
23676
+ return "documentType: string expected";
23677
+ if (message.whereClauses != null && message.hasOwnProperty("whereClauses")) {
23678
+ if (!Array.isArray(message.whereClauses))
23679
+ return "whereClauses: array expected";
23680
+ for (var i = 0; i < message.whereClauses.length; ++i) {
23681
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.verify(message.whereClauses[i]);
23682
+ if (error)
23683
+ return "whereClauses." + error;
23684
+ }
23685
+ }
23686
+ if (message.orderBy != null && message.hasOwnProperty("orderBy")) {
23687
+ if (!Array.isArray(message.orderBy))
23688
+ return "orderBy: array expected";
23689
+ for (var i = 0; i < message.orderBy.length; ++i) {
23690
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.verify(message.orderBy[i]);
23691
+ if (error)
23692
+ return "orderBy." + error;
23693
+ }
23694
+ }
23695
+ if (message.limit != null && message.hasOwnProperty("limit"))
23696
+ if (!$util.isInteger(message.limit))
23697
+ return "limit: integer expected";
23698
+ if (message.kind != null && message.hasOwnProperty("kind"))
23699
+ switch (message.kind) {
23700
+ default:
23701
+ return "kind: enum value expected";
23702
+ case 0:
23703
+ case 1:
23704
+ break;
23705
+ }
23706
+ if (message.bind != null && message.hasOwnProperty("bind")) {
23707
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify(message.bind);
23708
+ if (error)
23709
+ return "bind." + error;
23710
+ }
23711
+ return null;
23712
+ };
23713
+
23714
+ /**
23715
+ * Creates a SubQuery message from a plain object. Also converts values to their respective internal types.
23716
+ * @function fromObject
23717
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23718
+ * @static
23719
+ * @param {Object.<string,*>} object Plain object
23720
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
23721
+ */
23722
+ SubQuery.fromObject = function fromObject(object) {
23723
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery)
23724
+ return object;
23725
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery();
23726
+ if (object.dataContractId != null)
23727
+ if (typeof object.dataContractId === "string")
23728
+ $util.base64.decode(object.dataContractId, message.dataContractId = $util.newBuffer($util.base64.length(object.dataContractId)), 0);
23729
+ else if (object.dataContractId.length >= 0)
23730
+ message.dataContractId = object.dataContractId;
23731
+ if (object.documentType != null)
23732
+ message.documentType = String(object.documentType);
23733
+ if (object.whereClauses) {
23734
+ if (!Array.isArray(object.whereClauses))
23735
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.whereClauses: array expected");
23736
+ message.whereClauses = [];
23737
+ for (var i = 0; i < object.whereClauses.length; ++i) {
23738
+ if (typeof object.whereClauses[i] !== "object")
23739
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.whereClauses: object expected");
23740
+ message.whereClauses[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.fromObject(object.whereClauses[i]);
23741
+ }
23742
+ }
23743
+ if (object.orderBy) {
23744
+ if (!Array.isArray(object.orderBy))
23745
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.orderBy: array expected");
23746
+ message.orderBy = [];
23747
+ for (var i = 0; i < object.orderBy.length; ++i) {
23748
+ if (typeof object.orderBy[i] !== "object")
23749
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.orderBy: object expected");
23750
+ message.orderBy[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.fromObject(object.orderBy[i]);
23751
+ }
23752
+ }
23753
+ if (object.limit != null)
23754
+ message.limit = object.limit >>> 0;
23755
+ switch (object.kind) {
23756
+ case "DOCUMENTS":
23757
+ case 0:
23758
+ message.kind = 0;
23759
+ break;
23760
+ case "COUNT":
23761
+ case 1:
23762
+ message.kind = 1;
23763
+ break;
23764
+ }
23765
+ if (object.bind != null) {
23766
+ if (typeof object.bind !== "object")
23767
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.bind: object expected");
23768
+ message.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.fromObject(object.bind);
23769
+ }
23770
+ return message;
23771
+ };
23772
+
23773
+ /**
23774
+ * Creates a plain object from a SubQuery message. Also converts values to other types if specified.
23775
+ * @function toObject
23776
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23777
+ * @static
23778
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} message SubQuery
23779
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23780
+ * @returns {Object.<string,*>} Plain object
23781
+ */
23782
+ SubQuery.toObject = function toObject(message, options) {
23783
+ if (!options)
23784
+ options = {};
23785
+ var object = {};
23786
+ if (options.arrays || options.defaults) {
23787
+ object.whereClauses = [];
23788
+ object.orderBy = [];
23789
+ }
23790
+ if (options.defaults) {
23791
+ if (options.bytes === String)
23792
+ object.dataContractId = "";
23793
+ else {
23794
+ object.dataContractId = [];
23795
+ if (options.bytes !== Array)
23796
+ object.dataContractId = $util.newBuffer(object.dataContractId);
23797
+ }
23798
+ object.documentType = "";
23799
+ object.limit = 0;
23800
+ object.kind = options.enums === String ? "DOCUMENTS" : 0;
23801
+ object.bind = null;
23802
+ }
23803
+ if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
23804
+ 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;
23805
+ if (message.documentType != null && message.hasOwnProperty("documentType"))
23806
+ object.documentType = message.documentType;
23807
+ if (message.whereClauses && message.whereClauses.length) {
23808
+ object.whereClauses = [];
23809
+ for (var j = 0; j < message.whereClauses.length; ++j)
23810
+ object.whereClauses[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.toObject(message.whereClauses[j], options);
23811
+ }
23812
+ if (message.orderBy && message.orderBy.length) {
23813
+ object.orderBy = [];
23814
+ for (var j = 0; j < message.orderBy.length; ++j)
23815
+ object.orderBy[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.toObject(message.orderBy[j], options);
23816
+ }
23817
+ if (message.limit != null && message.hasOwnProperty("limit"))
23818
+ object.limit = message.limit;
23819
+ if (message.kind != null && message.hasOwnProperty("kind"))
23820
+ object.kind = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind[message.kind] : message.kind;
23821
+ if (message.bind != null && message.hasOwnProperty("bind"))
23822
+ object.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.toObject(message.bind, options);
23823
+ return object;
23824
+ };
23825
+
23826
+ /**
23827
+ * Converts this SubQuery to JSON.
23828
+ * @function toJSON
23829
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23830
+ * @instance
23831
+ * @returns {Object.<string,*>} JSON object
23832
+ */
23833
+ SubQuery.prototype.toJSON = function toJSON() {
23834
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23835
+ };
23836
+
23837
+ /**
23838
+ * Kind enum.
23839
+ * @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind
23840
+ * @enum {number}
23841
+ * @property {number} DOCUMENTS=0 DOCUMENTS value
23842
+ * @property {number} COUNT=1 COUNT value
23843
+ */
23844
+ SubQuery.Kind = (function() {
23845
+ var valuesById = {}, values = Object.create(valuesById);
23846
+ values[valuesById[0] = "DOCUMENTS"] = 0;
23847
+ values[valuesById[1] = "COUNT"] = 1;
23848
+ return values;
23849
+ })();
23850
+
23851
+ SubQuery.Binding = (function() {
23852
+
23853
+ /**
23854
+ * Properties of a Binding.
23855
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23856
+ * @interface IBinding
23857
+ * @property {number|null} [source] Binding source
23858
+ * @property {string|null} [sourceProperty] Binding sourceProperty
23859
+ * @property {string|null} [field] Binding field
23860
+ */
23861
+
23862
+ /**
23863
+ * Constructs a new Binding.
23864
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
23865
+ * @classdesc Represents a Binding.
23866
+ * @implements IBinding
23867
+ * @constructor
23868
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding=} [properties] Properties to set
23869
+ */
23870
+ function Binding(properties) {
23871
+ if (properties)
23872
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23873
+ if (properties[keys[i]] != null)
23874
+ this[keys[i]] = properties[keys[i]];
23875
+ }
23876
+
23877
+ /**
23878
+ * Binding source.
23879
+ * @member {number} source
23880
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23881
+ * @instance
23882
+ */
23883
+ Binding.prototype.source = 0;
23884
+
23885
+ /**
23886
+ * Binding sourceProperty.
23887
+ * @member {string} sourceProperty
23888
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23889
+ * @instance
23890
+ */
23891
+ Binding.prototype.sourceProperty = "";
23892
+
23893
+ /**
23894
+ * Binding field.
23895
+ * @member {string} field
23896
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23897
+ * @instance
23898
+ */
23899
+ Binding.prototype.field = "";
23900
+
23901
+ /**
23902
+ * Creates a new Binding instance using the specified properties.
23903
+ * @function create
23904
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23905
+ * @static
23906
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding=} [properties] Properties to set
23907
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding instance
23908
+ */
23909
+ Binding.create = function create(properties) {
23910
+ return new Binding(properties);
23911
+ };
23912
+
23913
+ /**
23914
+ * Encodes the specified Binding message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify|verify} messages.
23915
+ * @function encode
23916
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23917
+ * @static
23918
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding} message Binding message or plain object to encode
23919
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23920
+ * @returns {$protobuf.Writer} Writer
23921
+ */
23922
+ Binding.encode = function encode(message, writer) {
23923
+ if (!writer)
23924
+ writer = $Writer.create();
23925
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
23926
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.source);
23927
+ if (message.sourceProperty != null && Object.hasOwnProperty.call(message, "sourceProperty"))
23928
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceProperty);
23929
+ if (message.field != null && Object.hasOwnProperty.call(message, "field"))
23930
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.field);
23931
+ return writer;
23932
+ };
23933
+
23934
+ /**
23935
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify|verify} messages.
23936
+ * @function encodeDelimited
23937
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23938
+ * @static
23939
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding} message Binding message or plain object to encode
23940
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23941
+ * @returns {$protobuf.Writer} Writer
23942
+ */
23943
+ Binding.encodeDelimited = function encodeDelimited(message, writer) {
23944
+ return this.encode(message, writer).ldelim();
23945
+ };
23946
+
23947
+ /**
23948
+ * Decodes a Binding message from the specified reader or buffer.
23949
+ * @function decode
23950
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23951
+ * @static
23952
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23953
+ * @param {number} [length] Message length if known beforehand
23954
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
23955
+ * @throws {Error} If the payload is not a reader or valid buffer
23956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23957
+ */
23958
+ Binding.decode = function decode(reader, length) {
23959
+ if (!(reader instanceof $Reader))
23960
+ reader = $Reader.create(reader);
23961
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding();
23962
+ while (reader.pos < end) {
23963
+ var tag = reader.uint32();
23964
+ switch (tag >>> 3) {
23965
+ case 1:
23966
+ message.source = reader.uint32();
23967
+ break;
23968
+ case 2:
23969
+ message.sourceProperty = reader.string();
23970
+ break;
23971
+ case 3:
23972
+ message.field = reader.string();
23973
+ break;
23974
+ default:
23975
+ reader.skipType(tag & 7);
23976
+ break;
23977
+ }
23978
+ }
23979
+ return message;
23980
+ };
23981
+
23982
+ /**
23983
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
23984
+ * @function decodeDelimited
23985
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
23986
+ * @static
23987
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23988
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
23989
+ * @throws {Error} If the payload is not a reader or valid buffer
23990
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23991
+ */
23992
+ Binding.decodeDelimited = function decodeDelimited(reader) {
23993
+ if (!(reader instanceof $Reader))
23994
+ reader = new $Reader(reader);
23995
+ return this.decode(reader, reader.uint32());
23996
+ };
23997
+
23998
+ /**
23999
+ * Verifies a Binding message.
24000
+ * @function verify
24001
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
24002
+ * @static
24003
+ * @param {Object.<string,*>} message Plain object to verify
24004
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24005
+ */
24006
+ Binding.verify = function verify(message) {
24007
+ if (typeof message !== "object" || message === null)
24008
+ return "object expected";
24009
+ if (message.source != null && message.hasOwnProperty("source"))
24010
+ if (!$util.isInteger(message.source))
24011
+ return "source: integer expected";
24012
+ if (message.sourceProperty != null && message.hasOwnProperty("sourceProperty"))
24013
+ if (!$util.isString(message.sourceProperty))
24014
+ return "sourceProperty: string expected";
24015
+ if (message.field != null && message.hasOwnProperty("field"))
24016
+ if (!$util.isString(message.field))
24017
+ return "field: string expected";
24018
+ return null;
24019
+ };
24020
+
24021
+ /**
24022
+ * Creates a Binding message from a plain object. Also converts values to their respective internal types.
24023
+ * @function fromObject
24024
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
24025
+ * @static
24026
+ * @param {Object.<string,*>} object Plain object
24027
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
24028
+ */
24029
+ Binding.fromObject = function fromObject(object) {
24030
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding)
24031
+ return object;
24032
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding();
24033
+ if (object.source != null)
24034
+ message.source = object.source >>> 0;
24035
+ if (object.sourceProperty != null)
24036
+ message.sourceProperty = String(object.sourceProperty);
24037
+ if (object.field != null)
24038
+ message.field = String(object.field);
24039
+ return message;
24040
+ };
24041
+
24042
+ /**
24043
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
24044
+ * @function toObject
24045
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
24046
+ * @static
24047
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} message Binding
24048
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24049
+ * @returns {Object.<string,*>} Plain object
24050
+ */
24051
+ Binding.toObject = function toObject(message, options) {
24052
+ if (!options)
24053
+ options = {};
24054
+ var object = {};
24055
+ if (options.defaults) {
24056
+ object.source = 0;
24057
+ object.sourceProperty = "";
24058
+ object.field = "";
24059
+ }
24060
+ if (message.source != null && message.hasOwnProperty("source"))
24061
+ object.source = message.source;
24062
+ if (message.sourceProperty != null && message.hasOwnProperty("sourceProperty"))
24063
+ object.sourceProperty = message.sourceProperty;
24064
+ if (message.field != null && message.hasOwnProperty("field"))
24065
+ object.field = message.field;
24066
+ return object;
24067
+ };
24068
+
24069
+ /**
24070
+ * Converts this Binding to JSON.
24071
+ * @function toJSON
24072
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
24073
+ * @instance
24074
+ * @returns {Object.<string,*>} JSON object
24075
+ */
24076
+ Binding.prototype.toJSON = function toJSON() {
24077
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24078
+ };
24079
+
24080
+ return Binding;
24081
+ })();
24082
+
24083
+ return SubQuery;
24084
+ })();
24085
+
24086
+ return GetDocumentsRequestV1;
24087
+ })();
24088
+
24089
+ return GetDocumentsRequest;
24090
+ })();
24091
+
24092
+ v0.GetDocumentsResponse = (function() {
24093
+
24094
+ /**
24095
+ * Properties of a GetDocumentsResponse.
24096
+ * @memberof org.dash.platform.dapi.v0
24097
+ * @interface IGetDocumentsResponse
24098
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null} [v0] GetDocumentsResponse v0
24099
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null} [v1] GetDocumentsResponse v1
24100
+ */
24101
+
24102
+ /**
24103
+ * Constructs a new GetDocumentsResponse.
24104
+ * @memberof org.dash.platform.dapi.v0
24105
+ * @classdesc Represents a GetDocumentsResponse.
24106
+ * @implements IGetDocumentsResponse
24107
+ * @constructor
24108
+ * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
24109
+ */
24110
+ function GetDocumentsResponse(properties) {
24111
+ if (properties)
24112
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24113
+ if (properties[keys[i]] != null)
24114
+ this[keys[i]] = properties[keys[i]];
24115
+ }
24116
+
24117
+ /**
24118
+ * GetDocumentsResponse v0.
24119
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null|undefined} v0
24120
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24121
+ * @instance
24122
+ */
24123
+ GetDocumentsResponse.prototype.v0 = null;
24124
+
24125
+ /**
24126
+ * GetDocumentsResponse v1.
24127
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null|undefined} v1
24128
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24129
+ * @instance
24130
+ */
24131
+ GetDocumentsResponse.prototype.v1 = null;
24132
+
24133
+ // OneOf field names bound to virtual getters and setters
24134
+ var $oneOfFields;
24135
+
24136
+ /**
24137
+ * GetDocumentsResponse version.
24138
+ * @member {"v0"|"v1"|undefined} version
24139
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24140
+ * @instance
24141
+ */
24142
+ Object.defineProperty(GetDocumentsResponse.prototype, "version", {
24143
+ get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
24144
+ set: $util.oneOfSetter($oneOfFields)
24145
+ });
24146
+
24147
+ /**
24148
+ * Creates a new GetDocumentsResponse instance using the specified properties.
24149
+ * @function create
24150
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24151
+ * @static
24152
+ * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
24153
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse instance
24154
+ */
24155
+ GetDocumentsResponse.create = function create(properties) {
24156
+ return new GetDocumentsResponse(properties);
24157
+ };
24158
+
24159
+ /**
24160
+ * Encodes the specified GetDocumentsResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
24161
+ * @function encode
24162
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24163
+ * @static
24164
+ * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
24165
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24166
+ * @returns {$protobuf.Writer} Writer
24167
+ */
24168
+ GetDocumentsResponse.encode = function encode(message, writer) {
24169
+ if (!writer)
24170
+ writer = $Writer.create();
24171
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
24172
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
24173
+ if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
24174
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
24175
+ return writer;
24176
+ };
24177
+
24178
+ /**
24179
+ * Encodes the specified GetDocumentsResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
24180
+ * @function encodeDelimited
24181
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24182
+ * @static
24183
+ * @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
24184
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24185
+ * @returns {$protobuf.Writer} Writer
24186
+ */
24187
+ GetDocumentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
24188
+ return this.encode(message, writer).ldelim();
24189
+ };
24190
+
24191
+ /**
24192
+ * Decodes a GetDocumentsResponse message from the specified reader or buffer.
24193
+ * @function decode
24194
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24195
+ * @static
24196
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24197
+ * @param {number} [length] Message length if known beforehand
24198
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
24199
+ * @throws {Error} If the payload is not a reader or valid buffer
24200
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24201
+ */
24202
+ GetDocumentsResponse.decode = function decode(reader, length) {
24203
+ if (!(reader instanceof $Reader))
24204
+ reader = $Reader.create(reader);
24205
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse();
24206
+ while (reader.pos < end) {
24207
+ var tag = reader.uint32();
24208
+ switch (tag >>> 3) {
24209
+ case 1:
24210
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.decode(reader, reader.uint32());
24211
+ break;
24212
+ case 2:
24213
+ message.v1 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.decode(reader, reader.uint32());
24214
+ break;
24215
+ default:
24216
+ reader.skipType(tag & 7);
24217
+ break;
24218
+ }
24219
+ }
24220
+ return message;
24221
+ };
24222
+
24223
+ /**
24224
+ * Decodes a GetDocumentsResponse message from the specified reader or buffer, length delimited.
24225
+ * @function decodeDelimited
24226
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24227
+ * @static
24228
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24229
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
24230
+ * @throws {Error} If the payload is not a reader or valid buffer
24231
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24232
+ */
24233
+ GetDocumentsResponse.decodeDelimited = function decodeDelimited(reader) {
24234
+ if (!(reader instanceof $Reader))
24235
+ reader = new $Reader(reader);
24236
+ return this.decode(reader, reader.uint32());
24237
+ };
24238
+
24239
+ /**
24240
+ * Verifies a GetDocumentsResponse message.
24241
+ * @function verify
24242
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
24243
+ * @static
24244
+ * @param {Object.<string,*>} message Plain object to verify
24245
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24246
+ */
24247
+ GetDocumentsResponse.verify = function verify(message) {
24248
+ if (typeof message !== "object" || message === null)
24249
+ return "object expected";
24250
+ var properties = {};
24251
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
24252
+ properties.version = 1;
24253
+ {
23574
24254
  var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.verify(message.v0);
23575
24255
  if (error)
23576
24256
  return "v0." + error;
@@ -27641,6 +28321,7 @@ $root.org = (function() {
27641
28321
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
27642
28322
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
27643
28323
  * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null} [chained] ResultData chained
28324
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments|null} [composite] ResultData composite
27644
28325
  */
27645
28326
 
27646
28327
  /**
@@ -27706,17 +28387,25 @@ $root.org = (function() {
27706
28387
  */
27707
28388
  ResultData.prototype.chained = null;
27708
28389
 
28390
+ /**
28391
+ * ResultData composite.
28392
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments|null|undefined} composite
28393
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
28394
+ * @instance
28395
+ */
28396
+ ResultData.prototype.composite = null;
28397
+
27709
28398
  // OneOf field names bound to virtual getters and setters
27710
28399
  var $oneOfFields;
27711
28400
 
27712
28401
  /**
27713
28402
  * ResultData variant.
27714
- * @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|undefined} variant
28403
+ * @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|"composite"|undefined} variant
27715
28404
  * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
27716
28405
  * @instance
27717
28406
  */
27718
28407
  Object.defineProperty(ResultData.prototype, "variant", {
27719
- get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained"]),
28408
+ get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained", "composite"]),
27720
28409
  set: $util.oneOfSetter($oneOfFields)
27721
28410
  });
27722
28411
 
@@ -27756,6 +28445,8 @@ $root.org = (function() {
27756
28445
  $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
27757
28446
  if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
27758
28447
  $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.encode(message.chained, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
28448
+ if (message.composite != null && Object.hasOwnProperty.call(message, "composite"))
28449
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.encode(message.composite, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
27759
28450
  return writer;
27760
28451
  };
27761
28452
 
@@ -27808,6 +28499,9 @@ $root.org = (function() {
27808
28499
  case 6:
27809
28500
  message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.decode(reader, reader.uint32());
27810
28501
  break;
28502
+ case 7:
28503
+ message.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.decode(reader, reader.uint32());
28504
+ break;
27811
28505
  default:
27812
28506
  reader.skipType(tag & 7);
27813
28507
  break;
@@ -27902,6 +28596,16 @@ $root.org = (function() {
27902
28596
  return "chained." + error;
27903
28597
  }
27904
28598
  }
28599
+ if (message.composite != null && message.hasOwnProperty("composite")) {
28600
+ if (properties.variant === 1)
28601
+ return "variant: multiple values";
28602
+ properties.variant = 1;
28603
+ {
28604
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify(message.composite);
28605
+ if (error)
28606
+ return "composite." + error;
28607
+ }
28608
+ }
27905
28609
  return null;
27906
28610
  };
27907
28611
 
@@ -27947,6 +28651,11 @@ $root.org = (function() {
27947
28651
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.chained: object expected");
27948
28652
  message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.fromObject(object.chained);
27949
28653
  }
28654
+ if (object.composite != null) {
28655
+ if (typeof object.composite !== "object")
28656
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.composite: object expected");
28657
+ message.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.fromObject(object.composite);
28658
+ }
27950
28659
  return message;
27951
28660
  };
27952
28661
 
@@ -27993,6 +28702,11 @@ $root.org = (function() {
27993
28702
  if (options.oneofs)
27994
28703
  object.variant = "chained";
27995
28704
  }
28705
+ if (message.composite != null && message.hasOwnProperty("composite")) {
28706
+ object.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.toObject(message.composite, options);
28707
+ if (options.oneofs)
28708
+ object.variant = "composite";
28709
+ }
27996
28710
  return object;
27997
28711
  };
27998
28712
 
@@ -28015,22 +28729,270 @@ $root.org = (function() {
28015
28729
  /**
28016
28730
  * Properties of a ChainedDocuments.
28017
28731
  * @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
28732
+ * @interface IChainedDocuments
28733
+ * @property {Array.<Uint8Array>|null} [innerDocuments] ChainedDocuments innerDocuments
28734
+ * @property {Array.<Uint8Array>|null} [outerDocuments] ChainedDocuments outerDocuments
28735
+ */
28736
+
28737
+ /**
28738
+ * Constructs a new ChainedDocuments.
28739
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
28740
+ * @classdesc Represents a ChainedDocuments.
28741
+ * @implements IChainedDocuments
28742
+ * @constructor
28743
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
28744
+ */
28745
+ function ChainedDocuments(properties) {
28746
+ this.innerDocuments = [];
28747
+ this.outerDocuments = [];
28748
+ if (properties)
28749
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28750
+ if (properties[keys[i]] != null)
28751
+ this[keys[i]] = properties[keys[i]];
28752
+ }
28753
+
28754
+ /**
28755
+ * ChainedDocuments innerDocuments.
28756
+ * @member {Array.<Uint8Array>} innerDocuments
28757
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28758
+ * @instance
28759
+ */
28760
+ ChainedDocuments.prototype.innerDocuments = $util.emptyArray;
28761
+
28762
+ /**
28763
+ * ChainedDocuments outerDocuments.
28764
+ * @member {Array.<Uint8Array>} outerDocuments
28765
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28766
+ * @instance
28767
+ */
28768
+ ChainedDocuments.prototype.outerDocuments = $util.emptyArray;
28769
+
28770
+ /**
28771
+ * Creates a new ChainedDocuments instance using the specified properties.
28772
+ * @function create
28773
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28774
+ * @static
28775
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
28776
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments instance
28777
+ */
28778
+ ChainedDocuments.create = function create(properties) {
28779
+ return new ChainedDocuments(properties);
28780
+ };
28781
+
28782
+ /**
28783
+ * Encodes the specified ChainedDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
28784
+ * @function encode
28785
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28786
+ * @static
28787
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
28788
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28789
+ * @returns {$protobuf.Writer} Writer
28790
+ */
28791
+ ChainedDocuments.encode = function encode(message, writer) {
28792
+ if (!writer)
28793
+ writer = $Writer.create();
28794
+ if (message.innerDocuments != null && message.innerDocuments.length)
28795
+ for (var i = 0; i < message.innerDocuments.length; ++i)
28796
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.innerDocuments[i]);
28797
+ if (message.outerDocuments != null && message.outerDocuments.length)
28798
+ for (var i = 0; i < message.outerDocuments.length; ++i)
28799
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.outerDocuments[i]);
28800
+ return writer;
28801
+ };
28802
+
28803
+ /**
28804
+ * Encodes the specified ChainedDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
28805
+ * @function encodeDelimited
28806
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28807
+ * @static
28808
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
28809
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28810
+ * @returns {$protobuf.Writer} Writer
28811
+ */
28812
+ ChainedDocuments.encodeDelimited = function encodeDelimited(message, writer) {
28813
+ return this.encode(message, writer).ldelim();
28814
+ };
28815
+
28816
+ /**
28817
+ * Decodes a ChainedDocuments message from the specified reader or buffer.
28818
+ * @function decode
28819
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28820
+ * @static
28821
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28822
+ * @param {number} [length] Message length if known beforehand
28823
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28824
+ * @throws {Error} If the payload is not a reader or valid buffer
28825
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28826
+ */
28827
+ ChainedDocuments.decode = function decode(reader, length) {
28828
+ if (!(reader instanceof $Reader))
28829
+ reader = $Reader.create(reader);
28830
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
28831
+ while (reader.pos < end) {
28832
+ var tag = reader.uint32();
28833
+ switch (tag >>> 3) {
28834
+ case 1:
28835
+ if (!(message.innerDocuments && message.innerDocuments.length))
28836
+ message.innerDocuments = [];
28837
+ message.innerDocuments.push(reader.bytes());
28838
+ break;
28839
+ case 2:
28840
+ if (!(message.outerDocuments && message.outerDocuments.length))
28841
+ message.outerDocuments = [];
28842
+ message.outerDocuments.push(reader.bytes());
28843
+ break;
28844
+ default:
28845
+ reader.skipType(tag & 7);
28846
+ break;
28847
+ }
28848
+ }
28849
+ return message;
28850
+ };
28851
+
28852
+ /**
28853
+ * Decodes a ChainedDocuments message from the specified reader or buffer, length delimited.
28854
+ * @function decodeDelimited
28855
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28856
+ * @static
28857
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28858
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28859
+ * @throws {Error} If the payload is not a reader or valid buffer
28860
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28861
+ */
28862
+ ChainedDocuments.decodeDelimited = function decodeDelimited(reader) {
28863
+ if (!(reader instanceof $Reader))
28864
+ reader = new $Reader(reader);
28865
+ return this.decode(reader, reader.uint32());
28866
+ };
28867
+
28868
+ /**
28869
+ * Verifies a ChainedDocuments message.
28870
+ * @function verify
28871
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28872
+ * @static
28873
+ * @param {Object.<string,*>} message Plain object to verify
28874
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28875
+ */
28876
+ ChainedDocuments.verify = function verify(message) {
28877
+ if (typeof message !== "object" || message === null)
28878
+ return "object expected";
28879
+ if (message.innerDocuments != null && message.hasOwnProperty("innerDocuments")) {
28880
+ if (!Array.isArray(message.innerDocuments))
28881
+ return "innerDocuments: array expected";
28882
+ for (var i = 0; i < message.innerDocuments.length; ++i)
28883
+ if (!(message.innerDocuments[i] && typeof message.innerDocuments[i].length === "number" || $util.isString(message.innerDocuments[i])))
28884
+ return "innerDocuments: buffer[] expected";
28885
+ }
28886
+ if (message.outerDocuments != null && message.hasOwnProperty("outerDocuments")) {
28887
+ if (!Array.isArray(message.outerDocuments))
28888
+ return "outerDocuments: array expected";
28889
+ for (var i = 0; i < message.outerDocuments.length; ++i)
28890
+ if (!(message.outerDocuments[i] && typeof message.outerDocuments[i].length === "number" || $util.isString(message.outerDocuments[i])))
28891
+ return "outerDocuments: buffer[] expected";
28892
+ }
28893
+ return null;
28894
+ };
28895
+
28896
+ /**
28897
+ * Creates a ChainedDocuments message from a plain object. Also converts values to their respective internal types.
28898
+ * @function fromObject
28899
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28900
+ * @static
28901
+ * @param {Object.<string,*>} object Plain object
28902
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
28903
+ */
28904
+ ChainedDocuments.fromObject = function fromObject(object) {
28905
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments)
28906
+ return object;
28907
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
28908
+ if (object.innerDocuments) {
28909
+ if (!Array.isArray(object.innerDocuments))
28910
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.innerDocuments: array expected");
28911
+ message.innerDocuments = [];
28912
+ for (var i = 0; i < object.innerDocuments.length; ++i)
28913
+ if (typeof object.innerDocuments[i] === "string")
28914
+ $util.base64.decode(object.innerDocuments[i], message.innerDocuments[i] = $util.newBuffer($util.base64.length(object.innerDocuments[i])), 0);
28915
+ else if (object.innerDocuments[i].length >= 0)
28916
+ message.innerDocuments[i] = object.innerDocuments[i];
28917
+ }
28918
+ if (object.outerDocuments) {
28919
+ if (!Array.isArray(object.outerDocuments))
28920
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.outerDocuments: array expected");
28921
+ message.outerDocuments = [];
28922
+ for (var i = 0; i < object.outerDocuments.length; ++i)
28923
+ if (typeof object.outerDocuments[i] === "string")
28924
+ $util.base64.decode(object.outerDocuments[i], message.outerDocuments[i] = $util.newBuffer($util.base64.length(object.outerDocuments[i])), 0);
28925
+ else if (object.outerDocuments[i].length >= 0)
28926
+ message.outerDocuments[i] = object.outerDocuments[i];
28927
+ }
28928
+ return message;
28929
+ };
28930
+
28931
+ /**
28932
+ * Creates a plain object from a ChainedDocuments message. Also converts values to other types if specified.
28933
+ * @function toObject
28934
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28935
+ * @static
28936
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} message ChainedDocuments
28937
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28938
+ * @returns {Object.<string,*>} Plain object
28939
+ */
28940
+ ChainedDocuments.toObject = function toObject(message, options) {
28941
+ if (!options)
28942
+ options = {};
28943
+ var object = {};
28944
+ if (options.arrays || options.defaults) {
28945
+ object.innerDocuments = [];
28946
+ object.outerDocuments = [];
28947
+ }
28948
+ if (message.innerDocuments && message.innerDocuments.length) {
28949
+ object.innerDocuments = [];
28950
+ for (var j = 0; j < message.innerDocuments.length; ++j)
28951
+ 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];
28952
+ }
28953
+ if (message.outerDocuments && message.outerDocuments.length) {
28954
+ object.outerDocuments = [];
28955
+ for (var j = 0; j < message.outerDocuments.length; ++j)
28956
+ 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];
28957
+ }
28958
+ return object;
28959
+ };
28960
+
28961
+ /**
28962
+ * Converts this ChainedDocuments to JSON.
28963
+ * @function toJSON
28964
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
28965
+ * @instance
28966
+ * @returns {Object.<string,*>} JSON object
28967
+ */
28968
+ ChainedDocuments.prototype.toJSON = function toJSON() {
28969
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28970
+ };
28971
+
28972
+ return ChainedDocuments;
28973
+ })();
28974
+
28975
+ GetDocumentsResponseV1.CompositeDocuments = (function() {
28976
+
28977
+ /**
28978
+ * Properties of a CompositeDocuments.
28979
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
28980
+ * @interface ICompositeDocuments
28981
+ * @property {Array.<Uint8Array>|null} [pageDocuments] CompositeDocuments pageDocuments
28982
+ * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult>|null} [subResults] CompositeDocuments subResults
28021
28983
  */
28022
28984
 
28023
28985
  /**
28024
- * Constructs a new ChainedDocuments.
28986
+ * Constructs a new CompositeDocuments.
28025
28987
  * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
28026
- * @classdesc Represents a ChainedDocuments.
28027
- * @implements IChainedDocuments
28988
+ * @classdesc Represents a CompositeDocuments.
28989
+ * @implements ICompositeDocuments
28028
28990
  * @constructor
28029
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
28991
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments=} [properties] Properties to set
28030
28992
  */
28031
- function ChainedDocuments(properties) {
28032
- this.innerDocuments = [];
28033
- this.outerDocuments = [];
28993
+ function CompositeDocuments(properties) {
28994
+ this.pageDocuments = [];
28995
+ this.subResults = [];
28034
28996
  if (properties)
28035
28997
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28036
28998
  if (properties[keys[i]] != null)
@@ -28038,94 +29000,94 @@ $root.org = (function() {
28038
29000
  }
28039
29001
 
28040
29002
  /**
28041
- * ChainedDocuments innerDocuments.
28042
- * @member {Array.<Uint8Array>} innerDocuments
28043
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29003
+ * CompositeDocuments pageDocuments.
29004
+ * @member {Array.<Uint8Array>} pageDocuments
29005
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28044
29006
  * @instance
28045
29007
  */
28046
- ChainedDocuments.prototype.innerDocuments = $util.emptyArray;
29008
+ CompositeDocuments.prototype.pageDocuments = $util.emptyArray;
28047
29009
 
28048
29010
  /**
28049
- * ChainedDocuments outerDocuments.
28050
- * @member {Array.<Uint8Array>} outerDocuments
28051
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29011
+ * CompositeDocuments subResults.
29012
+ * @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult>} subResults
29013
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28052
29014
  * @instance
28053
29015
  */
28054
- ChainedDocuments.prototype.outerDocuments = $util.emptyArray;
29016
+ CompositeDocuments.prototype.subResults = $util.emptyArray;
28055
29017
 
28056
29018
  /**
28057
- * Creates a new ChainedDocuments instance using the specified properties.
29019
+ * Creates a new CompositeDocuments instance using the specified properties.
28058
29020
  * @function create
28059
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29021
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28060
29022
  * @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
29023
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments=} [properties] Properties to set
29024
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments instance
28063
29025
  */
28064
- ChainedDocuments.create = function create(properties) {
28065
- return new ChainedDocuments(properties);
29026
+ CompositeDocuments.create = function create(properties) {
29027
+ return new CompositeDocuments(properties);
28066
29028
  };
28067
29029
 
28068
29030
  /**
28069
- * Encodes the specified ChainedDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
29031
+ * Encodes the specified CompositeDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify|verify} messages.
28070
29032
  * @function encode
28071
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29033
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28072
29034
  * @static
28073
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
29035
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments} message CompositeDocuments message or plain object to encode
28074
29036
  * @param {$protobuf.Writer} [writer] Writer to encode to
28075
29037
  * @returns {$protobuf.Writer} Writer
28076
29038
  */
28077
- ChainedDocuments.encode = function encode(message, writer) {
29039
+ CompositeDocuments.encode = function encode(message, writer) {
28078
29040
  if (!writer)
28079
29041
  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]);
29042
+ if (message.pageDocuments != null && message.pageDocuments.length)
29043
+ for (var i = 0; i < message.pageDocuments.length; ++i)
29044
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.pageDocuments[i]);
29045
+ if (message.subResults != null && message.subResults.length)
29046
+ for (var i = 0; i < message.subResults.length; ++i)
29047
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.encode(message.subResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
28086
29048
  return writer;
28087
29049
  };
28088
29050
 
28089
29051
  /**
28090
- * Encodes the specified ChainedDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
29052
+ * Encodes the specified CompositeDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify|verify} messages.
28091
29053
  * @function encodeDelimited
28092
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29054
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28093
29055
  * @static
28094
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
29056
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments} message CompositeDocuments message or plain object to encode
28095
29057
  * @param {$protobuf.Writer} [writer] Writer to encode to
28096
29058
  * @returns {$protobuf.Writer} Writer
28097
29059
  */
28098
- ChainedDocuments.encodeDelimited = function encodeDelimited(message, writer) {
29060
+ CompositeDocuments.encodeDelimited = function encodeDelimited(message, writer) {
28099
29061
  return this.encode(message, writer).ldelim();
28100
29062
  };
28101
29063
 
28102
29064
  /**
28103
- * Decodes a ChainedDocuments message from the specified reader or buffer.
29065
+ * Decodes a CompositeDocuments message from the specified reader or buffer.
28104
29066
  * @function decode
28105
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29067
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28106
29068
  * @static
28107
29069
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28108
29070
  * @param {number} [length] Message length if known beforehand
28109
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
29071
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
28110
29072
  * @throws {Error} If the payload is not a reader or valid buffer
28111
29073
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
28112
29074
  */
28113
- ChainedDocuments.decode = function decode(reader, length) {
29075
+ CompositeDocuments.decode = function decode(reader, length) {
28114
29076
  if (!(reader instanceof $Reader))
28115
29077
  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();
29078
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments();
28117
29079
  while (reader.pos < end) {
28118
29080
  var tag = reader.uint32();
28119
29081
  switch (tag >>> 3) {
28120
29082
  case 1:
28121
- if (!(message.innerDocuments && message.innerDocuments.length))
28122
- message.innerDocuments = [];
28123
- message.innerDocuments.push(reader.bytes());
29083
+ if (!(message.pageDocuments && message.pageDocuments.length))
29084
+ message.pageDocuments = [];
29085
+ message.pageDocuments.push(reader.bytes());
28124
29086
  break;
28125
29087
  case 2:
28126
- if (!(message.outerDocuments && message.outerDocuments.length))
28127
- message.outerDocuments = [];
28128
- message.outerDocuments.push(reader.bytes());
29088
+ if (!(message.subResults && message.subResults.length))
29089
+ message.subResults = [];
29090
+ message.subResults.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.decode(reader, reader.uint32()));
28129
29091
  break;
28130
29092
  default:
28131
29093
  reader.skipType(tag & 7);
@@ -28136,126 +29098,373 @@ $root.org = (function() {
28136
29098
  };
28137
29099
 
28138
29100
  /**
28139
- * Decodes a ChainedDocuments message from the specified reader or buffer, length delimited.
29101
+ * Decodes a CompositeDocuments message from the specified reader or buffer, length delimited.
28140
29102
  * @function decodeDelimited
28141
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29103
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28142
29104
  * @static
28143
29105
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28144
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
29106
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
28145
29107
  * @throws {Error} If the payload is not a reader or valid buffer
28146
29108
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
28147
29109
  */
28148
- ChainedDocuments.decodeDelimited = function decodeDelimited(reader) {
29110
+ CompositeDocuments.decodeDelimited = function decodeDelimited(reader) {
28149
29111
  if (!(reader instanceof $Reader))
28150
29112
  reader = new $Reader(reader);
28151
29113
  return this.decode(reader, reader.uint32());
28152
29114
  };
28153
29115
 
28154
29116
  /**
28155
- * Verifies a ChainedDocuments message.
29117
+ * Verifies a CompositeDocuments message.
28156
29118
  * @function verify
28157
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29119
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28158
29120
  * @static
28159
29121
  * @param {Object.<string,*>} message Plain object to verify
28160
29122
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
28161
29123
  */
28162
- ChainedDocuments.verify = function verify(message) {
29124
+ CompositeDocuments.verify = function verify(message) {
28163
29125
  if (typeof message !== "object" || message === null)
28164
29126
  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";
29127
+ if (message.pageDocuments != null && message.hasOwnProperty("pageDocuments")) {
29128
+ if (!Array.isArray(message.pageDocuments))
29129
+ return "pageDocuments: array expected";
29130
+ for (var i = 0; i < message.pageDocuments.length; ++i)
29131
+ if (!(message.pageDocuments[i] && typeof message.pageDocuments[i].length === "number" || $util.isString(message.pageDocuments[i])))
29132
+ return "pageDocuments: buffer[] expected";
29133
+ }
29134
+ if (message.subResults != null && message.hasOwnProperty("subResults")) {
29135
+ if (!Array.isArray(message.subResults))
29136
+ return "subResults: array expected";
29137
+ for (var i = 0; i < message.subResults.length; ++i) {
29138
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify(message.subResults[i]);
29139
+ if (error)
29140
+ return "subResults." + error;
29141
+ }
28178
29142
  }
28179
29143
  return null;
28180
29144
  };
28181
29145
 
28182
29146
  /**
28183
- * Creates a ChainedDocuments message from a plain object. Also converts values to their respective internal types.
29147
+ * Creates a CompositeDocuments message from a plain object. Also converts values to their respective internal types.
28184
29148
  * @function fromObject
28185
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29149
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28186
29150
  * @static
28187
29151
  * @param {Object.<string,*>} object Plain object
28188
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
29152
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
28189
29153
  */
28190
- ChainedDocuments.fromObject = function fromObject(object) {
28191
- if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments)
29154
+ CompositeDocuments.fromObject = function fromObject(object) {
29155
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments)
28192
29156
  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];
29157
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments();
29158
+ if (object.pageDocuments) {
29159
+ if (!Array.isArray(object.pageDocuments))
29160
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.pageDocuments: array expected");
29161
+ message.pageDocuments = [];
29162
+ for (var i = 0; i < object.pageDocuments.length; ++i)
29163
+ if (typeof object.pageDocuments[i] === "string")
29164
+ $util.base64.decode(object.pageDocuments[i], message.pageDocuments[i] = $util.newBuffer($util.base64.length(object.pageDocuments[i])), 0);
29165
+ else if (object.pageDocuments[i].length >= 0)
29166
+ message.pageDocuments[i] = object.pageDocuments[i];
29167
+ }
29168
+ if (object.subResults) {
29169
+ if (!Array.isArray(object.subResults))
29170
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.subResults: array expected");
29171
+ message.subResults = [];
29172
+ for (var i = 0; i < object.subResults.length; ++i) {
29173
+ if (typeof object.subResults[i] !== "object")
29174
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.subResults: object expected");
29175
+ message.subResults[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.fromObject(object.subResults[i]);
29176
+ }
28213
29177
  }
28214
29178
  return message;
28215
29179
  };
28216
29180
 
28217
29181
  /**
28218
- * Creates a plain object from a ChainedDocuments message. Also converts values to other types if specified.
29182
+ * Creates a plain object from a CompositeDocuments message. Also converts values to other types if specified.
28219
29183
  * @function toObject
28220
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29184
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28221
29185
  * @static
28222
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} message ChainedDocuments
29186
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} message CompositeDocuments
28223
29187
  * @param {$protobuf.IConversionOptions} [options] Conversion options
28224
29188
  * @returns {Object.<string,*>} Plain object
28225
29189
  */
28226
- ChainedDocuments.toObject = function toObject(message, options) {
29190
+ CompositeDocuments.toObject = function toObject(message, options) {
28227
29191
  if (!options)
28228
29192
  options = {};
28229
29193
  var object = {};
28230
29194
  if (options.arrays || options.defaults) {
28231
- object.innerDocuments = [];
28232
- object.outerDocuments = [];
29195
+ object.pageDocuments = [];
29196
+ object.subResults = [];
28233
29197
  }
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];
29198
+ if (message.pageDocuments && message.pageDocuments.length) {
29199
+ object.pageDocuments = [];
29200
+ for (var j = 0; j < message.pageDocuments.length; ++j)
29201
+ object.pageDocuments[j] = options.bytes === String ? $util.base64.encode(message.pageDocuments[j], 0, message.pageDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.pageDocuments[j]) : message.pageDocuments[j];
28238
29202
  }
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];
29203
+ if (message.subResults && message.subResults.length) {
29204
+ object.subResults = [];
29205
+ for (var j = 0; j < message.subResults.length; ++j)
29206
+ object.subResults[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.toObject(message.subResults[j], options);
28243
29207
  }
28244
29208
  return object;
28245
29209
  };
28246
29210
 
28247
29211
  /**
28248
- * Converts this ChainedDocuments to JSON.
29212
+ * Converts this CompositeDocuments to JSON.
28249
29213
  * @function toJSON
28250
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
29214
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
28251
29215
  * @instance
28252
29216
  * @returns {Object.<string,*>} JSON object
28253
29217
  */
28254
- ChainedDocuments.prototype.toJSON = function toJSON() {
29218
+ CompositeDocuments.prototype.toJSON = function toJSON() {
28255
29219
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28256
29220
  };
28257
29221
 
28258
- return ChainedDocuments;
29222
+ CompositeDocuments.SubQueryResult = (function() {
29223
+
29224
+ /**
29225
+ * Properties of a SubQueryResult.
29226
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
29227
+ * @interface ISubQueryResult
29228
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] SubQueryResult documents
29229
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountEntries|null} [counts] SubQueryResult counts
29230
+ */
29231
+
29232
+ /**
29233
+ * Constructs a new SubQueryResult.
29234
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
29235
+ * @classdesc Represents a SubQueryResult.
29236
+ * @implements ISubQueryResult
29237
+ * @constructor
29238
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult=} [properties] Properties to set
29239
+ */
29240
+ function SubQueryResult(properties) {
29241
+ if (properties)
29242
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29243
+ if (properties[keys[i]] != null)
29244
+ this[keys[i]] = properties[keys[i]];
29245
+ }
29246
+
29247
+ /**
29248
+ * SubQueryResult documents.
29249
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
29250
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29251
+ * @instance
29252
+ */
29253
+ SubQueryResult.prototype.documents = null;
29254
+
29255
+ /**
29256
+ * SubQueryResult counts.
29257
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountEntries|null|undefined} counts
29258
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29259
+ * @instance
29260
+ */
29261
+ SubQueryResult.prototype.counts = null;
29262
+
29263
+ // OneOf field names bound to virtual getters and setters
29264
+ var $oneOfFields;
29265
+
29266
+ /**
29267
+ * SubQueryResult result.
29268
+ * @member {"documents"|"counts"|undefined} result
29269
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29270
+ * @instance
29271
+ */
29272
+ Object.defineProperty(SubQueryResult.prototype, "result", {
29273
+ get: $util.oneOfGetter($oneOfFields = ["documents", "counts"]),
29274
+ set: $util.oneOfSetter($oneOfFields)
29275
+ });
29276
+
29277
+ /**
29278
+ * Creates a new SubQueryResult instance using the specified properties.
29279
+ * @function create
29280
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29281
+ * @static
29282
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult=} [properties] Properties to set
29283
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult instance
29284
+ */
29285
+ SubQueryResult.create = function create(properties) {
29286
+ return new SubQueryResult(properties);
29287
+ };
29288
+
29289
+ /**
29290
+ * Encodes the specified SubQueryResult message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify|verify} messages.
29291
+ * @function encode
29292
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29293
+ * @static
29294
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult} message SubQueryResult message or plain object to encode
29295
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29296
+ * @returns {$protobuf.Writer} Writer
29297
+ */
29298
+ SubQueryResult.encode = function encode(message, writer) {
29299
+ if (!writer)
29300
+ writer = $Writer.create();
29301
+ if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
29302
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
29303
+ if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
29304
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
29305
+ return writer;
29306
+ };
29307
+
29308
+ /**
29309
+ * Encodes the specified SubQueryResult message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify|verify} messages.
29310
+ * @function encodeDelimited
29311
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29312
+ * @static
29313
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult} message SubQueryResult message or plain object to encode
29314
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29315
+ * @returns {$protobuf.Writer} Writer
29316
+ */
29317
+ SubQueryResult.encodeDelimited = function encodeDelimited(message, writer) {
29318
+ return this.encode(message, writer).ldelim();
29319
+ };
29320
+
29321
+ /**
29322
+ * Decodes a SubQueryResult message from the specified reader or buffer.
29323
+ * @function decode
29324
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29325
+ * @static
29326
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29327
+ * @param {number} [length] Message length if known beforehand
29328
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
29329
+ * @throws {Error} If the payload is not a reader or valid buffer
29330
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29331
+ */
29332
+ SubQueryResult.decode = function decode(reader, length) {
29333
+ if (!(reader instanceof $Reader))
29334
+ reader = $Reader.create(reader);
29335
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult();
29336
+ while (reader.pos < end) {
29337
+ var tag = reader.uint32();
29338
+ switch (tag >>> 3) {
29339
+ case 1:
29340
+ message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
29341
+ break;
29342
+ case 2:
29343
+ message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.decode(reader, reader.uint32());
29344
+ break;
29345
+ default:
29346
+ reader.skipType(tag & 7);
29347
+ break;
29348
+ }
29349
+ }
29350
+ return message;
29351
+ };
29352
+
29353
+ /**
29354
+ * Decodes a SubQueryResult message from the specified reader or buffer, length delimited.
29355
+ * @function decodeDelimited
29356
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29357
+ * @static
29358
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29359
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
29360
+ * @throws {Error} If the payload is not a reader or valid buffer
29361
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29362
+ */
29363
+ SubQueryResult.decodeDelimited = function decodeDelimited(reader) {
29364
+ if (!(reader instanceof $Reader))
29365
+ reader = new $Reader(reader);
29366
+ return this.decode(reader, reader.uint32());
29367
+ };
29368
+
29369
+ /**
29370
+ * Verifies a SubQueryResult message.
29371
+ * @function verify
29372
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29373
+ * @static
29374
+ * @param {Object.<string,*>} message Plain object to verify
29375
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
29376
+ */
29377
+ SubQueryResult.verify = function verify(message) {
29378
+ if (typeof message !== "object" || message === null)
29379
+ return "object expected";
29380
+ var properties = {};
29381
+ if (message.documents != null && message.hasOwnProperty("documents")) {
29382
+ properties.result = 1;
29383
+ {
29384
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.verify(message.documents);
29385
+ if (error)
29386
+ return "documents." + error;
29387
+ }
29388
+ }
29389
+ if (message.counts != null && message.hasOwnProperty("counts")) {
29390
+ if (properties.result === 1)
29391
+ return "result: multiple values";
29392
+ properties.result = 1;
29393
+ {
29394
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.verify(message.counts);
29395
+ if (error)
29396
+ return "counts." + error;
29397
+ }
29398
+ }
29399
+ return null;
29400
+ };
29401
+
29402
+ /**
29403
+ * Creates a SubQueryResult message from a plain object. Also converts values to their respective internal types.
29404
+ * @function fromObject
29405
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29406
+ * @static
29407
+ * @param {Object.<string,*>} object Plain object
29408
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
29409
+ */
29410
+ SubQueryResult.fromObject = function fromObject(object) {
29411
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult)
29412
+ return object;
29413
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult();
29414
+ if (object.documents != null) {
29415
+ if (typeof object.documents !== "object")
29416
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.documents: object expected");
29417
+ message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.fromObject(object.documents);
29418
+ }
29419
+ if (object.counts != null) {
29420
+ if (typeof object.counts !== "object")
29421
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.counts: object expected");
29422
+ message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.fromObject(object.counts);
29423
+ }
29424
+ return message;
29425
+ };
29426
+
29427
+ /**
29428
+ * Creates a plain object from a SubQueryResult message. Also converts values to other types if specified.
29429
+ * @function toObject
29430
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29431
+ * @static
29432
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} message SubQueryResult
29433
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
29434
+ * @returns {Object.<string,*>} Plain object
29435
+ */
29436
+ SubQueryResult.toObject = function toObject(message, options) {
29437
+ if (!options)
29438
+ options = {};
29439
+ var object = {};
29440
+ if (message.documents != null && message.hasOwnProperty("documents")) {
29441
+ object.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.toObject(message.documents, options);
29442
+ if (options.oneofs)
29443
+ object.result = "documents";
29444
+ }
29445
+ if (message.counts != null && message.hasOwnProperty("counts")) {
29446
+ object.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.toObject(message.counts, options);
29447
+ if (options.oneofs)
29448
+ object.result = "counts";
29449
+ }
29450
+ return object;
29451
+ };
29452
+
29453
+ /**
29454
+ * Converts this SubQueryResult to JSON.
29455
+ * @function toJSON
29456
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
29457
+ * @instance
29458
+ * @returns {Object.<string,*>} JSON object
29459
+ */
29460
+ SubQueryResult.prototype.toJSON = function toJSON() {
29461
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29462
+ };
29463
+
29464
+ return SubQueryResult;
29465
+ })();
29466
+
29467
+ return CompositeDocuments;
28259
29468
  })();
28260
29469
 
28261
29470
  return GetDocumentsResponseV1;