@dashevo/dapi-grpc 4.1.1 → 4.2.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19531,6 +19531,7 @@ $root.org = (function() {
19531
19531
  * @property {number} BETWEEN_EXCLUDE_RIGHT=8 BETWEEN_EXCLUDE_RIGHT value
19532
19532
  * @property {number} IN=9 IN value
19533
19533
  * @property {number} STARTS_WITH=10 STARTS_WITH value
19534
+ * @property {number} IN_TIME_RANGE=11 IN_TIME_RANGE value
19534
19535
  */
19535
19536
  GetDocumentsRequest.WhereOperator = (function() {
19536
19537
  var valuesById = {}, values = Object.create(valuesById);
@@ -19545,6 +19546,7 @@ $root.org = (function() {
19545
19546
  values[valuesById[8] = "BETWEEN_EXCLUDE_RIGHT"] = 8;
19546
19547
  values[valuesById[9] = "IN"] = 9;
19547
19548
  values[valuesById[10] = "STARTS_WITH"] = 10;
19549
+ values[valuesById[11] = "IN_TIME_RANGE"] = 11;
19548
19550
  return values;
19549
19551
  })();
19550
19552
 
@@ -20362,6 +20364,7 @@ $root.org = (function() {
20362
20364
  case 8:
20363
20365
  case 9:
20364
20366
  case 10:
20367
+ case 11:
20365
20368
  break;
20366
20369
  }
20367
20370
  if (message.value != null && message.hasOwnProperty("value")) {
@@ -20431,6 +20434,10 @@ $root.org = (function() {
20431
20434
  case 10:
20432
20435
  message.operator = 10;
20433
20436
  break;
20437
+ case "IN_TIME_RANGE":
20438
+ case 11:
20439
+ message.operator = 11;
20440
+ break;
20434
20441
  }
20435
20442
  if (object.value != null) {
20436
20443
  if (typeof object.value !== "object")
@@ -20725,271 +20732,6 @@ $root.org = (function() {
20725
20732
  return HavingAggregate;
20726
20733
  })();
20727
20734
 
20728
- GetDocumentsRequest.HavingRanking = (function() {
20729
-
20730
- /**
20731
- * Properties of a HavingRanking.
20732
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
20733
- * @interface IHavingRanking
20734
- * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind|null} [kind] HavingRanking kind
20735
- * @property {number|Long|null} [n] HavingRanking n
20736
- */
20737
-
20738
- /**
20739
- * Constructs a new HavingRanking.
20740
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
20741
- * @classdesc Represents a HavingRanking.
20742
- * @implements IHavingRanking
20743
- * @constructor
20744
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking=} [properties] Properties to set
20745
- */
20746
- function HavingRanking(properties) {
20747
- if (properties)
20748
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20749
- if (properties[keys[i]] != null)
20750
- this[keys[i]] = properties[keys[i]];
20751
- }
20752
-
20753
- /**
20754
- * HavingRanking kind.
20755
- * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind} kind
20756
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20757
- * @instance
20758
- */
20759
- HavingRanking.prototype.kind = 0;
20760
-
20761
- /**
20762
- * HavingRanking n.
20763
- * @member {number|Long} n
20764
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20765
- * @instance
20766
- */
20767
- HavingRanking.prototype.n = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20768
-
20769
- /**
20770
- * Creates a new HavingRanking instance using the specified properties.
20771
- * @function create
20772
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20773
- * @static
20774
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking=} [properties] Properties to set
20775
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking instance
20776
- */
20777
- HavingRanking.create = function create(properties) {
20778
- return new HavingRanking(properties);
20779
- };
20780
-
20781
- /**
20782
- * Encodes the specified HavingRanking message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify|verify} messages.
20783
- * @function encode
20784
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20785
- * @static
20786
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking} message HavingRanking message or plain object to encode
20787
- * @param {$protobuf.Writer} [writer] Writer to encode to
20788
- * @returns {$protobuf.Writer} Writer
20789
- */
20790
- HavingRanking.encode = function encode(message, writer) {
20791
- if (!writer)
20792
- writer = $Writer.create();
20793
- if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
20794
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.kind);
20795
- if (message.n != null && Object.hasOwnProperty.call(message, "n"))
20796
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.n);
20797
- return writer;
20798
- };
20799
-
20800
- /**
20801
- * Encodes the specified HavingRanking message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify|verify} messages.
20802
- * @function encodeDelimited
20803
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20804
- * @static
20805
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking} message HavingRanking message or plain object to encode
20806
- * @param {$protobuf.Writer} [writer] Writer to encode to
20807
- * @returns {$protobuf.Writer} Writer
20808
- */
20809
- HavingRanking.encodeDelimited = function encodeDelimited(message, writer) {
20810
- return this.encode(message, writer).ldelim();
20811
- };
20812
-
20813
- /**
20814
- * Decodes a HavingRanking message from the specified reader or buffer.
20815
- * @function decode
20816
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20817
- * @static
20818
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20819
- * @param {number} [length] Message length if known beforehand
20820
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
20821
- * @throws {Error} If the payload is not a reader or valid buffer
20822
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20823
- */
20824
- HavingRanking.decode = function decode(reader, length) {
20825
- if (!(reader instanceof $Reader))
20826
- reader = $Reader.create(reader);
20827
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking();
20828
- while (reader.pos < end) {
20829
- var tag = reader.uint32();
20830
- switch (tag >>> 3) {
20831
- case 1:
20832
- message.kind = reader.int32();
20833
- break;
20834
- case 2:
20835
- message.n = reader.uint64();
20836
- break;
20837
- default:
20838
- reader.skipType(tag & 7);
20839
- break;
20840
- }
20841
- }
20842
- return message;
20843
- };
20844
-
20845
- /**
20846
- * Decodes a HavingRanking message from the specified reader or buffer, length delimited.
20847
- * @function decodeDelimited
20848
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20849
- * @static
20850
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20851
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
20852
- * @throws {Error} If the payload is not a reader or valid buffer
20853
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20854
- */
20855
- HavingRanking.decodeDelimited = function decodeDelimited(reader) {
20856
- if (!(reader instanceof $Reader))
20857
- reader = new $Reader(reader);
20858
- return this.decode(reader, reader.uint32());
20859
- };
20860
-
20861
- /**
20862
- * Verifies a HavingRanking message.
20863
- * @function verify
20864
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20865
- * @static
20866
- * @param {Object.<string,*>} message Plain object to verify
20867
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
20868
- */
20869
- HavingRanking.verify = function verify(message) {
20870
- if (typeof message !== "object" || message === null)
20871
- return "object expected";
20872
- if (message.kind != null && message.hasOwnProperty("kind"))
20873
- switch (message.kind) {
20874
- default:
20875
- return "kind: enum value expected";
20876
- case 0:
20877
- case 1:
20878
- case 2:
20879
- case 3:
20880
- break;
20881
- }
20882
- if (message.n != null && message.hasOwnProperty("n"))
20883
- if (!$util.isInteger(message.n) && !(message.n && $util.isInteger(message.n.low) && $util.isInteger(message.n.high)))
20884
- return "n: integer|Long expected";
20885
- return null;
20886
- };
20887
-
20888
- /**
20889
- * Creates a HavingRanking message from a plain object. Also converts values to their respective internal types.
20890
- * @function fromObject
20891
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20892
- * @static
20893
- * @param {Object.<string,*>} object Plain object
20894
- * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} HavingRanking
20895
- */
20896
- HavingRanking.fromObject = function fromObject(object) {
20897
- if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking)
20898
- return object;
20899
- var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking();
20900
- switch (object.kind) {
20901
- case "MIN":
20902
- case 0:
20903
- message.kind = 0;
20904
- break;
20905
- case "MAX":
20906
- case 1:
20907
- message.kind = 1;
20908
- break;
20909
- case "TOP":
20910
- case 2:
20911
- message.kind = 2;
20912
- break;
20913
- case "BOTTOM":
20914
- case 3:
20915
- message.kind = 3;
20916
- break;
20917
- }
20918
- if (object.n != null)
20919
- if ($util.Long)
20920
- (message.n = $util.Long.fromValue(object.n)).unsigned = true;
20921
- else if (typeof object.n === "string")
20922
- message.n = parseInt(object.n, 10);
20923
- else if (typeof object.n === "number")
20924
- message.n = object.n;
20925
- else if (typeof object.n === "object")
20926
- message.n = new $util.LongBits(object.n.low >>> 0, object.n.high >>> 0).toNumber(true);
20927
- return message;
20928
- };
20929
-
20930
- /**
20931
- * Creates a plain object from a HavingRanking message. Also converts values to other types if specified.
20932
- * @function toObject
20933
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20934
- * @static
20935
- * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} message HavingRanking
20936
- * @param {$protobuf.IConversionOptions} [options] Conversion options
20937
- * @returns {Object.<string,*>} Plain object
20938
- */
20939
- HavingRanking.toObject = function toObject(message, options) {
20940
- if (!options)
20941
- options = {};
20942
- var object = {};
20943
- if (options.defaults) {
20944
- object.kind = options.enums === String ? "MIN" : 0;
20945
- if ($util.Long) {
20946
- var long = new $util.Long(0, 0, true);
20947
- object.n = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20948
- } else
20949
- object.n = options.longs === String ? "0" : 0;
20950
- }
20951
- if (message.kind != null && message.hasOwnProperty("kind"))
20952
- object.kind = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind[message.kind] : message.kind;
20953
- if (message.n != null && message.hasOwnProperty("n"))
20954
- if (typeof message.n === "number")
20955
- object.n = options.longs === String ? String(message.n) : message.n;
20956
- else
20957
- object.n = options.longs === String ? $util.Long.prototype.toString.call(message.n) : options.longs === Number ? new $util.LongBits(message.n.low >>> 0, message.n.high >>> 0).toNumber(true) : message.n;
20958
- return object;
20959
- };
20960
-
20961
- /**
20962
- * Converts this HavingRanking to JSON.
20963
- * @function toJSON
20964
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking
20965
- * @instance
20966
- * @returns {Object.<string,*>} JSON object
20967
- */
20968
- HavingRanking.prototype.toJSON = function toJSON() {
20969
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20970
- };
20971
-
20972
- /**
20973
- * Kind enum.
20974
- * @name org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind
20975
- * @enum {number}
20976
- * @property {number} MIN=0 MIN value
20977
- * @property {number} MAX=1 MAX value
20978
- * @property {number} TOP=2 TOP value
20979
- * @property {number} BOTTOM=3 BOTTOM value
20980
- */
20981
- HavingRanking.Kind = (function() {
20982
- var valuesById = {}, values = Object.create(valuesById);
20983
- values[valuesById[0] = "MIN"] = 0;
20984
- values[valuesById[1] = "MAX"] = 1;
20985
- values[valuesById[2] = "TOP"] = 2;
20986
- values[valuesById[3] = "BOTTOM"] = 3;
20987
- return values;
20988
- })();
20989
-
20990
- return HavingRanking;
20991
- })();
20992
-
20993
20735
  GetDocumentsRequest.HavingClause = (function() {
20994
20736
 
20995
20737
  /**
@@ -20999,7 +20741,6 @@ $root.org = (function() {
20999
20741
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingAggregate|null} [aggregate] HavingClause aggregate
21000
20742
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator|null} [operator] HavingClause operator
21001
20743
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] HavingClause value
21002
- * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking|null} [ranking] HavingClause ranking
21003
20744
  */
21004
20745
 
21005
20746
  /**
@@ -21041,25 +20782,17 @@ $root.org = (function() {
21041
20782
  */
21042
20783
  HavingClause.prototype.value = null;
21043
20784
 
21044
- /**
21045
- * HavingClause ranking.
21046
- * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingRanking|null|undefined} ranking
21047
- * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
21048
- * @instance
21049
- */
21050
- HavingClause.prototype.ranking = null;
21051
-
21052
20785
  // OneOf field names bound to virtual getters and setters
21053
20786
  var $oneOfFields;
21054
20787
 
21055
20788
  /**
21056
20789
  * HavingClause right.
21057
- * @member {"value"|"ranking"|undefined} right
20790
+ * @member {"value"|undefined} right
21058
20791
  * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
21059
20792
  * @instance
21060
20793
  */
21061
20794
  Object.defineProperty(HavingClause.prototype, "right", {
21062
- get: $util.oneOfGetter($oneOfFields = ["value", "ranking"]),
20795
+ get: $util.oneOfGetter($oneOfFields = ["value"]),
21063
20796
  set: $util.oneOfSetter($oneOfFields)
21064
20797
  });
21065
20798
 
@@ -21093,8 +20826,6 @@ $root.org = (function() {
21093
20826
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
21094
20827
  if (message.value != null && Object.hasOwnProperty.call(message, "value"))
21095
20828
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
21096
- if (message.ranking != null && Object.hasOwnProperty.call(message, "ranking"))
21097
- $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.encode(message.ranking, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
21098
20829
  return writer;
21099
20830
  };
21100
20831
 
@@ -21138,9 +20869,6 @@ $root.org = (function() {
21138
20869
  case 3:
21139
20870
  message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
21140
20871
  break;
21141
- case 4:
21142
- message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.decode(reader, reader.uint32());
21143
- break;
21144
20872
  default:
21145
20873
  reader.skipType(tag & 7);
21146
20874
  break;
@@ -21207,16 +20935,6 @@ $root.org = (function() {
21207
20935
  return "value." + error;
21208
20936
  }
21209
20937
  }
21210
- if (message.ranking != null && message.hasOwnProperty("ranking")) {
21211
- if (properties.right === 1)
21212
- return "right: multiple values";
21213
- properties.right = 1;
21214
- {
21215
- var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.verify(message.ranking);
21216
- if (error)
21217
- return "ranking." + error;
21218
- }
21219
- }
21220
20938
  return null;
21221
20939
  };
21222
20940
 
@@ -21288,11 +21006,6 @@ $root.org = (function() {
21288
21006
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.value: object expected");
21289
21007
  message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
21290
21008
  }
21291
- if (object.ranking != null) {
21292
- if (typeof object.ranking !== "object")
21293
- throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.ranking: object expected");
21294
- message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.fromObject(object.ranking);
21295
- }
21296
21009
  return message;
21297
21010
  };
21298
21011
 
@@ -21322,11 +21035,6 @@ $root.org = (function() {
21322
21035
  if (options.oneofs)
21323
21036
  object.right = "value";
21324
21037
  }
21325
- if (message.ranking != null && message.hasOwnProperty("ranking")) {
21326
- object.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.toObject(message.ranking, options);
21327
- if (options.oneofs)
21328
- object.right = "ranking";
21329
- }
21330
21038
  return object;
21331
21039
  };
21332
21040
 
@@ -26508,27 +26216,28 @@ $root.org = (function() {
26508
26216
  return AverageResults;
26509
26217
  })();
26510
26218
 
26511
- GetDocumentsResponseV1.ResultData = (function() {
26219
+ GetDocumentsResponseV1.RankedEntry = (function() {
26512
26220
 
26513
26221
  /**
26514
- * Properties of a ResultData.
26222
+ * Properties of a RankedEntry.
26515
26223
  * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26516
- * @interface IResultData
26517
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] ResultData documents
26518
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null} [counts] ResultData counts
26519
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
26520
- * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
26224
+ * @interface IRankedEntry
26225
+ * @property {Uint8Array|null} [key] RankedEntry key
26226
+ * @property {number|Long|null} [count] RankedEntry count
26227
+ * @property {number|Long|null} [sum] RankedEntry sum
26228
+ * @property {number|null} [avg] RankedEntry avg
26229
+ * @property {Uint8Array|null} [inKey] RankedEntry inKey
26521
26230
  */
26522
26231
 
26523
26232
  /**
26524
- * Constructs a new ResultData.
26233
+ * Constructs a new RankedEntry.
26525
26234
  * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26526
- * @classdesc Represents a ResultData.
26527
- * @implements IResultData
26235
+ * @classdesc Represents a RankedEntry.
26236
+ * @implements IRankedEntry
26528
26237
  * @constructor
26529
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
26238
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
26530
26239
  */
26531
- function ResultData(properties) {
26240
+ function RankedEntry(properties) {
26532
26241
  if (properties)
26533
26242
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26534
26243
  if (properties[keys[i]] != null)
@@ -26536,131 +26245,734 @@ $root.org = (function() {
26536
26245
  }
26537
26246
 
26538
26247
  /**
26539
- * ResultData documents.
26540
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
26541
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26248
+ * RankedEntry key.
26249
+ * @member {Uint8Array} key
26250
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26542
26251
  * @instance
26543
26252
  */
26544
- ResultData.prototype.documents = null;
26253
+ RankedEntry.prototype.key = $util.newBuffer([]);
26545
26254
 
26546
26255
  /**
26547
- * ResultData counts.
26548
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null|undefined} counts
26549
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26256
+ * RankedEntry count.
26257
+ * @member {number|Long} count
26258
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26550
26259
  * @instance
26551
26260
  */
26552
- ResultData.prototype.counts = null;
26261
+ RankedEntry.prototype.count = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26553
26262
 
26554
26263
  /**
26555
- * ResultData sums.
26556
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null|undefined} sums
26557
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26264
+ * RankedEntry sum.
26265
+ * @member {number|Long} sum
26266
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26558
26267
  * @instance
26559
26268
  */
26560
- ResultData.prototype.sums = null;
26269
+ RankedEntry.prototype.sum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
26561
26270
 
26562
26271
  /**
26563
- * ResultData averages.
26564
- * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null|undefined} averages
26565
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26272
+ * RankedEntry avg.
26273
+ * @member {number} avg
26274
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26566
26275
  * @instance
26567
26276
  */
26568
- ResultData.prototype.averages = null;
26277
+ RankedEntry.prototype.avg = 0;
26278
+
26279
+ /**
26280
+ * RankedEntry inKey.
26281
+ * @member {Uint8Array} inKey
26282
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26283
+ * @instance
26284
+ */
26285
+ RankedEntry.prototype.inKey = $util.newBuffer([]);
26569
26286
 
26570
26287
  // OneOf field names bound to virtual getters and setters
26571
26288
  var $oneOfFields;
26572
26289
 
26573
26290
  /**
26574
- * ResultData variant.
26575
- * @member {"documents"|"counts"|"sums"|"averages"|undefined} variant
26576
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26291
+ * RankedEntry value.
26292
+ * @member {"count"|"sum"|"avg"|undefined} value
26293
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26577
26294
  * @instance
26578
26295
  */
26579
- Object.defineProperty(ResultData.prototype, "variant", {
26580
- get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages"]),
26296
+ Object.defineProperty(RankedEntry.prototype, "value", {
26297
+ get: $util.oneOfGetter($oneOfFields = ["count", "sum", "avg"]),
26581
26298
  set: $util.oneOfSetter($oneOfFields)
26582
26299
  });
26583
26300
 
26584
26301
  /**
26585
- * Creates a new ResultData instance using the specified properties.
26302
+ * Creates a new RankedEntry instance using the specified properties.
26586
26303
  * @function create
26587
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26304
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26588
26305
  * @static
26589
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
26590
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData instance
26306
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
26307
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry instance
26591
26308
  */
26592
- ResultData.create = function create(properties) {
26593
- return new ResultData(properties);
26309
+ RankedEntry.create = function create(properties) {
26310
+ return new RankedEntry(properties);
26594
26311
  };
26595
26312
 
26596
26313
  /**
26597
- * Encodes the specified ResultData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
26314
+ * Encodes the specified RankedEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
26598
26315
  * @function encode
26599
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26316
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26600
26317
  * @static
26601
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
26318
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
26602
26319
  * @param {$protobuf.Writer} [writer] Writer to encode to
26603
26320
  * @returns {$protobuf.Writer} Writer
26604
26321
  */
26605
- ResultData.encode = function encode(message, writer) {
26322
+ RankedEntry.encode = function encode(message, writer) {
26606
26323
  if (!writer)
26607
26324
  writer = $Writer.create();
26608
- if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
26609
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26610
- if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
26611
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26612
- if (message.sums != null && Object.hasOwnProperty.call(message, "sums"))
26613
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.encode(message.sums, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
26614
- if (message.averages != null && Object.hasOwnProperty.call(message, "averages"))
26615
- $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26325
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
26326
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
26327
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
26328
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.count);
26329
+ if (message.sum != null && Object.hasOwnProperty.call(message, "sum"))
26330
+ writer.uint32(/* id 3, wireType 0 =*/24).sint64(message.sum);
26331
+ if (message.avg != null && Object.hasOwnProperty.call(message, "avg"))
26332
+ writer.uint32(/* id 4, wireType 1 =*/33).double(message.avg);
26333
+ if (message.inKey != null && Object.hasOwnProperty.call(message, "inKey"))
26334
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.inKey);
26616
26335
  return writer;
26617
26336
  };
26618
26337
 
26619
26338
  /**
26620
- * Encodes the specified ResultData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
26339
+ * Encodes the specified RankedEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
26621
26340
  * @function encodeDelimited
26622
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26341
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26623
26342
  * @static
26624
- * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
26343
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
26625
26344
  * @param {$protobuf.Writer} [writer] Writer to encode to
26626
26345
  * @returns {$protobuf.Writer} Writer
26627
26346
  */
26628
- ResultData.encodeDelimited = function encodeDelimited(message, writer) {
26347
+ RankedEntry.encodeDelimited = function encodeDelimited(message, writer) {
26629
26348
  return this.encode(message, writer).ldelim();
26630
26349
  };
26631
26350
 
26632
26351
  /**
26633
- * Decodes a ResultData message from the specified reader or buffer.
26352
+ * Decodes a RankedEntry message from the specified reader or buffer.
26634
26353
  * @function decode
26635
- * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26354
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26636
26355
  * @static
26637
26356
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26638
26357
  * @param {number} [length] Message length if known beforehand
26639
- * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
26358
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
26640
26359
  * @throws {Error} If the payload is not a reader or valid buffer
26641
26360
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
26642
26361
  */
26643
- ResultData.decode = function decode(reader, length) {
26362
+ RankedEntry.decode = function decode(reader, length) {
26644
26363
  if (!(reader instanceof $Reader))
26645
26364
  reader = $Reader.create(reader);
26646
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData();
26365
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
26647
26366
  while (reader.pos < end) {
26648
26367
  var tag = reader.uint32();
26649
26368
  switch (tag >>> 3) {
26650
26369
  case 1:
26651
- message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
26370
+ message.key = reader.bytes();
26652
26371
  break;
26653
26372
  case 2:
26654
- message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.decode(reader, reader.uint32());
26373
+ message.count = reader.uint64();
26655
26374
  break;
26656
26375
  case 3:
26657
- message.sums = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.decode(reader, reader.uint32());
26376
+ message.sum = reader.sint64();
26658
26377
  break;
26659
26378
  case 4:
26660
- message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.decode(reader, reader.uint32());
26379
+ message.avg = reader.double();
26661
26380
  break;
26662
- default:
26663
- reader.skipType(tag & 7);
26381
+ case 5:
26382
+ message.inKey = reader.bytes();
26383
+ break;
26384
+ default:
26385
+ reader.skipType(tag & 7);
26386
+ break;
26387
+ }
26388
+ }
26389
+ return message;
26390
+ };
26391
+
26392
+ /**
26393
+ * Decodes a RankedEntry message from the specified reader or buffer, length delimited.
26394
+ * @function decodeDelimited
26395
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26396
+ * @static
26397
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26398
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
26399
+ * @throws {Error} If the payload is not a reader or valid buffer
26400
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26401
+ */
26402
+ RankedEntry.decodeDelimited = function decodeDelimited(reader) {
26403
+ if (!(reader instanceof $Reader))
26404
+ reader = new $Reader(reader);
26405
+ return this.decode(reader, reader.uint32());
26406
+ };
26407
+
26408
+ /**
26409
+ * Verifies a RankedEntry message.
26410
+ * @function verify
26411
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26412
+ * @static
26413
+ * @param {Object.<string,*>} message Plain object to verify
26414
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26415
+ */
26416
+ RankedEntry.verify = function verify(message) {
26417
+ if (typeof message !== "object" || message === null)
26418
+ return "object expected";
26419
+ var properties = {};
26420
+ if (message.key != null && message.hasOwnProperty("key"))
26421
+ if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
26422
+ return "key: buffer expected";
26423
+ if (message.count != null && message.hasOwnProperty("count")) {
26424
+ properties.value = 1;
26425
+ if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
26426
+ return "count: integer|Long expected";
26427
+ }
26428
+ if (message.sum != null && message.hasOwnProperty("sum")) {
26429
+ if (properties.value === 1)
26430
+ return "value: multiple values";
26431
+ properties.value = 1;
26432
+ if (!$util.isInteger(message.sum) && !(message.sum && $util.isInteger(message.sum.low) && $util.isInteger(message.sum.high)))
26433
+ return "sum: integer|Long expected";
26434
+ }
26435
+ if (message.avg != null && message.hasOwnProperty("avg")) {
26436
+ if (properties.value === 1)
26437
+ return "value: multiple values";
26438
+ properties.value = 1;
26439
+ if (typeof message.avg !== "number")
26440
+ return "avg: number expected";
26441
+ }
26442
+ if (message.inKey != null && message.hasOwnProperty("inKey"))
26443
+ if (!(message.inKey && typeof message.inKey.length === "number" || $util.isString(message.inKey)))
26444
+ return "inKey: buffer expected";
26445
+ return null;
26446
+ };
26447
+
26448
+ /**
26449
+ * Creates a RankedEntry message from a plain object. Also converts values to their respective internal types.
26450
+ * @function fromObject
26451
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26452
+ * @static
26453
+ * @param {Object.<string,*>} object Plain object
26454
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
26455
+ */
26456
+ RankedEntry.fromObject = function fromObject(object) {
26457
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry)
26458
+ return object;
26459
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
26460
+ if (object.key != null)
26461
+ if (typeof object.key === "string")
26462
+ $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
26463
+ else if (object.key.length >= 0)
26464
+ message.key = object.key;
26465
+ if (object.count != null)
26466
+ if ($util.Long)
26467
+ (message.count = $util.Long.fromValue(object.count)).unsigned = true;
26468
+ else if (typeof object.count === "string")
26469
+ message.count = parseInt(object.count, 10);
26470
+ else if (typeof object.count === "number")
26471
+ message.count = object.count;
26472
+ else if (typeof object.count === "object")
26473
+ message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(true);
26474
+ if (object.sum != null)
26475
+ if ($util.Long)
26476
+ (message.sum = $util.Long.fromValue(object.sum)).unsigned = false;
26477
+ else if (typeof object.sum === "string")
26478
+ message.sum = parseInt(object.sum, 10);
26479
+ else if (typeof object.sum === "number")
26480
+ message.sum = object.sum;
26481
+ else if (typeof object.sum === "object")
26482
+ message.sum = new $util.LongBits(object.sum.low >>> 0, object.sum.high >>> 0).toNumber();
26483
+ if (object.avg != null)
26484
+ message.avg = Number(object.avg);
26485
+ if (object.inKey != null)
26486
+ if (typeof object.inKey === "string")
26487
+ $util.base64.decode(object.inKey, message.inKey = $util.newBuffer($util.base64.length(object.inKey)), 0);
26488
+ else if (object.inKey.length >= 0)
26489
+ message.inKey = object.inKey;
26490
+ return message;
26491
+ };
26492
+
26493
+ /**
26494
+ * Creates a plain object from a RankedEntry message. Also converts values to other types if specified.
26495
+ * @function toObject
26496
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26497
+ * @static
26498
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} message RankedEntry
26499
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26500
+ * @returns {Object.<string,*>} Plain object
26501
+ */
26502
+ RankedEntry.toObject = function toObject(message, options) {
26503
+ if (!options)
26504
+ options = {};
26505
+ var object = {};
26506
+ if (options.defaults) {
26507
+ if (options.bytes === String)
26508
+ object.key = "";
26509
+ else {
26510
+ object.key = [];
26511
+ if (options.bytes !== Array)
26512
+ object.key = $util.newBuffer(object.key);
26513
+ }
26514
+ if (options.bytes === String)
26515
+ object.inKey = "";
26516
+ else {
26517
+ object.inKey = [];
26518
+ if (options.bytes !== Array)
26519
+ object.inKey = $util.newBuffer(object.inKey);
26520
+ }
26521
+ }
26522
+ if (message.key != null && message.hasOwnProperty("key"))
26523
+ object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key;
26524
+ if (message.count != null && message.hasOwnProperty("count")) {
26525
+ if (typeof message.count === "number")
26526
+ object.count = options.longs === String ? String(message.count) : message.count;
26527
+ else
26528
+ object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber(true) : message.count;
26529
+ if (options.oneofs)
26530
+ object.value = "count";
26531
+ }
26532
+ if (message.sum != null && message.hasOwnProperty("sum")) {
26533
+ if (typeof message.sum === "number")
26534
+ object.sum = options.longs === String ? String(message.sum) : message.sum;
26535
+ else
26536
+ object.sum = options.longs === String ? $util.Long.prototype.toString.call(message.sum) : options.longs === Number ? new $util.LongBits(message.sum.low >>> 0, message.sum.high >>> 0).toNumber() : message.sum;
26537
+ if (options.oneofs)
26538
+ object.value = "sum";
26539
+ }
26540
+ if (message.avg != null && message.hasOwnProperty("avg")) {
26541
+ object.avg = options.json && !isFinite(message.avg) ? String(message.avg) : message.avg;
26542
+ if (options.oneofs)
26543
+ object.value = "avg";
26544
+ }
26545
+ if (message.inKey != null && message.hasOwnProperty("inKey"))
26546
+ object.inKey = options.bytes === String ? $util.base64.encode(message.inKey, 0, message.inKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.inKey) : message.inKey;
26547
+ return object;
26548
+ };
26549
+
26550
+ /**
26551
+ * Converts this RankedEntry to JSON.
26552
+ * @function toJSON
26553
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
26554
+ * @instance
26555
+ * @returns {Object.<string,*>} JSON object
26556
+ */
26557
+ RankedEntry.prototype.toJSON = function toJSON() {
26558
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26559
+ };
26560
+
26561
+ return RankedEntry;
26562
+ })();
26563
+
26564
+ GetDocumentsResponseV1.RankedEntries = (function() {
26565
+
26566
+ /**
26567
+ * Properties of a RankedEntries.
26568
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26569
+ * @interface IRankedEntries
26570
+ * @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>|null} [entries] RankedEntries entries
26571
+ * @property {number|Long|null} [skipped] RankedEntries skipped
26572
+ */
26573
+
26574
+ /**
26575
+ * Constructs a new RankedEntries.
26576
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26577
+ * @classdesc Represents a RankedEntries.
26578
+ * @implements IRankedEntries
26579
+ * @constructor
26580
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
26581
+ */
26582
+ function RankedEntries(properties) {
26583
+ this.entries = [];
26584
+ if (properties)
26585
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26586
+ if (properties[keys[i]] != null)
26587
+ this[keys[i]] = properties[keys[i]];
26588
+ }
26589
+
26590
+ /**
26591
+ * RankedEntries entries.
26592
+ * @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>} entries
26593
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26594
+ * @instance
26595
+ */
26596
+ RankedEntries.prototype.entries = $util.emptyArray;
26597
+
26598
+ /**
26599
+ * RankedEntries skipped.
26600
+ * @member {number|Long} skipped
26601
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26602
+ * @instance
26603
+ */
26604
+ RankedEntries.prototype.skipped = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26605
+
26606
+ /**
26607
+ * Creates a new RankedEntries instance using the specified properties.
26608
+ * @function create
26609
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26610
+ * @static
26611
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
26612
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries instance
26613
+ */
26614
+ RankedEntries.create = function create(properties) {
26615
+ return new RankedEntries(properties);
26616
+ };
26617
+
26618
+ /**
26619
+ * Encodes the specified RankedEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
26620
+ * @function encode
26621
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26622
+ * @static
26623
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
26624
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26625
+ * @returns {$protobuf.Writer} Writer
26626
+ */
26627
+ RankedEntries.encode = function encode(message, writer) {
26628
+ if (!writer)
26629
+ writer = $Writer.create();
26630
+ if (message.entries != null && message.entries.length)
26631
+ for (var i = 0; i < message.entries.length; ++i)
26632
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26633
+ if (message.skipped != null && Object.hasOwnProperty.call(message, "skipped"))
26634
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.skipped);
26635
+ return writer;
26636
+ };
26637
+
26638
+ /**
26639
+ * Encodes the specified RankedEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
26640
+ * @function encodeDelimited
26641
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26642
+ * @static
26643
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
26644
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26645
+ * @returns {$protobuf.Writer} Writer
26646
+ */
26647
+ RankedEntries.encodeDelimited = function encodeDelimited(message, writer) {
26648
+ return this.encode(message, writer).ldelim();
26649
+ };
26650
+
26651
+ /**
26652
+ * Decodes a RankedEntries message from the specified reader or buffer.
26653
+ * @function decode
26654
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26655
+ * @static
26656
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26657
+ * @param {number} [length] Message length if known beforehand
26658
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
26659
+ * @throws {Error} If the payload is not a reader or valid buffer
26660
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26661
+ */
26662
+ RankedEntries.decode = function decode(reader, length) {
26663
+ if (!(reader instanceof $Reader))
26664
+ reader = $Reader.create(reader);
26665
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
26666
+ while (reader.pos < end) {
26667
+ var tag = reader.uint32();
26668
+ switch (tag >>> 3) {
26669
+ case 1:
26670
+ if (!(message.entries && message.entries.length))
26671
+ message.entries = [];
26672
+ message.entries.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.decode(reader, reader.uint32()));
26673
+ break;
26674
+ case 2:
26675
+ message.skipped = reader.uint64();
26676
+ break;
26677
+ default:
26678
+ reader.skipType(tag & 7);
26679
+ break;
26680
+ }
26681
+ }
26682
+ return message;
26683
+ };
26684
+
26685
+ /**
26686
+ * Decodes a RankedEntries message from the specified reader or buffer, length delimited.
26687
+ * @function decodeDelimited
26688
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26689
+ * @static
26690
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26691
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
26692
+ * @throws {Error} If the payload is not a reader or valid buffer
26693
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26694
+ */
26695
+ RankedEntries.decodeDelimited = function decodeDelimited(reader) {
26696
+ if (!(reader instanceof $Reader))
26697
+ reader = new $Reader(reader);
26698
+ return this.decode(reader, reader.uint32());
26699
+ };
26700
+
26701
+ /**
26702
+ * Verifies a RankedEntries message.
26703
+ * @function verify
26704
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26705
+ * @static
26706
+ * @param {Object.<string,*>} message Plain object to verify
26707
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26708
+ */
26709
+ RankedEntries.verify = function verify(message) {
26710
+ if (typeof message !== "object" || message === null)
26711
+ return "object expected";
26712
+ if (message.entries != null && message.hasOwnProperty("entries")) {
26713
+ if (!Array.isArray(message.entries))
26714
+ return "entries: array expected";
26715
+ for (var i = 0; i < message.entries.length; ++i) {
26716
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify(message.entries[i]);
26717
+ if (error)
26718
+ return "entries." + error;
26719
+ }
26720
+ }
26721
+ if (message.skipped != null && message.hasOwnProperty("skipped"))
26722
+ if (!$util.isInteger(message.skipped) && !(message.skipped && $util.isInteger(message.skipped.low) && $util.isInteger(message.skipped.high)))
26723
+ return "skipped: integer|Long expected";
26724
+ return null;
26725
+ };
26726
+
26727
+ /**
26728
+ * Creates a RankedEntries message from a plain object. Also converts values to their respective internal types.
26729
+ * @function fromObject
26730
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26731
+ * @static
26732
+ * @param {Object.<string,*>} object Plain object
26733
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
26734
+ */
26735
+ RankedEntries.fromObject = function fromObject(object) {
26736
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries)
26737
+ return object;
26738
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
26739
+ if (object.entries) {
26740
+ if (!Array.isArray(object.entries))
26741
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: array expected");
26742
+ message.entries = [];
26743
+ for (var i = 0; i < object.entries.length; ++i) {
26744
+ if (typeof object.entries[i] !== "object")
26745
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: object expected");
26746
+ message.entries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.fromObject(object.entries[i]);
26747
+ }
26748
+ }
26749
+ if (object.skipped != null)
26750
+ if ($util.Long)
26751
+ (message.skipped = $util.Long.fromValue(object.skipped)).unsigned = true;
26752
+ else if (typeof object.skipped === "string")
26753
+ message.skipped = parseInt(object.skipped, 10);
26754
+ else if (typeof object.skipped === "number")
26755
+ message.skipped = object.skipped;
26756
+ else if (typeof object.skipped === "object")
26757
+ message.skipped = new $util.LongBits(object.skipped.low >>> 0, object.skipped.high >>> 0).toNumber(true);
26758
+ return message;
26759
+ };
26760
+
26761
+ /**
26762
+ * Creates a plain object from a RankedEntries message. Also converts values to other types if specified.
26763
+ * @function toObject
26764
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26765
+ * @static
26766
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} message RankedEntries
26767
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26768
+ * @returns {Object.<string,*>} Plain object
26769
+ */
26770
+ RankedEntries.toObject = function toObject(message, options) {
26771
+ if (!options)
26772
+ options = {};
26773
+ var object = {};
26774
+ if (options.arrays || options.defaults)
26775
+ object.entries = [];
26776
+ if (options.defaults)
26777
+ if ($util.Long) {
26778
+ var long = new $util.Long(0, 0, true);
26779
+ object.skipped = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26780
+ } else
26781
+ object.skipped = options.longs === String ? "0" : 0;
26782
+ if (message.entries && message.entries.length) {
26783
+ object.entries = [];
26784
+ for (var j = 0; j < message.entries.length; ++j)
26785
+ object.entries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject(message.entries[j], options);
26786
+ }
26787
+ if (message.skipped != null && message.hasOwnProperty("skipped"))
26788
+ if (typeof message.skipped === "number")
26789
+ object.skipped = options.longs === String ? String(message.skipped) : message.skipped;
26790
+ else
26791
+ object.skipped = options.longs === String ? $util.Long.prototype.toString.call(message.skipped) : options.longs === Number ? new $util.LongBits(message.skipped.low >>> 0, message.skipped.high >>> 0).toNumber(true) : message.skipped;
26792
+ return object;
26793
+ };
26794
+
26795
+ /**
26796
+ * Converts this RankedEntries to JSON.
26797
+ * @function toJSON
26798
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
26799
+ * @instance
26800
+ * @returns {Object.<string,*>} JSON object
26801
+ */
26802
+ RankedEntries.prototype.toJSON = function toJSON() {
26803
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26804
+ };
26805
+
26806
+ return RankedEntries;
26807
+ })();
26808
+
26809
+ GetDocumentsResponseV1.ResultData = (function() {
26810
+
26811
+ /**
26812
+ * Properties of a ResultData.
26813
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26814
+ * @interface IResultData
26815
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] ResultData documents
26816
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null} [counts] ResultData counts
26817
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
26818
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
26819
+ * @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
26820
+ */
26821
+
26822
+ /**
26823
+ * Constructs a new ResultData.
26824
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
26825
+ * @classdesc Represents a ResultData.
26826
+ * @implements IResultData
26827
+ * @constructor
26828
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
26829
+ */
26830
+ function ResultData(properties) {
26831
+ if (properties)
26832
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26833
+ if (properties[keys[i]] != null)
26834
+ this[keys[i]] = properties[keys[i]];
26835
+ }
26836
+
26837
+ /**
26838
+ * ResultData documents.
26839
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
26840
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26841
+ * @instance
26842
+ */
26843
+ ResultData.prototype.documents = null;
26844
+
26845
+ /**
26846
+ * ResultData counts.
26847
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null|undefined} counts
26848
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26849
+ * @instance
26850
+ */
26851
+ ResultData.prototype.counts = null;
26852
+
26853
+ /**
26854
+ * ResultData sums.
26855
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null|undefined} sums
26856
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26857
+ * @instance
26858
+ */
26859
+ ResultData.prototype.sums = null;
26860
+
26861
+ /**
26862
+ * ResultData averages.
26863
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null|undefined} averages
26864
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26865
+ * @instance
26866
+ */
26867
+ ResultData.prototype.averages = null;
26868
+
26869
+ /**
26870
+ * ResultData ranked.
26871
+ * @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null|undefined} ranked
26872
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26873
+ * @instance
26874
+ */
26875
+ ResultData.prototype.ranked = null;
26876
+
26877
+ // OneOf field names bound to virtual getters and setters
26878
+ var $oneOfFields;
26879
+
26880
+ /**
26881
+ * ResultData variant.
26882
+ * @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
26883
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26884
+ * @instance
26885
+ */
26886
+ Object.defineProperty(ResultData.prototype, "variant", {
26887
+ get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
26888
+ set: $util.oneOfSetter($oneOfFields)
26889
+ });
26890
+
26891
+ /**
26892
+ * Creates a new ResultData instance using the specified properties.
26893
+ * @function create
26894
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26895
+ * @static
26896
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
26897
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData instance
26898
+ */
26899
+ ResultData.create = function create(properties) {
26900
+ return new ResultData(properties);
26901
+ };
26902
+
26903
+ /**
26904
+ * Encodes the specified ResultData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
26905
+ * @function encode
26906
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26907
+ * @static
26908
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
26909
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26910
+ * @returns {$protobuf.Writer} Writer
26911
+ */
26912
+ ResultData.encode = function encode(message, writer) {
26913
+ if (!writer)
26914
+ writer = $Writer.create();
26915
+ if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
26916
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26917
+ if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
26918
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26919
+ if (message.sums != null && Object.hasOwnProperty.call(message, "sums"))
26920
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.encode(message.sums, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
26921
+ if (message.averages != null && Object.hasOwnProperty.call(message, "averages"))
26922
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26923
+ if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
26924
+ $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
26925
+ return writer;
26926
+ };
26927
+
26928
+ /**
26929
+ * Encodes the specified ResultData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
26930
+ * @function encodeDelimited
26931
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26932
+ * @static
26933
+ * @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
26934
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26935
+ * @returns {$protobuf.Writer} Writer
26936
+ */
26937
+ ResultData.encodeDelimited = function encodeDelimited(message, writer) {
26938
+ return this.encode(message, writer).ldelim();
26939
+ };
26940
+
26941
+ /**
26942
+ * Decodes a ResultData message from the specified reader or buffer.
26943
+ * @function decode
26944
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
26945
+ * @static
26946
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26947
+ * @param {number} [length] Message length if known beforehand
26948
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
26949
+ * @throws {Error} If the payload is not a reader or valid buffer
26950
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26951
+ */
26952
+ ResultData.decode = function decode(reader, length) {
26953
+ if (!(reader instanceof $Reader))
26954
+ reader = $Reader.create(reader);
26955
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData();
26956
+ while (reader.pos < end) {
26957
+ var tag = reader.uint32();
26958
+ switch (tag >>> 3) {
26959
+ case 1:
26960
+ message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
26961
+ break;
26962
+ case 2:
26963
+ message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.decode(reader, reader.uint32());
26964
+ break;
26965
+ case 3:
26966
+ message.sums = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.decode(reader, reader.uint32());
26967
+ break;
26968
+ case 4:
26969
+ message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.decode(reader, reader.uint32());
26970
+ break;
26971
+ case 5:
26972
+ message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
26973
+ break;
26974
+ default:
26975
+ reader.skipType(tag & 7);
26664
26976
  break;
26665
26977
  }
26666
26978
  }
@@ -26733,6 +27045,16 @@ $root.org = (function() {
26733
27045
  return "averages." + error;
26734
27046
  }
26735
27047
  }
27048
+ if (message.ranked != null && message.hasOwnProperty("ranked")) {
27049
+ if (properties.variant === 1)
27050
+ return "variant: multiple values";
27051
+ properties.variant = 1;
27052
+ {
27053
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify(message.ranked);
27054
+ if (error)
27055
+ return "ranked." + error;
27056
+ }
27057
+ }
26736
27058
  return null;
26737
27059
  };
26738
27060
 
@@ -26768,6 +27090,11 @@ $root.org = (function() {
26768
27090
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.averages: object expected");
26769
27091
  message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.fromObject(object.averages);
26770
27092
  }
27093
+ if (object.ranked != null) {
27094
+ if (typeof object.ranked !== "object")
27095
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
27096
+ message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
27097
+ }
26771
27098
  return message;
26772
27099
  };
26773
27100
 
@@ -26804,6 +27131,11 @@ $root.org = (function() {
26804
27131
  if (options.oneofs)
26805
27132
  object.variant = "averages";
26806
27133
  }
27134
+ if (message.ranked != null && message.hasOwnProperty("ranked")) {
27135
+ object.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(message.ranked, options);
27136
+ if (options.oneofs)
27137
+ object.variant = "ranked";
27138
+ }
26807
27139
  return object;
26808
27140
  };
26809
27141