@dashevo/dapi-grpc 4.1.0 → 4.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +19 -8
- package/build.rs +11 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +668 -375
- package/clients/platform/v0/nodejs/platform_pbjs.js +668 -375
- package/clients/platform/v0/nodejs/platform_protoc.js +656 -289
- package/clients/platform/v0/web/platform_pb.d.ts +83 -42
- package/clients/platform/v0/web/platform_pb.js +656 -289
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +263 -93
|
@@ -20725,271 +20725,6 @@ $root.org = (function() {
|
|
|
20725
20725
|
return HavingAggregate;
|
|
20726
20726
|
})();
|
|
20727
20727
|
|
|
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
20728
|
GetDocumentsRequest.HavingClause = (function() {
|
|
20994
20729
|
|
|
20995
20730
|
/**
|
|
@@ -20999,7 +20734,6 @@ $root.org = (function() {
|
|
|
20999
20734
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingAggregate|null} [aggregate] HavingClause aggregate
|
|
21000
20735
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator|null} [operator] HavingClause operator
|
|
21001
20736
|
* @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
20737
|
*/
|
|
21004
20738
|
|
|
21005
20739
|
/**
|
|
@@ -21041,25 +20775,17 @@ $root.org = (function() {
|
|
|
21041
20775
|
*/
|
|
21042
20776
|
HavingClause.prototype.value = null;
|
|
21043
20777
|
|
|
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
20778
|
// OneOf field names bound to virtual getters and setters
|
|
21053
20779
|
var $oneOfFields;
|
|
21054
20780
|
|
|
21055
20781
|
/**
|
|
21056
20782
|
* HavingClause right.
|
|
21057
|
-
* @member {"value"|
|
|
20783
|
+
* @member {"value"|undefined} right
|
|
21058
20784
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause
|
|
21059
20785
|
* @instance
|
|
21060
20786
|
*/
|
|
21061
20787
|
Object.defineProperty(HavingClause.prototype, "right", {
|
|
21062
|
-
get: $util.oneOfGetter($oneOfFields = ["value"
|
|
20788
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
21063
20789
|
set: $util.oneOfSetter($oneOfFields)
|
|
21064
20790
|
});
|
|
21065
20791
|
|
|
@@ -21093,8 +20819,6 @@ $root.org = (function() {
|
|
|
21093
20819
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
|
|
21094
20820
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
21095
20821
|
$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
20822
|
return writer;
|
|
21099
20823
|
};
|
|
21100
20824
|
|
|
@@ -21138,9 +20862,6 @@ $root.org = (function() {
|
|
|
21138
20862
|
case 3:
|
|
21139
20863
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
|
|
21140
20864
|
break;
|
|
21141
|
-
case 4:
|
|
21142
|
-
message.ranking = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.decode(reader, reader.uint32());
|
|
21143
|
-
break;
|
|
21144
20865
|
default:
|
|
21145
20866
|
reader.skipType(tag & 7);
|
|
21146
20867
|
break;
|
|
@@ -21207,16 +20928,6 @@ $root.org = (function() {
|
|
|
21207
20928
|
return "value." + error;
|
|
21208
20929
|
}
|
|
21209
20930
|
}
|
|
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
20931
|
return null;
|
|
21221
20932
|
};
|
|
21222
20933
|
|
|
@@ -21288,11 +20999,6 @@ $root.org = (function() {
|
|
|
21288
20999
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.value: object expected");
|
|
21289
21000
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
|
|
21290
21001
|
}
|
|
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
21002
|
return message;
|
|
21297
21003
|
};
|
|
21298
21004
|
|
|
@@ -21322,11 +21028,6 @@ $root.org = (function() {
|
|
|
21322
21028
|
if (options.oneofs)
|
|
21323
21029
|
object.right = "value";
|
|
21324
21030
|
}
|
|
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
21031
|
return object;
|
|
21331
21032
|
};
|
|
21332
21033
|
|
|
@@ -26508,27 +26209,27 @@ $root.org = (function() {
|
|
|
26508
26209
|
return AverageResults;
|
|
26509
26210
|
})();
|
|
26510
26211
|
|
|
26511
|
-
GetDocumentsResponseV1.
|
|
26212
|
+
GetDocumentsResponseV1.RankedEntry = (function() {
|
|
26512
26213
|
|
|
26513
26214
|
/**
|
|
26514
|
-
* Properties of a
|
|
26215
|
+
* Properties of a RankedEntry.
|
|
26515
26216
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26516
|
-
* @interface
|
|
26517
|
-
* @property {
|
|
26518
|
-
* @property {
|
|
26519
|
-
* @property {
|
|
26520
|
-
* @property {
|
|
26217
|
+
* @interface IRankedEntry
|
|
26218
|
+
* @property {Uint8Array|null} [key] RankedEntry key
|
|
26219
|
+
* @property {number|Long|null} [count] RankedEntry count
|
|
26220
|
+
* @property {number|Long|null} [sum] RankedEntry sum
|
|
26221
|
+
* @property {number|null} [avg] RankedEntry avg
|
|
26521
26222
|
*/
|
|
26522
26223
|
|
|
26523
26224
|
/**
|
|
26524
|
-
* Constructs a new
|
|
26225
|
+
* Constructs a new RankedEntry.
|
|
26525
26226
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26526
|
-
* @classdesc Represents a
|
|
26527
|
-
* @implements
|
|
26227
|
+
* @classdesc Represents a RankedEntry.
|
|
26228
|
+
* @implements IRankedEntry
|
|
26528
26229
|
* @constructor
|
|
26529
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26230
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
26530
26231
|
*/
|
|
26531
|
-
function
|
|
26232
|
+
function RankedEntry(properties) {
|
|
26532
26233
|
if (properties)
|
|
26533
26234
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26534
26235
|
if (properties[keys[i]] != null)
|
|
@@ -26536,128 +26237,128 @@ $root.org = (function() {
|
|
|
26536
26237
|
}
|
|
26537
26238
|
|
|
26538
26239
|
/**
|
|
26539
|
-
*
|
|
26540
|
-
* @member {
|
|
26541
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26240
|
+
* RankedEntry key.
|
|
26241
|
+
* @member {Uint8Array} key
|
|
26242
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26542
26243
|
* @instance
|
|
26543
26244
|
*/
|
|
26544
|
-
|
|
26245
|
+
RankedEntry.prototype.key = $util.newBuffer([]);
|
|
26545
26246
|
|
|
26546
26247
|
/**
|
|
26547
|
-
*
|
|
26548
|
-
* @member {
|
|
26549
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26248
|
+
* RankedEntry count.
|
|
26249
|
+
* @member {number|Long} count
|
|
26250
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26550
26251
|
* @instance
|
|
26551
26252
|
*/
|
|
26552
|
-
|
|
26253
|
+
RankedEntry.prototype.count = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
26553
26254
|
|
|
26554
26255
|
/**
|
|
26555
|
-
*
|
|
26556
|
-
* @member {
|
|
26557
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26256
|
+
* RankedEntry sum.
|
|
26257
|
+
* @member {number|Long} sum
|
|
26258
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26558
26259
|
* @instance
|
|
26559
26260
|
*/
|
|
26560
|
-
|
|
26261
|
+
RankedEntry.prototype.sum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
26561
26262
|
|
|
26562
26263
|
/**
|
|
26563
|
-
*
|
|
26564
|
-
* @member {
|
|
26565
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26264
|
+
* RankedEntry avg.
|
|
26265
|
+
* @member {number} avg
|
|
26266
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26566
26267
|
* @instance
|
|
26567
26268
|
*/
|
|
26568
|
-
|
|
26269
|
+
RankedEntry.prototype.avg = 0;
|
|
26569
26270
|
|
|
26570
26271
|
// OneOf field names bound to virtual getters and setters
|
|
26571
26272
|
var $oneOfFields;
|
|
26572
26273
|
|
|
26573
26274
|
/**
|
|
26574
|
-
*
|
|
26575
|
-
* @member {"
|
|
26576
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26275
|
+
* RankedEntry value.
|
|
26276
|
+
* @member {"count"|"sum"|"avg"|undefined} value
|
|
26277
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26577
26278
|
* @instance
|
|
26578
26279
|
*/
|
|
26579
|
-
Object.defineProperty(
|
|
26580
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
26280
|
+
Object.defineProperty(RankedEntry.prototype, "value", {
|
|
26281
|
+
get: $util.oneOfGetter($oneOfFields = ["count", "sum", "avg"]),
|
|
26581
26282
|
set: $util.oneOfSetter($oneOfFields)
|
|
26582
26283
|
});
|
|
26583
26284
|
|
|
26584
26285
|
/**
|
|
26585
|
-
* Creates a new
|
|
26286
|
+
* Creates a new RankedEntry instance using the specified properties.
|
|
26586
26287
|
* @function create
|
|
26587
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26288
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26588
26289
|
* @static
|
|
26589
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26590
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26290
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry=} [properties] Properties to set
|
|
26291
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry instance
|
|
26591
26292
|
*/
|
|
26592
|
-
|
|
26593
|
-
return new
|
|
26293
|
+
RankedEntry.create = function create(properties) {
|
|
26294
|
+
return new RankedEntry(properties);
|
|
26594
26295
|
};
|
|
26595
26296
|
|
|
26596
26297
|
/**
|
|
26597
|
-
* Encodes the specified
|
|
26298
|
+
* Encodes the specified RankedEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
26598
26299
|
* @function encode
|
|
26599
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26300
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26600
26301
|
* @static
|
|
26601
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26302
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
26602
26303
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26603
26304
|
* @returns {$protobuf.Writer} Writer
|
|
26604
26305
|
*/
|
|
26605
|
-
|
|
26306
|
+
RankedEntry.encode = function encode(message, writer) {
|
|
26606
26307
|
if (!writer)
|
|
26607
26308
|
writer = $Writer.create();
|
|
26608
|
-
if (message.
|
|
26609
|
-
|
|
26610
|
-
if (message.
|
|
26611
|
-
|
|
26612
|
-
if (message.
|
|
26613
|
-
|
|
26614
|
-
if (message.
|
|
26615
|
-
|
|
26309
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
26310
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
|
|
26311
|
+
if (message.count != null && Object.hasOwnProperty.call(message, "count"))
|
|
26312
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.count);
|
|
26313
|
+
if (message.sum != null && Object.hasOwnProperty.call(message, "sum"))
|
|
26314
|
+
writer.uint32(/* id 3, wireType 0 =*/24).sint64(message.sum);
|
|
26315
|
+
if (message.avg != null && Object.hasOwnProperty.call(message, "avg"))
|
|
26316
|
+
writer.uint32(/* id 4, wireType 1 =*/33).double(message.avg);
|
|
26616
26317
|
return writer;
|
|
26617
26318
|
};
|
|
26618
26319
|
|
|
26619
26320
|
/**
|
|
26620
|
-
* Encodes the specified
|
|
26321
|
+
* Encodes the specified RankedEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify|verify} messages.
|
|
26621
26322
|
* @function encodeDelimited
|
|
26622
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26323
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26623
26324
|
* @static
|
|
26624
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26325
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry} message RankedEntry message or plain object to encode
|
|
26625
26326
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26626
26327
|
* @returns {$protobuf.Writer} Writer
|
|
26627
26328
|
*/
|
|
26628
|
-
|
|
26329
|
+
RankedEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26629
26330
|
return this.encode(message, writer).ldelim();
|
|
26630
26331
|
};
|
|
26631
26332
|
|
|
26632
26333
|
/**
|
|
26633
|
-
* Decodes a
|
|
26334
|
+
* Decodes a RankedEntry message from the specified reader or buffer.
|
|
26634
26335
|
* @function decode
|
|
26635
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26336
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26636
26337
|
* @static
|
|
26637
26338
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26638
26339
|
* @param {number} [length] Message length if known beforehand
|
|
26639
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26340
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26640
26341
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26641
26342
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26642
26343
|
*/
|
|
26643
|
-
|
|
26344
|
+
RankedEntry.decode = function decode(reader, length) {
|
|
26644
26345
|
if (!(reader instanceof $Reader))
|
|
26645
26346
|
reader = $Reader.create(reader);
|
|
26646
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26347
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
26647
26348
|
while (reader.pos < end) {
|
|
26648
26349
|
var tag = reader.uint32();
|
|
26649
26350
|
switch (tag >>> 3) {
|
|
26650
26351
|
case 1:
|
|
26651
|
-
message.
|
|
26352
|
+
message.key = reader.bytes();
|
|
26652
26353
|
break;
|
|
26653
26354
|
case 2:
|
|
26654
|
-
message.
|
|
26355
|
+
message.count = reader.uint64();
|
|
26655
26356
|
break;
|
|
26656
26357
|
case 3:
|
|
26657
|
-
message.
|
|
26358
|
+
message.sum = reader.sint64();
|
|
26658
26359
|
break;
|
|
26659
26360
|
case 4:
|
|
26660
|
-
message.
|
|
26361
|
+
message.avg = reader.double();
|
|
26661
26362
|
break;
|
|
26662
26363
|
default:
|
|
26663
26364
|
reader.skipType(tag & 7);
|
|
@@ -26668,36 +26369,608 @@ $root.org = (function() {
|
|
|
26668
26369
|
};
|
|
26669
26370
|
|
|
26670
26371
|
/**
|
|
26671
|
-
* Decodes a
|
|
26372
|
+
* Decodes a RankedEntry message from the specified reader or buffer, length delimited.
|
|
26672
26373
|
* @function decodeDelimited
|
|
26673
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26374
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26674
26375
|
* @static
|
|
26675
26376
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26676
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26377
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26677
26378
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26678
26379
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26679
26380
|
*/
|
|
26680
|
-
|
|
26381
|
+
RankedEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
26681
26382
|
if (!(reader instanceof $Reader))
|
|
26682
26383
|
reader = new $Reader(reader);
|
|
26683
26384
|
return this.decode(reader, reader.uint32());
|
|
26684
26385
|
};
|
|
26685
26386
|
|
|
26686
26387
|
/**
|
|
26687
|
-
* Verifies a
|
|
26388
|
+
* Verifies a RankedEntry message.
|
|
26688
26389
|
* @function verify
|
|
26689
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
26390
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26690
26391
|
* @static
|
|
26691
26392
|
* @param {Object.<string,*>} message Plain object to verify
|
|
26692
26393
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26693
26394
|
*/
|
|
26694
|
-
|
|
26395
|
+
RankedEntry.verify = function verify(message) {
|
|
26695
26396
|
if (typeof message !== "object" || message === null)
|
|
26696
26397
|
return "object expected";
|
|
26697
26398
|
var properties = {};
|
|
26698
|
-
if (message.
|
|
26699
|
-
|
|
26700
|
-
|
|
26399
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
26400
|
+
if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
|
|
26401
|
+
return "key: buffer expected";
|
|
26402
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
26403
|
+
properties.value = 1;
|
|
26404
|
+
if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
|
|
26405
|
+
return "count: integer|Long expected";
|
|
26406
|
+
}
|
|
26407
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
26408
|
+
if (properties.value === 1)
|
|
26409
|
+
return "value: multiple values";
|
|
26410
|
+
properties.value = 1;
|
|
26411
|
+
if (!$util.isInteger(message.sum) && !(message.sum && $util.isInteger(message.sum.low) && $util.isInteger(message.sum.high)))
|
|
26412
|
+
return "sum: integer|Long expected";
|
|
26413
|
+
}
|
|
26414
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
26415
|
+
if (properties.value === 1)
|
|
26416
|
+
return "value: multiple values";
|
|
26417
|
+
properties.value = 1;
|
|
26418
|
+
if (typeof message.avg !== "number")
|
|
26419
|
+
return "avg: number expected";
|
|
26420
|
+
}
|
|
26421
|
+
return null;
|
|
26422
|
+
};
|
|
26423
|
+
|
|
26424
|
+
/**
|
|
26425
|
+
* Creates a RankedEntry message from a plain object. Also converts values to their respective internal types.
|
|
26426
|
+
* @function fromObject
|
|
26427
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26428
|
+
* @static
|
|
26429
|
+
* @param {Object.<string,*>} object Plain object
|
|
26430
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} RankedEntry
|
|
26431
|
+
*/
|
|
26432
|
+
RankedEntry.fromObject = function fromObject(object) {
|
|
26433
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry)
|
|
26434
|
+
return object;
|
|
26435
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry();
|
|
26436
|
+
if (object.key != null)
|
|
26437
|
+
if (typeof object.key === "string")
|
|
26438
|
+
$util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
|
|
26439
|
+
else if (object.key.length >= 0)
|
|
26440
|
+
message.key = object.key;
|
|
26441
|
+
if (object.count != null)
|
|
26442
|
+
if ($util.Long)
|
|
26443
|
+
(message.count = $util.Long.fromValue(object.count)).unsigned = true;
|
|
26444
|
+
else if (typeof object.count === "string")
|
|
26445
|
+
message.count = parseInt(object.count, 10);
|
|
26446
|
+
else if (typeof object.count === "number")
|
|
26447
|
+
message.count = object.count;
|
|
26448
|
+
else if (typeof object.count === "object")
|
|
26449
|
+
message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(true);
|
|
26450
|
+
if (object.sum != null)
|
|
26451
|
+
if ($util.Long)
|
|
26452
|
+
(message.sum = $util.Long.fromValue(object.sum)).unsigned = false;
|
|
26453
|
+
else if (typeof object.sum === "string")
|
|
26454
|
+
message.sum = parseInt(object.sum, 10);
|
|
26455
|
+
else if (typeof object.sum === "number")
|
|
26456
|
+
message.sum = object.sum;
|
|
26457
|
+
else if (typeof object.sum === "object")
|
|
26458
|
+
message.sum = new $util.LongBits(object.sum.low >>> 0, object.sum.high >>> 0).toNumber();
|
|
26459
|
+
if (object.avg != null)
|
|
26460
|
+
message.avg = Number(object.avg);
|
|
26461
|
+
return message;
|
|
26462
|
+
};
|
|
26463
|
+
|
|
26464
|
+
/**
|
|
26465
|
+
* Creates a plain object from a RankedEntry message. Also converts values to other types if specified.
|
|
26466
|
+
* @function toObject
|
|
26467
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26468
|
+
* @static
|
|
26469
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry} message RankedEntry
|
|
26470
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26471
|
+
* @returns {Object.<string,*>} Plain object
|
|
26472
|
+
*/
|
|
26473
|
+
RankedEntry.toObject = function toObject(message, options) {
|
|
26474
|
+
if (!options)
|
|
26475
|
+
options = {};
|
|
26476
|
+
var object = {};
|
|
26477
|
+
if (options.defaults)
|
|
26478
|
+
if (options.bytes === String)
|
|
26479
|
+
object.key = "";
|
|
26480
|
+
else {
|
|
26481
|
+
object.key = [];
|
|
26482
|
+
if (options.bytes !== Array)
|
|
26483
|
+
object.key = $util.newBuffer(object.key);
|
|
26484
|
+
}
|
|
26485
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
26486
|
+
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;
|
|
26487
|
+
if (message.count != null && message.hasOwnProperty("count")) {
|
|
26488
|
+
if (typeof message.count === "number")
|
|
26489
|
+
object.count = options.longs === String ? String(message.count) : message.count;
|
|
26490
|
+
else
|
|
26491
|
+
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;
|
|
26492
|
+
if (options.oneofs)
|
|
26493
|
+
object.value = "count";
|
|
26494
|
+
}
|
|
26495
|
+
if (message.sum != null && message.hasOwnProperty("sum")) {
|
|
26496
|
+
if (typeof message.sum === "number")
|
|
26497
|
+
object.sum = options.longs === String ? String(message.sum) : message.sum;
|
|
26498
|
+
else
|
|
26499
|
+
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;
|
|
26500
|
+
if (options.oneofs)
|
|
26501
|
+
object.value = "sum";
|
|
26502
|
+
}
|
|
26503
|
+
if (message.avg != null && message.hasOwnProperty("avg")) {
|
|
26504
|
+
object.avg = options.json && !isFinite(message.avg) ? String(message.avg) : message.avg;
|
|
26505
|
+
if (options.oneofs)
|
|
26506
|
+
object.value = "avg";
|
|
26507
|
+
}
|
|
26508
|
+
return object;
|
|
26509
|
+
};
|
|
26510
|
+
|
|
26511
|
+
/**
|
|
26512
|
+
* Converts this RankedEntry to JSON.
|
|
26513
|
+
* @function toJSON
|
|
26514
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry
|
|
26515
|
+
* @instance
|
|
26516
|
+
* @returns {Object.<string,*>} JSON object
|
|
26517
|
+
*/
|
|
26518
|
+
RankedEntry.prototype.toJSON = function toJSON() {
|
|
26519
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26520
|
+
};
|
|
26521
|
+
|
|
26522
|
+
return RankedEntry;
|
|
26523
|
+
})();
|
|
26524
|
+
|
|
26525
|
+
GetDocumentsResponseV1.RankedEntries = (function() {
|
|
26526
|
+
|
|
26527
|
+
/**
|
|
26528
|
+
* Properties of a RankedEntries.
|
|
26529
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26530
|
+
* @interface IRankedEntries
|
|
26531
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>|null} [entries] RankedEntries entries
|
|
26532
|
+
* @property {number|Long|null} [skipped] RankedEntries skipped
|
|
26533
|
+
*/
|
|
26534
|
+
|
|
26535
|
+
/**
|
|
26536
|
+
* Constructs a new RankedEntries.
|
|
26537
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26538
|
+
* @classdesc Represents a RankedEntries.
|
|
26539
|
+
* @implements IRankedEntries
|
|
26540
|
+
* @constructor
|
|
26541
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
26542
|
+
*/
|
|
26543
|
+
function RankedEntries(properties) {
|
|
26544
|
+
this.entries = [];
|
|
26545
|
+
if (properties)
|
|
26546
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26547
|
+
if (properties[keys[i]] != null)
|
|
26548
|
+
this[keys[i]] = properties[keys[i]];
|
|
26549
|
+
}
|
|
26550
|
+
|
|
26551
|
+
/**
|
|
26552
|
+
* RankedEntries entries.
|
|
26553
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntry>} entries
|
|
26554
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26555
|
+
* @instance
|
|
26556
|
+
*/
|
|
26557
|
+
RankedEntries.prototype.entries = $util.emptyArray;
|
|
26558
|
+
|
|
26559
|
+
/**
|
|
26560
|
+
* RankedEntries skipped.
|
|
26561
|
+
* @member {number|Long} skipped
|
|
26562
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26563
|
+
* @instance
|
|
26564
|
+
*/
|
|
26565
|
+
RankedEntries.prototype.skipped = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
26566
|
+
|
|
26567
|
+
/**
|
|
26568
|
+
* Creates a new RankedEntries instance using the specified properties.
|
|
26569
|
+
* @function create
|
|
26570
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26571
|
+
* @static
|
|
26572
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries=} [properties] Properties to set
|
|
26573
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries instance
|
|
26574
|
+
*/
|
|
26575
|
+
RankedEntries.create = function create(properties) {
|
|
26576
|
+
return new RankedEntries(properties);
|
|
26577
|
+
};
|
|
26578
|
+
|
|
26579
|
+
/**
|
|
26580
|
+
* Encodes the specified RankedEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
26581
|
+
* @function encode
|
|
26582
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26583
|
+
* @static
|
|
26584
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
26585
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26586
|
+
* @returns {$protobuf.Writer} Writer
|
|
26587
|
+
*/
|
|
26588
|
+
RankedEntries.encode = function encode(message, writer) {
|
|
26589
|
+
if (!writer)
|
|
26590
|
+
writer = $Writer.create();
|
|
26591
|
+
if (message.entries != null && message.entries.length)
|
|
26592
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
26593
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
26594
|
+
if (message.skipped != null && Object.hasOwnProperty.call(message, "skipped"))
|
|
26595
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.skipped);
|
|
26596
|
+
return writer;
|
|
26597
|
+
};
|
|
26598
|
+
|
|
26599
|
+
/**
|
|
26600
|
+
* Encodes the specified RankedEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify|verify} messages.
|
|
26601
|
+
* @function encodeDelimited
|
|
26602
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26603
|
+
* @static
|
|
26604
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries} message RankedEntries message or plain object to encode
|
|
26605
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26606
|
+
* @returns {$protobuf.Writer} Writer
|
|
26607
|
+
*/
|
|
26608
|
+
RankedEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26609
|
+
return this.encode(message, writer).ldelim();
|
|
26610
|
+
};
|
|
26611
|
+
|
|
26612
|
+
/**
|
|
26613
|
+
* Decodes a RankedEntries message from the specified reader or buffer.
|
|
26614
|
+
* @function decode
|
|
26615
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26616
|
+
* @static
|
|
26617
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26618
|
+
* @param {number} [length] Message length if known beforehand
|
|
26619
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
26620
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26621
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26622
|
+
*/
|
|
26623
|
+
RankedEntries.decode = function decode(reader, length) {
|
|
26624
|
+
if (!(reader instanceof $Reader))
|
|
26625
|
+
reader = $Reader.create(reader);
|
|
26626
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
26627
|
+
while (reader.pos < end) {
|
|
26628
|
+
var tag = reader.uint32();
|
|
26629
|
+
switch (tag >>> 3) {
|
|
26630
|
+
case 1:
|
|
26631
|
+
if (!(message.entries && message.entries.length))
|
|
26632
|
+
message.entries = [];
|
|
26633
|
+
message.entries.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.decode(reader, reader.uint32()));
|
|
26634
|
+
break;
|
|
26635
|
+
case 2:
|
|
26636
|
+
message.skipped = reader.uint64();
|
|
26637
|
+
break;
|
|
26638
|
+
default:
|
|
26639
|
+
reader.skipType(tag & 7);
|
|
26640
|
+
break;
|
|
26641
|
+
}
|
|
26642
|
+
}
|
|
26643
|
+
return message;
|
|
26644
|
+
};
|
|
26645
|
+
|
|
26646
|
+
/**
|
|
26647
|
+
* Decodes a RankedEntries message from the specified reader or buffer, length delimited.
|
|
26648
|
+
* @function decodeDelimited
|
|
26649
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26650
|
+
* @static
|
|
26651
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26652
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
26653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26655
|
+
*/
|
|
26656
|
+
RankedEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
26657
|
+
if (!(reader instanceof $Reader))
|
|
26658
|
+
reader = new $Reader(reader);
|
|
26659
|
+
return this.decode(reader, reader.uint32());
|
|
26660
|
+
};
|
|
26661
|
+
|
|
26662
|
+
/**
|
|
26663
|
+
* Verifies a RankedEntries message.
|
|
26664
|
+
* @function verify
|
|
26665
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26666
|
+
* @static
|
|
26667
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26668
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26669
|
+
*/
|
|
26670
|
+
RankedEntries.verify = function verify(message) {
|
|
26671
|
+
if (typeof message !== "object" || message === null)
|
|
26672
|
+
return "object expected";
|
|
26673
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
26674
|
+
if (!Array.isArray(message.entries))
|
|
26675
|
+
return "entries: array expected";
|
|
26676
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
26677
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.verify(message.entries[i]);
|
|
26678
|
+
if (error)
|
|
26679
|
+
return "entries." + error;
|
|
26680
|
+
}
|
|
26681
|
+
}
|
|
26682
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
26683
|
+
if (!$util.isInteger(message.skipped) && !(message.skipped && $util.isInteger(message.skipped.low) && $util.isInteger(message.skipped.high)))
|
|
26684
|
+
return "skipped: integer|Long expected";
|
|
26685
|
+
return null;
|
|
26686
|
+
};
|
|
26687
|
+
|
|
26688
|
+
/**
|
|
26689
|
+
* Creates a RankedEntries message from a plain object. Also converts values to their respective internal types.
|
|
26690
|
+
* @function fromObject
|
|
26691
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26692
|
+
* @static
|
|
26693
|
+
* @param {Object.<string,*>} object Plain object
|
|
26694
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} RankedEntries
|
|
26695
|
+
*/
|
|
26696
|
+
RankedEntries.fromObject = function fromObject(object) {
|
|
26697
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries)
|
|
26698
|
+
return object;
|
|
26699
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries();
|
|
26700
|
+
if (object.entries) {
|
|
26701
|
+
if (!Array.isArray(object.entries))
|
|
26702
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: array expected");
|
|
26703
|
+
message.entries = [];
|
|
26704
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
26705
|
+
if (typeof object.entries[i] !== "object")
|
|
26706
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.entries: object expected");
|
|
26707
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.fromObject(object.entries[i]);
|
|
26708
|
+
}
|
|
26709
|
+
}
|
|
26710
|
+
if (object.skipped != null)
|
|
26711
|
+
if ($util.Long)
|
|
26712
|
+
(message.skipped = $util.Long.fromValue(object.skipped)).unsigned = true;
|
|
26713
|
+
else if (typeof object.skipped === "string")
|
|
26714
|
+
message.skipped = parseInt(object.skipped, 10);
|
|
26715
|
+
else if (typeof object.skipped === "number")
|
|
26716
|
+
message.skipped = object.skipped;
|
|
26717
|
+
else if (typeof object.skipped === "object")
|
|
26718
|
+
message.skipped = new $util.LongBits(object.skipped.low >>> 0, object.skipped.high >>> 0).toNumber(true);
|
|
26719
|
+
return message;
|
|
26720
|
+
};
|
|
26721
|
+
|
|
26722
|
+
/**
|
|
26723
|
+
* Creates a plain object from a RankedEntries message. Also converts values to other types if specified.
|
|
26724
|
+
* @function toObject
|
|
26725
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26726
|
+
* @static
|
|
26727
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries} message RankedEntries
|
|
26728
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26729
|
+
* @returns {Object.<string,*>} Plain object
|
|
26730
|
+
*/
|
|
26731
|
+
RankedEntries.toObject = function toObject(message, options) {
|
|
26732
|
+
if (!options)
|
|
26733
|
+
options = {};
|
|
26734
|
+
var object = {};
|
|
26735
|
+
if (options.arrays || options.defaults)
|
|
26736
|
+
object.entries = [];
|
|
26737
|
+
if (options.defaults)
|
|
26738
|
+
if ($util.Long) {
|
|
26739
|
+
var long = new $util.Long(0, 0, true);
|
|
26740
|
+
object.skipped = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
26741
|
+
} else
|
|
26742
|
+
object.skipped = options.longs === String ? "0" : 0;
|
|
26743
|
+
if (message.entries && message.entries.length) {
|
|
26744
|
+
object.entries = [];
|
|
26745
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
26746
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntry.toObject(message.entries[j], options);
|
|
26747
|
+
}
|
|
26748
|
+
if (message.skipped != null && message.hasOwnProperty("skipped"))
|
|
26749
|
+
if (typeof message.skipped === "number")
|
|
26750
|
+
object.skipped = options.longs === String ? String(message.skipped) : message.skipped;
|
|
26751
|
+
else
|
|
26752
|
+
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;
|
|
26753
|
+
return object;
|
|
26754
|
+
};
|
|
26755
|
+
|
|
26756
|
+
/**
|
|
26757
|
+
* Converts this RankedEntries to JSON.
|
|
26758
|
+
* @function toJSON
|
|
26759
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries
|
|
26760
|
+
* @instance
|
|
26761
|
+
* @returns {Object.<string,*>} JSON object
|
|
26762
|
+
*/
|
|
26763
|
+
RankedEntries.prototype.toJSON = function toJSON() {
|
|
26764
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26765
|
+
};
|
|
26766
|
+
|
|
26767
|
+
return RankedEntries;
|
|
26768
|
+
})();
|
|
26769
|
+
|
|
26770
|
+
GetDocumentsResponseV1.ResultData = (function() {
|
|
26771
|
+
|
|
26772
|
+
/**
|
|
26773
|
+
* Properties of a ResultData.
|
|
26774
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26775
|
+
* @interface IResultData
|
|
26776
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] ResultData documents
|
|
26777
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null} [counts] ResultData counts
|
|
26778
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
|
|
26779
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
|
|
26780
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
|
|
26781
|
+
*/
|
|
26782
|
+
|
|
26783
|
+
/**
|
|
26784
|
+
* Constructs a new ResultData.
|
|
26785
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
26786
|
+
* @classdesc Represents a ResultData.
|
|
26787
|
+
* @implements IResultData
|
|
26788
|
+
* @constructor
|
|
26789
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
26790
|
+
*/
|
|
26791
|
+
function ResultData(properties) {
|
|
26792
|
+
if (properties)
|
|
26793
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26794
|
+
if (properties[keys[i]] != null)
|
|
26795
|
+
this[keys[i]] = properties[keys[i]];
|
|
26796
|
+
}
|
|
26797
|
+
|
|
26798
|
+
/**
|
|
26799
|
+
* ResultData documents.
|
|
26800
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
|
|
26801
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26802
|
+
* @instance
|
|
26803
|
+
*/
|
|
26804
|
+
ResultData.prototype.documents = null;
|
|
26805
|
+
|
|
26806
|
+
/**
|
|
26807
|
+
* ResultData counts.
|
|
26808
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountResults|null|undefined} counts
|
|
26809
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26810
|
+
* @instance
|
|
26811
|
+
*/
|
|
26812
|
+
ResultData.prototype.counts = null;
|
|
26813
|
+
|
|
26814
|
+
/**
|
|
26815
|
+
* ResultData sums.
|
|
26816
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null|undefined} sums
|
|
26817
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26818
|
+
* @instance
|
|
26819
|
+
*/
|
|
26820
|
+
ResultData.prototype.sums = null;
|
|
26821
|
+
|
|
26822
|
+
/**
|
|
26823
|
+
* ResultData averages.
|
|
26824
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null|undefined} averages
|
|
26825
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26826
|
+
* @instance
|
|
26827
|
+
*/
|
|
26828
|
+
ResultData.prototype.averages = null;
|
|
26829
|
+
|
|
26830
|
+
/**
|
|
26831
|
+
* ResultData ranked.
|
|
26832
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null|undefined} ranked
|
|
26833
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26834
|
+
* @instance
|
|
26835
|
+
*/
|
|
26836
|
+
ResultData.prototype.ranked = null;
|
|
26837
|
+
|
|
26838
|
+
// OneOf field names bound to virtual getters and setters
|
|
26839
|
+
var $oneOfFields;
|
|
26840
|
+
|
|
26841
|
+
/**
|
|
26842
|
+
* ResultData variant.
|
|
26843
|
+
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
|
|
26844
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26845
|
+
* @instance
|
|
26846
|
+
*/
|
|
26847
|
+
Object.defineProperty(ResultData.prototype, "variant", {
|
|
26848
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
|
|
26849
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
26850
|
+
});
|
|
26851
|
+
|
|
26852
|
+
/**
|
|
26853
|
+
* Creates a new ResultData instance using the specified properties.
|
|
26854
|
+
* @function create
|
|
26855
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26856
|
+
* @static
|
|
26857
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData=} [properties] Properties to set
|
|
26858
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData instance
|
|
26859
|
+
*/
|
|
26860
|
+
ResultData.create = function create(properties) {
|
|
26861
|
+
return new ResultData(properties);
|
|
26862
|
+
};
|
|
26863
|
+
|
|
26864
|
+
/**
|
|
26865
|
+
* Encodes the specified ResultData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
26866
|
+
* @function encode
|
|
26867
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26868
|
+
* @static
|
|
26869
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
26870
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26871
|
+
* @returns {$protobuf.Writer} Writer
|
|
26872
|
+
*/
|
|
26873
|
+
ResultData.encode = function encode(message, writer) {
|
|
26874
|
+
if (!writer)
|
|
26875
|
+
writer = $Writer.create();
|
|
26876
|
+
if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
|
|
26877
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
26878
|
+
if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
|
|
26879
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
26880
|
+
if (message.sums != null && Object.hasOwnProperty.call(message, "sums"))
|
|
26881
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.encode(message.sums, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
26882
|
+
if (message.averages != null && Object.hasOwnProperty.call(message, "averages"))
|
|
26883
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
26884
|
+
if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
|
|
26885
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
26886
|
+
return writer;
|
|
26887
|
+
};
|
|
26888
|
+
|
|
26889
|
+
/**
|
|
26890
|
+
* Encodes the specified ResultData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.verify|verify} messages.
|
|
26891
|
+
* @function encodeDelimited
|
|
26892
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26893
|
+
* @static
|
|
26894
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IResultData} message ResultData message or plain object to encode
|
|
26895
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26896
|
+
* @returns {$protobuf.Writer} Writer
|
|
26897
|
+
*/
|
|
26898
|
+
ResultData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26899
|
+
return this.encode(message, writer).ldelim();
|
|
26900
|
+
};
|
|
26901
|
+
|
|
26902
|
+
/**
|
|
26903
|
+
* Decodes a ResultData message from the specified reader or buffer.
|
|
26904
|
+
* @function decode
|
|
26905
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26906
|
+
* @static
|
|
26907
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26908
|
+
* @param {number} [length] Message length if known beforehand
|
|
26909
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
|
|
26910
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26911
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26912
|
+
*/
|
|
26913
|
+
ResultData.decode = function decode(reader, length) {
|
|
26914
|
+
if (!(reader instanceof $Reader))
|
|
26915
|
+
reader = $Reader.create(reader);
|
|
26916
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData();
|
|
26917
|
+
while (reader.pos < end) {
|
|
26918
|
+
var tag = reader.uint32();
|
|
26919
|
+
switch (tag >>> 3) {
|
|
26920
|
+
case 1:
|
|
26921
|
+
message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
|
|
26922
|
+
break;
|
|
26923
|
+
case 2:
|
|
26924
|
+
message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResults.decode(reader, reader.uint32());
|
|
26925
|
+
break;
|
|
26926
|
+
case 3:
|
|
26927
|
+
message.sums = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResults.decode(reader, reader.uint32());
|
|
26928
|
+
break;
|
|
26929
|
+
case 4:
|
|
26930
|
+
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.decode(reader, reader.uint32());
|
|
26931
|
+
break;
|
|
26932
|
+
case 5:
|
|
26933
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
|
|
26934
|
+
break;
|
|
26935
|
+
default:
|
|
26936
|
+
reader.skipType(tag & 7);
|
|
26937
|
+
break;
|
|
26938
|
+
}
|
|
26939
|
+
}
|
|
26940
|
+
return message;
|
|
26941
|
+
};
|
|
26942
|
+
|
|
26943
|
+
/**
|
|
26944
|
+
* Decodes a ResultData message from the specified reader or buffer, length delimited.
|
|
26945
|
+
* @function decodeDelimited
|
|
26946
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26947
|
+
* @static
|
|
26948
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26949
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData} ResultData
|
|
26950
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26951
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26952
|
+
*/
|
|
26953
|
+
ResultData.decodeDelimited = function decodeDelimited(reader) {
|
|
26954
|
+
if (!(reader instanceof $Reader))
|
|
26955
|
+
reader = new $Reader(reader);
|
|
26956
|
+
return this.decode(reader, reader.uint32());
|
|
26957
|
+
};
|
|
26958
|
+
|
|
26959
|
+
/**
|
|
26960
|
+
* Verifies a ResultData message.
|
|
26961
|
+
* @function verify
|
|
26962
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
26963
|
+
* @static
|
|
26964
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26965
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26966
|
+
*/
|
|
26967
|
+
ResultData.verify = function verify(message) {
|
|
26968
|
+
if (typeof message !== "object" || message === null)
|
|
26969
|
+
return "object expected";
|
|
26970
|
+
var properties = {};
|
|
26971
|
+
if (message.documents != null && message.hasOwnProperty("documents")) {
|
|
26972
|
+
properties.variant = 1;
|
|
26973
|
+
{
|
|
26701
26974
|
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.verify(message.documents);
|
|
26702
26975
|
if (error)
|
|
26703
26976
|
return "documents." + error;
|
|
@@ -26733,6 +27006,16 @@ $root.org = (function() {
|
|
|
26733
27006
|
return "averages." + error;
|
|
26734
27007
|
}
|
|
26735
27008
|
}
|
|
27009
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27010
|
+
if (properties.variant === 1)
|
|
27011
|
+
return "variant: multiple values";
|
|
27012
|
+
properties.variant = 1;
|
|
27013
|
+
{
|
|
27014
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.verify(message.ranked);
|
|
27015
|
+
if (error)
|
|
27016
|
+
return "ranked." + error;
|
|
27017
|
+
}
|
|
27018
|
+
}
|
|
26736
27019
|
return null;
|
|
26737
27020
|
};
|
|
26738
27021
|
|
|
@@ -26768,6 +27051,11 @@ $root.org = (function() {
|
|
|
26768
27051
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.averages: object expected");
|
|
26769
27052
|
message.averages = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.fromObject(object.averages);
|
|
26770
27053
|
}
|
|
27054
|
+
if (object.ranked != null) {
|
|
27055
|
+
if (typeof object.ranked !== "object")
|
|
27056
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
|
|
27057
|
+
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
|
|
27058
|
+
}
|
|
26771
27059
|
return message;
|
|
26772
27060
|
};
|
|
26773
27061
|
|
|
@@ -26804,6 +27092,11 @@ $root.org = (function() {
|
|
|
26804
27092
|
if (options.oneofs)
|
|
26805
27093
|
object.variant = "averages";
|
|
26806
27094
|
}
|
|
27095
|
+
if (message.ranked != null && message.hasOwnProperty("ranked")) {
|
|
27096
|
+
object.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.toObject(message.ranked, options);
|
|
27097
|
+
if (options.oneofs)
|
|
27098
|
+
object.variant = "ranked";
|
|
27099
|
+
}
|
|
26807
27100
|
return object;
|
|
26808
27101
|
};
|
|
26809
27102
|
|