@dashevo/dapi-grpc 4.2.0-dev.7 → 4.2.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.rs +10 -0
- package/clients/drive/v0/nodejs/drive_pbjs.js +1210 -105
- package/clients/platform/v0/nodejs/platform_pbjs.js +1210 -105
- package/clients/platform/v0/nodejs/platform_protoc.js +1240 -156
- package/clients/platform/v0/web/platform_pb.d.ts +143 -0
- package/clients/platform/v0/web/platform_pb.js +1240 -156
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +118 -9
|
@@ -20696,6 +20696,565 @@ $root.org = (function() {
|
|
|
20696
20696
|
return DocumentFieldValue;
|
|
20697
20697
|
})();
|
|
20698
20698
|
|
|
20699
|
+
GetDocumentsRequest.TimeRangeSelection = (function() {
|
|
20700
|
+
|
|
20701
|
+
/**
|
|
20702
|
+
* Properties of a TimeRangeSelection.
|
|
20703
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
|
|
20704
|
+
* @interface ITimeRangeSelection
|
|
20705
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector|null} [selector] TimeRangeSelection selector
|
|
20706
|
+
* @property {number|Long|null} [startMs] TimeRangeSelection startMs
|
|
20707
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid|null} [grid] TimeRangeSelection grid
|
|
20708
|
+
*/
|
|
20709
|
+
|
|
20710
|
+
/**
|
|
20711
|
+
* Constructs a new TimeRangeSelection.
|
|
20712
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
|
|
20713
|
+
* @classdesc Represents a TimeRangeSelection.
|
|
20714
|
+
* @implements ITimeRangeSelection
|
|
20715
|
+
* @constructor
|
|
20716
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection=} [properties] Properties to set
|
|
20717
|
+
*/
|
|
20718
|
+
function TimeRangeSelection(properties) {
|
|
20719
|
+
if (properties)
|
|
20720
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20721
|
+
if (properties[keys[i]] != null)
|
|
20722
|
+
this[keys[i]] = properties[keys[i]];
|
|
20723
|
+
}
|
|
20724
|
+
|
|
20725
|
+
/**
|
|
20726
|
+
* TimeRangeSelection selector.
|
|
20727
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector} selector
|
|
20728
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20729
|
+
* @instance
|
|
20730
|
+
*/
|
|
20731
|
+
TimeRangeSelection.prototype.selector = 0;
|
|
20732
|
+
|
|
20733
|
+
/**
|
|
20734
|
+
* TimeRangeSelection startMs.
|
|
20735
|
+
* @member {number|Long} startMs
|
|
20736
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20737
|
+
* @instance
|
|
20738
|
+
*/
|
|
20739
|
+
TimeRangeSelection.prototype.startMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20740
|
+
|
|
20741
|
+
/**
|
|
20742
|
+
* TimeRangeSelection grid.
|
|
20743
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid|null|undefined} grid
|
|
20744
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20745
|
+
* @instance
|
|
20746
|
+
*/
|
|
20747
|
+
TimeRangeSelection.prototype.grid = null;
|
|
20748
|
+
|
|
20749
|
+
/**
|
|
20750
|
+
* Creates a new TimeRangeSelection instance using the specified properties.
|
|
20751
|
+
* @function create
|
|
20752
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20753
|
+
* @static
|
|
20754
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection=} [properties] Properties to set
|
|
20755
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection instance
|
|
20756
|
+
*/
|
|
20757
|
+
TimeRangeSelection.create = function create(properties) {
|
|
20758
|
+
return new TimeRangeSelection(properties);
|
|
20759
|
+
};
|
|
20760
|
+
|
|
20761
|
+
/**
|
|
20762
|
+
* Encodes the specified TimeRangeSelection message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify|verify} messages.
|
|
20763
|
+
* @function encode
|
|
20764
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20765
|
+
* @static
|
|
20766
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection} message TimeRangeSelection message or plain object to encode
|
|
20767
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20768
|
+
* @returns {$protobuf.Writer} Writer
|
|
20769
|
+
*/
|
|
20770
|
+
TimeRangeSelection.encode = function encode(message, writer) {
|
|
20771
|
+
if (!writer)
|
|
20772
|
+
writer = $Writer.create();
|
|
20773
|
+
if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
|
|
20774
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.selector);
|
|
20775
|
+
if (message.startMs != null && Object.hasOwnProperty.call(message, "startMs"))
|
|
20776
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.startMs);
|
|
20777
|
+
if (message.grid != null && Object.hasOwnProperty.call(message, "grid"))
|
|
20778
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.encode(message.grid, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
20779
|
+
return writer;
|
|
20780
|
+
};
|
|
20781
|
+
|
|
20782
|
+
/**
|
|
20783
|
+
* Encodes the specified TimeRangeSelection message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify|verify} messages.
|
|
20784
|
+
* @function encodeDelimited
|
|
20785
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20786
|
+
* @static
|
|
20787
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection} message TimeRangeSelection message or plain object to encode
|
|
20788
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20789
|
+
* @returns {$protobuf.Writer} Writer
|
|
20790
|
+
*/
|
|
20791
|
+
TimeRangeSelection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20792
|
+
return this.encode(message, writer).ldelim();
|
|
20793
|
+
};
|
|
20794
|
+
|
|
20795
|
+
/**
|
|
20796
|
+
* Decodes a TimeRangeSelection message from the specified reader or buffer.
|
|
20797
|
+
* @function decode
|
|
20798
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20799
|
+
* @static
|
|
20800
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20801
|
+
* @param {number} [length] Message length if known beforehand
|
|
20802
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
|
|
20803
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20804
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20805
|
+
*/
|
|
20806
|
+
TimeRangeSelection.decode = function decode(reader, length) {
|
|
20807
|
+
if (!(reader instanceof $Reader))
|
|
20808
|
+
reader = $Reader.create(reader);
|
|
20809
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection();
|
|
20810
|
+
while (reader.pos < end) {
|
|
20811
|
+
var tag = reader.uint32();
|
|
20812
|
+
switch (tag >>> 3) {
|
|
20813
|
+
case 1:
|
|
20814
|
+
message.selector = reader.int32();
|
|
20815
|
+
break;
|
|
20816
|
+
case 2:
|
|
20817
|
+
message.startMs = reader.uint64();
|
|
20818
|
+
break;
|
|
20819
|
+
case 3:
|
|
20820
|
+
message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.decode(reader, reader.uint32());
|
|
20821
|
+
break;
|
|
20822
|
+
default:
|
|
20823
|
+
reader.skipType(tag & 7);
|
|
20824
|
+
break;
|
|
20825
|
+
}
|
|
20826
|
+
}
|
|
20827
|
+
return message;
|
|
20828
|
+
};
|
|
20829
|
+
|
|
20830
|
+
/**
|
|
20831
|
+
* Decodes a TimeRangeSelection message from the specified reader or buffer, length delimited.
|
|
20832
|
+
* @function decodeDelimited
|
|
20833
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20834
|
+
* @static
|
|
20835
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20836
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
|
|
20837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20839
|
+
*/
|
|
20840
|
+
TimeRangeSelection.decodeDelimited = function decodeDelimited(reader) {
|
|
20841
|
+
if (!(reader instanceof $Reader))
|
|
20842
|
+
reader = new $Reader(reader);
|
|
20843
|
+
return this.decode(reader, reader.uint32());
|
|
20844
|
+
};
|
|
20845
|
+
|
|
20846
|
+
/**
|
|
20847
|
+
* Verifies a TimeRangeSelection message.
|
|
20848
|
+
* @function verify
|
|
20849
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20850
|
+
* @static
|
|
20851
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20852
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20853
|
+
*/
|
|
20854
|
+
TimeRangeSelection.verify = function verify(message) {
|
|
20855
|
+
if (typeof message !== "object" || message === null)
|
|
20856
|
+
return "object expected";
|
|
20857
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
20858
|
+
switch (message.selector) {
|
|
20859
|
+
default:
|
|
20860
|
+
return "selector: enum value expected";
|
|
20861
|
+
case 0:
|
|
20862
|
+
case 1:
|
|
20863
|
+
case 2:
|
|
20864
|
+
break;
|
|
20865
|
+
}
|
|
20866
|
+
if (message.startMs != null && message.hasOwnProperty("startMs"))
|
|
20867
|
+
if (!$util.isInteger(message.startMs) && !(message.startMs && $util.isInteger(message.startMs.low) && $util.isInteger(message.startMs.high)))
|
|
20868
|
+
return "startMs: integer|Long expected";
|
|
20869
|
+
if (message.grid != null && message.hasOwnProperty("grid")) {
|
|
20870
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify(message.grid);
|
|
20871
|
+
if (error)
|
|
20872
|
+
return "grid." + error;
|
|
20873
|
+
}
|
|
20874
|
+
return null;
|
|
20875
|
+
};
|
|
20876
|
+
|
|
20877
|
+
/**
|
|
20878
|
+
* Creates a TimeRangeSelection message from a plain object. Also converts values to their respective internal types.
|
|
20879
|
+
* @function fromObject
|
|
20880
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20881
|
+
* @static
|
|
20882
|
+
* @param {Object.<string,*>} object Plain object
|
|
20883
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} TimeRangeSelection
|
|
20884
|
+
*/
|
|
20885
|
+
TimeRangeSelection.fromObject = function fromObject(object) {
|
|
20886
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection)
|
|
20887
|
+
return object;
|
|
20888
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection();
|
|
20889
|
+
switch (object.selector) {
|
|
20890
|
+
case "NEWEST":
|
|
20891
|
+
case 0:
|
|
20892
|
+
message.selector = 0;
|
|
20893
|
+
break;
|
|
20894
|
+
case "OLDEST":
|
|
20895
|
+
case 1:
|
|
20896
|
+
message.selector = 1;
|
|
20897
|
+
break;
|
|
20898
|
+
case "BY_START":
|
|
20899
|
+
case 2:
|
|
20900
|
+
message.selector = 2;
|
|
20901
|
+
break;
|
|
20902
|
+
}
|
|
20903
|
+
if (object.startMs != null)
|
|
20904
|
+
if ($util.Long)
|
|
20905
|
+
(message.startMs = $util.Long.fromValue(object.startMs)).unsigned = true;
|
|
20906
|
+
else if (typeof object.startMs === "string")
|
|
20907
|
+
message.startMs = parseInt(object.startMs, 10);
|
|
20908
|
+
else if (typeof object.startMs === "number")
|
|
20909
|
+
message.startMs = object.startMs;
|
|
20910
|
+
else if (typeof object.startMs === "object")
|
|
20911
|
+
message.startMs = new $util.LongBits(object.startMs.low >>> 0, object.startMs.high >>> 0).toNumber(true);
|
|
20912
|
+
if (object.grid != null) {
|
|
20913
|
+
if (typeof object.grid !== "object")
|
|
20914
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.grid: object expected");
|
|
20915
|
+
message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.fromObject(object.grid);
|
|
20916
|
+
}
|
|
20917
|
+
return message;
|
|
20918
|
+
};
|
|
20919
|
+
|
|
20920
|
+
/**
|
|
20921
|
+
* Creates a plain object from a TimeRangeSelection message. Also converts values to other types if specified.
|
|
20922
|
+
* @function toObject
|
|
20923
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20924
|
+
* @static
|
|
20925
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection} message TimeRangeSelection
|
|
20926
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20927
|
+
* @returns {Object.<string,*>} Plain object
|
|
20928
|
+
*/
|
|
20929
|
+
TimeRangeSelection.toObject = function toObject(message, options) {
|
|
20930
|
+
if (!options)
|
|
20931
|
+
options = {};
|
|
20932
|
+
var object = {};
|
|
20933
|
+
if (options.defaults) {
|
|
20934
|
+
object.selector = options.enums === String ? "NEWEST" : 0;
|
|
20935
|
+
if ($util.Long) {
|
|
20936
|
+
var long = new $util.Long(0, 0, true);
|
|
20937
|
+
object.startMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20938
|
+
} else
|
|
20939
|
+
object.startMs = options.longs === String ? "0" : 0;
|
|
20940
|
+
object.grid = null;
|
|
20941
|
+
}
|
|
20942
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
20943
|
+
object.selector = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector[message.selector] : message.selector;
|
|
20944
|
+
if (message.startMs != null && message.hasOwnProperty("startMs"))
|
|
20945
|
+
if (typeof message.startMs === "number")
|
|
20946
|
+
object.startMs = options.longs === String ? String(message.startMs) : message.startMs;
|
|
20947
|
+
else
|
|
20948
|
+
object.startMs = options.longs === String ? $util.Long.prototype.toString.call(message.startMs) : options.longs === Number ? new $util.LongBits(message.startMs.low >>> 0, message.startMs.high >>> 0).toNumber(true) : message.startMs;
|
|
20949
|
+
if (message.grid != null && message.hasOwnProperty("grid"))
|
|
20950
|
+
object.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.toObject(message.grid, options);
|
|
20951
|
+
return object;
|
|
20952
|
+
};
|
|
20953
|
+
|
|
20954
|
+
/**
|
|
20955
|
+
* Converts this TimeRangeSelection to JSON.
|
|
20956
|
+
* @function toJSON
|
|
20957
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20958
|
+
* @instance
|
|
20959
|
+
* @returns {Object.<string,*>} JSON object
|
|
20960
|
+
*/
|
|
20961
|
+
TimeRangeSelection.prototype.toJSON = function toJSON() {
|
|
20962
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20963
|
+
};
|
|
20964
|
+
|
|
20965
|
+
/**
|
|
20966
|
+
* Selector enum.
|
|
20967
|
+
* @name org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Selector
|
|
20968
|
+
* @enum {number}
|
|
20969
|
+
* @property {number} NEWEST=0 NEWEST value
|
|
20970
|
+
* @property {number} OLDEST=1 OLDEST value
|
|
20971
|
+
* @property {number} BY_START=2 BY_START value
|
|
20972
|
+
*/
|
|
20973
|
+
TimeRangeSelection.Selector = (function() {
|
|
20974
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
20975
|
+
values[valuesById[0] = "NEWEST"] = 0;
|
|
20976
|
+
values[valuesById[1] = "OLDEST"] = 1;
|
|
20977
|
+
values[valuesById[2] = "BY_START"] = 2;
|
|
20978
|
+
return values;
|
|
20979
|
+
})();
|
|
20980
|
+
|
|
20981
|
+
TimeRangeSelection.Grid = (function() {
|
|
20982
|
+
|
|
20983
|
+
/**
|
|
20984
|
+
* Properties of a Grid.
|
|
20985
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20986
|
+
* @interface IGrid
|
|
20987
|
+
* @property {number|Long|null} [range] Grid range
|
|
20988
|
+
* @property {number|Long|null} [step] Grid step
|
|
20989
|
+
* @property {number|Long|null} [phase] Grid phase
|
|
20990
|
+
*/
|
|
20991
|
+
|
|
20992
|
+
/**
|
|
20993
|
+
* Constructs a new Grid.
|
|
20994
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection
|
|
20995
|
+
* @classdesc Represents a Grid.
|
|
20996
|
+
* @implements IGrid
|
|
20997
|
+
* @constructor
|
|
20998
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid=} [properties] Properties to set
|
|
20999
|
+
*/
|
|
21000
|
+
function Grid(properties) {
|
|
21001
|
+
if (properties)
|
|
21002
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21003
|
+
if (properties[keys[i]] != null)
|
|
21004
|
+
this[keys[i]] = properties[keys[i]];
|
|
21005
|
+
}
|
|
21006
|
+
|
|
21007
|
+
/**
|
|
21008
|
+
* Grid range.
|
|
21009
|
+
* @member {number|Long} range
|
|
21010
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21011
|
+
* @instance
|
|
21012
|
+
*/
|
|
21013
|
+
Grid.prototype.range = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
21014
|
+
|
|
21015
|
+
/**
|
|
21016
|
+
* Grid step.
|
|
21017
|
+
* @member {number|Long} step
|
|
21018
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21019
|
+
* @instance
|
|
21020
|
+
*/
|
|
21021
|
+
Grid.prototype.step = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
21022
|
+
|
|
21023
|
+
/**
|
|
21024
|
+
* Grid phase.
|
|
21025
|
+
* @member {number|Long} phase
|
|
21026
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21027
|
+
* @instance
|
|
21028
|
+
*/
|
|
21029
|
+
Grid.prototype.phase = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
21030
|
+
|
|
21031
|
+
/**
|
|
21032
|
+
* Creates a new Grid instance using the specified properties.
|
|
21033
|
+
* @function create
|
|
21034
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21035
|
+
* @static
|
|
21036
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid=} [properties] Properties to set
|
|
21037
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid instance
|
|
21038
|
+
*/
|
|
21039
|
+
Grid.create = function create(properties) {
|
|
21040
|
+
return new Grid(properties);
|
|
21041
|
+
};
|
|
21042
|
+
|
|
21043
|
+
/**
|
|
21044
|
+
* Encodes the specified Grid message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify|verify} messages.
|
|
21045
|
+
* @function encode
|
|
21046
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21047
|
+
* @static
|
|
21048
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid} message Grid message or plain object to encode
|
|
21049
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21050
|
+
* @returns {$protobuf.Writer} Writer
|
|
21051
|
+
*/
|
|
21052
|
+
Grid.encode = function encode(message, writer) {
|
|
21053
|
+
if (!writer)
|
|
21054
|
+
writer = $Writer.create();
|
|
21055
|
+
if (message.range != null && Object.hasOwnProperty.call(message, "range"))
|
|
21056
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.range);
|
|
21057
|
+
if (message.step != null && Object.hasOwnProperty.call(message, "step"))
|
|
21058
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.step);
|
|
21059
|
+
if (message.phase != null && Object.hasOwnProperty.call(message, "phase"))
|
|
21060
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.phase);
|
|
21061
|
+
return writer;
|
|
21062
|
+
};
|
|
21063
|
+
|
|
21064
|
+
/**
|
|
21065
|
+
* Encodes the specified Grid message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.verify|verify} messages.
|
|
21066
|
+
* @function encodeDelimited
|
|
21067
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21068
|
+
* @static
|
|
21069
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.IGrid} message Grid message or plain object to encode
|
|
21070
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21071
|
+
* @returns {$protobuf.Writer} Writer
|
|
21072
|
+
*/
|
|
21073
|
+
Grid.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21074
|
+
return this.encode(message, writer).ldelim();
|
|
21075
|
+
};
|
|
21076
|
+
|
|
21077
|
+
/**
|
|
21078
|
+
* Decodes a Grid message from the specified reader or buffer.
|
|
21079
|
+
* @function decode
|
|
21080
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21081
|
+
* @static
|
|
21082
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21083
|
+
* @param {number} [length] Message length if known beforehand
|
|
21084
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
|
|
21085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21087
|
+
*/
|
|
21088
|
+
Grid.decode = function decode(reader, length) {
|
|
21089
|
+
if (!(reader instanceof $Reader))
|
|
21090
|
+
reader = $Reader.create(reader);
|
|
21091
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid();
|
|
21092
|
+
while (reader.pos < end) {
|
|
21093
|
+
var tag = reader.uint32();
|
|
21094
|
+
switch (tag >>> 3) {
|
|
21095
|
+
case 1:
|
|
21096
|
+
message.range = reader.uint64();
|
|
21097
|
+
break;
|
|
21098
|
+
case 2:
|
|
21099
|
+
message.step = reader.uint64();
|
|
21100
|
+
break;
|
|
21101
|
+
case 3:
|
|
21102
|
+
message.phase = reader.uint64();
|
|
21103
|
+
break;
|
|
21104
|
+
default:
|
|
21105
|
+
reader.skipType(tag & 7);
|
|
21106
|
+
break;
|
|
21107
|
+
}
|
|
21108
|
+
}
|
|
21109
|
+
return message;
|
|
21110
|
+
};
|
|
21111
|
+
|
|
21112
|
+
/**
|
|
21113
|
+
* Decodes a Grid message from the specified reader or buffer, length delimited.
|
|
21114
|
+
* @function decodeDelimited
|
|
21115
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21116
|
+
* @static
|
|
21117
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21118
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
|
|
21119
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21120
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21121
|
+
*/
|
|
21122
|
+
Grid.decodeDelimited = function decodeDelimited(reader) {
|
|
21123
|
+
if (!(reader instanceof $Reader))
|
|
21124
|
+
reader = new $Reader(reader);
|
|
21125
|
+
return this.decode(reader, reader.uint32());
|
|
21126
|
+
};
|
|
21127
|
+
|
|
21128
|
+
/**
|
|
21129
|
+
* Verifies a Grid message.
|
|
21130
|
+
* @function verify
|
|
21131
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21132
|
+
* @static
|
|
21133
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21134
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21135
|
+
*/
|
|
21136
|
+
Grid.verify = function verify(message) {
|
|
21137
|
+
if (typeof message !== "object" || message === null)
|
|
21138
|
+
return "object expected";
|
|
21139
|
+
if (message.range != null && message.hasOwnProperty("range"))
|
|
21140
|
+
if (!$util.isInteger(message.range) && !(message.range && $util.isInteger(message.range.low) && $util.isInteger(message.range.high)))
|
|
21141
|
+
return "range: integer|Long expected";
|
|
21142
|
+
if (message.step != null && message.hasOwnProperty("step"))
|
|
21143
|
+
if (!$util.isInteger(message.step) && !(message.step && $util.isInteger(message.step.low) && $util.isInteger(message.step.high)))
|
|
21144
|
+
return "step: integer|Long expected";
|
|
21145
|
+
if (message.phase != null && message.hasOwnProperty("phase"))
|
|
21146
|
+
if (!$util.isInteger(message.phase) && !(message.phase && $util.isInteger(message.phase.low) && $util.isInteger(message.phase.high)))
|
|
21147
|
+
return "phase: integer|Long expected";
|
|
21148
|
+
return null;
|
|
21149
|
+
};
|
|
21150
|
+
|
|
21151
|
+
/**
|
|
21152
|
+
* Creates a Grid message from a plain object. Also converts values to their respective internal types.
|
|
21153
|
+
* @function fromObject
|
|
21154
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21155
|
+
* @static
|
|
21156
|
+
* @param {Object.<string,*>} object Plain object
|
|
21157
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} Grid
|
|
21158
|
+
*/
|
|
21159
|
+
Grid.fromObject = function fromObject(object) {
|
|
21160
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid)
|
|
21161
|
+
return object;
|
|
21162
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid();
|
|
21163
|
+
if (object.range != null)
|
|
21164
|
+
if ($util.Long)
|
|
21165
|
+
(message.range = $util.Long.fromValue(object.range)).unsigned = true;
|
|
21166
|
+
else if (typeof object.range === "string")
|
|
21167
|
+
message.range = parseInt(object.range, 10);
|
|
21168
|
+
else if (typeof object.range === "number")
|
|
21169
|
+
message.range = object.range;
|
|
21170
|
+
else if (typeof object.range === "object")
|
|
21171
|
+
message.range = new $util.LongBits(object.range.low >>> 0, object.range.high >>> 0).toNumber(true);
|
|
21172
|
+
if (object.step != null)
|
|
21173
|
+
if ($util.Long)
|
|
21174
|
+
(message.step = $util.Long.fromValue(object.step)).unsigned = true;
|
|
21175
|
+
else if (typeof object.step === "string")
|
|
21176
|
+
message.step = parseInt(object.step, 10);
|
|
21177
|
+
else if (typeof object.step === "number")
|
|
21178
|
+
message.step = object.step;
|
|
21179
|
+
else if (typeof object.step === "object")
|
|
21180
|
+
message.step = new $util.LongBits(object.step.low >>> 0, object.step.high >>> 0).toNumber(true);
|
|
21181
|
+
if (object.phase != null)
|
|
21182
|
+
if ($util.Long)
|
|
21183
|
+
(message.phase = $util.Long.fromValue(object.phase)).unsigned = true;
|
|
21184
|
+
else if (typeof object.phase === "string")
|
|
21185
|
+
message.phase = parseInt(object.phase, 10);
|
|
21186
|
+
else if (typeof object.phase === "number")
|
|
21187
|
+
message.phase = object.phase;
|
|
21188
|
+
else if (typeof object.phase === "object")
|
|
21189
|
+
message.phase = new $util.LongBits(object.phase.low >>> 0, object.phase.high >>> 0).toNumber(true);
|
|
21190
|
+
return message;
|
|
21191
|
+
};
|
|
21192
|
+
|
|
21193
|
+
/**
|
|
21194
|
+
* Creates a plain object from a Grid message. Also converts values to other types if specified.
|
|
21195
|
+
* @function toObject
|
|
21196
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21197
|
+
* @static
|
|
21198
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid} message Grid
|
|
21199
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21200
|
+
* @returns {Object.<string,*>} Plain object
|
|
21201
|
+
*/
|
|
21202
|
+
Grid.toObject = function toObject(message, options) {
|
|
21203
|
+
if (!options)
|
|
21204
|
+
options = {};
|
|
21205
|
+
var object = {};
|
|
21206
|
+
if (options.defaults) {
|
|
21207
|
+
if ($util.Long) {
|
|
21208
|
+
var long = new $util.Long(0, 0, true);
|
|
21209
|
+
object.range = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21210
|
+
} else
|
|
21211
|
+
object.range = options.longs === String ? "0" : 0;
|
|
21212
|
+
if ($util.Long) {
|
|
21213
|
+
var long = new $util.Long(0, 0, true);
|
|
21214
|
+
object.step = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21215
|
+
} else
|
|
21216
|
+
object.step = options.longs === String ? "0" : 0;
|
|
21217
|
+
if ($util.Long) {
|
|
21218
|
+
var long = new $util.Long(0, 0, true);
|
|
21219
|
+
object.phase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21220
|
+
} else
|
|
21221
|
+
object.phase = options.longs === String ? "0" : 0;
|
|
21222
|
+
}
|
|
21223
|
+
if (message.range != null && message.hasOwnProperty("range"))
|
|
21224
|
+
if (typeof message.range === "number")
|
|
21225
|
+
object.range = options.longs === String ? String(message.range) : message.range;
|
|
21226
|
+
else
|
|
21227
|
+
object.range = options.longs === String ? $util.Long.prototype.toString.call(message.range) : options.longs === Number ? new $util.LongBits(message.range.low >>> 0, message.range.high >>> 0).toNumber(true) : message.range;
|
|
21228
|
+
if (message.step != null && message.hasOwnProperty("step"))
|
|
21229
|
+
if (typeof message.step === "number")
|
|
21230
|
+
object.step = options.longs === String ? String(message.step) : message.step;
|
|
21231
|
+
else
|
|
21232
|
+
object.step = options.longs === String ? $util.Long.prototype.toString.call(message.step) : options.longs === Number ? new $util.LongBits(message.step.low >>> 0, message.step.high >>> 0).toNumber(true) : message.step;
|
|
21233
|
+
if (message.phase != null && message.hasOwnProperty("phase"))
|
|
21234
|
+
if (typeof message.phase === "number")
|
|
21235
|
+
object.phase = options.longs === String ? String(message.phase) : message.phase;
|
|
21236
|
+
else
|
|
21237
|
+
object.phase = options.longs === String ? $util.Long.prototype.toString.call(message.phase) : options.longs === Number ? new $util.LongBits(message.phase.low >>> 0, message.phase.high >>> 0).toNumber(true) : message.phase;
|
|
21238
|
+
return object;
|
|
21239
|
+
};
|
|
21240
|
+
|
|
21241
|
+
/**
|
|
21242
|
+
* Converts this Grid to JSON.
|
|
21243
|
+
* @function toJSON
|
|
21244
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid
|
|
21245
|
+
* @instance
|
|
21246
|
+
* @returns {Object.<string,*>} JSON object
|
|
21247
|
+
*/
|
|
21248
|
+
Grid.prototype.toJSON = function toJSON() {
|
|
21249
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21250
|
+
};
|
|
21251
|
+
|
|
21252
|
+
return Grid;
|
|
21253
|
+
})();
|
|
21254
|
+
|
|
21255
|
+
return TimeRangeSelection;
|
|
21256
|
+
})();
|
|
21257
|
+
|
|
20699
21258
|
GetDocumentsRequest.WhereClause = (function() {
|
|
20700
21259
|
|
|
20701
21260
|
/**
|
|
@@ -20705,6 +21264,7 @@ $root.org = (function() {
|
|
|
20705
21264
|
* @property {string|null} [field] WhereClause field
|
|
20706
21265
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator|null} [operator] WhereClause operator
|
|
20707
21266
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] WhereClause value
|
|
21267
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null} [timeRange] WhereClause timeRange
|
|
20708
21268
|
*/
|
|
20709
21269
|
|
|
20710
21270
|
/**
|
|
@@ -20746,6 +21306,14 @@ $root.org = (function() {
|
|
|
20746
21306
|
*/
|
|
20747
21307
|
WhereClause.prototype.value = null;
|
|
20748
21308
|
|
|
21309
|
+
/**
|
|
21310
|
+
* WhereClause timeRange.
|
|
21311
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null|undefined} timeRange
|
|
21312
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause
|
|
21313
|
+
* @instance
|
|
21314
|
+
*/
|
|
21315
|
+
WhereClause.prototype.timeRange = null;
|
|
21316
|
+
|
|
20749
21317
|
/**
|
|
20750
21318
|
* Creates a new WhereClause instance using the specified properties.
|
|
20751
21319
|
* @function create
|
|
@@ -20776,6 +21344,8 @@ $root.org = (function() {
|
|
|
20776
21344
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operator);
|
|
20777
21345
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
20778
21346
|
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
21347
|
+
if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
|
|
21348
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.encode(message.timeRange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
20779
21349
|
return writer;
|
|
20780
21350
|
};
|
|
20781
21351
|
|
|
@@ -20819,6 +21389,9 @@ $root.org = (function() {
|
|
|
20819
21389
|
case 3:
|
|
20820
21390
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
|
|
20821
21391
|
break;
|
|
21392
|
+
case 4:
|
|
21393
|
+
message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.decode(reader, reader.uint32());
|
|
21394
|
+
break;
|
|
20822
21395
|
default:
|
|
20823
21396
|
reader.skipType(tag & 7);
|
|
20824
21397
|
break;
|
|
@@ -20880,6 +21453,11 @@ $root.org = (function() {
|
|
|
20880
21453
|
if (error)
|
|
20881
21454
|
return "value." + error;
|
|
20882
21455
|
}
|
|
21456
|
+
if (message.timeRange != null && message.hasOwnProperty("timeRange")) {
|
|
21457
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.verify(message.timeRange);
|
|
21458
|
+
if (error)
|
|
21459
|
+
return "timeRange." + error;
|
|
21460
|
+
}
|
|
20883
21461
|
return null;
|
|
20884
21462
|
};
|
|
20885
21463
|
|
|
@@ -20952,6 +21530,11 @@ $root.org = (function() {
|
|
|
20952
21530
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.value: object expected");
|
|
20953
21531
|
message.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.value);
|
|
20954
21532
|
}
|
|
21533
|
+
if (object.timeRange != null) {
|
|
21534
|
+
if (typeof object.timeRange !== "object")
|
|
21535
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.timeRange: object expected");
|
|
21536
|
+
message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.fromObject(object.timeRange);
|
|
21537
|
+
}
|
|
20955
21538
|
return message;
|
|
20956
21539
|
};
|
|
20957
21540
|
|
|
@@ -20972,6 +21555,7 @@ $root.org = (function() {
|
|
|
20972
21555
|
object.field = "";
|
|
20973
21556
|
object.operator = options.enums === String ? "EQUAL" : 0;
|
|
20974
21557
|
object.value = null;
|
|
21558
|
+
object.timeRange = null;
|
|
20975
21559
|
}
|
|
20976
21560
|
if (message.field != null && message.hasOwnProperty("field"))
|
|
20977
21561
|
object.field = message.field;
|
|
@@ -20979,6 +21563,8 @@ $root.org = (function() {
|
|
|
20979
21563
|
object.operator = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator[message.operator] : message.operator;
|
|
20980
21564
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
20981
21565
|
object.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.value, options);
|
|
21566
|
+
if (message.timeRange != null && message.hasOwnProperty("timeRange"))
|
|
21567
|
+
object.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(message.timeRange, options);
|
|
20982
21568
|
return object;
|
|
20983
21569
|
};
|
|
20984
21570
|
|
|
@@ -22272,6 +22858,7 @@ $root.org = (function() {
|
|
|
22272
22858
|
* @property {Array.<string>|null} [groupBy] GetDocumentsRequestV1 groupBy
|
|
22273
22859
|
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingClause>|null} [having] GetDocumentsRequestV1 having
|
|
22274
22860
|
* @property {number|null} [offset] GetDocumentsRequestV1 offset
|
|
22861
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null} [chained] GetDocumentsRequestV1 chained
|
|
22275
22862
|
*/
|
|
22276
22863
|
|
|
22277
22864
|
/**
|
|
@@ -22390,6 +22977,14 @@ $root.org = (function() {
|
|
|
22390
22977
|
*/
|
|
22391
22978
|
GetDocumentsRequestV1.prototype.offset = 0;
|
|
22392
22979
|
|
|
22980
|
+
/**
|
|
22981
|
+
* GetDocumentsRequestV1 chained.
|
|
22982
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null|undefined} chained
|
|
22983
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
22984
|
+
* @instance
|
|
22985
|
+
*/
|
|
22986
|
+
GetDocumentsRequestV1.prototype.chained = null;
|
|
22987
|
+
|
|
22393
22988
|
// OneOf field names bound to virtual getters and setters
|
|
22394
22989
|
var $oneOfFields;
|
|
22395
22990
|
|
|
@@ -22457,6 +23052,8 @@ $root.org = (function() {
|
|
|
22457
23052
|
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.encode(message.having[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
22458
23053
|
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
22459
23054
|
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.offset);
|
|
23055
|
+
if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
|
|
23056
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.encode(message.chained, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
22460
23057
|
return writer;
|
|
22461
23058
|
};
|
|
22462
23059
|
|
|
@@ -22537,6 +23134,9 @@ $root.org = (function() {
|
|
|
22537
23134
|
case 12:
|
|
22538
23135
|
message.offset = reader.uint32();
|
|
22539
23136
|
break;
|
|
23137
|
+
case 13:
|
|
23138
|
+
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.decode(reader, reader.uint32());
|
|
23139
|
+
break;
|
|
22540
23140
|
default:
|
|
22541
23141
|
reader.skipType(tag & 7);
|
|
22542
23142
|
break;
|
|
@@ -22643,6 +23243,11 @@ $root.org = (function() {
|
|
|
22643
23243
|
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
22644
23244
|
if (!$util.isInteger(message.offset))
|
|
22645
23245
|
return "offset: integer expected";
|
|
23246
|
+
if (message.chained != null && message.hasOwnProperty("chained")) {
|
|
23247
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify(message.chained);
|
|
23248
|
+
if (error)
|
|
23249
|
+
return "chained." + error;
|
|
23250
|
+
}
|
|
22646
23251
|
return null;
|
|
22647
23252
|
};
|
|
22648
23253
|
|
|
@@ -22728,6 +23333,11 @@ $root.org = (function() {
|
|
|
22728
23333
|
}
|
|
22729
23334
|
if (object.offset != null)
|
|
22730
23335
|
message.offset = object.offset >>> 0;
|
|
23336
|
+
if (object.chained != null) {
|
|
23337
|
+
if (typeof object.chained !== "object")
|
|
23338
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.chained: object expected");
|
|
23339
|
+
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.fromObject(object.chained);
|
|
23340
|
+
}
|
|
22731
23341
|
return message;
|
|
22732
23342
|
};
|
|
22733
23343
|
|
|
@@ -22763,6 +23373,7 @@ $root.org = (function() {
|
|
|
22763
23373
|
object.limit = 0;
|
|
22764
23374
|
object.prove = false;
|
|
22765
23375
|
object.offset = 0;
|
|
23376
|
+
object.chained = null;
|
|
22766
23377
|
}
|
|
22767
23378
|
if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
|
|
22768
23379
|
object.dataContractId = options.bytes === String ? $util.base64.encode(message.dataContractId, 0, message.dataContractId.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataContractId) : message.dataContractId;
|
|
@@ -22809,6 +23420,8 @@ $root.org = (function() {
|
|
|
22809
23420
|
}
|
|
22810
23421
|
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
22811
23422
|
object.offset = message.offset;
|
|
23423
|
+
if (message.chained != null && message.hasOwnProperty("chained"))
|
|
23424
|
+
object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.toObject(message.chained, options);
|
|
22812
23425
|
return object;
|
|
22813
23426
|
};
|
|
22814
23427
|
|
|
@@ -22896,41 +23509,306 @@ $root.org = (function() {
|
|
|
22896
23509
|
};
|
|
22897
23510
|
|
|
22898
23511
|
/**
|
|
22899
|
-
* Encodes the specified Select message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.verify|verify} messages.
|
|
23512
|
+
* Encodes the specified Select message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.verify|verify} messages.
|
|
23513
|
+
* @function encodeDelimited
|
|
23514
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23515
|
+
* @static
|
|
23516
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISelect} message Select message or plain object to encode
|
|
23517
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23518
|
+
* @returns {$protobuf.Writer} Writer
|
|
23519
|
+
*/
|
|
23520
|
+
Select.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23521
|
+
return this.encode(message, writer).ldelim();
|
|
23522
|
+
};
|
|
23523
|
+
|
|
23524
|
+
/**
|
|
23525
|
+
* Decodes a Select message from the specified reader or buffer.
|
|
23526
|
+
* @function decode
|
|
23527
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23528
|
+
* @static
|
|
23529
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23530
|
+
* @param {number} [length] Message length if known beforehand
|
|
23531
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
|
|
23532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23534
|
+
*/
|
|
23535
|
+
Select.decode = function decode(reader, length) {
|
|
23536
|
+
if (!(reader instanceof $Reader))
|
|
23537
|
+
reader = $Reader.create(reader);
|
|
23538
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
|
|
23539
|
+
while (reader.pos < end) {
|
|
23540
|
+
var tag = reader.uint32();
|
|
23541
|
+
switch (tag >>> 3) {
|
|
23542
|
+
case 1:
|
|
23543
|
+
message["function"] = reader.int32();
|
|
23544
|
+
break;
|
|
23545
|
+
case 2:
|
|
23546
|
+
message.field = reader.string();
|
|
23547
|
+
break;
|
|
23548
|
+
default:
|
|
23549
|
+
reader.skipType(tag & 7);
|
|
23550
|
+
break;
|
|
23551
|
+
}
|
|
23552
|
+
}
|
|
23553
|
+
return message;
|
|
23554
|
+
};
|
|
23555
|
+
|
|
23556
|
+
/**
|
|
23557
|
+
* Decodes a Select message from the specified reader or buffer, length delimited.
|
|
23558
|
+
* @function decodeDelimited
|
|
23559
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23560
|
+
* @static
|
|
23561
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23562
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
|
|
23563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23565
|
+
*/
|
|
23566
|
+
Select.decodeDelimited = function decodeDelimited(reader) {
|
|
23567
|
+
if (!(reader instanceof $Reader))
|
|
23568
|
+
reader = new $Reader(reader);
|
|
23569
|
+
return this.decode(reader, reader.uint32());
|
|
23570
|
+
};
|
|
23571
|
+
|
|
23572
|
+
/**
|
|
23573
|
+
* Verifies a Select message.
|
|
23574
|
+
* @function verify
|
|
23575
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23576
|
+
* @static
|
|
23577
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23578
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23579
|
+
*/
|
|
23580
|
+
Select.verify = function verify(message) {
|
|
23581
|
+
if (typeof message !== "object" || message === null)
|
|
23582
|
+
return "object expected";
|
|
23583
|
+
if (message["function"] != null && message.hasOwnProperty("function"))
|
|
23584
|
+
switch (message["function"]) {
|
|
23585
|
+
default:
|
|
23586
|
+
return "function: enum value expected";
|
|
23587
|
+
case 0:
|
|
23588
|
+
case 1:
|
|
23589
|
+
case 2:
|
|
23590
|
+
case 3:
|
|
23591
|
+
case 4:
|
|
23592
|
+
case 5:
|
|
23593
|
+
break;
|
|
23594
|
+
}
|
|
23595
|
+
if (message.field != null && message.hasOwnProperty("field"))
|
|
23596
|
+
if (!$util.isString(message.field))
|
|
23597
|
+
return "field: string expected";
|
|
23598
|
+
return null;
|
|
23599
|
+
};
|
|
23600
|
+
|
|
23601
|
+
/**
|
|
23602
|
+
* Creates a Select message from a plain object. Also converts values to their respective internal types.
|
|
23603
|
+
* @function fromObject
|
|
23604
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23605
|
+
* @static
|
|
23606
|
+
* @param {Object.<string,*>} object Plain object
|
|
23607
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} Select
|
|
23608
|
+
*/
|
|
23609
|
+
Select.fromObject = function fromObject(object) {
|
|
23610
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select)
|
|
23611
|
+
return object;
|
|
23612
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select();
|
|
23613
|
+
switch (object["function"]) {
|
|
23614
|
+
case "DOCUMENTS":
|
|
23615
|
+
case 0:
|
|
23616
|
+
message["function"] = 0;
|
|
23617
|
+
break;
|
|
23618
|
+
case "COUNT":
|
|
23619
|
+
case 1:
|
|
23620
|
+
message["function"] = 1;
|
|
23621
|
+
break;
|
|
23622
|
+
case "SUM":
|
|
23623
|
+
case 2:
|
|
23624
|
+
message["function"] = 2;
|
|
23625
|
+
break;
|
|
23626
|
+
case "AVG":
|
|
23627
|
+
case 3:
|
|
23628
|
+
message["function"] = 3;
|
|
23629
|
+
break;
|
|
23630
|
+
case "MIN":
|
|
23631
|
+
case 4:
|
|
23632
|
+
message["function"] = 4;
|
|
23633
|
+
break;
|
|
23634
|
+
case "MAX":
|
|
23635
|
+
case 5:
|
|
23636
|
+
message["function"] = 5;
|
|
23637
|
+
break;
|
|
23638
|
+
}
|
|
23639
|
+
if (object.field != null)
|
|
23640
|
+
message.field = String(object.field);
|
|
23641
|
+
return message;
|
|
23642
|
+
};
|
|
23643
|
+
|
|
23644
|
+
/**
|
|
23645
|
+
* Creates a plain object from a Select message. Also converts values to other types if specified.
|
|
23646
|
+
* @function toObject
|
|
23647
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23648
|
+
* @static
|
|
23649
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select} message Select
|
|
23650
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23651
|
+
* @returns {Object.<string,*>} Plain object
|
|
23652
|
+
*/
|
|
23653
|
+
Select.toObject = function toObject(message, options) {
|
|
23654
|
+
if (!options)
|
|
23655
|
+
options = {};
|
|
23656
|
+
var object = {};
|
|
23657
|
+
if (options.defaults) {
|
|
23658
|
+
object["function"] = options.enums === String ? "DOCUMENTS" : 0;
|
|
23659
|
+
object.field = "";
|
|
23660
|
+
}
|
|
23661
|
+
if (message["function"] != null && message.hasOwnProperty("function"))
|
|
23662
|
+
object["function"] = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function[message["function"]] : message["function"];
|
|
23663
|
+
if (message.field != null && message.hasOwnProperty("field"))
|
|
23664
|
+
object.field = message.field;
|
|
23665
|
+
return object;
|
|
23666
|
+
};
|
|
23667
|
+
|
|
23668
|
+
/**
|
|
23669
|
+
* Converts this Select to JSON.
|
|
23670
|
+
* @function toJSON
|
|
23671
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select
|
|
23672
|
+
* @instance
|
|
23673
|
+
* @returns {Object.<string,*>} JSON object
|
|
23674
|
+
*/
|
|
23675
|
+
Select.prototype.toJSON = function toJSON() {
|
|
23676
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23677
|
+
};
|
|
23678
|
+
|
|
23679
|
+
/**
|
|
23680
|
+
* Function enum.
|
|
23681
|
+
* @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function
|
|
23682
|
+
* @enum {number}
|
|
23683
|
+
* @property {number} DOCUMENTS=0 DOCUMENTS value
|
|
23684
|
+
* @property {number} COUNT=1 COUNT value
|
|
23685
|
+
* @property {number} SUM=2 SUM value
|
|
23686
|
+
* @property {number} AVG=3 AVG value
|
|
23687
|
+
* @property {number} MIN=4 MIN value
|
|
23688
|
+
* @property {number} MAX=5 MAX value
|
|
23689
|
+
*/
|
|
23690
|
+
Select.Function = (function() {
|
|
23691
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
23692
|
+
values[valuesById[0] = "DOCUMENTS"] = 0;
|
|
23693
|
+
values[valuesById[1] = "COUNT"] = 1;
|
|
23694
|
+
values[valuesById[2] = "SUM"] = 2;
|
|
23695
|
+
values[valuesById[3] = "AVG"] = 3;
|
|
23696
|
+
values[valuesById[4] = "MIN"] = 4;
|
|
23697
|
+
values[valuesById[5] = "MAX"] = 5;
|
|
23698
|
+
return values;
|
|
23699
|
+
})();
|
|
23700
|
+
|
|
23701
|
+
return Select;
|
|
23702
|
+
})();
|
|
23703
|
+
|
|
23704
|
+
GetDocumentsRequestV1.ChainedJoin = (function() {
|
|
23705
|
+
|
|
23706
|
+
/**
|
|
23707
|
+
* Properties of a ChainedJoin.
|
|
23708
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
23709
|
+
* @interface IChainedJoin
|
|
23710
|
+
* @property {string|null} [joinProperty] ChainedJoin joinProperty
|
|
23711
|
+
* @property {string|null} [outerDocumentType] ChainedJoin outerDocumentType
|
|
23712
|
+
*/
|
|
23713
|
+
|
|
23714
|
+
/**
|
|
23715
|
+
* Constructs a new ChainedJoin.
|
|
23716
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
23717
|
+
* @classdesc Represents a ChainedJoin.
|
|
23718
|
+
* @implements IChainedJoin
|
|
23719
|
+
* @constructor
|
|
23720
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin=} [properties] Properties to set
|
|
23721
|
+
*/
|
|
23722
|
+
function ChainedJoin(properties) {
|
|
23723
|
+
if (properties)
|
|
23724
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23725
|
+
if (properties[keys[i]] != null)
|
|
23726
|
+
this[keys[i]] = properties[keys[i]];
|
|
23727
|
+
}
|
|
23728
|
+
|
|
23729
|
+
/**
|
|
23730
|
+
* ChainedJoin joinProperty.
|
|
23731
|
+
* @member {string} joinProperty
|
|
23732
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23733
|
+
* @instance
|
|
23734
|
+
*/
|
|
23735
|
+
ChainedJoin.prototype.joinProperty = "";
|
|
23736
|
+
|
|
23737
|
+
/**
|
|
23738
|
+
* ChainedJoin outerDocumentType.
|
|
23739
|
+
* @member {string} outerDocumentType
|
|
23740
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23741
|
+
* @instance
|
|
23742
|
+
*/
|
|
23743
|
+
ChainedJoin.prototype.outerDocumentType = "";
|
|
23744
|
+
|
|
23745
|
+
/**
|
|
23746
|
+
* Creates a new ChainedJoin instance using the specified properties.
|
|
23747
|
+
* @function create
|
|
23748
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23749
|
+
* @static
|
|
23750
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin=} [properties] Properties to set
|
|
23751
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin instance
|
|
23752
|
+
*/
|
|
23753
|
+
ChainedJoin.create = function create(properties) {
|
|
23754
|
+
return new ChainedJoin(properties);
|
|
23755
|
+
};
|
|
23756
|
+
|
|
23757
|
+
/**
|
|
23758
|
+
* Encodes the specified ChainedJoin message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify|verify} messages.
|
|
23759
|
+
* @function encode
|
|
23760
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23761
|
+
* @static
|
|
23762
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin} message ChainedJoin message or plain object to encode
|
|
23763
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23764
|
+
* @returns {$protobuf.Writer} Writer
|
|
23765
|
+
*/
|
|
23766
|
+
ChainedJoin.encode = function encode(message, writer) {
|
|
23767
|
+
if (!writer)
|
|
23768
|
+
writer = $Writer.create();
|
|
23769
|
+
if (message.joinProperty != null && Object.hasOwnProperty.call(message, "joinProperty"))
|
|
23770
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.joinProperty);
|
|
23771
|
+
if (message.outerDocumentType != null && Object.hasOwnProperty.call(message, "outerDocumentType"))
|
|
23772
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.outerDocumentType);
|
|
23773
|
+
return writer;
|
|
23774
|
+
};
|
|
23775
|
+
|
|
23776
|
+
/**
|
|
23777
|
+
* Encodes the specified ChainedJoin message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.verify|verify} messages.
|
|
22900
23778
|
* @function encodeDelimited
|
|
22901
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23779
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
22902
23780
|
* @static
|
|
22903
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23781
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin} message ChainedJoin message or plain object to encode
|
|
22904
23782
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
22905
23783
|
* @returns {$protobuf.Writer} Writer
|
|
22906
23784
|
*/
|
|
22907
|
-
|
|
23785
|
+
ChainedJoin.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22908
23786
|
return this.encode(message, writer).ldelim();
|
|
22909
23787
|
};
|
|
22910
23788
|
|
|
22911
23789
|
/**
|
|
22912
|
-
* Decodes a
|
|
23790
|
+
* Decodes a ChainedJoin message from the specified reader or buffer.
|
|
22913
23791
|
* @function decode
|
|
22914
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23792
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
22915
23793
|
* @static
|
|
22916
23794
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
22917
23795
|
* @param {number} [length] Message length if known beforehand
|
|
22918
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23796
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
|
|
22919
23797
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22920
23798
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22921
23799
|
*/
|
|
22922
|
-
|
|
23800
|
+
ChainedJoin.decode = function decode(reader, length) {
|
|
22923
23801
|
if (!(reader instanceof $Reader))
|
|
22924
23802
|
reader = $Reader.create(reader);
|
|
22925
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23803
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin();
|
|
22926
23804
|
while (reader.pos < end) {
|
|
22927
23805
|
var tag = reader.uint32();
|
|
22928
23806
|
switch (tag >>> 3) {
|
|
22929
23807
|
case 1:
|
|
22930
|
-
message
|
|
23808
|
+
message.joinProperty = reader.string();
|
|
22931
23809
|
break;
|
|
22932
23810
|
case 2:
|
|
22933
|
-
message.
|
|
23811
|
+
message.outerDocumentType = reader.string();
|
|
22934
23812
|
break;
|
|
22935
23813
|
default:
|
|
22936
23814
|
reader.skipType(tag & 7);
|
|
@@ -22941,151 +23819,96 @@ $root.org = (function() {
|
|
|
22941
23819
|
};
|
|
22942
23820
|
|
|
22943
23821
|
/**
|
|
22944
|
-
* Decodes a
|
|
23822
|
+
* Decodes a ChainedJoin message from the specified reader or buffer, length delimited.
|
|
22945
23823
|
* @function decodeDelimited
|
|
22946
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23824
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
22947
23825
|
* @static
|
|
22948
23826
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
22949
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23827
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
|
|
22950
23828
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22951
23829
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22952
23830
|
*/
|
|
22953
|
-
|
|
23831
|
+
ChainedJoin.decodeDelimited = function decodeDelimited(reader) {
|
|
22954
23832
|
if (!(reader instanceof $Reader))
|
|
22955
23833
|
reader = new $Reader(reader);
|
|
22956
23834
|
return this.decode(reader, reader.uint32());
|
|
22957
23835
|
};
|
|
22958
23836
|
|
|
22959
23837
|
/**
|
|
22960
|
-
* Verifies a
|
|
23838
|
+
* Verifies a ChainedJoin message.
|
|
22961
23839
|
* @function verify
|
|
22962
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23840
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
22963
23841
|
* @static
|
|
22964
23842
|
* @param {Object.<string,*>} message Plain object to verify
|
|
22965
23843
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
22966
23844
|
*/
|
|
22967
|
-
|
|
23845
|
+
ChainedJoin.verify = function verify(message) {
|
|
22968
23846
|
if (typeof message !== "object" || message === null)
|
|
22969
23847
|
return "object expected";
|
|
22970
|
-
if (message
|
|
22971
|
-
|
|
22972
|
-
|
|
22973
|
-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
case 2:
|
|
22977
|
-
case 3:
|
|
22978
|
-
case 4:
|
|
22979
|
-
case 5:
|
|
22980
|
-
break;
|
|
22981
|
-
}
|
|
22982
|
-
if (message.field != null && message.hasOwnProperty("field"))
|
|
22983
|
-
if (!$util.isString(message.field))
|
|
22984
|
-
return "field: string expected";
|
|
23848
|
+
if (message.joinProperty != null && message.hasOwnProperty("joinProperty"))
|
|
23849
|
+
if (!$util.isString(message.joinProperty))
|
|
23850
|
+
return "joinProperty: string expected";
|
|
23851
|
+
if (message.outerDocumentType != null && message.hasOwnProperty("outerDocumentType"))
|
|
23852
|
+
if (!$util.isString(message.outerDocumentType))
|
|
23853
|
+
return "outerDocumentType: string expected";
|
|
22985
23854
|
return null;
|
|
22986
23855
|
};
|
|
22987
23856
|
|
|
22988
23857
|
/**
|
|
22989
|
-
* Creates a
|
|
23858
|
+
* Creates a ChainedJoin message from a plain object. Also converts values to their respective internal types.
|
|
22990
23859
|
* @function fromObject
|
|
22991
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23860
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
22992
23861
|
* @static
|
|
22993
23862
|
* @param {Object.<string,*>} object Plain object
|
|
22994
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23863
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} ChainedJoin
|
|
22995
23864
|
*/
|
|
22996
|
-
|
|
22997
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23865
|
+
ChainedJoin.fromObject = function fromObject(object) {
|
|
23866
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin)
|
|
22998
23867
|
return object;
|
|
22999
|
-
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
message
|
|
23004
|
-
break;
|
|
23005
|
-
case "COUNT":
|
|
23006
|
-
case 1:
|
|
23007
|
-
message["function"] = 1;
|
|
23008
|
-
break;
|
|
23009
|
-
case "SUM":
|
|
23010
|
-
case 2:
|
|
23011
|
-
message["function"] = 2;
|
|
23012
|
-
break;
|
|
23013
|
-
case "AVG":
|
|
23014
|
-
case 3:
|
|
23015
|
-
message["function"] = 3;
|
|
23016
|
-
break;
|
|
23017
|
-
case "MIN":
|
|
23018
|
-
case 4:
|
|
23019
|
-
message["function"] = 4;
|
|
23020
|
-
break;
|
|
23021
|
-
case "MAX":
|
|
23022
|
-
case 5:
|
|
23023
|
-
message["function"] = 5;
|
|
23024
|
-
break;
|
|
23025
|
-
}
|
|
23026
|
-
if (object.field != null)
|
|
23027
|
-
message.field = String(object.field);
|
|
23868
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin();
|
|
23869
|
+
if (object.joinProperty != null)
|
|
23870
|
+
message.joinProperty = String(object.joinProperty);
|
|
23871
|
+
if (object.outerDocumentType != null)
|
|
23872
|
+
message.outerDocumentType = String(object.outerDocumentType);
|
|
23028
23873
|
return message;
|
|
23029
23874
|
};
|
|
23030
23875
|
|
|
23031
23876
|
/**
|
|
23032
|
-
* Creates a plain object from a
|
|
23877
|
+
* Creates a plain object from a ChainedJoin message. Also converts values to other types if specified.
|
|
23033
23878
|
* @function toObject
|
|
23034
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23879
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23035
23880
|
* @static
|
|
23036
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23881
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin} message ChainedJoin
|
|
23037
23882
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23038
23883
|
* @returns {Object.<string,*>} Plain object
|
|
23039
23884
|
*/
|
|
23040
|
-
|
|
23885
|
+
ChainedJoin.toObject = function toObject(message, options) {
|
|
23041
23886
|
if (!options)
|
|
23042
23887
|
options = {};
|
|
23043
23888
|
var object = {};
|
|
23044
23889
|
if (options.defaults) {
|
|
23045
|
-
object
|
|
23046
|
-
object.
|
|
23890
|
+
object.joinProperty = "";
|
|
23891
|
+
object.outerDocumentType = "";
|
|
23047
23892
|
}
|
|
23048
|
-
if (message
|
|
23049
|
-
object
|
|
23050
|
-
if (message.
|
|
23051
|
-
object.
|
|
23893
|
+
if (message.joinProperty != null && message.hasOwnProperty("joinProperty"))
|
|
23894
|
+
object.joinProperty = message.joinProperty;
|
|
23895
|
+
if (message.outerDocumentType != null && message.hasOwnProperty("outerDocumentType"))
|
|
23896
|
+
object.outerDocumentType = message.outerDocumentType;
|
|
23052
23897
|
return object;
|
|
23053
23898
|
};
|
|
23054
23899
|
|
|
23055
23900
|
/**
|
|
23056
|
-
* Converts this
|
|
23901
|
+
* Converts this ChainedJoin to JSON.
|
|
23057
23902
|
* @function toJSON
|
|
23058
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.
|
|
23903
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin
|
|
23059
23904
|
* @instance
|
|
23060
23905
|
* @returns {Object.<string,*>} JSON object
|
|
23061
23906
|
*/
|
|
23062
|
-
|
|
23907
|
+
ChainedJoin.prototype.toJSON = function toJSON() {
|
|
23063
23908
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23064
23909
|
};
|
|
23065
23910
|
|
|
23066
|
-
|
|
23067
|
-
* Function enum.
|
|
23068
|
-
* @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function
|
|
23069
|
-
* @enum {number}
|
|
23070
|
-
* @property {number} DOCUMENTS=0 DOCUMENTS value
|
|
23071
|
-
* @property {number} COUNT=1 COUNT value
|
|
23072
|
-
* @property {number} SUM=2 SUM value
|
|
23073
|
-
* @property {number} AVG=3 AVG value
|
|
23074
|
-
* @property {number} MIN=4 MIN value
|
|
23075
|
-
* @property {number} MAX=5 MAX value
|
|
23076
|
-
*/
|
|
23077
|
-
Select.Function = (function() {
|
|
23078
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
23079
|
-
values[valuesById[0] = "DOCUMENTS"] = 0;
|
|
23080
|
-
values[valuesById[1] = "COUNT"] = 1;
|
|
23081
|
-
values[valuesById[2] = "SUM"] = 2;
|
|
23082
|
-
values[valuesById[3] = "AVG"] = 3;
|
|
23083
|
-
values[valuesById[4] = "MIN"] = 4;
|
|
23084
|
-
values[valuesById[5] = "MAX"] = 5;
|
|
23085
|
-
return values;
|
|
23086
|
-
})();
|
|
23087
|
-
|
|
23088
|
-
return Select;
|
|
23911
|
+
return ChainedJoin;
|
|
23089
23912
|
})();
|
|
23090
23913
|
|
|
23091
23914
|
return GetDocumentsRequestV1;
|
|
@@ -27325,6 +28148,7 @@ $root.org = (function() {
|
|
|
27325
28148
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ISumResults|null} [sums] ResultData sums
|
|
27326
28149
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
|
|
27327
28150
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
|
|
28151
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null} [chained] ResultData chained
|
|
27328
28152
|
*/
|
|
27329
28153
|
|
|
27330
28154
|
/**
|
|
@@ -27382,17 +28206,25 @@ $root.org = (function() {
|
|
|
27382
28206
|
*/
|
|
27383
28207
|
ResultData.prototype.ranked = null;
|
|
27384
28208
|
|
|
28209
|
+
/**
|
|
28210
|
+
* ResultData chained.
|
|
28211
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null|undefined} chained
|
|
28212
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
28213
|
+
* @instance
|
|
28214
|
+
*/
|
|
28215
|
+
ResultData.prototype.chained = null;
|
|
28216
|
+
|
|
27385
28217
|
// OneOf field names bound to virtual getters and setters
|
|
27386
28218
|
var $oneOfFields;
|
|
27387
28219
|
|
|
27388
28220
|
/**
|
|
27389
28221
|
* ResultData variant.
|
|
27390
|
-
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|undefined} variant
|
|
28222
|
+
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|undefined} variant
|
|
27391
28223
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
27392
28224
|
* @instance
|
|
27393
28225
|
*/
|
|
27394
28226
|
Object.defineProperty(ResultData.prototype, "variant", {
|
|
27395
|
-
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked"]),
|
|
28227
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained"]),
|
|
27396
28228
|
set: $util.oneOfSetter($oneOfFields)
|
|
27397
28229
|
});
|
|
27398
28230
|
|
|
@@ -27430,6 +28262,8 @@ $root.org = (function() {
|
|
|
27430
28262
|
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResults.encode(message.averages, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27431
28263
|
if (message.ranked != null && Object.hasOwnProperty.call(message, "ranked"))
|
|
27432
28264
|
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
28265
|
+
if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
|
|
28266
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.encode(message.chained, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
27433
28267
|
return writer;
|
|
27434
28268
|
};
|
|
27435
28269
|
|
|
@@ -27479,6 +28313,9 @@ $root.org = (function() {
|
|
|
27479
28313
|
case 5:
|
|
27480
28314
|
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.decode(reader, reader.uint32());
|
|
27481
28315
|
break;
|
|
28316
|
+
case 6:
|
|
28317
|
+
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.decode(reader, reader.uint32());
|
|
28318
|
+
break;
|
|
27482
28319
|
default:
|
|
27483
28320
|
reader.skipType(tag & 7);
|
|
27484
28321
|
break;
|
|
@@ -27563,6 +28400,16 @@ $root.org = (function() {
|
|
|
27563
28400
|
return "ranked." + error;
|
|
27564
28401
|
}
|
|
27565
28402
|
}
|
|
28403
|
+
if (message.chained != null && message.hasOwnProperty("chained")) {
|
|
28404
|
+
if (properties.variant === 1)
|
|
28405
|
+
return "variant: multiple values";
|
|
28406
|
+
properties.variant = 1;
|
|
28407
|
+
{
|
|
28408
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify(message.chained);
|
|
28409
|
+
if (error)
|
|
28410
|
+
return "chained." + error;
|
|
28411
|
+
}
|
|
28412
|
+
}
|
|
27566
28413
|
return null;
|
|
27567
28414
|
};
|
|
27568
28415
|
|
|
@@ -27603,6 +28450,11 @@ $root.org = (function() {
|
|
|
27603
28450
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.ranked: object expected");
|
|
27604
28451
|
message.ranked = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.fromObject(object.ranked);
|
|
27605
28452
|
}
|
|
28453
|
+
if (object.chained != null) {
|
|
28454
|
+
if (typeof object.chained !== "object")
|
|
28455
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.chained: object expected");
|
|
28456
|
+
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.fromObject(object.chained);
|
|
28457
|
+
}
|
|
27606
28458
|
return message;
|
|
27607
28459
|
};
|
|
27608
28460
|
|
|
@@ -27644,6 +28496,11 @@ $root.org = (function() {
|
|
|
27644
28496
|
if (options.oneofs)
|
|
27645
28497
|
object.variant = "ranked";
|
|
27646
28498
|
}
|
|
28499
|
+
if (message.chained != null && message.hasOwnProperty("chained")) {
|
|
28500
|
+
object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.toObject(message.chained, options);
|
|
28501
|
+
if (options.oneofs)
|
|
28502
|
+
object.variant = "chained";
|
|
28503
|
+
}
|
|
27647
28504
|
return object;
|
|
27648
28505
|
};
|
|
27649
28506
|
|
|
@@ -27661,6 +28518,254 @@ $root.org = (function() {
|
|
|
27661
28518
|
return ResultData;
|
|
27662
28519
|
})();
|
|
27663
28520
|
|
|
28521
|
+
GetDocumentsResponseV1.ChainedDocuments = (function() {
|
|
28522
|
+
|
|
28523
|
+
/**
|
|
28524
|
+
* Properties of a ChainedDocuments.
|
|
28525
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
28526
|
+
* @interface IChainedDocuments
|
|
28527
|
+
* @property {Array.<Uint8Array>|null} [innerDocuments] ChainedDocuments innerDocuments
|
|
28528
|
+
* @property {Array.<Uint8Array>|null} [outerDocuments] ChainedDocuments outerDocuments
|
|
28529
|
+
*/
|
|
28530
|
+
|
|
28531
|
+
/**
|
|
28532
|
+
* Constructs a new ChainedDocuments.
|
|
28533
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
28534
|
+
* @classdesc Represents a ChainedDocuments.
|
|
28535
|
+
* @implements IChainedDocuments
|
|
28536
|
+
* @constructor
|
|
28537
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
|
|
28538
|
+
*/
|
|
28539
|
+
function ChainedDocuments(properties) {
|
|
28540
|
+
this.innerDocuments = [];
|
|
28541
|
+
this.outerDocuments = [];
|
|
28542
|
+
if (properties)
|
|
28543
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28544
|
+
if (properties[keys[i]] != null)
|
|
28545
|
+
this[keys[i]] = properties[keys[i]];
|
|
28546
|
+
}
|
|
28547
|
+
|
|
28548
|
+
/**
|
|
28549
|
+
* ChainedDocuments innerDocuments.
|
|
28550
|
+
* @member {Array.<Uint8Array>} innerDocuments
|
|
28551
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28552
|
+
* @instance
|
|
28553
|
+
*/
|
|
28554
|
+
ChainedDocuments.prototype.innerDocuments = $util.emptyArray;
|
|
28555
|
+
|
|
28556
|
+
/**
|
|
28557
|
+
* ChainedDocuments outerDocuments.
|
|
28558
|
+
* @member {Array.<Uint8Array>} outerDocuments
|
|
28559
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28560
|
+
* @instance
|
|
28561
|
+
*/
|
|
28562
|
+
ChainedDocuments.prototype.outerDocuments = $util.emptyArray;
|
|
28563
|
+
|
|
28564
|
+
/**
|
|
28565
|
+
* Creates a new ChainedDocuments instance using the specified properties.
|
|
28566
|
+
* @function create
|
|
28567
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28568
|
+
* @static
|
|
28569
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
|
|
28570
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments instance
|
|
28571
|
+
*/
|
|
28572
|
+
ChainedDocuments.create = function create(properties) {
|
|
28573
|
+
return new ChainedDocuments(properties);
|
|
28574
|
+
};
|
|
28575
|
+
|
|
28576
|
+
/**
|
|
28577
|
+
* Encodes the specified ChainedDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
|
|
28578
|
+
* @function encode
|
|
28579
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28580
|
+
* @static
|
|
28581
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
|
|
28582
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28583
|
+
* @returns {$protobuf.Writer} Writer
|
|
28584
|
+
*/
|
|
28585
|
+
ChainedDocuments.encode = function encode(message, writer) {
|
|
28586
|
+
if (!writer)
|
|
28587
|
+
writer = $Writer.create();
|
|
28588
|
+
if (message.innerDocuments != null && message.innerDocuments.length)
|
|
28589
|
+
for (var i = 0; i < message.innerDocuments.length; ++i)
|
|
28590
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.innerDocuments[i]);
|
|
28591
|
+
if (message.outerDocuments != null && message.outerDocuments.length)
|
|
28592
|
+
for (var i = 0; i < message.outerDocuments.length; ++i)
|
|
28593
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.outerDocuments[i]);
|
|
28594
|
+
return writer;
|
|
28595
|
+
};
|
|
28596
|
+
|
|
28597
|
+
/**
|
|
28598
|
+
* Encodes the specified ChainedDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
|
|
28599
|
+
* @function encodeDelimited
|
|
28600
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28601
|
+
* @static
|
|
28602
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
|
|
28603
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28604
|
+
* @returns {$protobuf.Writer} Writer
|
|
28605
|
+
*/
|
|
28606
|
+
ChainedDocuments.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28607
|
+
return this.encode(message, writer).ldelim();
|
|
28608
|
+
};
|
|
28609
|
+
|
|
28610
|
+
/**
|
|
28611
|
+
* Decodes a ChainedDocuments message from the specified reader or buffer.
|
|
28612
|
+
* @function decode
|
|
28613
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28614
|
+
* @static
|
|
28615
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28616
|
+
* @param {number} [length] Message length if known beforehand
|
|
28617
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
28618
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28619
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28620
|
+
*/
|
|
28621
|
+
ChainedDocuments.decode = function decode(reader, length) {
|
|
28622
|
+
if (!(reader instanceof $Reader))
|
|
28623
|
+
reader = $Reader.create(reader);
|
|
28624
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
|
|
28625
|
+
while (reader.pos < end) {
|
|
28626
|
+
var tag = reader.uint32();
|
|
28627
|
+
switch (tag >>> 3) {
|
|
28628
|
+
case 1:
|
|
28629
|
+
if (!(message.innerDocuments && message.innerDocuments.length))
|
|
28630
|
+
message.innerDocuments = [];
|
|
28631
|
+
message.innerDocuments.push(reader.bytes());
|
|
28632
|
+
break;
|
|
28633
|
+
case 2:
|
|
28634
|
+
if (!(message.outerDocuments && message.outerDocuments.length))
|
|
28635
|
+
message.outerDocuments = [];
|
|
28636
|
+
message.outerDocuments.push(reader.bytes());
|
|
28637
|
+
break;
|
|
28638
|
+
default:
|
|
28639
|
+
reader.skipType(tag & 7);
|
|
28640
|
+
break;
|
|
28641
|
+
}
|
|
28642
|
+
}
|
|
28643
|
+
return message;
|
|
28644
|
+
};
|
|
28645
|
+
|
|
28646
|
+
/**
|
|
28647
|
+
* Decodes a ChainedDocuments message from the specified reader or buffer, length delimited.
|
|
28648
|
+
* @function decodeDelimited
|
|
28649
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28650
|
+
* @static
|
|
28651
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28652
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
28653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28655
|
+
*/
|
|
28656
|
+
ChainedDocuments.decodeDelimited = function decodeDelimited(reader) {
|
|
28657
|
+
if (!(reader instanceof $Reader))
|
|
28658
|
+
reader = new $Reader(reader);
|
|
28659
|
+
return this.decode(reader, reader.uint32());
|
|
28660
|
+
};
|
|
28661
|
+
|
|
28662
|
+
/**
|
|
28663
|
+
* Verifies a ChainedDocuments message.
|
|
28664
|
+
* @function verify
|
|
28665
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28666
|
+
* @static
|
|
28667
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28668
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28669
|
+
*/
|
|
28670
|
+
ChainedDocuments.verify = function verify(message) {
|
|
28671
|
+
if (typeof message !== "object" || message === null)
|
|
28672
|
+
return "object expected";
|
|
28673
|
+
if (message.innerDocuments != null && message.hasOwnProperty("innerDocuments")) {
|
|
28674
|
+
if (!Array.isArray(message.innerDocuments))
|
|
28675
|
+
return "innerDocuments: array expected";
|
|
28676
|
+
for (var i = 0; i < message.innerDocuments.length; ++i)
|
|
28677
|
+
if (!(message.innerDocuments[i] && typeof message.innerDocuments[i].length === "number" || $util.isString(message.innerDocuments[i])))
|
|
28678
|
+
return "innerDocuments: buffer[] expected";
|
|
28679
|
+
}
|
|
28680
|
+
if (message.outerDocuments != null && message.hasOwnProperty("outerDocuments")) {
|
|
28681
|
+
if (!Array.isArray(message.outerDocuments))
|
|
28682
|
+
return "outerDocuments: array expected";
|
|
28683
|
+
for (var i = 0; i < message.outerDocuments.length; ++i)
|
|
28684
|
+
if (!(message.outerDocuments[i] && typeof message.outerDocuments[i].length === "number" || $util.isString(message.outerDocuments[i])))
|
|
28685
|
+
return "outerDocuments: buffer[] expected";
|
|
28686
|
+
}
|
|
28687
|
+
return null;
|
|
28688
|
+
};
|
|
28689
|
+
|
|
28690
|
+
/**
|
|
28691
|
+
* Creates a ChainedDocuments message from a plain object. Also converts values to their respective internal types.
|
|
28692
|
+
* @function fromObject
|
|
28693
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28694
|
+
* @static
|
|
28695
|
+
* @param {Object.<string,*>} object Plain object
|
|
28696
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
28697
|
+
*/
|
|
28698
|
+
ChainedDocuments.fromObject = function fromObject(object) {
|
|
28699
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments)
|
|
28700
|
+
return object;
|
|
28701
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
|
|
28702
|
+
if (object.innerDocuments) {
|
|
28703
|
+
if (!Array.isArray(object.innerDocuments))
|
|
28704
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.innerDocuments: array expected");
|
|
28705
|
+
message.innerDocuments = [];
|
|
28706
|
+
for (var i = 0; i < object.innerDocuments.length; ++i)
|
|
28707
|
+
if (typeof object.innerDocuments[i] === "string")
|
|
28708
|
+
$util.base64.decode(object.innerDocuments[i], message.innerDocuments[i] = $util.newBuffer($util.base64.length(object.innerDocuments[i])), 0);
|
|
28709
|
+
else if (object.innerDocuments[i].length >= 0)
|
|
28710
|
+
message.innerDocuments[i] = object.innerDocuments[i];
|
|
28711
|
+
}
|
|
28712
|
+
if (object.outerDocuments) {
|
|
28713
|
+
if (!Array.isArray(object.outerDocuments))
|
|
28714
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.outerDocuments: array expected");
|
|
28715
|
+
message.outerDocuments = [];
|
|
28716
|
+
for (var i = 0; i < object.outerDocuments.length; ++i)
|
|
28717
|
+
if (typeof object.outerDocuments[i] === "string")
|
|
28718
|
+
$util.base64.decode(object.outerDocuments[i], message.outerDocuments[i] = $util.newBuffer($util.base64.length(object.outerDocuments[i])), 0);
|
|
28719
|
+
else if (object.outerDocuments[i].length >= 0)
|
|
28720
|
+
message.outerDocuments[i] = object.outerDocuments[i];
|
|
28721
|
+
}
|
|
28722
|
+
return message;
|
|
28723
|
+
};
|
|
28724
|
+
|
|
28725
|
+
/**
|
|
28726
|
+
* Creates a plain object from a ChainedDocuments message. Also converts values to other types if specified.
|
|
28727
|
+
* @function toObject
|
|
28728
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28729
|
+
* @static
|
|
28730
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} message ChainedDocuments
|
|
28731
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28732
|
+
* @returns {Object.<string,*>} Plain object
|
|
28733
|
+
*/
|
|
28734
|
+
ChainedDocuments.toObject = function toObject(message, options) {
|
|
28735
|
+
if (!options)
|
|
28736
|
+
options = {};
|
|
28737
|
+
var object = {};
|
|
28738
|
+
if (options.arrays || options.defaults) {
|
|
28739
|
+
object.innerDocuments = [];
|
|
28740
|
+
object.outerDocuments = [];
|
|
28741
|
+
}
|
|
28742
|
+
if (message.innerDocuments && message.innerDocuments.length) {
|
|
28743
|
+
object.innerDocuments = [];
|
|
28744
|
+
for (var j = 0; j < message.innerDocuments.length; ++j)
|
|
28745
|
+
object.innerDocuments[j] = options.bytes === String ? $util.base64.encode(message.innerDocuments[j], 0, message.innerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.innerDocuments[j]) : message.innerDocuments[j];
|
|
28746
|
+
}
|
|
28747
|
+
if (message.outerDocuments && message.outerDocuments.length) {
|
|
28748
|
+
object.outerDocuments = [];
|
|
28749
|
+
for (var j = 0; j < message.outerDocuments.length; ++j)
|
|
28750
|
+
object.outerDocuments[j] = options.bytes === String ? $util.base64.encode(message.outerDocuments[j], 0, message.outerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.outerDocuments[j]) : message.outerDocuments[j];
|
|
28751
|
+
}
|
|
28752
|
+
return object;
|
|
28753
|
+
};
|
|
28754
|
+
|
|
28755
|
+
/**
|
|
28756
|
+
* Converts this ChainedDocuments to JSON.
|
|
28757
|
+
* @function toJSON
|
|
28758
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
28759
|
+
* @instance
|
|
28760
|
+
* @returns {Object.<string,*>} JSON object
|
|
28761
|
+
*/
|
|
28762
|
+
ChainedDocuments.prototype.toJSON = function toJSON() {
|
|
28763
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28764
|
+
};
|
|
28765
|
+
|
|
28766
|
+
return ChainedDocuments;
|
|
28767
|
+
})();
|
|
28768
|
+
|
|
27664
28769
|
return GetDocumentsResponseV1;
|
|
27665
28770
|
})();
|
|
27666
28771
|
|