@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.
@@ -36874,6 +36874,7 @@ $root.org = (function() {
36874
36874
  * @property {number} IN=9 IN value
36875
36875
  * @property {number} STARTS_WITH=10 STARTS_WITH value
36876
36876
  * @property {number} IN_TIME_RANGE=11 IN_TIME_RANGE value
36877
+ * @property {number} IN_INTEGER_RANGE=12 IN_INTEGER_RANGE value
36877
36878
  */
36878
36879
  GetDocumentsRequest.WhereOperator = (function() {
36879
36880
  var valuesById = {}, values = Object.create(valuesById);
@@ -36889,6 +36890,7 @@ $root.org = (function() {
36889
36890
  values[valuesById[9] = "IN"] = 9;
36890
36891
  values[valuesById[10] = "STARTS_WITH"] = 10;
36891
36892
  values[valuesById[11] = "IN_TIME_RANGE"] = 11;
36893
+ values[valuesById[12] = "IN_INTEGER_RANGE"] = 12;
36892
36894
  return values;
36893
36895
  })();
36894
36896
 
@@ -38089,6 +38091,500 @@ $root.org = (function() {
38089
38091
  return TimeRangeSelection;
38090
38092
  })();
38091
38093
 
38094
+ GetDocumentsRequest.IntegerRangeSelection = (function() {
38095
+
38096
+ /**
38097
+ * Properties of an IntegerRangeSelection.
38098
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
38099
+ * @interface IIntegerRangeSelection
38100
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [start] IntegerRangeSelection start
38101
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid|null} [grid] IntegerRangeSelection grid
38102
+ */
38103
+
38104
+ /**
38105
+ * Constructs a new IntegerRangeSelection.
38106
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest
38107
+ * @classdesc Represents an IntegerRangeSelection.
38108
+ * @implements IIntegerRangeSelection
38109
+ * @constructor
38110
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection=} [properties] Properties to set
38111
+ */
38112
+ function IntegerRangeSelection(properties) {
38113
+ if (properties)
38114
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38115
+ if (properties[keys[i]] != null)
38116
+ this[keys[i]] = properties[keys[i]];
38117
+ }
38118
+
38119
+ /**
38120
+ * IntegerRangeSelection start.
38121
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null|undefined} start
38122
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38123
+ * @instance
38124
+ */
38125
+ IntegerRangeSelection.prototype.start = null;
38126
+
38127
+ /**
38128
+ * IntegerRangeSelection grid.
38129
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid|null|undefined} grid
38130
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38131
+ * @instance
38132
+ */
38133
+ IntegerRangeSelection.prototype.grid = null;
38134
+
38135
+ /**
38136
+ * Creates a new IntegerRangeSelection instance using the specified properties.
38137
+ * @function create
38138
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38139
+ * @static
38140
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection=} [properties] Properties to set
38141
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection instance
38142
+ */
38143
+ IntegerRangeSelection.create = function create(properties) {
38144
+ return new IntegerRangeSelection(properties);
38145
+ };
38146
+
38147
+ /**
38148
+ * Encodes the specified IntegerRangeSelection message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify|verify} messages.
38149
+ * @function encode
38150
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38151
+ * @static
38152
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection} message IntegerRangeSelection message or plain object to encode
38153
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38154
+ * @returns {$protobuf.Writer} Writer
38155
+ */
38156
+ IntegerRangeSelection.encode = function encode(message, writer) {
38157
+ if (!writer)
38158
+ writer = $Writer.create();
38159
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
38160
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.start, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
38161
+ if (message.grid != null && Object.hasOwnProperty.call(message, "grid"))
38162
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.encode(message.grid, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
38163
+ return writer;
38164
+ };
38165
+
38166
+ /**
38167
+ * Encodes the specified IntegerRangeSelection message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify|verify} messages.
38168
+ * @function encodeDelimited
38169
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38170
+ * @static
38171
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection} message IntegerRangeSelection message or plain object to encode
38172
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38173
+ * @returns {$protobuf.Writer} Writer
38174
+ */
38175
+ IntegerRangeSelection.encodeDelimited = function encodeDelimited(message, writer) {
38176
+ return this.encode(message, writer).ldelim();
38177
+ };
38178
+
38179
+ /**
38180
+ * Decodes an IntegerRangeSelection message from the specified reader or buffer.
38181
+ * @function decode
38182
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38183
+ * @static
38184
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38185
+ * @param {number} [length] Message length if known beforehand
38186
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
38187
+ * @throws {Error} If the payload is not a reader or valid buffer
38188
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38189
+ */
38190
+ IntegerRangeSelection.decode = function decode(reader, length) {
38191
+ if (!(reader instanceof $Reader))
38192
+ reader = $Reader.create(reader);
38193
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection();
38194
+ while (reader.pos < end) {
38195
+ var tag = reader.uint32();
38196
+ switch (tag >>> 3) {
38197
+ case 1:
38198
+ message.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.decode(reader, reader.uint32());
38199
+ break;
38200
+ case 2:
38201
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.decode(reader, reader.uint32());
38202
+ break;
38203
+ default:
38204
+ reader.skipType(tag & 7);
38205
+ break;
38206
+ }
38207
+ }
38208
+ return message;
38209
+ };
38210
+
38211
+ /**
38212
+ * Decodes an IntegerRangeSelection message from the specified reader or buffer, length delimited.
38213
+ * @function decodeDelimited
38214
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38215
+ * @static
38216
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38217
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
38218
+ * @throws {Error} If the payload is not a reader or valid buffer
38219
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38220
+ */
38221
+ IntegerRangeSelection.decodeDelimited = function decodeDelimited(reader) {
38222
+ if (!(reader instanceof $Reader))
38223
+ reader = new $Reader(reader);
38224
+ return this.decode(reader, reader.uint32());
38225
+ };
38226
+
38227
+ /**
38228
+ * Verifies an IntegerRangeSelection message.
38229
+ * @function verify
38230
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38231
+ * @static
38232
+ * @param {Object.<string,*>} message Plain object to verify
38233
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38234
+ */
38235
+ IntegerRangeSelection.verify = function verify(message) {
38236
+ if (typeof message !== "object" || message === null)
38237
+ return "object expected";
38238
+ if (message.start != null && message.hasOwnProperty("start")) {
38239
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.verify(message.start);
38240
+ if (error)
38241
+ return "start." + error;
38242
+ }
38243
+ if (message.grid != null && message.hasOwnProperty("grid")) {
38244
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify(message.grid);
38245
+ if (error)
38246
+ return "grid." + error;
38247
+ }
38248
+ return null;
38249
+ };
38250
+
38251
+ /**
38252
+ * Creates an IntegerRangeSelection message from a plain object. Also converts values to their respective internal types.
38253
+ * @function fromObject
38254
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38255
+ * @static
38256
+ * @param {Object.<string,*>} object Plain object
38257
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} IntegerRangeSelection
38258
+ */
38259
+ IntegerRangeSelection.fromObject = function fromObject(object) {
38260
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection)
38261
+ return object;
38262
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection();
38263
+ if (object.start != null) {
38264
+ if (typeof object.start !== "object")
38265
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.start: object expected");
38266
+ message.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.fromObject(object.start);
38267
+ }
38268
+ if (object.grid != null) {
38269
+ if (typeof object.grid !== "object")
38270
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.grid: object expected");
38271
+ message.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.fromObject(object.grid);
38272
+ }
38273
+ return message;
38274
+ };
38275
+
38276
+ /**
38277
+ * Creates a plain object from an IntegerRangeSelection message. Also converts values to other types if specified.
38278
+ * @function toObject
38279
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38280
+ * @static
38281
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} message IntegerRangeSelection
38282
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38283
+ * @returns {Object.<string,*>} Plain object
38284
+ */
38285
+ IntegerRangeSelection.toObject = function toObject(message, options) {
38286
+ if (!options)
38287
+ options = {};
38288
+ var object = {};
38289
+ if (options.defaults) {
38290
+ object.start = null;
38291
+ object.grid = null;
38292
+ }
38293
+ if (message.start != null && message.hasOwnProperty("start"))
38294
+ object.start = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.start, options);
38295
+ if (message.grid != null && message.hasOwnProperty("grid"))
38296
+ object.grid = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.toObject(message.grid, options);
38297
+ return object;
38298
+ };
38299
+
38300
+ /**
38301
+ * Converts this IntegerRangeSelection to JSON.
38302
+ * @function toJSON
38303
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38304
+ * @instance
38305
+ * @returns {Object.<string,*>} JSON object
38306
+ */
38307
+ IntegerRangeSelection.prototype.toJSON = function toJSON() {
38308
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
38309
+ };
38310
+
38311
+ IntegerRangeSelection.Grid = (function() {
38312
+
38313
+ /**
38314
+ * Properties of a Grid.
38315
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38316
+ * @interface IGrid
38317
+ * @property {number|Long|null} [range] Grid range
38318
+ * @property {number|Long|null} [step] Grid step
38319
+ * @property {number|Long|null} [phase] Grid phase
38320
+ */
38321
+
38322
+ /**
38323
+ * Constructs a new Grid.
38324
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection
38325
+ * @classdesc Represents a Grid.
38326
+ * @implements IGrid
38327
+ * @constructor
38328
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid=} [properties] Properties to set
38329
+ */
38330
+ function Grid(properties) {
38331
+ if (properties)
38332
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38333
+ if (properties[keys[i]] != null)
38334
+ this[keys[i]] = properties[keys[i]];
38335
+ }
38336
+
38337
+ /**
38338
+ * Grid range.
38339
+ * @member {number|Long} range
38340
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38341
+ * @instance
38342
+ */
38343
+ Grid.prototype.range = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
38344
+
38345
+ /**
38346
+ * Grid step.
38347
+ * @member {number|Long} step
38348
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38349
+ * @instance
38350
+ */
38351
+ Grid.prototype.step = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
38352
+
38353
+ /**
38354
+ * Grid phase.
38355
+ * @member {number|Long} phase
38356
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38357
+ * @instance
38358
+ */
38359
+ Grid.prototype.phase = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
38360
+
38361
+ /**
38362
+ * Creates a new Grid instance using the specified properties.
38363
+ * @function create
38364
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38365
+ * @static
38366
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid=} [properties] Properties to set
38367
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid instance
38368
+ */
38369
+ Grid.create = function create(properties) {
38370
+ return new Grid(properties);
38371
+ };
38372
+
38373
+ /**
38374
+ * Encodes the specified Grid message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify|verify} messages.
38375
+ * @function encode
38376
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38377
+ * @static
38378
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid} message Grid message or plain object to encode
38379
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38380
+ * @returns {$protobuf.Writer} Writer
38381
+ */
38382
+ Grid.encode = function encode(message, writer) {
38383
+ if (!writer)
38384
+ writer = $Writer.create();
38385
+ if (message.range != null && Object.hasOwnProperty.call(message, "range"))
38386
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.range);
38387
+ if (message.step != null && Object.hasOwnProperty.call(message, "step"))
38388
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.step);
38389
+ if (message.phase != null && Object.hasOwnProperty.call(message, "phase"))
38390
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.phase);
38391
+ return writer;
38392
+ };
38393
+
38394
+ /**
38395
+ * Encodes the specified Grid message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.verify|verify} messages.
38396
+ * @function encodeDelimited
38397
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38398
+ * @static
38399
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.IGrid} message Grid message or plain object to encode
38400
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38401
+ * @returns {$protobuf.Writer} Writer
38402
+ */
38403
+ Grid.encodeDelimited = function encodeDelimited(message, writer) {
38404
+ return this.encode(message, writer).ldelim();
38405
+ };
38406
+
38407
+ /**
38408
+ * Decodes a Grid message from the specified reader or buffer.
38409
+ * @function decode
38410
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38411
+ * @static
38412
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38413
+ * @param {number} [length] Message length if known beforehand
38414
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
38415
+ * @throws {Error} If the payload is not a reader or valid buffer
38416
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38417
+ */
38418
+ Grid.decode = function decode(reader, length) {
38419
+ if (!(reader instanceof $Reader))
38420
+ reader = $Reader.create(reader);
38421
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid();
38422
+ while (reader.pos < end) {
38423
+ var tag = reader.uint32();
38424
+ switch (tag >>> 3) {
38425
+ case 1:
38426
+ message.range = reader.uint64();
38427
+ break;
38428
+ case 2:
38429
+ message.step = reader.uint64();
38430
+ break;
38431
+ case 3:
38432
+ message.phase = reader.uint64();
38433
+ break;
38434
+ default:
38435
+ reader.skipType(tag & 7);
38436
+ break;
38437
+ }
38438
+ }
38439
+ return message;
38440
+ };
38441
+
38442
+ /**
38443
+ * Decodes a Grid message from the specified reader or buffer, length delimited.
38444
+ * @function decodeDelimited
38445
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38446
+ * @static
38447
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38448
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
38449
+ * @throws {Error} If the payload is not a reader or valid buffer
38450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38451
+ */
38452
+ Grid.decodeDelimited = function decodeDelimited(reader) {
38453
+ if (!(reader instanceof $Reader))
38454
+ reader = new $Reader(reader);
38455
+ return this.decode(reader, reader.uint32());
38456
+ };
38457
+
38458
+ /**
38459
+ * Verifies a Grid message.
38460
+ * @function verify
38461
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38462
+ * @static
38463
+ * @param {Object.<string,*>} message Plain object to verify
38464
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38465
+ */
38466
+ Grid.verify = function verify(message) {
38467
+ if (typeof message !== "object" || message === null)
38468
+ return "object expected";
38469
+ if (message.range != null && message.hasOwnProperty("range"))
38470
+ if (!$util.isInteger(message.range) && !(message.range && $util.isInteger(message.range.low) && $util.isInteger(message.range.high)))
38471
+ return "range: integer|Long expected";
38472
+ if (message.step != null && message.hasOwnProperty("step"))
38473
+ if (!$util.isInteger(message.step) && !(message.step && $util.isInteger(message.step.low) && $util.isInteger(message.step.high)))
38474
+ return "step: integer|Long expected";
38475
+ if (message.phase != null && message.hasOwnProperty("phase"))
38476
+ if (!$util.isInteger(message.phase) && !(message.phase && $util.isInteger(message.phase.low) && $util.isInteger(message.phase.high)))
38477
+ return "phase: integer|Long expected";
38478
+ return null;
38479
+ };
38480
+
38481
+ /**
38482
+ * Creates a Grid message from a plain object. Also converts values to their respective internal types.
38483
+ * @function fromObject
38484
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38485
+ * @static
38486
+ * @param {Object.<string,*>} object Plain object
38487
+ * @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} Grid
38488
+ */
38489
+ Grid.fromObject = function fromObject(object) {
38490
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid)
38491
+ return object;
38492
+ var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid();
38493
+ if (object.range != null)
38494
+ if ($util.Long)
38495
+ (message.range = $util.Long.fromValue(object.range)).unsigned = true;
38496
+ else if (typeof object.range === "string")
38497
+ message.range = parseInt(object.range, 10);
38498
+ else if (typeof object.range === "number")
38499
+ message.range = object.range;
38500
+ else if (typeof object.range === "object")
38501
+ message.range = new $util.LongBits(object.range.low >>> 0, object.range.high >>> 0).toNumber(true);
38502
+ if (object.step != null)
38503
+ if ($util.Long)
38504
+ (message.step = $util.Long.fromValue(object.step)).unsigned = true;
38505
+ else if (typeof object.step === "string")
38506
+ message.step = parseInt(object.step, 10);
38507
+ else if (typeof object.step === "number")
38508
+ message.step = object.step;
38509
+ else if (typeof object.step === "object")
38510
+ message.step = new $util.LongBits(object.step.low >>> 0, object.step.high >>> 0).toNumber(true);
38511
+ if (object.phase != null)
38512
+ if ($util.Long)
38513
+ (message.phase = $util.Long.fromValue(object.phase)).unsigned = true;
38514
+ else if (typeof object.phase === "string")
38515
+ message.phase = parseInt(object.phase, 10);
38516
+ else if (typeof object.phase === "number")
38517
+ message.phase = object.phase;
38518
+ else if (typeof object.phase === "object")
38519
+ message.phase = new $util.LongBits(object.phase.low >>> 0, object.phase.high >>> 0).toNumber(true);
38520
+ return message;
38521
+ };
38522
+
38523
+ /**
38524
+ * Creates a plain object from a Grid message. Also converts values to other types if specified.
38525
+ * @function toObject
38526
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38527
+ * @static
38528
+ * @param {org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} message Grid
38529
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38530
+ * @returns {Object.<string,*>} Plain object
38531
+ */
38532
+ Grid.toObject = function toObject(message, options) {
38533
+ if (!options)
38534
+ options = {};
38535
+ var object = {};
38536
+ if (options.defaults) {
38537
+ if ($util.Long) {
38538
+ var long = new $util.Long(0, 0, true);
38539
+ object.range = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38540
+ } else
38541
+ object.range = options.longs === String ? "0" : 0;
38542
+ if ($util.Long) {
38543
+ var long = new $util.Long(0, 0, true);
38544
+ object.step = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38545
+ } else
38546
+ object.step = options.longs === String ? "0" : 0;
38547
+ if ($util.Long) {
38548
+ var long = new $util.Long(0, 0, true);
38549
+ object.phase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
38550
+ } else
38551
+ object.phase = options.longs === String ? "0" : 0;
38552
+ }
38553
+ if (message.range != null && message.hasOwnProperty("range"))
38554
+ if (typeof message.range === "number")
38555
+ object.range = options.longs === String ? String(message.range) : message.range;
38556
+ else
38557
+ 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;
38558
+ if (message.step != null && message.hasOwnProperty("step"))
38559
+ if (typeof message.step === "number")
38560
+ object.step = options.longs === String ? String(message.step) : message.step;
38561
+ else
38562
+ 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;
38563
+ if (message.phase != null && message.hasOwnProperty("phase"))
38564
+ if (typeof message.phase === "number")
38565
+ object.phase = options.longs === String ? String(message.phase) : message.phase;
38566
+ else
38567
+ 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;
38568
+ return object;
38569
+ };
38570
+
38571
+ /**
38572
+ * Converts this Grid to JSON.
38573
+ * @function toJSON
38574
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid
38575
+ * @instance
38576
+ * @returns {Object.<string,*>} JSON object
38577
+ */
38578
+ Grid.prototype.toJSON = function toJSON() {
38579
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
38580
+ };
38581
+
38582
+ return Grid;
38583
+ })();
38584
+
38585
+ return IntegerRangeSelection;
38586
+ })();
38587
+
38092
38588
  GetDocumentsRequest.WhereClause = (function() {
38093
38589
 
38094
38590
  /**
@@ -38099,6 +38595,7 @@ $root.org = (function() {
38099
38595
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator|null} [operator] WhereClause operator
38100
38596
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IDocumentFieldValue|null} [value] WhereClause value
38101
38597
  * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.ITimeRangeSelection|null} [timeRange] WhereClause timeRange
38598
+ * @property {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection|null} [integerRange] WhereClause integerRange
38102
38599
  */
38103
38600
 
38104
38601
  /**
@@ -38148,6 +38645,14 @@ $root.org = (function() {
38148
38645
  */
38149
38646
  WhereClause.prototype.timeRange = null;
38150
38647
 
38648
+ /**
38649
+ * WhereClause integerRange.
38650
+ * @member {org.dash.platform.dapi.v0.GetDocumentsRequest.IIntegerRangeSelection|null|undefined} integerRange
38651
+ * @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause
38652
+ * @instance
38653
+ */
38654
+ WhereClause.prototype.integerRange = null;
38655
+
38151
38656
  /**
38152
38657
  * Creates a new WhereClause instance using the specified properties.
38153
38658
  * @function create
@@ -38180,6 +38685,8 @@ $root.org = (function() {
38180
38685
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
38181
38686
  if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
38182
38687
  $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.encode(message.timeRange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
38688
+ if (message.integerRange != null && Object.hasOwnProperty.call(message, "integerRange"))
38689
+ $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.encode(message.integerRange, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
38183
38690
  return writer;
38184
38691
  };
38185
38692
 
@@ -38226,6 +38733,9 @@ $root.org = (function() {
38226
38733
  case 4:
38227
38734
  message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.decode(reader, reader.uint32());
38228
38735
  break;
38736
+ case 5:
38737
+ message.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.decode(reader, reader.uint32());
38738
+ break;
38229
38739
  default:
38230
38740
  reader.skipType(tag & 7);
38231
38741
  break;
@@ -38280,6 +38790,7 @@ $root.org = (function() {
38280
38790
  case 9:
38281
38791
  case 10:
38282
38792
  case 11:
38793
+ case 12:
38283
38794
  break;
38284
38795
  }
38285
38796
  if (message.value != null && message.hasOwnProperty("value")) {
@@ -38292,6 +38803,11 @@ $root.org = (function() {
38292
38803
  if (error)
38293
38804
  return "timeRange." + error;
38294
38805
  }
38806
+ if (message.integerRange != null && message.hasOwnProperty("integerRange")) {
38807
+ var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.verify(message.integerRange);
38808
+ if (error)
38809
+ return "integerRange." + error;
38810
+ }
38295
38811
  return null;
38296
38812
  };
38297
38813
 
@@ -38358,6 +38874,10 @@ $root.org = (function() {
38358
38874
  case 11:
38359
38875
  message.operator = 11;
38360
38876
  break;
38877
+ case "IN_INTEGER_RANGE":
38878
+ case 12:
38879
+ message.operator = 12;
38880
+ break;
38361
38881
  }
38362
38882
  if (object.value != null) {
38363
38883
  if (typeof object.value !== "object")
@@ -38369,6 +38889,11 @@ $root.org = (function() {
38369
38889
  throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.timeRange: object expected");
38370
38890
  message.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.fromObject(object.timeRange);
38371
38891
  }
38892
+ if (object.integerRange != null) {
38893
+ if (typeof object.integerRange !== "object")
38894
+ throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.integerRange: object expected");
38895
+ message.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.fromObject(object.integerRange);
38896
+ }
38372
38897
  return message;
38373
38898
  };
38374
38899
 
@@ -38390,6 +38915,7 @@ $root.org = (function() {
38390
38915
  object.operator = options.enums === String ? "EQUAL" : 0;
38391
38916
  object.value = null;
38392
38917
  object.timeRange = null;
38918
+ object.integerRange = null;
38393
38919
  }
38394
38920
  if (message.field != null && message.hasOwnProperty("field"))
38395
38921
  object.field = message.field;
@@ -38399,6 +38925,8 @@ $root.org = (function() {
38399
38925
  object.value = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(message.value, options);
38400
38926
  if (message.timeRange != null && message.hasOwnProperty("timeRange"))
38401
38927
  object.timeRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(message.timeRange, options);
38928
+ if (message.integerRange != null && message.hasOwnProperty("integerRange"))
38929
+ object.integerRange = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.toObject(message.integerRange, options);
38402
38930
  return object;
38403
38931
  };
38404
38932