@dashevo/dapi-grpc 4.2.0-beta.5 → 4.2.0-beta.7

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.
@@ -36366,6 +36366,7 @@ $root.org = (function() {
36366
36366
  * @property {number} IN=9 IN value
36367
36367
  * @property {number} STARTS_WITH=10 STARTS_WITH value
36368
36368
  * @property {number} IN_TIME_RANGE=11 IN_TIME_RANGE value
36369
+ * @property {number} IN_INTEGER_RANGE=12 IN_INTEGER_RANGE value
36369
36370
  */
36370
36371
  GetDocumentsRequest.WhereOperator = (function() {
36371
36372
  var valuesById = {}, values = Object.create(valuesById);
@@ -36381,6 +36382,7 @@ $root.org = (function() {
36381
36382
  values[valuesById[9] = "IN"] = 9;
36382
36383
  values[valuesById[10] = "STARTS_WITH"] = 10;
36383
36384
  values[valuesById[11] = "IN_TIME_RANGE"] = 11;
36385
+ values[valuesById[12] = "IN_INTEGER_RANGE"] = 12;
36384
36386
  return values;
36385
36387
  })();
36386
36388
 
@@ -37581,6 +37583,500 @@ $root.org = (function() {
37581
37583
  return TimeRangeSelection;
37582
37584
  })();
37583
37585
 
37586
+ GetDocumentsRequest.IntegerRangeSelection = (function() {
37587
+
37588
+ /**
37589
+ * Properties of an IntegerRangeSelection.
37590
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
37591
+ * @interface IIntegerRangeSelection
37592
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [start] IntegerRangeSelection start
37593
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid|null} [grid] IntegerRangeSelection grid
37594
+ */
37595
+
37596
+ /**
37597
+ * Constructs a new IntegerRangeSelection.
37598
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
37599
+ * @classdesc Represents an IntegerRangeSelection.
37600
+ * @implements IIntegerRangeSelection
37601
+ * @constructor
37602
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection=} [properties] Properties to set
37603
+ */
37604
+ function IntegerRangeSelection(properties) {
37605
+ if (properties)
37606
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37607
+ if (properties[keys[i]] != null)
37608
+ this[keys[i]] = properties[keys[i]];
37609
+ }
37610
+
37611
+ /**
37612
+ * IntegerRangeSelection start.
37613
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null|undefined} start
37614
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37615
+ * @instance
37616
+ */
37617
+ IntegerRangeSelection.prototype.start = null;
37618
+
37619
+ /**
37620
+ * IntegerRangeSelection grid.
37621
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid|null|undefined} grid
37622
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37623
+ * @instance
37624
+ */
37625
+ IntegerRangeSelection.prototype.grid = null;
37626
+
37627
+ /**
37628
+ * Creates a new IntegerRangeSelection instance using the specified properties.
37629
+ * @function create
37630
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37631
+ * @static
37632
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection=} [properties] Properties to set
37633
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection instance
37634
+ */
37635
+ IntegerRangeSelection.create = function create(properties) {
37636
+ return new IntegerRangeSelection(properties);
37637
+ };
37638
+
37639
+ /**
37640
+ * Encodes the specified IntegerRangeSelection message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify|verify} messages.
37641
+ * @function encode
37642
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37643
+ * @static
37644
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection} message IntegerRangeSelection message or plain object to encode
37645
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37646
+ * @returns {$protobuf.Writer} Writer
37647
+ */
37648
+ IntegerRangeSelection.encode = function encode(message, writer) {
37649
+ if (!writer)
37650
+ writer = $Writer.create();
37651
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
37652
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.start, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
37653
+ if (message.grid != null && Object.hasOwnProperty.call(message, "grid"))
37654
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.encode(message.grid, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
37655
+ return writer;
37656
+ };
37657
+
37658
+ /**
37659
+ * Encodes the specified IntegerRangeSelection message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify|verify} messages.
37660
+ * @function encodeDelimited
37661
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37662
+ * @static
37663
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection} message IntegerRangeSelection message or plain object to encode
37664
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37665
+ * @returns {$protobuf.Writer} Writer
37666
+ */
37667
+ IntegerRangeSelection.encodeDelimited = function encodeDelimited(message, writer) {
37668
+ return this.encode(message, writer).ldelim();
37669
+ };
37670
+
37671
+ /**
37672
+ * Decodes an IntegerRangeSelection message from the specified reader or buffer.
37673
+ * @function decode
37674
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37675
+ * @static
37676
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37677
+ * @param {number} [length] Message length if known beforehand
37678
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
37679
+ * @throws {Error} If the payload is not a reader or valid buffer
37680
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37681
+ */
37682
+ IntegerRangeSelection.decode = function decode(reader, length) {
37683
+ if (!(reader instanceof $Reader))
37684
+ reader = $Reader.create(reader);
37685
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection();
37686
+ while (reader.pos < end) {
37687
+ var tag = reader.uint32();
37688
+ switch (tag >>> 3) {
37689
+ case 1:
37690
+ message.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
37691
+ break;
37692
+ case 2:
37693
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.decode(reader, reader.uint32());
37694
+ break;
37695
+ default:
37696
+ reader.skipType(tag & 7);
37697
+ break;
37698
+ }
37699
+ }
37700
+ return message;
37701
+ };
37702
+
37703
+ /**
37704
+ * Decodes an IntegerRangeSelection message from the specified reader or buffer, length delimited.
37705
+ * @function decodeDelimited
37706
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37707
+ * @static
37708
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37709
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
37710
+ * @throws {Error} If the payload is not a reader or valid buffer
37711
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37712
+ */
37713
+ IntegerRangeSelection.decodeDelimited = function decodeDelimited(reader) {
37714
+ if (!(reader instanceof $Reader))
37715
+ reader = new $Reader(reader);
37716
+ return this.decode(reader, reader.uint32());
37717
+ };
37718
+
37719
+ /**
37720
+ * Verifies an IntegerRangeSelection message.
37721
+ * @function verify
37722
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37723
+ * @static
37724
+ * @param {Object.<string,*>} message Plain object to verify
37725
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37726
+ */
37727
+ IntegerRangeSelection.verify = function verify(message) {
37728
+ if (typeof message !== "object" || message === null)
37729
+ return "object expected";
37730
+ if (message.start != null && message.hasOwnProperty("start")) {
37731
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.verify(message.start);
37732
+ if (error)
37733
+ return "start." + error;
37734
+ }
37735
+ if (message.grid != null && message.hasOwnProperty("grid")) {
37736
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify(message.grid);
37737
+ if (error)
37738
+ return "grid." + error;
37739
+ }
37740
+ return null;
37741
+ };
37742
+
37743
+ /**
37744
+ * Creates an IntegerRangeSelection message from a plain object. Also converts values to their respective internal types.
37745
+ * @function fromObject
37746
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37747
+ * @static
37748
+ * @param {Object.<string,*>} object Plain object
37749
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
37750
+ */
37751
+ IntegerRangeSelection.fromObject = function fromObject(object) {
37752
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection)
37753
+ return object;
37754
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection();
37755
+ if (object.start != null) {
37756
+ if (typeof object.start !== "object")
37757
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.start: object expected");
37758
+ message.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.start);
37759
+ }
37760
+ if (object.grid != null) {
37761
+ if (typeof object.grid !== "object")
37762
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.grid: object expected");
37763
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.fromObject(object.grid);
37764
+ }
37765
+ return message;
37766
+ };
37767
+
37768
+ /**
37769
+ * Creates a plain object from an IntegerRangeSelection message. Also converts values to other types if specified.
37770
+ * @function toObject
37771
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37772
+ * @static
37773
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} message IntegerRangeSelection
37774
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
37775
+ * @returns {Object.<string,*>} Plain object
37776
+ */
37777
+ IntegerRangeSelection.toObject = function toObject(message, options) {
37778
+ if (!options)
37779
+ options = {};
37780
+ var object = {};
37781
+ if (options.defaults) {
37782
+ object.start = null;
37783
+ object.grid = null;
37784
+ }
37785
+ if (message.start != null && message.hasOwnProperty("start"))
37786
+ object.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.start, options);
37787
+ if (message.grid != null && message.hasOwnProperty("grid"))
37788
+ object.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.toObject(message.grid, options);
37789
+ return object;
37790
+ };
37791
+
37792
+ /**
37793
+ * Converts this IntegerRangeSelection to JSON.
37794
+ * @function toJSON
37795
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37796
+ * @instance
37797
+ * @returns {Object.<string,*>} JSON object
37798
+ */
37799
+ IntegerRangeSelection.prototype.toJSON = function toJSON() {
37800
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37801
+ };
37802
+
37803
+ IntegerRangeSelection.Grid = (function() {
37804
+
37805
+ /**
37806
+ * Properties of a Grid.
37807
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37808
+ * @interface IGrid
37809
+ * @property {number|Long|null} [range] Grid range
37810
+ * @property {number|Long|null} [step] Grid step
37811
+ * @property {number|Long|null} [phase] Grid phase
37812
+ */
37813
+
37814
+ /**
37815
+ * Constructs a new Grid.
37816
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
37817
+ * @classdesc Represents a Grid.
37818
+ * @implements IGrid
37819
+ * @constructor
37820
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid=} [properties] Properties to set
37821
+ */
37822
+ function Grid(properties) {
37823
+ if (properties)
37824
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37825
+ if (properties[keys[i]] != null)
37826
+ this[keys[i]] = properties[keys[i]];
37827
+ }
37828
+
37829
+ /**
37830
+ * Grid range.
37831
+ * @member {number|Long} range
37832
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37833
+ * @instance
37834
+ */
37835
+ Grid.prototype.range = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37836
+
37837
+ /**
37838
+ * Grid step.
37839
+ * @member {number|Long} step
37840
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37841
+ * @instance
37842
+ */
37843
+ Grid.prototype.step = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37844
+
37845
+ /**
37846
+ * Grid phase.
37847
+ * @member {number|Long} phase
37848
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37849
+ * @instance
37850
+ */
37851
+ Grid.prototype.phase = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37852
+
37853
+ /**
37854
+ * Creates a new Grid instance using the specified properties.
37855
+ * @function create
37856
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37857
+ * @static
37858
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid=} [properties] Properties to set
37859
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid instance
37860
+ */
37861
+ Grid.create = function create(properties) {
37862
+ return new Grid(properties);
37863
+ };
37864
+
37865
+ /**
37866
+ * Encodes the specified Grid message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify|verify} messages.
37867
+ * @function encode
37868
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37869
+ * @static
37870
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid} message Grid message or plain object to encode
37871
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37872
+ * @returns {$protobuf.Writer} Writer
37873
+ */
37874
+ Grid.encode = function encode(message, writer) {
37875
+ if (!writer)
37876
+ writer = $Writer.create();
37877
+ if (message.range != null && Object.hasOwnProperty.call(message, "range"))
37878
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.range);
37879
+ if (message.step != null && Object.hasOwnProperty.call(message, "step"))
37880
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.step);
37881
+ if (message.phase != null && Object.hasOwnProperty.call(message, "phase"))
37882
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.phase);
37883
+ return writer;
37884
+ };
37885
+
37886
+ /**
37887
+ * Encodes the specified Grid message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify|verify} messages.
37888
+ * @function encodeDelimited
37889
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37890
+ * @static
37891
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid} message Grid message or plain object to encode
37892
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37893
+ * @returns {$protobuf.Writer} Writer
37894
+ */
37895
+ Grid.encodeDelimited = function encodeDelimited(message, writer) {
37896
+ return this.encode(message, writer).ldelim();
37897
+ };
37898
+
37899
+ /**
37900
+ * Decodes a Grid message from the specified reader or buffer.
37901
+ * @function decode
37902
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37903
+ * @static
37904
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37905
+ * @param {number} [length] Message length if known beforehand
37906
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
37907
+ * @throws {Error} If the payload is not a reader or valid buffer
37908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37909
+ */
37910
+ Grid.decode = function decode(reader, length) {
37911
+ if (!(reader instanceof $Reader))
37912
+ reader = $Reader.create(reader);
37913
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid();
37914
+ while (reader.pos < end) {
37915
+ var tag = reader.uint32();
37916
+ switch (tag >>> 3) {
37917
+ case 1:
37918
+ message.range = reader.uint64();
37919
+ break;
37920
+ case 2:
37921
+ message.step = reader.uint64();
37922
+ break;
37923
+ case 3:
37924
+ message.phase = reader.uint64();
37925
+ break;
37926
+ default:
37927
+ reader.skipType(tag & 7);
37928
+ break;
37929
+ }
37930
+ }
37931
+ return message;
37932
+ };
37933
+
37934
+ /**
37935
+ * Decodes a Grid message from the specified reader or buffer, length delimited.
37936
+ * @function decodeDelimited
37937
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37938
+ * @static
37939
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37940
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
37941
+ * @throws {Error} If the payload is not a reader or valid buffer
37942
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37943
+ */
37944
+ Grid.decodeDelimited = function decodeDelimited(reader) {
37945
+ if (!(reader instanceof $Reader))
37946
+ reader = new $Reader(reader);
37947
+ return this.decode(reader, reader.uint32());
37948
+ };
37949
+
37950
+ /**
37951
+ * Verifies a Grid message.
37952
+ * @function verify
37953
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37954
+ * @static
37955
+ * @param {Object.<string,*>} message Plain object to verify
37956
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37957
+ */
37958
+ Grid.verify = function verify(message) {
37959
+ if (typeof message !== "object" || message === null)
37960
+ return "object expected";
37961
+ if (message.range != null && message.hasOwnProperty("range"))
37962
+ if (!$util.isInteger(message.range) && !(message.range && $util.isInteger(message.range.low) && $util.isInteger(message.range.high)))
37963
+ return "range: integer|Long expected";
37964
+ if (message.step != null && message.hasOwnProperty("step"))
37965
+ if (!$util.isInteger(message.step) && !(message.step && $util.isInteger(message.step.low) && $util.isInteger(message.step.high)))
37966
+ return "step: integer|Long expected";
37967
+ if (message.phase != null && message.hasOwnProperty("phase"))
37968
+ if (!$util.isInteger(message.phase) && !(message.phase && $util.isInteger(message.phase.low) && $util.isInteger(message.phase.high)))
37969
+ return "phase: integer|Long expected";
37970
+ return null;
37971
+ };
37972
+
37973
+ /**
37974
+ * Creates a Grid message from a plain object. Also converts values to their respective internal types.
37975
+ * @function fromObject
37976
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
37977
+ * @static
37978
+ * @param {Object.<string,*>} object Plain object
37979
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
37980
+ */
37981
+ Grid.fromObject = function fromObject(object) {
37982
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid)
37983
+ return object;
37984
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid();
37985
+ if (object.range != null)
37986
+ if ($util.Long)
37987
+ (message.range = $util.Long.fromValue(object.range)).unsigned = true;
37988
+ else if (typeof object.range === "string")
37989
+ message.range = parseInt(object.range, 10);
37990
+ else if (typeof object.range === "number")
37991
+ message.range = object.range;
37992
+ else if (typeof object.range === "object")
37993
+ message.range = new $util.LongBits(object.range.low >>> 0, object.range.high >>> 0).toNumber(true);
37994
+ if (object.step != null)
37995
+ if ($util.Long)
37996
+ (message.step = $util.Long.fromValue(object.step)).unsigned = true;
37997
+ else if (typeof object.step === "string")
37998
+ message.step = parseInt(object.step, 10);
37999
+ else if (typeof object.step === "number")
38000
+ message.step = object.step;
38001
+ else if (typeof object.step === "object")
38002
+ message.step = new $util.LongBits(object.step.low >>> 0, object.step.high >>> 0).toNumber(true);
38003
+ if (object.phase != null)
38004
+ if ($util.Long)
38005
+ (message.phase = $util.Long.fromValue(object.phase)).unsigned = true;
38006
+ else if (typeof object.phase === "string")
38007
+ message.phase = parseInt(object.phase, 10);
38008
+ else if (typeof object.phase === "number")
38009
+ message.phase = object.phase;
38010
+ else if (typeof object.phase === "object")
38011
+ message.phase = new $util.LongBits(object.phase.low >>> 0, object.phase.high >>> 0).toNumber(true);
38012
+ return message;
38013
+ };
38014
+
38015
+ /**
38016
+ * Creates a plain object from a Grid message. Also converts values to other types if specified.
38017
+ * @function toObject
38018
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38019
+ * @static
38020
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} message Grid
38021
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38022
+ * @returns {Object.<string,*>} Plain object
38023
+ */
38024
+ Grid.toObject = function toObject(message, options) {
38025
+ if (!options)
38026
+ options = {};
38027
+ var object = {};
38028
+ if (options.defaults) {
38029
+ if ($util.Long) {
38030
+ var long = new $util.Long(0, 0, true);
38031
+ object.range = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38032
+ } else
38033
+ object.range = options.longs === String ? "0" : 0;
38034
+ if ($util.Long) {
38035
+ var long = new $util.Long(0, 0, true);
38036
+ object.step = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38037
+ } else
38038
+ object.step = options.longs === String ? "0" : 0;
38039
+ if ($util.Long) {
38040
+ var long = new $util.Long(0, 0, true);
38041
+ object.phase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38042
+ } else
38043
+ object.phase = options.longs === String ? "0" : 0;
38044
+ }
38045
+ if (message.range != null && message.hasOwnProperty("range"))
38046
+ if (typeof message.range === "number")
38047
+ object.range = options.longs === String ? String(message.range) : message.range;
38048
+ else
38049
+ 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;
38050
+ if (message.step != null && message.hasOwnProperty("step"))
38051
+ if (typeof message.step === "number")
38052
+ object.step = options.longs === String ? String(message.step) : message.step;
38053
+ else
38054
+ 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;
38055
+ if (message.phase != null && message.hasOwnProperty("phase"))
38056
+ if (typeof message.phase === "number")
38057
+ object.phase = options.longs === String ? String(message.phase) : message.phase;
38058
+ else
38059
+ 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;
38060
+ return object;
38061
+ };
38062
+
38063
+ /**
38064
+ * Converts this Grid to JSON.
38065
+ * @function toJSON
38066
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38067
+ * @instance
38068
+ * @returns {Object.<string,*>} JSON object
38069
+ */
38070
+ Grid.prototype.toJSON = function toJSON() {
38071
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
38072
+ };
38073
+
38074
+ return Grid;
38075
+ })();
38076
+
38077
+ return IntegerRangeSelection;
38078
+ })();
38079
+
37584
38080
  GetDocumentsRequest.WhereClause = (function() {
37585
38081
 
37586
38082
  /**
@@ -37591,6 +38087,7 @@ $root.org = (function() {
37591
38087
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator|null} [operator] WhereClause operator
37592
38088
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] WhereClause value
37593
38089
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null} [timeRange] WhereClause timeRange
38090
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection|null} [integerRange] WhereClause integerRange
37594
38091
  */
37595
38092
 
37596
38093
  /**
@@ -37640,6 +38137,14 @@ $root.org = (function() {
37640
38137
  */
37641
38138
  WhereClause.prototype.timeRange = null;
37642
38139
 
38140
+ /**
38141
+ * WhereClause integerRange.
38142
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection|null|undefined} integerRange
38143
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause
38144
+ * @instance
38145
+ */
38146
+ WhereClause.prototype.integerRange = null;
38147
+
37643
38148
  /**
37644
38149
  * Creates a new WhereClause instance using the specified properties.
37645
38150
  * @function create
@@ -37672,6 +38177,8 @@ $root.org = (function() {
37672
38177
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
37673
38178
  if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
37674
38179
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.encode(message.timeRange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
38180
+ if (message.integerRange != null && Object.hasOwnProperty.call(message, "integerRange"))
38181
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.encode(message.integerRange, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
37675
38182
  return writer;
37676
38183
  };
37677
38184
 
@@ -37718,6 +38225,9 @@ $root.org = (function() {
37718
38225
  case 4:
37719
38226
  message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.decode(reader, reader.uint32());
37720
38227
  break;
38228
+ case 5:
38229
+ message.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.decode(reader, reader.uint32());
38230
+ break;
37721
38231
  default:
37722
38232
  reader.skipType(tag & 7);
37723
38233
  break;
@@ -37772,6 +38282,7 @@ $root.org = (function() {
37772
38282
  case 9:
37773
38283
  case 10:
37774
38284
  case 11:
38285
+ case 12:
37775
38286
  break;
37776
38287
  }
37777
38288
  if (message.value != null && message.hasOwnProperty("value")) {
@@ -37784,6 +38295,11 @@ $root.org = (function() {
37784
38295
  if (error)
37785
38296
  return "timeRange." + error;
37786
38297
  }
38298
+ if (message.integerRange != null && message.hasOwnProperty("integerRange")) {
38299
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify(message.integerRange);
38300
+ if (error)
38301
+ return "integerRange." + error;
38302
+ }
37787
38303
  return null;
37788
38304
  };
37789
38305
 
@@ -37850,6 +38366,10 @@ $root.org = (function() {
37850
38366
  case 11:
37851
38367
  message.operator = 11;
37852
38368
  break;
38369
+ case "IN_INTEGER_RANGE":
38370
+ case 12:
38371
+ message.operator = 12;
38372
+ break;
37853
38373
  }
37854
38374
  if (object.value != null) {
37855
38375
  if (typeof object.value !== "object")
@@ -37861,6 +38381,11 @@ $root.org = (function() {
37861
38381
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.timeRange: object expected");
37862
38382
  message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.fromObject(object.timeRange);
37863
38383
  }
38384
+ if (object.integerRange != null) {
38385
+ if (typeof object.integerRange !== "object")
38386
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.integerRange: object expected");
38387
+ message.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.fromObject(object.integerRange);
38388
+ }
37864
38389
  return message;
37865
38390
  };
37866
38391
 
@@ -37882,6 +38407,7 @@ $root.org = (function() {
37882
38407
  object.operator = options.enums === String ? "EQUAL" : 0;
37883
38408
  object.value = null;
37884
38409
  object.timeRange = null;
38410
+ object.integerRange = null;
37885
38411
  }
37886
38412
  if (message.field != null && message.hasOwnProperty("field"))
37887
38413
  object.field = message.field;
@@ -37891,6 +38417,8 @@ $root.org = (function() {
37891
38417
  object.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.value, options);
37892
38418
  if (message.timeRange != null && message.hasOwnProperty("timeRange"))
37893
38419
  object.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(message.timeRange, options);
38420
+ if (message.integerRange != null && message.hasOwnProperty("integerRange"))
38421
+ object.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.toObject(message.integerRange, options);
37894
38422
  return object;
37895
38423
  };
37896
38424