@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.
@@ -171,8 +171,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAgg
171
171
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause', null, { proto });
172
172
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator', null, { proto });
173
173
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.RightCase', null, { proto });
174
- goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking', null, { proto });
175
- goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind', null, { proto });
176
174
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause', null, { proto });
177
175
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.TargetCase', null, { proto });
178
176
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.VersionCase', null, { proto });
@@ -193,6 +191,9 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocum
193
191
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults', null, { proto });
194
192
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.VariantCase', null, { proto });
195
193
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents', null, { proto });
194
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries', null, { proto });
195
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry', null, { proto });
196
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.ValueCase', null, { proto });
196
197
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultCase', null, { proto });
197
198
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData', null, { proto });
198
199
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase', null, { proto });
@@ -2257,27 +2258,6 @@ if (goog.DEBUG && !COMPILED) {
2257
2258
  */
2258
2259
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate';
2259
2260
  }
2260
- /**
2261
- * Generated by JsPbCodeGenerator.
2262
- * @param {Array=} opt_data Optional initial data array, typically from a
2263
- * server response, or constructed directly in Javascript. The array is used
2264
- * in place and becomes part of the constructed object. It is not cloned.
2265
- * If no data is provided, the constructed object will be empty, but still
2266
- * valid.
2267
- * @extends {jspb.Message}
2268
- * @constructor
2269
- */
2270
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking = function(opt_data) {
2271
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2272
- };
2273
- goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking, jspb.Message);
2274
- if (goog.DEBUG && !COMPILED) {
2275
- /**
2276
- * @public
2277
- * @override
2278
- */
2279
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking';
2280
- }
2281
2261
  /**
2282
2262
  * Generated by JsPbCodeGenerator.
2283
2263
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2698,6 +2678,48 @@ if (goog.DEBUG && !COMPILED) {
2698
2678
  */
2699
2679
  proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults';
2700
2680
  }
2681
+ /**
2682
+ * Generated by JsPbCodeGenerator.
2683
+ * @param {Array=} opt_data Optional initial data array, typically from a
2684
+ * server response, or constructed directly in Javascript. The array is used
2685
+ * in place and becomes part of the constructed object. It is not cloned.
2686
+ * If no data is provided, the constructed object will be empty, but still
2687
+ * valid.
2688
+ * @extends {jspb.Message}
2689
+ * @constructor
2690
+ */
2691
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry = function(opt_data) {
2692
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_);
2693
+ };
2694
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry, jspb.Message);
2695
+ if (goog.DEBUG && !COMPILED) {
2696
+ /**
2697
+ * @public
2698
+ * @override
2699
+ */
2700
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry';
2701
+ }
2702
+ /**
2703
+ * Generated by JsPbCodeGenerator.
2704
+ * @param {Array=} opt_data Optional initial data array, typically from a
2705
+ * server response, or constructed directly in Javascript. The array is used
2706
+ * in place and becomes part of the constructed object. It is not cloned.
2707
+ * If no data is provided, the constructed object will be empty, but still
2708
+ * valid.
2709
+ * @extends {jspb.Message}
2710
+ * @constructor
2711
+ */
2712
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries = function(opt_data) {
2713
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.repeatedFields_, null);
2714
+ };
2715
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries, jspb.Message);
2716
+ if (goog.DEBUG && !COMPILED) {
2717
+ /**
2718
+ * @public
2719
+ * @override
2720
+ */
2721
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries';
2722
+ }
2701
2723
  /**
2702
2724
  * Generated by JsPbCodeGenerator.
2703
2725
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -24367,7 +24389,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator = {
24367
24389
  BETWEEN_EXCLUDE_LEFT: 7,
24368
24390
  BETWEEN_EXCLUDE_RIGHT: 8,
24369
24391
  IN: 9,
24370
- STARTS_WITH: 10
24392
+ STARTS_WITH: 10,
24393
+ IN_TIME_RANGE: 11
24371
24394
  };
24372
24395
 
24373
24396
 
@@ -25454,194 +25477,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate.prototype.se
25454
25477
 
25455
25478
 
25456
25479
 
25457
-
25458
-
25459
- if (jspb.Message.GENERATE_TO_OBJECT) {
25460
- /**
25461
- * Creates an object representation of this proto.
25462
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
25463
- * Optional fields that are not set will be set to undefined.
25464
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25465
- * For the list of reserved names please see:
25466
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25467
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25468
- * JSPB instance for transitional soy proto support:
25469
- * http://goto/soy-param-migration
25470
- * @return {!Object}
25471
- */
25472
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.toObject = function(opt_includeInstance) {
25473
- return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.toObject(opt_includeInstance, this);
25474
- };
25475
-
25476
-
25477
- /**
25478
- * Static version of the {@see toObject} method.
25479
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25480
- * the JSPB instance for transitional soy proto support:
25481
- * http://goto/soy-param-migration
25482
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} msg The msg instance to transform.
25483
- * @return {!Object}
25484
- * @suppress {unusedLocalVariables} f is only used for nested messages
25485
- */
25486
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.toObject = function(includeInstance, msg) {
25487
- var f, obj = {
25488
- kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
25489
- n: jspb.Message.getFieldWithDefault(msg, 2, "0")
25490
- };
25491
-
25492
- if (includeInstance) {
25493
- obj.$jspbMessageInstance = msg;
25494
- }
25495
- return obj;
25496
- };
25497
- }
25498
-
25499
-
25500
- /**
25501
- * Deserializes binary data (in protobuf wire format).
25502
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
25503
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking}
25504
- */
25505
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.deserializeBinary = function(bytes) {
25506
- var reader = new jspb.BinaryReader(bytes);
25507
- var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking;
25508
- return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.deserializeBinaryFromReader(msg, reader);
25509
- };
25510
-
25511
-
25512
- /**
25513
- * Deserializes binary data (in protobuf wire format) from the
25514
- * given reader into the given message object.
25515
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} msg The message object to deserialize into.
25516
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25517
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking}
25518
- */
25519
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.deserializeBinaryFromReader = function(msg, reader) {
25520
- while (reader.nextField()) {
25521
- if (reader.isEndGroup()) {
25522
- break;
25523
- }
25524
- var field = reader.getFieldNumber();
25525
- switch (field) {
25526
- case 1:
25527
- var value = /** @type {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind} */ (reader.readEnum());
25528
- msg.setKind(value);
25529
- break;
25530
- case 2:
25531
- var value = /** @type {string} */ (reader.readUint64String());
25532
- msg.setN(value);
25533
- break;
25534
- default:
25535
- reader.skipField();
25536
- break;
25537
- }
25538
- }
25539
- return msg;
25540
- };
25541
-
25542
-
25543
- /**
25544
- * Serializes the message to binary data (in protobuf wire format).
25545
- * @return {!Uint8Array}
25546
- */
25547
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.serializeBinary = function() {
25548
- var writer = new jspb.BinaryWriter();
25549
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.serializeBinaryToWriter(this, writer);
25550
- return writer.getResultBuffer();
25551
- };
25552
-
25553
-
25554
- /**
25555
- * Serializes the given message to binary data (in protobuf wire
25556
- * format), writing to the given BinaryWriter.
25557
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} message
25558
- * @param {!jspb.BinaryWriter} writer
25559
- * @suppress {unusedLocalVariables} f is only used for nested messages
25560
- */
25561
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.serializeBinaryToWriter = function(message, writer) {
25562
- var f = undefined;
25563
- f = message.getKind();
25564
- if (f !== 0.0) {
25565
- writer.writeEnum(
25566
- 1,
25567
- f
25568
- );
25569
- }
25570
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
25571
- if (f != null) {
25572
- writer.writeUint64String(
25573
- 2,
25574
- f
25575
- );
25576
- }
25577
- };
25578
-
25579
-
25580
- /**
25581
- * @enum {number}
25582
- */
25583
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind = {
25584
- MIN: 0,
25585
- MAX: 1,
25586
- TOP: 2,
25587
- BOTTOM: 3
25588
- };
25589
-
25590
- /**
25591
- * optional Kind kind = 1;
25592
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind}
25593
- */
25594
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.getKind = function() {
25595
- return /** @type {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25596
- };
25597
-
25598
-
25599
- /**
25600
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind} value
25601
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} returns this
25602
- */
25603
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.setKind = function(value) {
25604
- return jspb.Message.setProto3EnumField(this, 1, value);
25605
- };
25606
-
25607
-
25608
- /**
25609
- * optional uint64 n = 2;
25610
- * @return {string}
25611
- */
25612
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.getN = function() {
25613
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
25614
- };
25615
-
25616
-
25617
- /**
25618
- * @param {string} value
25619
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} returns this
25620
- */
25621
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.setN = function(value) {
25622
- return jspb.Message.setField(this, 2, value);
25623
- };
25624
-
25625
-
25626
- /**
25627
- * Clears the field making it undefined.
25628
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} returns this
25629
- */
25630
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.clearN = function() {
25631
- return jspb.Message.setField(this, 2, undefined);
25632
- };
25633
-
25634
-
25635
- /**
25636
- * Returns whether this field is set.
25637
- * @return {boolean}
25638
- */
25639
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.hasN = function() {
25640
- return jspb.Message.getField(this, 2) != null;
25641
- };
25642
-
25643
-
25644
-
25645
25480
  /**
25646
25481
  * Oneof group definitions for this message. Each group defines the field
25647
25482
  * numbers belonging to that group. When of these fields' value is set, all
@@ -25650,15 +25485,14 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.prototype.hasN
25650
25485
  * @private {!Array<!Array<number>>}
25651
25486
  * @const
25652
25487
  */
25653
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.oneofGroups_ = [[3,4]];
25488
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.oneofGroups_ = [[3]];
25654
25489
 
25655
25490
  /**
25656
25491
  * @enum {number}
25657
25492
  */
25658
25493
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.RightCase = {
25659
25494
  RIGHT_NOT_SET: 0,
25660
- VALUE: 3,
25661
- RANKING: 4
25495
+ VALUE: 3
25662
25496
  };
25663
25497
 
25664
25498
  /**
@@ -25701,8 +25535,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.toObject = func
25701
25535
  var f, obj = {
25702
25536
  aggregate: (f = msg.getAggregate()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate.toObject(includeInstance, f),
25703
25537
  operator: jspb.Message.getFieldWithDefault(msg, 2, 0),
25704
- value: (f = msg.getValue()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(includeInstance, f),
25705
- ranking: (f = msg.getRanking()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.toObject(includeInstance, f)
25538
+ value: (f = msg.getValue()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(includeInstance, f)
25706
25539
  };
25707
25540
 
25708
25541
  if (includeInstance) {
@@ -25753,11 +25586,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.deserializeBina
25753
25586
  reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.deserializeBinaryFromReader);
25754
25587
  msg.setValue(value);
25755
25588
  break;
25756
- case 4:
25757
- var value = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking;
25758
- reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.deserializeBinaryFromReader);
25759
- msg.setRanking(value);
25760
- break;
25761
25589
  default:
25762
25590
  reader.skipField();
25763
25591
  break;
@@ -25810,14 +25638,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.serializeBinary
25810
25638
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.serializeBinaryToWriter
25811
25639
  );
25812
25640
  }
25813
- f = message.getRanking();
25814
- if (f != null) {
25815
- writer.writeMessage(
25816
- 4,
25817
- f,
25818
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.serializeBinaryToWriter
25819
- );
25820
- }
25821
25641
  };
25822
25642
 
25823
25643
 
@@ -25930,43 +25750,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.prototype.hasVa
25930
25750
  };
25931
25751
 
25932
25752
 
25933
- /**
25934
- * optional HavingRanking ranking = 4;
25935
- * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking}
25936
- */
25937
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.prototype.getRanking = function() {
25938
- return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking} */ (
25939
- jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking, 4));
25940
- };
25941
-
25942
-
25943
- /**
25944
- * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking|undefined} value
25945
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause} returns this
25946
- */
25947
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.prototype.setRanking = function(value) {
25948
- return jspb.Message.setOneofWrapperField(this, 4, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.oneofGroups_[0], value);
25949
- };
25950
-
25951
-
25952
- /**
25953
- * Clears the message field making it undefined.
25954
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause} returns this
25955
- */
25956
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.prototype.clearRanking = function() {
25957
- return this.setRanking(undefined);
25958
- };
25959
-
25960
-
25961
- /**
25962
- * Returns whether this field is set.
25963
- * @return {boolean}
25964
- */
25965
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.prototype.hasRanking = function() {
25966
- return jspb.Message.getField(this, 4) != null;
25967
- };
25968
-
25969
-
25970
25753
 
25971
25754
  /**
25972
25755
  * Oneof group definitions for this message. Each group defines the field
@@ -30824,24 +30607,23 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Aver
30824
30607
  * @private {!Array<!Array<number>>}
30825
30608
  * @const
30826
30609
  */
30827
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.oneofGroups_ = [[1,2,3,4]];
30610
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_ = [[2,3,4]];
30828
30611
 
30829
30612
  /**
30830
30613
  * @enum {number}
30831
30614
  */
30832
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase = {
30833
- VARIANT_NOT_SET: 0,
30834
- DOCUMENTS: 1,
30835
- COUNTS: 2,
30836
- SUMS: 3,
30837
- AVERAGES: 4
30615
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.ValueCase = {
30616
+ VALUE_NOT_SET: 0,
30617
+ COUNT: 2,
30618
+ SUM: 3,
30619
+ AVG: 4
30838
30620
  };
30839
30621
 
30840
30622
  /**
30841
- * @return {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase}
30623
+ * @return {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.ValueCase}
30842
30624
  */
30843
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.getVariantCase = function() {
30844
- return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.oneofGroups_[0]));
30625
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getValueCase = function() {
30626
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.ValueCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0]));
30845
30627
  };
30846
30628
 
30847
30629
 
@@ -30859,8 +30641,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
30859
30641
  * http://goto/soy-param-migration
30860
30642
  * @return {!Object}
30861
30643
  */
30862
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.toObject = function(opt_includeInstance) {
30863
- return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.toObject(opt_includeInstance, this);
30644
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.toObject = function(opt_includeInstance) {
30645
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject(opt_includeInstance, this);
30864
30646
  };
30865
30647
 
30866
30648
 
@@ -30869,16 +30651,17 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
30869
30651
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30870
30652
  * the JSPB instance for transitional soy proto support:
30871
30653
  * http://goto/soy-param-migration
30872
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} msg The msg instance to transform.
30654
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} msg The msg instance to transform.
30873
30655
  * @return {!Object}
30874
30656
  * @suppress {unusedLocalVariables} f is only used for nested messages
30875
30657
  */
30876
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.toObject = function(includeInstance, msg) {
30658
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject = function(includeInstance, msg) {
30877
30659
  var f, obj = {
30878
- documents: (f = msg.getDocuments()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.toObject(includeInstance, f),
30879
- counts: (f = msg.getCounts()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.toObject(includeInstance, f),
30880
- sums: (f = msg.getSums()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.toObject(includeInstance, f),
30881
- averages: (f = msg.getAverages()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.toObject(includeInstance, f)
30660
+ key: msg.getKey_asB64(),
30661
+ count: jspb.Message.getFieldWithDefault(msg, 2, "0"),
30662
+ sum: jspb.Message.getFieldWithDefault(msg, 3, "0"),
30663
+ avg: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
30664
+ inKey: msg.getInKey_asB64()
30882
30665
  };
30883
30666
 
30884
30667
  if (includeInstance) {
@@ -30892,19 +30675,626 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
30892
30675
  /**
30893
30676
  * Deserializes binary data (in protobuf wire format).
30894
30677
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
30895
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData}
30678
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry}
30896
30679
  */
30897
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.deserializeBinary = function(bytes) {
30680
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.deserializeBinary = function(bytes) {
30898
30681
  var reader = new jspb.BinaryReader(bytes);
30899
- var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData;
30900
- return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.deserializeBinaryFromReader(msg, reader);
30682
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry;
30683
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.deserializeBinaryFromReader(msg, reader);
30901
30684
  };
30902
30685
 
30903
30686
 
30904
30687
  /**
30905
30688
  * Deserializes binary data (in protobuf wire format) from the
30906
30689
  * given reader into the given message object.
30907
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} msg The message object to deserialize into.
30690
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} msg The message object to deserialize into.
30691
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30692
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry}
30693
+ */
30694
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.deserializeBinaryFromReader = function(msg, reader) {
30695
+ while (reader.nextField()) {
30696
+ if (reader.isEndGroup()) {
30697
+ break;
30698
+ }
30699
+ var field = reader.getFieldNumber();
30700
+ switch (field) {
30701
+ case 1:
30702
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
30703
+ msg.setKey(value);
30704
+ break;
30705
+ case 2:
30706
+ var value = /** @type {string} */ (reader.readUint64String());
30707
+ msg.setCount(value);
30708
+ break;
30709
+ case 3:
30710
+ var value = /** @type {string} */ (reader.readSint64String());
30711
+ msg.setSum(value);
30712
+ break;
30713
+ case 4:
30714
+ var value = /** @type {number} */ (reader.readDouble());
30715
+ msg.setAvg(value);
30716
+ break;
30717
+ case 5:
30718
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
30719
+ msg.setInKey(value);
30720
+ break;
30721
+ default:
30722
+ reader.skipField();
30723
+ break;
30724
+ }
30725
+ }
30726
+ return msg;
30727
+ };
30728
+
30729
+
30730
+ /**
30731
+ * Serializes the message to binary data (in protobuf wire format).
30732
+ * @return {!Uint8Array}
30733
+ */
30734
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.serializeBinary = function() {
30735
+ var writer = new jspb.BinaryWriter();
30736
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.serializeBinaryToWriter(this, writer);
30737
+ return writer.getResultBuffer();
30738
+ };
30739
+
30740
+
30741
+ /**
30742
+ * Serializes the given message to binary data (in protobuf wire
30743
+ * format), writing to the given BinaryWriter.
30744
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} message
30745
+ * @param {!jspb.BinaryWriter} writer
30746
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30747
+ */
30748
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.serializeBinaryToWriter = function(message, writer) {
30749
+ var f = undefined;
30750
+ f = message.getKey_asU8();
30751
+ if (f.length > 0) {
30752
+ writer.writeBytes(
30753
+ 1,
30754
+ f
30755
+ );
30756
+ }
30757
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
30758
+ if (f != null) {
30759
+ writer.writeUint64String(
30760
+ 2,
30761
+ f
30762
+ );
30763
+ }
30764
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
30765
+ if (f != null) {
30766
+ writer.writeSint64String(
30767
+ 3,
30768
+ f
30769
+ );
30770
+ }
30771
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
30772
+ if (f != null) {
30773
+ writer.writeDouble(
30774
+ 4,
30775
+ f
30776
+ );
30777
+ }
30778
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
30779
+ if (f != null) {
30780
+ writer.writeBytes(
30781
+ 5,
30782
+ f
30783
+ );
30784
+ }
30785
+ };
30786
+
30787
+
30788
+ /**
30789
+ * optional bytes key = 1;
30790
+ * @return {string}
30791
+ */
30792
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getKey = function() {
30793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30794
+ };
30795
+
30796
+
30797
+ /**
30798
+ * optional bytes key = 1;
30799
+ * This is a type-conversion wrapper around `getKey()`
30800
+ * @return {string}
30801
+ */
30802
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getKey_asB64 = function() {
30803
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
30804
+ this.getKey()));
30805
+ };
30806
+
30807
+
30808
+ /**
30809
+ * optional bytes key = 1;
30810
+ * Note that Uint8Array is not supported on all browsers.
30811
+ * @see http://caniuse.com/Uint8Array
30812
+ * This is a type-conversion wrapper around `getKey()`
30813
+ * @return {!Uint8Array}
30814
+ */
30815
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getKey_asU8 = function() {
30816
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
30817
+ this.getKey()));
30818
+ };
30819
+
30820
+
30821
+ /**
30822
+ * @param {!(string|Uint8Array)} value
30823
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30824
+ */
30825
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.setKey = function(value) {
30826
+ return jspb.Message.setProto3BytesField(this, 1, value);
30827
+ };
30828
+
30829
+
30830
+ /**
30831
+ * optional uint64 count = 2;
30832
+ * @return {string}
30833
+ */
30834
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getCount = function() {
30835
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
30836
+ };
30837
+
30838
+
30839
+ /**
30840
+ * @param {string} value
30841
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30842
+ */
30843
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.setCount = function(value) {
30844
+ return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], value);
30845
+ };
30846
+
30847
+
30848
+ /**
30849
+ * Clears the field making it undefined.
30850
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30851
+ */
30852
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.clearCount = function() {
30853
+ return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], undefined);
30854
+ };
30855
+
30856
+
30857
+ /**
30858
+ * Returns whether this field is set.
30859
+ * @return {boolean}
30860
+ */
30861
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.hasCount = function() {
30862
+ return jspb.Message.getField(this, 2) != null;
30863
+ };
30864
+
30865
+
30866
+ /**
30867
+ * optional sint64 sum = 3;
30868
+ * @return {string}
30869
+ */
30870
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getSum = function() {
30871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
30872
+ };
30873
+
30874
+
30875
+ /**
30876
+ * @param {string} value
30877
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30878
+ */
30879
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.setSum = function(value) {
30880
+ return jspb.Message.setOneofField(this, 3, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], value);
30881
+ };
30882
+
30883
+
30884
+ /**
30885
+ * Clears the field making it undefined.
30886
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30887
+ */
30888
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.clearSum = function() {
30889
+ return jspb.Message.setOneofField(this, 3, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], undefined);
30890
+ };
30891
+
30892
+
30893
+ /**
30894
+ * Returns whether this field is set.
30895
+ * @return {boolean}
30896
+ */
30897
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.hasSum = function() {
30898
+ return jspb.Message.getField(this, 3) != null;
30899
+ };
30900
+
30901
+
30902
+ /**
30903
+ * optional double avg = 4;
30904
+ * @return {number}
30905
+ */
30906
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getAvg = function() {
30907
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
30908
+ };
30909
+
30910
+
30911
+ /**
30912
+ * @param {number} value
30913
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30914
+ */
30915
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.setAvg = function(value) {
30916
+ return jspb.Message.setOneofField(this, 4, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], value);
30917
+ };
30918
+
30919
+
30920
+ /**
30921
+ * Clears the field making it undefined.
30922
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30923
+ */
30924
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.clearAvg = function() {
30925
+ return jspb.Message.setOneofField(this, 4, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.oneofGroups_[0], undefined);
30926
+ };
30927
+
30928
+
30929
+ /**
30930
+ * Returns whether this field is set.
30931
+ * @return {boolean}
30932
+ */
30933
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.hasAvg = function() {
30934
+ return jspb.Message.getField(this, 4) != null;
30935
+ };
30936
+
30937
+
30938
+ /**
30939
+ * optional bytes in_key = 5;
30940
+ * @return {string}
30941
+ */
30942
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getInKey = function() {
30943
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
30944
+ };
30945
+
30946
+
30947
+ /**
30948
+ * optional bytes in_key = 5;
30949
+ * This is a type-conversion wrapper around `getInKey()`
30950
+ * @return {string}
30951
+ */
30952
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getInKey_asB64 = function() {
30953
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
30954
+ this.getInKey()));
30955
+ };
30956
+
30957
+
30958
+ /**
30959
+ * optional bytes in_key = 5;
30960
+ * Note that Uint8Array is not supported on all browsers.
30961
+ * @see http://caniuse.com/Uint8Array
30962
+ * This is a type-conversion wrapper around `getInKey()`
30963
+ * @return {!Uint8Array}
30964
+ */
30965
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.getInKey_asU8 = function() {
30966
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
30967
+ this.getInKey()));
30968
+ };
30969
+
30970
+
30971
+ /**
30972
+ * @param {!(string|Uint8Array)} value
30973
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30974
+ */
30975
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.setInKey = function(value) {
30976
+ return jspb.Message.setField(this, 5, value);
30977
+ };
30978
+
30979
+
30980
+ /**
30981
+ * Clears the field making it undefined.
30982
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} returns this
30983
+ */
30984
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.clearInKey = function() {
30985
+ return jspb.Message.setField(this, 5, undefined);
30986
+ };
30987
+
30988
+
30989
+ /**
30990
+ * Returns whether this field is set.
30991
+ * @return {boolean}
30992
+ */
30993
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.prototype.hasInKey = function() {
30994
+ return jspb.Message.getField(this, 5) != null;
30995
+ };
30996
+
30997
+
30998
+
30999
+ /**
31000
+ * List of repeated fields within this message type.
31001
+ * @private {!Array<number>}
31002
+ * @const
31003
+ */
31004
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.repeatedFields_ = [1];
31005
+
31006
+
31007
+
31008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31009
+ /**
31010
+ * Creates an object representation of this proto.
31011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31012
+ * Optional fields that are not set will be set to undefined.
31013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31014
+ * For the list of reserved names please see:
31015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31017
+ * JSPB instance for transitional soy proto support:
31018
+ * http://goto/soy-param-migration
31019
+ * @return {!Object}
31020
+ */
31021
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.toObject = function(opt_includeInstance) {
31022
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(opt_includeInstance, this);
31023
+ };
31024
+
31025
+
31026
+ /**
31027
+ * Static version of the {@see toObject} method.
31028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31029
+ * the JSPB instance for transitional soy proto support:
31030
+ * http://goto/soy-param-migration
31031
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} msg The msg instance to transform.
31032
+ * @return {!Object}
31033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31034
+ */
31035
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject = function(includeInstance, msg) {
31036
+ var f, obj = {
31037
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
31038
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject, includeInstance),
31039
+ skipped: jspb.Message.getFieldWithDefault(msg, 2, "0")
31040
+ };
31041
+
31042
+ if (includeInstance) {
31043
+ obj.$jspbMessageInstance = msg;
31044
+ }
31045
+ return obj;
31046
+ };
31047
+ }
31048
+
31049
+
31050
+ /**
31051
+ * Deserializes binary data (in protobuf wire format).
31052
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31053
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries}
31054
+ */
31055
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.deserializeBinary = function(bytes) {
31056
+ var reader = new jspb.BinaryReader(bytes);
31057
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries;
31058
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.deserializeBinaryFromReader(msg, reader);
31059
+ };
31060
+
31061
+
31062
+ /**
31063
+ * Deserializes binary data (in protobuf wire format) from the
31064
+ * given reader into the given message object.
31065
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} msg The message object to deserialize into.
31066
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31067
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries}
31068
+ */
31069
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.deserializeBinaryFromReader = function(msg, reader) {
31070
+ while (reader.nextField()) {
31071
+ if (reader.isEndGroup()) {
31072
+ break;
31073
+ }
31074
+ var field = reader.getFieldNumber();
31075
+ switch (field) {
31076
+ case 1:
31077
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry;
31078
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.deserializeBinaryFromReader);
31079
+ msg.addEntries(value);
31080
+ break;
31081
+ case 2:
31082
+ var value = /** @type {string} */ (reader.readUint64String());
31083
+ msg.setSkipped(value);
31084
+ break;
31085
+ default:
31086
+ reader.skipField();
31087
+ break;
31088
+ }
31089
+ }
31090
+ return msg;
31091
+ };
31092
+
31093
+
31094
+ /**
31095
+ * Serializes the message to binary data (in protobuf wire format).
31096
+ * @return {!Uint8Array}
31097
+ */
31098
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.serializeBinary = function() {
31099
+ var writer = new jspb.BinaryWriter();
31100
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.serializeBinaryToWriter(this, writer);
31101
+ return writer.getResultBuffer();
31102
+ };
31103
+
31104
+
31105
+ /**
31106
+ * Serializes the given message to binary data (in protobuf wire
31107
+ * format), writing to the given BinaryWriter.
31108
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} message
31109
+ * @param {!jspb.BinaryWriter} writer
31110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31111
+ */
31112
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.serializeBinaryToWriter = function(message, writer) {
31113
+ var f = undefined;
31114
+ f = message.getEntriesList();
31115
+ if (f.length > 0) {
31116
+ writer.writeRepeatedMessage(
31117
+ 1,
31118
+ f,
31119
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.serializeBinaryToWriter
31120
+ );
31121
+ }
31122
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
31123
+ if (f != null) {
31124
+ writer.writeUint64String(
31125
+ 2,
31126
+ f
31127
+ );
31128
+ }
31129
+ };
31130
+
31131
+
31132
+ /**
31133
+ * repeated RankedEntry entries = 1;
31134
+ * @return {!Array<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry>}
31135
+ */
31136
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.getEntriesList = function() {
31137
+ return /** @type{!Array<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry>} */ (
31138
+ jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry, 1));
31139
+ };
31140
+
31141
+
31142
+ /**
31143
+ * @param {!Array<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry>} value
31144
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} returns this
31145
+ */
31146
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.setEntriesList = function(value) {
31147
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
31148
+ };
31149
+
31150
+
31151
+ /**
31152
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry=} opt_value
31153
+ * @param {number=} opt_index
31154
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry}
31155
+ */
31156
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.addEntries = function(opt_value, opt_index) {
31157
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry, opt_index);
31158
+ };
31159
+
31160
+
31161
+ /**
31162
+ * Clears the list making it empty but non-null.
31163
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} returns this
31164
+ */
31165
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.clearEntriesList = function() {
31166
+ return this.setEntriesList([]);
31167
+ };
31168
+
31169
+
31170
+ /**
31171
+ * optional uint64 skipped = 2;
31172
+ * @return {string}
31173
+ */
31174
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.getSkipped = function() {
31175
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
31176
+ };
31177
+
31178
+
31179
+ /**
31180
+ * @param {string} value
31181
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} returns this
31182
+ */
31183
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.setSkipped = function(value) {
31184
+ return jspb.Message.setField(this, 2, value);
31185
+ };
31186
+
31187
+
31188
+ /**
31189
+ * Clears the field making it undefined.
31190
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} returns this
31191
+ */
31192
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.clearSkipped = function() {
31193
+ return jspb.Message.setField(this, 2, undefined);
31194
+ };
31195
+
31196
+
31197
+ /**
31198
+ * Returns whether this field is set.
31199
+ * @return {boolean}
31200
+ */
31201
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.prototype.hasSkipped = function() {
31202
+ return jspb.Message.getField(this, 2) != null;
31203
+ };
31204
+
31205
+
31206
+
31207
+ /**
31208
+ * Oneof group definitions for this message. Each group defines the field
31209
+ * numbers belonging to that group. When of these fields' value is set, all
31210
+ * other fields in the group are cleared. During deserialization, if multiple
31211
+ * fields are encountered for a group, only the last value seen will be kept.
31212
+ * @private {!Array<!Array<number>>}
31213
+ * @const
31214
+ */
31215
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.oneofGroups_ = [[1,2,3,4,5]];
31216
+
31217
+ /**
31218
+ * @enum {number}
31219
+ */
31220
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase = {
31221
+ VARIANT_NOT_SET: 0,
31222
+ DOCUMENTS: 1,
31223
+ COUNTS: 2,
31224
+ SUMS: 3,
31225
+ AVERAGES: 4,
31226
+ RANKED: 5
31227
+ };
31228
+
31229
+ /**
31230
+ * @return {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase}
31231
+ */
31232
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.getVariantCase = function() {
31233
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.VariantCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.oneofGroups_[0]));
31234
+ };
31235
+
31236
+
31237
+
31238
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31239
+ /**
31240
+ * Creates an object representation of this proto.
31241
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31242
+ * Optional fields that are not set will be set to undefined.
31243
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31244
+ * For the list of reserved names please see:
31245
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31246
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31247
+ * JSPB instance for transitional soy proto support:
31248
+ * http://goto/soy-param-migration
31249
+ * @return {!Object}
31250
+ */
31251
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.toObject = function(opt_includeInstance) {
31252
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.toObject(opt_includeInstance, this);
31253
+ };
31254
+
31255
+
31256
+ /**
31257
+ * Static version of the {@see toObject} method.
31258
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31259
+ * the JSPB instance for transitional soy proto support:
31260
+ * http://goto/soy-param-migration
31261
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} msg The msg instance to transform.
31262
+ * @return {!Object}
31263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31264
+ */
31265
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.toObject = function(includeInstance, msg) {
31266
+ var f, obj = {
31267
+ documents: (f = msg.getDocuments()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.toObject(includeInstance, f),
31268
+ counts: (f = msg.getCounts()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.toObject(includeInstance, f),
31269
+ sums: (f = msg.getSums()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.toObject(includeInstance, f),
31270
+ averages: (f = msg.getAverages()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.toObject(includeInstance, f),
31271
+ ranked: (f = msg.getRanked()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(includeInstance, f)
31272
+ };
31273
+
31274
+ if (includeInstance) {
31275
+ obj.$jspbMessageInstance = msg;
31276
+ }
31277
+ return obj;
31278
+ };
31279
+ }
31280
+
31281
+
31282
+ /**
31283
+ * Deserializes binary data (in protobuf wire format).
31284
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31285
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData}
31286
+ */
31287
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.deserializeBinary = function(bytes) {
31288
+ var reader = new jspb.BinaryReader(bytes);
31289
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData;
31290
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.deserializeBinaryFromReader(msg, reader);
31291
+ };
31292
+
31293
+
31294
+ /**
31295
+ * Deserializes binary data (in protobuf wire format) from the
31296
+ * given reader into the given message object.
31297
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} msg The message object to deserialize into.
30908
31298
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30909
31299
  * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData}
30910
31300
  */
@@ -30935,6 +31325,11 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
30935
31325
  reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.deserializeBinaryFromReader);
30936
31326
  msg.setAverages(value);
30937
31327
  break;
31328
+ case 5:
31329
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries;
31330
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.deserializeBinaryFromReader);
31331
+ msg.setRanked(value);
31332
+ break;
30938
31333
  default:
30939
31334
  reader.skipField();
30940
31335
  break;
@@ -30996,6 +31391,14 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
30996
31391
  proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.serializeBinaryToWriter
30997
31392
  );
30998
31393
  }
31394
+ f = message.getRanked();
31395
+ if (f != null) {
31396
+ writer.writeMessage(
31397
+ 5,
31398
+ f,
31399
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.serializeBinaryToWriter
31400
+ );
31401
+ }
30999
31402
  };
31000
31403
 
31001
31404
 
@@ -31147,6 +31550,43 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
31147
31550
  };
31148
31551
 
31149
31552
 
31553
+ /**
31554
+ * optional RankedEntries ranked = 5;
31555
+ * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries}
31556
+ */
31557
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.getRanked = function() {
31558
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} */ (
31559
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries, 5));
31560
+ };
31561
+
31562
+
31563
+ /**
31564
+ * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries|undefined} value
31565
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} returns this
31566
+ */
31567
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.setRanked = function(value) {
31568
+ return jspb.Message.setOneofWrapperField(this, 5, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.oneofGroups_[0], value);
31569
+ };
31570
+
31571
+
31572
+ /**
31573
+ * Clears the message field making it undefined.
31574
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} returns this
31575
+ */
31576
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.clearRanked = function() {
31577
+ return this.setRanked(undefined);
31578
+ };
31579
+
31580
+
31581
+ /**
31582
+ * Returns whether this field is set.
31583
+ * @return {boolean}
31584
+ */
31585
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.prototype.hasRanked = function() {
31586
+ return jspb.Message.getField(this, 5) != null;
31587
+ };
31588
+
31589
+
31150
31590
  /**
31151
31591
  * optional ResultData data = 1;
31152
31592
  * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData}