@dashevo/dapi-grpc 4.2.0-dev.10 → 4.2.0-dev.11

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.
@@ -515,6 +515,39 @@ $root.org = (function() {
515
515
  * @variation 2
516
516
  */
517
517
 
518
+ /**
519
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getDataContractsLatestVersions}.
520
+ * @memberof org.dash.platform.dapi.v0.Platform
521
+ * @typedef getDataContractsLatestVersionsCallback
522
+ * @type {function}
523
+ * @param {Error|null} error Error, if any
524
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} [response] GetDataContractsLatestVersionsResponse
525
+ */
526
+
527
+ /**
528
+ * Calls getDataContractsLatestVersions.
529
+ * @function getDataContractsLatestVersions
530
+ * @memberof org.dash.platform.dapi.v0.Platform
531
+ * @instance
532
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest} request GetDataContractsLatestVersionsRequest message or plain object
533
+ * @param {org.dash.platform.dapi.v0.Platform.getDataContractsLatestVersionsCallback} callback Node-style callback called with the error, if any, and GetDataContractsLatestVersionsResponse
534
+ * @returns {undefined}
535
+ * @variation 1
536
+ */
537
+ Object.defineProperty(Platform.prototype.getDataContractsLatestVersions = function getDataContractsLatestVersions(request, callback) {
538
+ return this.rpcCall(getDataContractsLatestVersions, $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest, $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse, request, callback);
539
+ }, "name", { value: "getDataContractsLatestVersions" });
540
+
541
+ /**
542
+ * Calls getDataContractsLatestVersions.
543
+ * @function getDataContractsLatestVersions
544
+ * @memberof org.dash.platform.dapi.v0.Platform
545
+ * @instance
546
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest} request GetDataContractsLatestVersionsRequest message or plain object
547
+ * @returns {Promise<org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse>} Promise
548
+ * @variation 2
549
+ */
550
+
518
551
  /**
519
552
  * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getDataContracts}.
520
553
  * @memberof org.dash.platform.dapi.v0.Platform
@@ -548,6 +581,39 @@ $root.org = (function() {
548
581
  * @variation 2
549
582
  */
550
583
 
584
+ /**
585
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getDataContractsByRange}.
586
+ * @memberof org.dash.platform.dapi.v0.Platform
587
+ * @typedef getDataContractsByRangeCallback
588
+ * @type {function}
589
+ * @param {Error|null} error Error, if any
590
+ * @param {org.dash.platform.dapi.v0.GetDataContractsResponse} [response] GetDataContractsResponse
591
+ */
592
+
593
+ /**
594
+ * Calls getDataContractsByRange.
595
+ * @function getDataContractsByRange
596
+ * @memberof org.dash.platform.dapi.v0.Platform
597
+ * @instance
598
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest} request GetDataContractsByRangeRequest message or plain object
599
+ * @param {org.dash.platform.dapi.v0.Platform.getDataContractsByRangeCallback} callback Node-style callback called with the error, if any, and GetDataContractsResponse
600
+ * @returns {undefined}
601
+ * @variation 1
602
+ */
603
+ Object.defineProperty(Platform.prototype.getDataContractsByRange = function getDataContractsByRange(request, callback) {
604
+ return this.rpcCall(getDataContractsByRange, $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest, $root.org.dash.platform.dapi.v0.GetDataContractsResponse, request, callback);
605
+ }, "name", { value: "getDataContractsByRange" });
606
+
607
+ /**
608
+ * Calls getDataContractsByRange.
609
+ * @function getDataContractsByRange
610
+ * @memberof org.dash.platform.dapi.v0.Platform
611
+ * @instance
612
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest} request GetDataContractsByRangeRequest message or plain object
613
+ * @returns {Promise<org.dash.platform.dapi.v0.GetDataContractsResponse>} Promise
614
+ * @variation 2
615
+ */
616
+
551
617
  /**
552
618
  * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getDocumentHistory}.
553
619
  * @memberof org.dash.platform.dapi.v0.Platform
@@ -16473,24 +16539,24 @@ $root.org = (function() {
16473
16539
  return GetDataContractResponse;
16474
16540
  })();
16475
16541
 
16476
- v0.GetDataContractsRequest = (function() {
16542
+ v0.GetDataContractsLatestVersionsRequest = (function() {
16477
16543
 
16478
16544
  /**
16479
- * Properties of a GetDataContractsRequest.
16545
+ * Properties of a GetDataContractsLatestVersionsRequest.
16480
16546
  * @memberof org.dash.platform.dapi.v0
16481
- * @interface IGetDataContractsRequest
16482
- * @property {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0|null} [v0] GetDataContractsRequest v0
16547
+ * @interface IGetDataContractsLatestVersionsRequest
16548
+ * @property {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0|null} [v0] GetDataContractsLatestVersionsRequest v0
16483
16549
  */
16484
16550
 
16485
16551
  /**
16486
- * Constructs a new GetDataContractsRequest.
16552
+ * Constructs a new GetDataContractsLatestVersionsRequest.
16487
16553
  * @memberof org.dash.platform.dapi.v0
16488
- * @classdesc Represents a GetDataContractsRequest.
16489
- * @implements IGetDataContractsRequest
16554
+ * @classdesc Represents a GetDataContractsLatestVersionsRequest.
16555
+ * @implements IGetDataContractsLatestVersionsRequest
16490
16556
  * @constructor
16491
- * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest=} [properties] Properties to set
16557
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest=} [properties] Properties to set
16492
16558
  */
16493
- function GetDataContractsRequest(properties) {
16559
+ function GetDataContractsLatestVersionsRequest(properties) {
16494
16560
  if (properties)
16495
16561
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16496
16562
  if (properties[keys[i]] != null)
@@ -16498,89 +16564,89 @@ $root.org = (function() {
16498
16564
  }
16499
16565
 
16500
16566
  /**
16501
- * GetDataContractsRequest v0.
16502
- * @member {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0|null|undefined} v0
16503
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16567
+ * GetDataContractsLatestVersionsRequest v0.
16568
+ * @member {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0|null|undefined} v0
16569
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16504
16570
  * @instance
16505
16571
  */
16506
- GetDataContractsRequest.prototype.v0 = null;
16572
+ GetDataContractsLatestVersionsRequest.prototype.v0 = null;
16507
16573
 
16508
16574
  // OneOf field names bound to virtual getters and setters
16509
16575
  var $oneOfFields;
16510
16576
 
16511
16577
  /**
16512
- * GetDataContractsRequest version.
16578
+ * GetDataContractsLatestVersionsRequest version.
16513
16579
  * @member {"v0"|undefined} version
16514
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16580
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16515
16581
  * @instance
16516
16582
  */
16517
- Object.defineProperty(GetDataContractsRequest.prototype, "version", {
16583
+ Object.defineProperty(GetDataContractsLatestVersionsRequest.prototype, "version", {
16518
16584
  get: $util.oneOfGetter($oneOfFields = ["v0"]),
16519
16585
  set: $util.oneOfSetter($oneOfFields)
16520
16586
  });
16521
16587
 
16522
16588
  /**
16523
- * Creates a new GetDataContractsRequest instance using the specified properties.
16589
+ * Creates a new GetDataContractsLatestVersionsRequest instance using the specified properties.
16524
16590
  * @function create
16525
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16591
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16526
16592
  * @static
16527
- * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest=} [properties] Properties to set
16528
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest instance
16593
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest=} [properties] Properties to set
16594
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest} GetDataContractsLatestVersionsRequest instance
16529
16595
  */
16530
- GetDataContractsRequest.create = function create(properties) {
16531
- return new GetDataContractsRequest(properties);
16596
+ GetDataContractsLatestVersionsRequest.create = function create(properties) {
16597
+ return new GetDataContractsLatestVersionsRequest(properties);
16532
16598
  };
16533
16599
 
16534
16600
  /**
16535
- * Encodes the specified GetDataContractsRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.verify|verify} messages.
16601
+ * Encodes the specified GetDataContractsLatestVersionsRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.verify|verify} messages.
16536
16602
  * @function encode
16537
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16603
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16538
16604
  * @static
16539
- * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest} message GetDataContractsRequest message or plain object to encode
16605
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest} message GetDataContractsLatestVersionsRequest message or plain object to encode
16540
16606
  * @param {$protobuf.Writer} [writer] Writer to encode to
16541
16607
  * @returns {$protobuf.Writer} Writer
16542
16608
  */
16543
- GetDataContractsRequest.encode = function encode(message, writer) {
16609
+ GetDataContractsLatestVersionsRequest.encode = function encode(message, writer) {
16544
16610
  if (!writer)
16545
16611
  writer = $Writer.create();
16546
16612
  if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
16547
- $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16613
+ $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16548
16614
  return writer;
16549
16615
  };
16550
16616
 
16551
16617
  /**
16552
- * Encodes the specified GetDataContractsRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.verify|verify} messages.
16618
+ * Encodes the specified GetDataContractsLatestVersionsRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.verify|verify} messages.
16553
16619
  * @function encodeDelimited
16554
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16620
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16555
16621
  * @static
16556
- * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest} message GetDataContractsRequest message or plain object to encode
16622
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsRequest} message GetDataContractsLatestVersionsRequest message or plain object to encode
16557
16623
  * @param {$protobuf.Writer} [writer] Writer to encode to
16558
16624
  * @returns {$protobuf.Writer} Writer
16559
16625
  */
16560
- GetDataContractsRequest.encodeDelimited = function encodeDelimited(message, writer) {
16626
+ GetDataContractsLatestVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
16561
16627
  return this.encode(message, writer).ldelim();
16562
16628
  };
16563
16629
 
16564
16630
  /**
16565
- * Decodes a GetDataContractsRequest message from the specified reader or buffer.
16631
+ * Decodes a GetDataContractsLatestVersionsRequest message from the specified reader or buffer.
16566
16632
  * @function decode
16567
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16633
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16568
16634
  * @static
16569
16635
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16570
16636
  * @param {number} [length] Message length if known beforehand
16571
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
16637
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest} GetDataContractsLatestVersionsRequest
16572
16638
  * @throws {Error} If the payload is not a reader or valid buffer
16573
16639
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16574
16640
  */
16575
- GetDataContractsRequest.decode = function decode(reader, length) {
16641
+ GetDataContractsLatestVersionsRequest.decode = function decode(reader, length) {
16576
16642
  if (!(reader instanceof $Reader))
16577
16643
  reader = $Reader.create(reader);
16578
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest();
16644
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest();
16579
16645
  while (reader.pos < end) {
16580
16646
  var tag = reader.uint32();
16581
16647
  switch (tag >>> 3) {
16582
16648
  case 1:
16583
- message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.decode(reader, reader.uint32());
16649
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.decode(reader, reader.uint32());
16584
16650
  break;
16585
16651
  default:
16586
16652
  reader.skipType(tag & 7);
@@ -16591,37 +16657,37 @@ $root.org = (function() {
16591
16657
  };
16592
16658
 
16593
16659
  /**
16594
- * Decodes a GetDataContractsRequest message from the specified reader or buffer, length delimited.
16660
+ * Decodes a GetDataContractsLatestVersionsRequest message from the specified reader or buffer, length delimited.
16595
16661
  * @function decodeDelimited
16596
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16662
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16597
16663
  * @static
16598
16664
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16599
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
16665
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest} GetDataContractsLatestVersionsRequest
16600
16666
  * @throws {Error} If the payload is not a reader or valid buffer
16601
16667
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16602
16668
  */
16603
- GetDataContractsRequest.decodeDelimited = function decodeDelimited(reader) {
16669
+ GetDataContractsLatestVersionsRequest.decodeDelimited = function decodeDelimited(reader) {
16604
16670
  if (!(reader instanceof $Reader))
16605
16671
  reader = new $Reader(reader);
16606
16672
  return this.decode(reader, reader.uint32());
16607
16673
  };
16608
16674
 
16609
16675
  /**
16610
- * Verifies a GetDataContractsRequest message.
16676
+ * Verifies a GetDataContractsLatestVersionsRequest message.
16611
16677
  * @function verify
16612
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16678
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16613
16679
  * @static
16614
16680
  * @param {Object.<string,*>} message Plain object to verify
16615
16681
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
16616
16682
  */
16617
- GetDataContractsRequest.verify = function verify(message) {
16683
+ GetDataContractsLatestVersionsRequest.verify = function verify(message) {
16618
16684
  if (typeof message !== "object" || message === null)
16619
16685
  return "object expected";
16620
16686
  var properties = {};
16621
16687
  if (message.v0 != null && message.hasOwnProperty("v0")) {
16622
16688
  properties.version = 1;
16623
16689
  {
16624
- var error = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify(message.v0);
16690
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.verify(message.v0);
16625
16691
  if (error)
16626
16692
  return "v0." + error;
16627
16693
  }
@@ -16630,40 +16696,40 @@ $root.org = (function() {
16630
16696
  };
16631
16697
 
16632
16698
  /**
16633
- * Creates a GetDataContractsRequest message from a plain object. Also converts values to their respective internal types.
16699
+ * Creates a GetDataContractsLatestVersionsRequest message from a plain object. Also converts values to their respective internal types.
16634
16700
  * @function fromObject
16635
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16701
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16636
16702
  * @static
16637
16703
  * @param {Object.<string,*>} object Plain object
16638
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
16704
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest} GetDataContractsLatestVersionsRequest
16639
16705
  */
16640
- GetDataContractsRequest.fromObject = function fromObject(object) {
16641
- if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsRequest)
16706
+ GetDataContractsLatestVersionsRequest.fromObject = function fromObject(object) {
16707
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest)
16642
16708
  return object;
16643
- var message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest();
16709
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest();
16644
16710
  if (object.v0 != null) {
16645
16711
  if (typeof object.v0 !== "object")
16646
- throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsRequest.v0: object expected");
16647
- message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.fromObject(object.v0);
16712
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.v0: object expected");
16713
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.fromObject(object.v0);
16648
16714
  }
16649
16715
  return message;
16650
16716
  };
16651
16717
 
16652
16718
  /**
16653
- * Creates a plain object from a GetDataContractsRequest message. Also converts values to other types if specified.
16719
+ * Creates a plain object from a GetDataContractsLatestVersionsRequest message. Also converts values to other types if specified.
16654
16720
  * @function toObject
16655
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16721
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16656
16722
  * @static
16657
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest} message GetDataContractsRequest
16723
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest} message GetDataContractsLatestVersionsRequest
16658
16724
  * @param {$protobuf.IConversionOptions} [options] Conversion options
16659
16725
  * @returns {Object.<string,*>} Plain object
16660
16726
  */
16661
- GetDataContractsRequest.toObject = function toObject(message, options) {
16727
+ GetDataContractsLatestVersionsRequest.toObject = function toObject(message, options) {
16662
16728
  if (!options)
16663
16729
  options = {};
16664
16730
  var object = {};
16665
16731
  if (message.v0 != null && message.hasOwnProperty("v0")) {
16666
- object.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.toObject(message.v0, options);
16732
+ object.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.toObject(message.v0, options);
16667
16733
  if (options.oneofs)
16668
16734
  object.version = "v0";
16669
16735
  }
@@ -16671,35 +16737,36 @@ $root.org = (function() {
16671
16737
  };
16672
16738
 
16673
16739
  /**
16674
- * Converts this GetDataContractsRequest to JSON.
16740
+ * Converts this GetDataContractsLatestVersionsRequest to JSON.
16675
16741
  * @function toJSON
16676
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16742
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16677
16743
  * @instance
16678
16744
  * @returns {Object.<string,*>} JSON object
16679
16745
  */
16680
- GetDataContractsRequest.prototype.toJSON = function toJSON() {
16746
+ GetDataContractsLatestVersionsRequest.prototype.toJSON = function toJSON() {
16681
16747
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16682
16748
  };
16683
16749
 
16684
- GetDataContractsRequest.GetDataContractsRequestV0 = (function() {
16750
+ GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0 = (function() {
16685
16751
 
16686
16752
  /**
16687
- * Properties of a GetDataContractsRequestV0.
16688
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16689
- * @interface IGetDataContractsRequestV0
16690
- * @property {Array.<Uint8Array>|null} [ids] GetDataContractsRequestV0 ids
16691
- * @property {boolean|null} [prove] GetDataContractsRequestV0 prove
16753
+ * Properties of a GetDataContractsLatestVersionsRequestV0.
16754
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16755
+ * @interface IGetDataContractsLatestVersionsRequestV0
16756
+ * @property {Array.<Uint8Array>|null} [ids] GetDataContractsLatestVersionsRequestV0 ids
16757
+ * @property {boolean|null} [includeContracts] GetDataContractsLatestVersionsRequestV0 includeContracts
16758
+ * @property {boolean|null} [prove] GetDataContractsLatestVersionsRequestV0 prove
16692
16759
  */
16693
16760
 
16694
16761
  /**
16695
- * Constructs a new GetDataContractsRequestV0.
16696
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
16697
- * @classdesc Represents a GetDataContractsRequestV0.
16698
- * @implements IGetDataContractsRequestV0
16762
+ * Constructs a new GetDataContractsLatestVersionsRequestV0.
16763
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest
16764
+ * @classdesc Represents a GetDataContractsLatestVersionsRequestV0.
16765
+ * @implements IGetDataContractsLatestVersionsRequestV0
16699
16766
  * @constructor
16700
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0=} [properties] Properties to set
16767
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0=} [properties] Properties to set
16701
16768
  */
16702
- function GetDataContractsRequestV0(properties) {
16769
+ function GetDataContractsLatestVersionsRequestV0(properties) {
16703
16770
  this.ids = [];
16704
16771
  if (properties)
16705
16772
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -16708,81 +16775,91 @@ $root.org = (function() {
16708
16775
  }
16709
16776
 
16710
16777
  /**
16711
- * GetDataContractsRequestV0 ids.
16778
+ * GetDataContractsLatestVersionsRequestV0 ids.
16712
16779
  * @member {Array.<Uint8Array>} ids
16713
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16780
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16714
16781
  * @instance
16715
16782
  */
16716
- GetDataContractsRequestV0.prototype.ids = $util.emptyArray;
16783
+ GetDataContractsLatestVersionsRequestV0.prototype.ids = $util.emptyArray;
16717
16784
 
16718
16785
  /**
16719
- * GetDataContractsRequestV0 prove.
16786
+ * GetDataContractsLatestVersionsRequestV0 includeContracts.
16787
+ * @member {boolean} includeContracts
16788
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16789
+ * @instance
16790
+ */
16791
+ GetDataContractsLatestVersionsRequestV0.prototype.includeContracts = false;
16792
+
16793
+ /**
16794
+ * GetDataContractsLatestVersionsRequestV0 prove.
16720
16795
  * @member {boolean} prove
16721
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16796
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16722
16797
  * @instance
16723
16798
  */
16724
- GetDataContractsRequestV0.prototype.prove = false;
16799
+ GetDataContractsLatestVersionsRequestV0.prototype.prove = false;
16725
16800
 
16726
16801
  /**
16727
- * Creates a new GetDataContractsRequestV0 instance using the specified properties.
16802
+ * Creates a new GetDataContractsLatestVersionsRequestV0 instance using the specified properties.
16728
16803
  * @function create
16729
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16804
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16730
16805
  * @static
16731
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0=} [properties] Properties to set
16732
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0 instance
16806
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0=} [properties] Properties to set
16807
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0} GetDataContractsLatestVersionsRequestV0 instance
16733
16808
  */
16734
- GetDataContractsRequestV0.create = function create(properties) {
16735
- return new GetDataContractsRequestV0(properties);
16809
+ GetDataContractsLatestVersionsRequestV0.create = function create(properties) {
16810
+ return new GetDataContractsLatestVersionsRequestV0(properties);
16736
16811
  };
16737
16812
 
16738
16813
  /**
16739
- * Encodes the specified GetDataContractsRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify|verify} messages.
16814
+ * Encodes the specified GetDataContractsLatestVersionsRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.verify|verify} messages.
16740
16815
  * @function encode
16741
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16816
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16742
16817
  * @static
16743
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0} message GetDataContractsRequestV0 message or plain object to encode
16818
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0} message GetDataContractsLatestVersionsRequestV0 message or plain object to encode
16744
16819
  * @param {$protobuf.Writer} [writer] Writer to encode to
16745
16820
  * @returns {$protobuf.Writer} Writer
16746
16821
  */
16747
- GetDataContractsRequestV0.encode = function encode(message, writer) {
16822
+ GetDataContractsLatestVersionsRequestV0.encode = function encode(message, writer) {
16748
16823
  if (!writer)
16749
16824
  writer = $Writer.create();
16750
16825
  if (message.ids != null && message.ids.length)
16751
16826
  for (var i = 0; i < message.ids.length; ++i)
16752
16827
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ids[i]);
16828
+ if (message.includeContracts != null && Object.hasOwnProperty.call(message, "includeContracts"))
16829
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeContracts);
16753
16830
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
16754
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
16831
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.prove);
16755
16832
  return writer;
16756
16833
  };
16757
16834
 
16758
16835
  /**
16759
- * Encodes the specified GetDataContractsRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify|verify} messages.
16836
+ * Encodes the specified GetDataContractsLatestVersionsRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.verify|verify} messages.
16760
16837
  * @function encodeDelimited
16761
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16838
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16762
16839
  * @static
16763
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0} message GetDataContractsRequestV0 message or plain object to encode
16840
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.IGetDataContractsLatestVersionsRequestV0} message GetDataContractsLatestVersionsRequestV0 message or plain object to encode
16764
16841
  * @param {$protobuf.Writer} [writer] Writer to encode to
16765
16842
  * @returns {$protobuf.Writer} Writer
16766
16843
  */
16767
- GetDataContractsRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
16844
+ GetDataContractsLatestVersionsRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
16768
16845
  return this.encode(message, writer).ldelim();
16769
16846
  };
16770
16847
 
16771
16848
  /**
16772
- * Decodes a GetDataContractsRequestV0 message from the specified reader or buffer.
16849
+ * Decodes a GetDataContractsLatestVersionsRequestV0 message from the specified reader or buffer.
16773
16850
  * @function decode
16774
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16851
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16775
16852
  * @static
16776
16853
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16777
16854
  * @param {number} [length] Message length if known beforehand
16778
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
16855
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0} GetDataContractsLatestVersionsRequestV0
16779
16856
  * @throws {Error} If the payload is not a reader or valid buffer
16780
16857
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16781
16858
  */
16782
- GetDataContractsRequestV0.decode = function decode(reader, length) {
16859
+ GetDataContractsLatestVersionsRequestV0.decode = function decode(reader, length) {
16783
16860
  if (!(reader instanceof $Reader))
16784
16861
  reader = $Reader.create(reader);
16785
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0();
16862
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0();
16786
16863
  while (reader.pos < end) {
16787
16864
  var tag = reader.uint32();
16788
16865
  switch (tag >>> 3) {
@@ -16792,6 +16869,9 @@ $root.org = (function() {
16792
16869
  message.ids.push(reader.bytes());
16793
16870
  break;
16794
16871
  case 2:
16872
+ message.includeContracts = reader.bool();
16873
+ break;
16874
+ case 3:
16795
16875
  message.prove = reader.bool();
16796
16876
  break;
16797
16877
  default:
@@ -16803,30 +16883,30 @@ $root.org = (function() {
16803
16883
  };
16804
16884
 
16805
16885
  /**
16806
- * Decodes a GetDataContractsRequestV0 message from the specified reader or buffer, length delimited.
16886
+ * Decodes a GetDataContractsLatestVersionsRequestV0 message from the specified reader or buffer, length delimited.
16807
16887
  * @function decodeDelimited
16808
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16888
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16809
16889
  * @static
16810
16890
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16811
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
16891
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0} GetDataContractsLatestVersionsRequestV0
16812
16892
  * @throws {Error} If the payload is not a reader or valid buffer
16813
16893
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16814
16894
  */
16815
- GetDataContractsRequestV0.decodeDelimited = function decodeDelimited(reader) {
16895
+ GetDataContractsLatestVersionsRequestV0.decodeDelimited = function decodeDelimited(reader) {
16816
16896
  if (!(reader instanceof $Reader))
16817
16897
  reader = new $Reader(reader);
16818
16898
  return this.decode(reader, reader.uint32());
16819
16899
  };
16820
16900
 
16821
16901
  /**
16822
- * Verifies a GetDataContractsRequestV0 message.
16902
+ * Verifies a GetDataContractsLatestVersionsRequestV0 message.
16823
16903
  * @function verify
16824
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16904
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16825
16905
  * @static
16826
16906
  * @param {Object.<string,*>} message Plain object to verify
16827
16907
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
16828
16908
  */
16829
- GetDataContractsRequestV0.verify = function verify(message) {
16909
+ GetDataContractsLatestVersionsRequestV0.verify = function verify(message) {
16830
16910
  if (typeof message !== "object" || message === null)
16831
16911
  return "object expected";
16832
16912
  if (message.ids != null && message.hasOwnProperty("ids")) {
@@ -16836,6 +16916,9 @@ $root.org = (function() {
16836
16916
  if (!(message.ids[i] && typeof message.ids[i].length === "number" || $util.isString(message.ids[i])))
16837
16917
  return "ids: buffer[] expected";
16838
16918
  }
16919
+ if (message.includeContracts != null && message.hasOwnProperty("includeContracts"))
16920
+ if (typeof message.includeContracts !== "boolean")
16921
+ return "includeContracts: boolean expected";
16839
16922
  if (message.prove != null && message.hasOwnProperty("prove"))
16840
16923
  if (typeof message.prove !== "boolean")
16841
16924
  return "prove: boolean expected";
@@ -16843,20 +16926,20 @@ $root.org = (function() {
16843
16926
  };
16844
16927
 
16845
16928
  /**
16846
- * Creates a GetDataContractsRequestV0 message from a plain object. Also converts values to their respective internal types.
16929
+ * Creates a GetDataContractsLatestVersionsRequestV0 message from a plain object. Also converts values to their respective internal types.
16847
16930
  * @function fromObject
16848
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16931
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16849
16932
  * @static
16850
16933
  * @param {Object.<string,*>} object Plain object
16851
- * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
16934
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0} GetDataContractsLatestVersionsRequestV0
16852
16935
  */
16853
- GetDataContractsRequestV0.fromObject = function fromObject(object) {
16854
- if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0)
16936
+ GetDataContractsLatestVersionsRequestV0.fromObject = function fromObject(object) {
16937
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0)
16855
16938
  return object;
16856
- var message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0();
16939
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0();
16857
16940
  if (object.ids) {
16858
16941
  if (!Array.isArray(object.ids))
16859
- throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.ids: array expected");
16942
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0.ids: array expected");
16860
16943
  message.ids = [];
16861
16944
  for (var i = 0; i < object.ids.length; ++i)
16862
16945
  if (typeof object.ids[i] === "string")
@@ -16864,53 +16947,1959 @@ $root.org = (function() {
16864
16947
  else if (object.ids[i].length >= 0)
16865
16948
  message.ids[i] = object.ids[i];
16866
16949
  }
16950
+ if (object.includeContracts != null)
16951
+ message.includeContracts = Boolean(object.includeContracts);
16867
16952
  if (object.prove != null)
16868
16953
  message.prove = Boolean(object.prove);
16869
16954
  return message;
16870
16955
  };
16871
16956
 
16872
16957
  /**
16873
- * Creates a plain object from a GetDataContractsRequestV0 message. Also converts values to other types if specified.
16958
+ * Creates a plain object from a GetDataContractsLatestVersionsRequestV0 message. Also converts values to other types if specified.
16874
16959
  * @function toObject
16875
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16960
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16876
16961
  * @static
16877
- * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} message GetDataContractsRequestV0
16962
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0} message GetDataContractsLatestVersionsRequestV0
16878
16963
  * @param {$protobuf.IConversionOptions} [options] Conversion options
16879
16964
  * @returns {Object.<string,*>} Plain object
16880
16965
  */
16881
- GetDataContractsRequestV0.toObject = function toObject(message, options) {
16966
+ GetDataContractsLatestVersionsRequestV0.toObject = function toObject(message, options) {
16882
16967
  if (!options)
16883
16968
  options = {};
16884
16969
  var object = {};
16885
16970
  if (options.arrays || options.defaults)
16886
16971
  object.ids = [];
16887
- if (options.defaults)
16972
+ if (options.defaults) {
16973
+ object.includeContracts = false;
16888
16974
  object.prove = false;
16975
+ }
16889
16976
  if (message.ids && message.ids.length) {
16890
16977
  object.ids = [];
16891
16978
  for (var j = 0; j < message.ids.length; ++j)
16892
16979
  object.ids[j] = options.bytes === String ? $util.base64.encode(message.ids[j], 0, message.ids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.ids[j]) : message.ids[j];
16893
16980
  }
16981
+ if (message.includeContracts != null && message.hasOwnProperty("includeContracts"))
16982
+ object.includeContracts = message.includeContracts;
16894
16983
  if (message.prove != null && message.hasOwnProperty("prove"))
16895
16984
  object.prove = message.prove;
16896
16985
  return object;
16897
16986
  };
16898
16987
 
16899
16988
  /**
16900
- * Converts this GetDataContractsRequestV0 to JSON.
16989
+ * Converts this GetDataContractsLatestVersionsRequestV0 to JSON.
16901
16990
  * @function toJSON
16902
- * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
16991
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsRequest.GetDataContractsLatestVersionsRequestV0
16903
16992
  * @instance
16904
16993
  * @returns {Object.<string,*>} JSON object
16905
16994
  */
16906
- GetDataContractsRequestV0.prototype.toJSON = function toJSON() {
16995
+ GetDataContractsLatestVersionsRequestV0.prototype.toJSON = function toJSON() {
16907
16996
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16908
16997
  };
16909
16998
 
16910
- return GetDataContractsRequestV0;
16999
+ return GetDataContractsLatestVersionsRequestV0;
16911
17000
  })();
16912
17001
 
16913
- return GetDataContractsRequest;
17002
+ return GetDataContractsLatestVersionsRequest;
17003
+ })();
17004
+
17005
+ v0.GetDataContractsLatestVersionsResponse = (function() {
17006
+
17007
+ /**
17008
+ * Properties of a GetDataContractsLatestVersionsResponse.
17009
+ * @memberof org.dash.platform.dapi.v0
17010
+ * @interface IGetDataContractsLatestVersionsResponse
17011
+ * @property {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0|null} [v0] GetDataContractsLatestVersionsResponse v0
17012
+ */
17013
+
17014
+ /**
17015
+ * Constructs a new GetDataContractsLatestVersionsResponse.
17016
+ * @memberof org.dash.platform.dapi.v0
17017
+ * @classdesc Represents a GetDataContractsLatestVersionsResponse.
17018
+ * @implements IGetDataContractsLatestVersionsResponse
17019
+ * @constructor
17020
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsResponse=} [properties] Properties to set
17021
+ */
17022
+ function GetDataContractsLatestVersionsResponse(properties) {
17023
+ if (properties)
17024
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17025
+ if (properties[keys[i]] != null)
17026
+ this[keys[i]] = properties[keys[i]];
17027
+ }
17028
+
17029
+ /**
17030
+ * GetDataContractsLatestVersionsResponse v0.
17031
+ * @member {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0|null|undefined} v0
17032
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17033
+ * @instance
17034
+ */
17035
+ GetDataContractsLatestVersionsResponse.prototype.v0 = null;
17036
+
17037
+ // OneOf field names bound to virtual getters and setters
17038
+ var $oneOfFields;
17039
+
17040
+ /**
17041
+ * GetDataContractsLatestVersionsResponse version.
17042
+ * @member {"v0"|undefined} version
17043
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17044
+ * @instance
17045
+ */
17046
+ Object.defineProperty(GetDataContractsLatestVersionsResponse.prototype, "version", {
17047
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
17048
+ set: $util.oneOfSetter($oneOfFields)
17049
+ });
17050
+
17051
+ /**
17052
+ * Creates a new GetDataContractsLatestVersionsResponse instance using the specified properties.
17053
+ * @function create
17054
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17055
+ * @static
17056
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsResponse=} [properties] Properties to set
17057
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} GetDataContractsLatestVersionsResponse instance
17058
+ */
17059
+ GetDataContractsLatestVersionsResponse.create = function create(properties) {
17060
+ return new GetDataContractsLatestVersionsResponse(properties);
17061
+ };
17062
+
17063
+ /**
17064
+ * Encodes the specified GetDataContractsLatestVersionsResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.verify|verify} messages.
17065
+ * @function encode
17066
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17067
+ * @static
17068
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsResponse} message GetDataContractsLatestVersionsResponse message or plain object to encode
17069
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17070
+ * @returns {$protobuf.Writer} Writer
17071
+ */
17072
+ GetDataContractsLatestVersionsResponse.encode = function encode(message, writer) {
17073
+ if (!writer)
17074
+ writer = $Writer.create();
17075
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
17076
+ $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17077
+ return writer;
17078
+ };
17079
+
17080
+ /**
17081
+ * Encodes the specified GetDataContractsLatestVersionsResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.verify|verify} messages.
17082
+ * @function encodeDelimited
17083
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17084
+ * @static
17085
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsLatestVersionsResponse} message GetDataContractsLatestVersionsResponse message or plain object to encode
17086
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17087
+ * @returns {$protobuf.Writer} Writer
17088
+ */
17089
+ GetDataContractsLatestVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
17090
+ return this.encode(message, writer).ldelim();
17091
+ };
17092
+
17093
+ /**
17094
+ * Decodes a GetDataContractsLatestVersionsResponse message from the specified reader or buffer.
17095
+ * @function decode
17096
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17097
+ * @static
17098
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17099
+ * @param {number} [length] Message length if known beforehand
17100
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} GetDataContractsLatestVersionsResponse
17101
+ * @throws {Error} If the payload is not a reader or valid buffer
17102
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17103
+ */
17104
+ GetDataContractsLatestVersionsResponse.decode = function decode(reader, length) {
17105
+ if (!(reader instanceof $Reader))
17106
+ reader = $Reader.create(reader);
17107
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse();
17108
+ while (reader.pos < end) {
17109
+ var tag = reader.uint32();
17110
+ switch (tag >>> 3) {
17111
+ case 1:
17112
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.decode(reader, reader.uint32());
17113
+ break;
17114
+ default:
17115
+ reader.skipType(tag & 7);
17116
+ break;
17117
+ }
17118
+ }
17119
+ return message;
17120
+ };
17121
+
17122
+ /**
17123
+ * Decodes a GetDataContractsLatestVersionsResponse message from the specified reader or buffer, length delimited.
17124
+ * @function decodeDelimited
17125
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17126
+ * @static
17127
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17128
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} GetDataContractsLatestVersionsResponse
17129
+ * @throws {Error} If the payload is not a reader or valid buffer
17130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17131
+ */
17132
+ GetDataContractsLatestVersionsResponse.decodeDelimited = function decodeDelimited(reader) {
17133
+ if (!(reader instanceof $Reader))
17134
+ reader = new $Reader(reader);
17135
+ return this.decode(reader, reader.uint32());
17136
+ };
17137
+
17138
+ /**
17139
+ * Verifies a GetDataContractsLatestVersionsResponse message.
17140
+ * @function verify
17141
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17142
+ * @static
17143
+ * @param {Object.<string,*>} message Plain object to verify
17144
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17145
+ */
17146
+ GetDataContractsLatestVersionsResponse.verify = function verify(message) {
17147
+ if (typeof message !== "object" || message === null)
17148
+ return "object expected";
17149
+ var properties = {};
17150
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
17151
+ properties.version = 1;
17152
+ {
17153
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.verify(message.v0);
17154
+ if (error)
17155
+ return "v0." + error;
17156
+ }
17157
+ }
17158
+ return null;
17159
+ };
17160
+
17161
+ /**
17162
+ * Creates a GetDataContractsLatestVersionsResponse message from a plain object. Also converts values to their respective internal types.
17163
+ * @function fromObject
17164
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17165
+ * @static
17166
+ * @param {Object.<string,*>} object Plain object
17167
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} GetDataContractsLatestVersionsResponse
17168
+ */
17169
+ GetDataContractsLatestVersionsResponse.fromObject = function fromObject(object) {
17170
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse)
17171
+ return object;
17172
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse();
17173
+ if (object.v0 != null) {
17174
+ if (typeof object.v0 !== "object")
17175
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.v0: object expected");
17176
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.fromObject(object.v0);
17177
+ }
17178
+ return message;
17179
+ };
17180
+
17181
+ /**
17182
+ * Creates a plain object from a GetDataContractsLatestVersionsResponse message. Also converts values to other types if specified.
17183
+ * @function toObject
17184
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17185
+ * @static
17186
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse} message GetDataContractsLatestVersionsResponse
17187
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17188
+ * @returns {Object.<string,*>} Plain object
17189
+ */
17190
+ GetDataContractsLatestVersionsResponse.toObject = function toObject(message, options) {
17191
+ if (!options)
17192
+ options = {};
17193
+ var object = {};
17194
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
17195
+ object.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.toObject(message.v0, options);
17196
+ if (options.oneofs)
17197
+ object.version = "v0";
17198
+ }
17199
+ return object;
17200
+ };
17201
+
17202
+ /**
17203
+ * Converts this GetDataContractsLatestVersionsResponse to JSON.
17204
+ * @function toJSON
17205
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17206
+ * @instance
17207
+ * @returns {Object.<string,*>} JSON object
17208
+ */
17209
+ GetDataContractsLatestVersionsResponse.prototype.toJSON = function toJSON() {
17210
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17211
+ };
17212
+
17213
+ GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry = (function() {
17214
+
17215
+ /**
17216
+ * Properties of a DataContractLatestVersionEntry.
17217
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17218
+ * @interface IDataContractLatestVersionEntry
17219
+ * @property {Uint8Array|null} [identifier] DataContractLatestVersionEntry identifier
17220
+ * @property {number|null} [version] DataContractLatestVersionEntry version
17221
+ * @property {Uint8Array|null} [dataContract] DataContractLatestVersionEntry dataContract
17222
+ */
17223
+
17224
+ /**
17225
+ * Constructs a new DataContractLatestVersionEntry.
17226
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17227
+ * @classdesc Represents a DataContractLatestVersionEntry.
17228
+ * @implements IDataContractLatestVersionEntry
17229
+ * @constructor
17230
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry=} [properties] Properties to set
17231
+ */
17232
+ function DataContractLatestVersionEntry(properties) {
17233
+ if (properties)
17234
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17235
+ if (properties[keys[i]] != null)
17236
+ this[keys[i]] = properties[keys[i]];
17237
+ }
17238
+
17239
+ /**
17240
+ * DataContractLatestVersionEntry identifier.
17241
+ * @member {Uint8Array} identifier
17242
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17243
+ * @instance
17244
+ */
17245
+ DataContractLatestVersionEntry.prototype.identifier = $util.newBuffer([]);
17246
+
17247
+ /**
17248
+ * DataContractLatestVersionEntry version.
17249
+ * @member {number} version
17250
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17251
+ * @instance
17252
+ */
17253
+ DataContractLatestVersionEntry.prototype.version = 0;
17254
+
17255
+ /**
17256
+ * DataContractLatestVersionEntry dataContract.
17257
+ * @member {Uint8Array} dataContract
17258
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17259
+ * @instance
17260
+ */
17261
+ DataContractLatestVersionEntry.prototype.dataContract = $util.newBuffer([]);
17262
+
17263
+ /**
17264
+ * Creates a new DataContractLatestVersionEntry instance using the specified properties.
17265
+ * @function create
17266
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17267
+ * @static
17268
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry=} [properties] Properties to set
17269
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry} DataContractLatestVersionEntry instance
17270
+ */
17271
+ DataContractLatestVersionEntry.create = function create(properties) {
17272
+ return new DataContractLatestVersionEntry(properties);
17273
+ };
17274
+
17275
+ /**
17276
+ * Encodes the specified DataContractLatestVersionEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.verify|verify} messages.
17277
+ * @function encode
17278
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17279
+ * @static
17280
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry} message DataContractLatestVersionEntry message or plain object to encode
17281
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17282
+ * @returns {$protobuf.Writer} Writer
17283
+ */
17284
+ DataContractLatestVersionEntry.encode = function encode(message, writer) {
17285
+ if (!writer)
17286
+ writer = $Writer.create();
17287
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier"))
17288
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.identifier);
17289
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
17290
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.version);
17291
+ if (message.dataContract != null && Object.hasOwnProperty.call(message, "dataContract"))
17292
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.dataContract);
17293
+ return writer;
17294
+ };
17295
+
17296
+ /**
17297
+ * Encodes the specified DataContractLatestVersionEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.verify|verify} messages.
17298
+ * @function encodeDelimited
17299
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17300
+ * @static
17301
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry} message DataContractLatestVersionEntry message or plain object to encode
17302
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17303
+ * @returns {$protobuf.Writer} Writer
17304
+ */
17305
+ DataContractLatestVersionEntry.encodeDelimited = function encodeDelimited(message, writer) {
17306
+ return this.encode(message, writer).ldelim();
17307
+ };
17308
+
17309
+ /**
17310
+ * Decodes a DataContractLatestVersionEntry message from the specified reader or buffer.
17311
+ * @function decode
17312
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17313
+ * @static
17314
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17315
+ * @param {number} [length] Message length if known beforehand
17316
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry} DataContractLatestVersionEntry
17317
+ * @throws {Error} If the payload is not a reader or valid buffer
17318
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17319
+ */
17320
+ DataContractLatestVersionEntry.decode = function decode(reader, length) {
17321
+ if (!(reader instanceof $Reader))
17322
+ reader = $Reader.create(reader);
17323
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry();
17324
+ while (reader.pos < end) {
17325
+ var tag = reader.uint32();
17326
+ switch (tag >>> 3) {
17327
+ case 1:
17328
+ message.identifier = reader.bytes();
17329
+ break;
17330
+ case 2:
17331
+ message.version = reader.uint32();
17332
+ break;
17333
+ case 3:
17334
+ message.dataContract = reader.bytes();
17335
+ break;
17336
+ default:
17337
+ reader.skipType(tag & 7);
17338
+ break;
17339
+ }
17340
+ }
17341
+ return message;
17342
+ };
17343
+
17344
+ /**
17345
+ * Decodes a DataContractLatestVersionEntry message from the specified reader or buffer, length delimited.
17346
+ * @function decodeDelimited
17347
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17348
+ * @static
17349
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17350
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry} DataContractLatestVersionEntry
17351
+ * @throws {Error} If the payload is not a reader or valid buffer
17352
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17353
+ */
17354
+ DataContractLatestVersionEntry.decodeDelimited = function decodeDelimited(reader) {
17355
+ if (!(reader instanceof $Reader))
17356
+ reader = new $Reader(reader);
17357
+ return this.decode(reader, reader.uint32());
17358
+ };
17359
+
17360
+ /**
17361
+ * Verifies a DataContractLatestVersionEntry message.
17362
+ * @function verify
17363
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17364
+ * @static
17365
+ * @param {Object.<string,*>} message Plain object to verify
17366
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17367
+ */
17368
+ DataContractLatestVersionEntry.verify = function verify(message) {
17369
+ if (typeof message !== "object" || message === null)
17370
+ return "object expected";
17371
+ if (message.identifier != null && message.hasOwnProperty("identifier"))
17372
+ if (!(message.identifier && typeof message.identifier.length === "number" || $util.isString(message.identifier)))
17373
+ return "identifier: buffer expected";
17374
+ if (message.version != null && message.hasOwnProperty("version"))
17375
+ if (!$util.isInteger(message.version))
17376
+ return "version: integer expected";
17377
+ if (message.dataContract != null && message.hasOwnProperty("dataContract"))
17378
+ if (!(message.dataContract && typeof message.dataContract.length === "number" || $util.isString(message.dataContract)))
17379
+ return "dataContract: buffer expected";
17380
+ return null;
17381
+ };
17382
+
17383
+ /**
17384
+ * Creates a DataContractLatestVersionEntry message from a plain object. Also converts values to their respective internal types.
17385
+ * @function fromObject
17386
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17387
+ * @static
17388
+ * @param {Object.<string,*>} object Plain object
17389
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry} DataContractLatestVersionEntry
17390
+ */
17391
+ DataContractLatestVersionEntry.fromObject = function fromObject(object) {
17392
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry)
17393
+ return object;
17394
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry();
17395
+ if (object.identifier != null)
17396
+ if (typeof object.identifier === "string")
17397
+ $util.base64.decode(object.identifier, message.identifier = $util.newBuffer($util.base64.length(object.identifier)), 0);
17398
+ else if (object.identifier.length >= 0)
17399
+ message.identifier = object.identifier;
17400
+ if (object.version != null)
17401
+ message.version = object.version >>> 0;
17402
+ if (object.dataContract != null)
17403
+ if (typeof object.dataContract === "string")
17404
+ $util.base64.decode(object.dataContract, message.dataContract = $util.newBuffer($util.base64.length(object.dataContract)), 0);
17405
+ else if (object.dataContract.length >= 0)
17406
+ message.dataContract = object.dataContract;
17407
+ return message;
17408
+ };
17409
+
17410
+ /**
17411
+ * Creates a plain object from a DataContractLatestVersionEntry message. Also converts values to other types if specified.
17412
+ * @function toObject
17413
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17414
+ * @static
17415
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry} message DataContractLatestVersionEntry
17416
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17417
+ * @returns {Object.<string,*>} Plain object
17418
+ */
17419
+ DataContractLatestVersionEntry.toObject = function toObject(message, options) {
17420
+ if (!options)
17421
+ options = {};
17422
+ var object = {};
17423
+ if (options.defaults) {
17424
+ if (options.bytes === String)
17425
+ object.identifier = "";
17426
+ else {
17427
+ object.identifier = [];
17428
+ if (options.bytes !== Array)
17429
+ object.identifier = $util.newBuffer(object.identifier);
17430
+ }
17431
+ object.version = 0;
17432
+ if (options.bytes === String)
17433
+ object.dataContract = "";
17434
+ else {
17435
+ object.dataContract = [];
17436
+ if (options.bytes !== Array)
17437
+ object.dataContract = $util.newBuffer(object.dataContract);
17438
+ }
17439
+ }
17440
+ if (message.identifier != null && message.hasOwnProperty("identifier"))
17441
+ object.identifier = options.bytes === String ? $util.base64.encode(message.identifier, 0, message.identifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.identifier) : message.identifier;
17442
+ if (message.version != null && message.hasOwnProperty("version"))
17443
+ object.version = message.version;
17444
+ if (message.dataContract != null && message.hasOwnProperty("dataContract"))
17445
+ object.dataContract = options.bytes === String ? $util.base64.encode(message.dataContract, 0, message.dataContract.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataContract) : message.dataContract;
17446
+ return object;
17447
+ };
17448
+
17449
+ /**
17450
+ * Converts this DataContractLatestVersionEntry to JSON.
17451
+ * @function toJSON
17452
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry
17453
+ * @instance
17454
+ * @returns {Object.<string,*>} JSON object
17455
+ */
17456
+ DataContractLatestVersionEntry.prototype.toJSON = function toJSON() {
17457
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17458
+ };
17459
+
17460
+ return DataContractLatestVersionEntry;
17461
+ })();
17462
+
17463
+ GetDataContractsLatestVersionsResponse.DataContractsLatestVersions = (function() {
17464
+
17465
+ /**
17466
+ * Properties of a DataContractsLatestVersions.
17467
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17468
+ * @interface IDataContractsLatestVersions
17469
+ * @property {Array.<org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry>|null} [entries] DataContractsLatestVersions entries
17470
+ */
17471
+
17472
+ /**
17473
+ * Constructs a new DataContractsLatestVersions.
17474
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17475
+ * @classdesc Represents a DataContractsLatestVersions.
17476
+ * @implements IDataContractsLatestVersions
17477
+ * @constructor
17478
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions=} [properties] Properties to set
17479
+ */
17480
+ function DataContractsLatestVersions(properties) {
17481
+ this.entries = [];
17482
+ if (properties)
17483
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17484
+ if (properties[keys[i]] != null)
17485
+ this[keys[i]] = properties[keys[i]];
17486
+ }
17487
+
17488
+ /**
17489
+ * DataContractsLatestVersions entries.
17490
+ * @member {Array.<org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractLatestVersionEntry>} entries
17491
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17492
+ * @instance
17493
+ */
17494
+ DataContractsLatestVersions.prototype.entries = $util.emptyArray;
17495
+
17496
+ /**
17497
+ * Creates a new DataContractsLatestVersions instance using the specified properties.
17498
+ * @function create
17499
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17500
+ * @static
17501
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions=} [properties] Properties to set
17502
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions} DataContractsLatestVersions instance
17503
+ */
17504
+ DataContractsLatestVersions.create = function create(properties) {
17505
+ return new DataContractsLatestVersions(properties);
17506
+ };
17507
+
17508
+ /**
17509
+ * Encodes the specified DataContractsLatestVersions message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.verify|verify} messages.
17510
+ * @function encode
17511
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17512
+ * @static
17513
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions} message DataContractsLatestVersions message or plain object to encode
17514
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17515
+ * @returns {$protobuf.Writer} Writer
17516
+ */
17517
+ DataContractsLatestVersions.encode = function encode(message, writer) {
17518
+ if (!writer)
17519
+ writer = $Writer.create();
17520
+ if (message.entries != null && message.entries.length)
17521
+ for (var i = 0; i < message.entries.length; ++i)
17522
+ $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17523
+ return writer;
17524
+ };
17525
+
17526
+ /**
17527
+ * Encodes the specified DataContractsLatestVersions message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.verify|verify} messages.
17528
+ * @function encodeDelimited
17529
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17530
+ * @static
17531
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions} message DataContractsLatestVersions message or plain object to encode
17532
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17533
+ * @returns {$protobuf.Writer} Writer
17534
+ */
17535
+ DataContractsLatestVersions.encodeDelimited = function encodeDelimited(message, writer) {
17536
+ return this.encode(message, writer).ldelim();
17537
+ };
17538
+
17539
+ /**
17540
+ * Decodes a DataContractsLatestVersions message from the specified reader or buffer.
17541
+ * @function decode
17542
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17543
+ * @static
17544
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17545
+ * @param {number} [length] Message length if known beforehand
17546
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions} DataContractsLatestVersions
17547
+ * @throws {Error} If the payload is not a reader or valid buffer
17548
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17549
+ */
17550
+ DataContractsLatestVersions.decode = function decode(reader, length) {
17551
+ if (!(reader instanceof $Reader))
17552
+ reader = $Reader.create(reader);
17553
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions();
17554
+ while (reader.pos < end) {
17555
+ var tag = reader.uint32();
17556
+ switch (tag >>> 3) {
17557
+ case 1:
17558
+ if (!(message.entries && message.entries.length))
17559
+ message.entries = [];
17560
+ message.entries.push($root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.decode(reader, reader.uint32()));
17561
+ break;
17562
+ default:
17563
+ reader.skipType(tag & 7);
17564
+ break;
17565
+ }
17566
+ }
17567
+ return message;
17568
+ };
17569
+
17570
+ /**
17571
+ * Decodes a DataContractsLatestVersions message from the specified reader or buffer, length delimited.
17572
+ * @function decodeDelimited
17573
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17574
+ * @static
17575
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17576
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions} DataContractsLatestVersions
17577
+ * @throws {Error} If the payload is not a reader or valid buffer
17578
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17579
+ */
17580
+ DataContractsLatestVersions.decodeDelimited = function decodeDelimited(reader) {
17581
+ if (!(reader instanceof $Reader))
17582
+ reader = new $Reader(reader);
17583
+ return this.decode(reader, reader.uint32());
17584
+ };
17585
+
17586
+ /**
17587
+ * Verifies a DataContractsLatestVersions message.
17588
+ * @function verify
17589
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17590
+ * @static
17591
+ * @param {Object.<string,*>} message Plain object to verify
17592
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17593
+ */
17594
+ DataContractsLatestVersions.verify = function verify(message) {
17595
+ if (typeof message !== "object" || message === null)
17596
+ return "object expected";
17597
+ if (message.entries != null && message.hasOwnProperty("entries")) {
17598
+ if (!Array.isArray(message.entries))
17599
+ return "entries: array expected";
17600
+ for (var i = 0; i < message.entries.length; ++i) {
17601
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.verify(message.entries[i]);
17602
+ if (error)
17603
+ return "entries." + error;
17604
+ }
17605
+ }
17606
+ return null;
17607
+ };
17608
+
17609
+ /**
17610
+ * Creates a DataContractsLatestVersions message from a plain object. Also converts values to their respective internal types.
17611
+ * @function fromObject
17612
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17613
+ * @static
17614
+ * @param {Object.<string,*>} object Plain object
17615
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions} DataContractsLatestVersions
17616
+ */
17617
+ DataContractsLatestVersions.fromObject = function fromObject(object) {
17618
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions)
17619
+ return object;
17620
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions();
17621
+ if (object.entries) {
17622
+ if (!Array.isArray(object.entries))
17623
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.entries: array expected");
17624
+ message.entries = [];
17625
+ for (var i = 0; i < object.entries.length; ++i) {
17626
+ if (typeof object.entries[i] !== "object")
17627
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.entries: object expected");
17628
+ message.entries[i] = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.fromObject(object.entries[i]);
17629
+ }
17630
+ }
17631
+ return message;
17632
+ };
17633
+
17634
+ /**
17635
+ * Creates a plain object from a DataContractsLatestVersions message. Also converts values to other types if specified.
17636
+ * @function toObject
17637
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17638
+ * @static
17639
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions} message DataContractsLatestVersions
17640
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17641
+ * @returns {Object.<string,*>} Plain object
17642
+ */
17643
+ DataContractsLatestVersions.toObject = function toObject(message, options) {
17644
+ if (!options)
17645
+ options = {};
17646
+ var object = {};
17647
+ if (options.arrays || options.defaults)
17648
+ object.entries = [];
17649
+ if (message.entries && message.entries.length) {
17650
+ object.entries = [];
17651
+ for (var j = 0; j < message.entries.length; ++j)
17652
+ object.entries[j] = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractLatestVersionEntry.toObject(message.entries[j], options);
17653
+ }
17654
+ return object;
17655
+ };
17656
+
17657
+ /**
17658
+ * Converts this DataContractsLatestVersions to JSON.
17659
+ * @function toJSON
17660
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions
17661
+ * @instance
17662
+ * @returns {Object.<string,*>} JSON object
17663
+ */
17664
+ DataContractsLatestVersions.prototype.toJSON = function toJSON() {
17665
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17666
+ };
17667
+
17668
+ return DataContractsLatestVersions;
17669
+ })();
17670
+
17671
+ GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0 = (function() {
17672
+
17673
+ /**
17674
+ * Properties of a GetDataContractsLatestVersionsResponseV0.
17675
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17676
+ * @interface IGetDataContractsLatestVersionsResponseV0
17677
+ * @property {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions|null} [dataContractsLatestVersions] GetDataContractsLatestVersionsResponseV0 dataContractsLatestVersions
17678
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetDataContractsLatestVersionsResponseV0 proof
17679
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetDataContractsLatestVersionsResponseV0 metadata
17680
+ */
17681
+
17682
+ /**
17683
+ * Constructs a new GetDataContractsLatestVersionsResponseV0.
17684
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse
17685
+ * @classdesc Represents a GetDataContractsLatestVersionsResponseV0.
17686
+ * @implements IGetDataContractsLatestVersionsResponseV0
17687
+ * @constructor
17688
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0=} [properties] Properties to set
17689
+ */
17690
+ function GetDataContractsLatestVersionsResponseV0(properties) {
17691
+ if (properties)
17692
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17693
+ if (properties[keys[i]] != null)
17694
+ this[keys[i]] = properties[keys[i]];
17695
+ }
17696
+
17697
+ /**
17698
+ * GetDataContractsLatestVersionsResponseV0 dataContractsLatestVersions.
17699
+ * @member {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IDataContractsLatestVersions|null|undefined} dataContractsLatestVersions
17700
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17701
+ * @instance
17702
+ */
17703
+ GetDataContractsLatestVersionsResponseV0.prototype.dataContractsLatestVersions = null;
17704
+
17705
+ /**
17706
+ * GetDataContractsLatestVersionsResponseV0 proof.
17707
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
17708
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17709
+ * @instance
17710
+ */
17711
+ GetDataContractsLatestVersionsResponseV0.prototype.proof = null;
17712
+
17713
+ /**
17714
+ * GetDataContractsLatestVersionsResponseV0 metadata.
17715
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
17716
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17717
+ * @instance
17718
+ */
17719
+ GetDataContractsLatestVersionsResponseV0.prototype.metadata = null;
17720
+
17721
+ // OneOf field names bound to virtual getters and setters
17722
+ var $oneOfFields;
17723
+
17724
+ /**
17725
+ * GetDataContractsLatestVersionsResponseV0 result.
17726
+ * @member {"dataContractsLatestVersions"|"proof"|undefined} result
17727
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17728
+ * @instance
17729
+ */
17730
+ Object.defineProperty(GetDataContractsLatestVersionsResponseV0.prototype, "result", {
17731
+ get: $util.oneOfGetter($oneOfFields = ["dataContractsLatestVersions", "proof"]),
17732
+ set: $util.oneOfSetter($oneOfFields)
17733
+ });
17734
+
17735
+ /**
17736
+ * Creates a new GetDataContractsLatestVersionsResponseV0 instance using the specified properties.
17737
+ * @function create
17738
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17739
+ * @static
17740
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0=} [properties] Properties to set
17741
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0} GetDataContractsLatestVersionsResponseV0 instance
17742
+ */
17743
+ GetDataContractsLatestVersionsResponseV0.create = function create(properties) {
17744
+ return new GetDataContractsLatestVersionsResponseV0(properties);
17745
+ };
17746
+
17747
+ /**
17748
+ * Encodes the specified GetDataContractsLatestVersionsResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.verify|verify} messages.
17749
+ * @function encode
17750
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17751
+ * @static
17752
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0} message GetDataContractsLatestVersionsResponseV0 message or plain object to encode
17753
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17754
+ * @returns {$protobuf.Writer} Writer
17755
+ */
17756
+ GetDataContractsLatestVersionsResponseV0.encode = function encode(message, writer) {
17757
+ if (!writer)
17758
+ writer = $Writer.create();
17759
+ if (message.dataContractsLatestVersions != null && Object.hasOwnProperty.call(message, "dataContractsLatestVersions"))
17760
+ $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.encode(message.dataContractsLatestVersions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17761
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
17762
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17763
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
17764
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
17765
+ return writer;
17766
+ };
17767
+
17768
+ /**
17769
+ * Encodes the specified GetDataContractsLatestVersionsResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.verify|verify} messages.
17770
+ * @function encodeDelimited
17771
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17772
+ * @static
17773
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.IGetDataContractsLatestVersionsResponseV0} message GetDataContractsLatestVersionsResponseV0 message or plain object to encode
17774
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17775
+ * @returns {$protobuf.Writer} Writer
17776
+ */
17777
+ GetDataContractsLatestVersionsResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
17778
+ return this.encode(message, writer).ldelim();
17779
+ };
17780
+
17781
+ /**
17782
+ * Decodes a GetDataContractsLatestVersionsResponseV0 message from the specified reader or buffer.
17783
+ * @function decode
17784
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17785
+ * @static
17786
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17787
+ * @param {number} [length] Message length if known beforehand
17788
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0} GetDataContractsLatestVersionsResponseV0
17789
+ * @throws {Error} If the payload is not a reader or valid buffer
17790
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17791
+ */
17792
+ GetDataContractsLatestVersionsResponseV0.decode = function decode(reader, length) {
17793
+ if (!(reader instanceof $Reader))
17794
+ reader = $Reader.create(reader);
17795
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0();
17796
+ while (reader.pos < end) {
17797
+ var tag = reader.uint32();
17798
+ switch (tag >>> 3) {
17799
+ case 1:
17800
+ message.dataContractsLatestVersions = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.decode(reader, reader.uint32());
17801
+ break;
17802
+ case 2:
17803
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
17804
+ break;
17805
+ case 3:
17806
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
17807
+ break;
17808
+ default:
17809
+ reader.skipType(tag & 7);
17810
+ break;
17811
+ }
17812
+ }
17813
+ return message;
17814
+ };
17815
+
17816
+ /**
17817
+ * Decodes a GetDataContractsLatestVersionsResponseV0 message from the specified reader or buffer, length delimited.
17818
+ * @function decodeDelimited
17819
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17820
+ * @static
17821
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17822
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0} GetDataContractsLatestVersionsResponseV0
17823
+ * @throws {Error} If the payload is not a reader or valid buffer
17824
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17825
+ */
17826
+ GetDataContractsLatestVersionsResponseV0.decodeDelimited = function decodeDelimited(reader) {
17827
+ if (!(reader instanceof $Reader))
17828
+ reader = new $Reader(reader);
17829
+ return this.decode(reader, reader.uint32());
17830
+ };
17831
+
17832
+ /**
17833
+ * Verifies a GetDataContractsLatestVersionsResponseV0 message.
17834
+ * @function verify
17835
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17836
+ * @static
17837
+ * @param {Object.<string,*>} message Plain object to verify
17838
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17839
+ */
17840
+ GetDataContractsLatestVersionsResponseV0.verify = function verify(message) {
17841
+ if (typeof message !== "object" || message === null)
17842
+ return "object expected";
17843
+ var properties = {};
17844
+ if (message.dataContractsLatestVersions != null && message.hasOwnProperty("dataContractsLatestVersions")) {
17845
+ properties.result = 1;
17846
+ {
17847
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.verify(message.dataContractsLatestVersions);
17848
+ if (error)
17849
+ return "dataContractsLatestVersions." + error;
17850
+ }
17851
+ }
17852
+ if (message.proof != null && message.hasOwnProperty("proof")) {
17853
+ if (properties.result === 1)
17854
+ return "result: multiple values";
17855
+ properties.result = 1;
17856
+ {
17857
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
17858
+ if (error)
17859
+ return "proof." + error;
17860
+ }
17861
+ }
17862
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
17863
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
17864
+ if (error)
17865
+ return "metadata." + error;
17866
+ }
17867
+ return null;
17868
+ };
17869
+
17870
+ /**
17871
+ * Creates a GetDataContractsLatestVersionsResponseV0 message from a plain object. Also converts values to their respective internal types.
17872
+ * @function fromObject
17873
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17874
+ * @static
17875
+ * @param {Object.<string,*>} object Plain object
17876
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0} GetDataContractsLatestVersionsResponseV0
17877
+ */
17878
+ GetDataContractsLatestVersionsResponseV0.fromObject = function fromObject(object) {
17879
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0)
17880
+ return object;
17881
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0();
17882
+ if (object.dataContractsLatestVersions != null) {
17883
+ if (typeof object.dataContractsLatestVersions !== "object")
17884
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.dataContractsLatestVersions: object expected");
17885
+ message.dataContractsLatestVersions = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.fromObject(object.dataContractsLatestVersions);
17886
+ }
17887
+ if (object.proof != null) {
17888
+ if (typeof object.proof !== "object")
17889
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.proof: object expected");
17890
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
17891
+ }
17892
+ if (object.metadata != null) {
17893
+ if (typeof object.metadata !== "object")
17894
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0.metadata: object expected");
17895
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
17896
+ }
17897
+ return message;
17898
+ };
17899
+
17900
+ /**
17901
+ * Creates a plain object from a GetDataContractsLatestVersionsResponseV0 message. Also converts values to other types if specified.
17902
+ * @function toObject
17903
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17904
+ * @static
17905
+ * @param {org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0} message GetDataContractsLatestVersionsResponseV0
17906
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17907
+ * @returns {Object.<string,*>} Plain object
17908
+ */
17909
+ GetDataContractsLatestVersionsResponseV0.toObject = function toObject(message, options) {
17910
+ if (!options)
17911
+ options = {};
17912
+ var object = {};
17913
+ if (options.defaults)
17914
+ object.metadata = null;
17915
+ if (message.dataContractsLatestVersions != null && message.hasOwnProperty("dataContractsLatestVersions")) {
17916
+ object.dataContractsLatestVersions = $root.org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.DataContractsLatestVersions.toObject(message.dataContractsLatestVersions, options);
17917
+ if (options.oneofs)
17918
+ object.result = "dataContractsLatestVersions";
17919
+ }
17920
+ if (message.proof != null && message.hasOwnProperty("proof")) {
17921
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
17922
+ if (options.oneofs)
17923
+ object.result = "proof";
17924
+ }
17925
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
17926
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
17927
+ return object;
17928
+ };
17929
+
17930
+ /**
17931
+ * Converts this GetDataContractsLatestVersionsResponseV0 to JSON.
17932
+ * @function toJSON
17933
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsLatestVersionsResponse.GetDataContractsLatestVersionsResponseV0
17934
+ * @instance
17935
+ * @returns {Object.<string,*>} JSON object
17936
+ */
17937
+ GetDataContractsLatestVersionsResponseV0.prototype.toJSON = function toJSON() {
17938
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17939
+ };
17940
+
17941
+ return GetDataContractsLatestVersionsResponseV0;
17942
+ })();
17943
+
17944
+ return GetDataContractsLatestVersionsResponse;
17945
+ })();
17946
+
17947
+ v0.GetDataContractsRequest = (function() {
17948
+
17949
+ /**
17950
+ * Properties of a GetDataContractsRequest.
17951
+ * @memberof org.dash.platform.dapi.v0
17952
+ * @interface IGetDataContractsRequest
17953
+ * @property {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0|null} [v0] GetDataContractsRequest v0
17954
+ */
17955
+
17956
+ /**
17957
+ * Constructs a new GetDataContractsRequest.
17958
+ * @memberof org.dash.platform.dapi.v0
17959
+ * @classdesc Represents a GetDataContractsRequest.
17960
+ * @implements IGetDataContractsRequest
17961
+ * @constructor
17962
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest=} [properties] Properties to set
17963
+ */
17964
+ function GetDataContractsRequest(properties) {
17965
+ if (properties)
17966
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17967
+ if (properties[keys[i]] != null)
17968
+ this[keys[i]] = properties[keys[i]];
17969
+ }
17970
+
17971
+ /**
17972
+ * GetDataContractsRequest v0.
17973
+ * @member {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0|null|undefined} v0
17974
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
17975
+ * @instance
17976
+ */
17977
+ GetDataContractsRequest.prototype.v0 = null;
17978
+
17979
+ // OneOf field names bound to virtual getters and setters
17980
+ var $oneOfFields;
17981
+
17982
+ /**
17983
+ * GetDataContractsRequest version.
17984
+ * @member {"v0"|undefined} version
17985
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
17986
+ * @instance
17987
+ */
17988
+ Object.defineProperty(GetDataContractsRequest.prototype, "version", {
17989
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
17990
+ set: $util.oneOfSetter($oneOfFields)
17991
+ });
17992
+
17993
+ /**
17994
+ * Creates a new GetDataContractsRequest instance using the specified properties.
17995
+ * @function create
17996
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
17997
+ * @static
17998
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest=} [properties] Properties to set
17999
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest instance
18000
+ */
18001
+ GetDataContractsRequest.create = function create(properties) {
18002
+ return new GetDataContractsRequest(properties);
18003
+ };
18004
+
18005
+ /**
18006
+ * Encodes the specified GetDataContractsRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.verify|verify} messages.
18007
+ * @function encode
18008
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18009
+ * @static
18010
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest} message GetDataContractsRequest message or plain object to encode
18011
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18012
+ * @returns {$protobuf.Writer} Writer
18013
+ */
18014
+ GetDataContractsRequest.encode = function encode(message, writer) {
18015
+ if (!writer)
18016
+ writer = $Writer.create();
18017
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
18018
+ $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18019
+ return writer;
18020
+ };
18021
+
18022
+ /**
18023
+ * Encodes the specified GetDataContractsRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.verify|verify} messages.
18024
+ * @function encodeDelimited
18025
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18026
+ * @static
18027
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsRequest} message GetDataContractsRequest message or plain object to encode
18028
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18029
+ * @returns {$protobuf.Writer} Writer
18030
+ */
18031
+ GetDataContractsRequest.encodeDelimited = function encodeDelimited(message, writer) {
18032
+ return this.encode(message, writer).ldelim();
18033
+ };
18034
+
18035
+ /**
18036
+ * Decodes a GetDataContractsRequest message from the specified reader or buffer.
18037
+ * @function decode
18038
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18039
+ * @static
18040
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18041
+ * @param {number} [length] Message length if known beforehand
18042
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
18043
+ * @throws {Error} If the payload is not a reader or valid buffer
18044
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18045
+ */
18046
+ GetDataContractsRequest.decode = function decode(reader, length) {
18047
+ if (!(reader instanceof $Reader))
18048
+ reader = $Reader.create(reader);
18049
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest();
18050
+ while (reader.pos < end) {
18051
+ var tag = reader.uint32();
18052
+ switch (tag >>> 3) {
18053
+ case 1:
18054
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.decode(reader, reader.uint32());
18055
+ break;
18056
+ default:
18057
+ reader.skipType(tag & 7);
18058
+ break;
18059
+ }
18060
+ }
18061
+ return message;
18062
+ };
18063
+
18064
+ /**
18065
+ * Decodes a GetDataContractsRequest message from the specified reader or buffer, length delimited.
18066
+ * @function decodeDelimited
18067
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18068
+ * @static
18069
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18070
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
18071
+ * @throws {Error} If the payload is not a reader or valid buffer
18072
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18073
+ */
18074
+ GetDataContractsRequest.decodeDelimited = function decodeDelimited(reader) {
18075
+ if (!(reader instanceof $Reader))
18076
+ reader = new $Reader(reader);
18077
+ return this.decode(reader, reader.uint32());
18078
+ };
18079
+
18080
+ /**
18081
+ * Verifies a GetDataContractsRequest message.
18082
+ * @function verify
18083
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18084
+ * @static
18085
+ * @param {Object.<string,*>} message Plain object to verify
18086
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18087
+ */
18088
+ GetDataContractsRequest.verify = function verify(message) {
18089
+ if (typeof message !== "object" || message === null)
18090
+ return "object expected";
18091
+ var properties = {};
18092
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
18093
+ properties.version = 1;
18094
+ {
18095
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify(message.v0);
18096
+ if (error)
18097
+ return "v0." + error;
18098
+ }
18099
+ }
18100
+ return null;
18101
+ };
18102
+
18103
+ /**
18104
+ * Creates a GetDataContractsRequest message from a plain object. Also converts values to their respective internal types.
18105
+ * @function fromObject
18106
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18107
+ * @static
18108
+ * @param {Object.<string,*>} object Plain object
18109
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest} GetDataContractsRequest
18110
+ */
18111
+ GetDataContractsRequest.fromObject = function fromObject(object) {
18112
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsRequest)
18113
+ return object;
18114
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest();
18115
+ if (object.v0 != null) {
18116
+ if (typeof object.v0 !== "object")
18117
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsRequest.v0: object expected");
18118
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.fromObject(object.v0);
18119
+ }
18120
+ return message;
18121
+ };
18122
+
18123
+ /**
18124
+ * Creates a plain object from a GetDataContractsRequest message. Also converts values to other types if specified.
18125
+ * @function toObject
18126
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18127
+ * @static
18128
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest} message GetDataContractsRequest
18129
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18130
+ * @returns {Object.<string,*>} Plain object
18131
+ */
18132
+ GetDataContractsRequest.toObject = function toObject(message, options) {
18133
+ if (!options)
18134
+ options = {};
18135
+ var object = {};
18136
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
18137
+ object.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.toObject(message.v0, options);
18138
+ if (options.oneofs)
18139
+ object.version = "v0";
18140
+ }
18141
+ return object;
18142
+ };
18143
+
18144
+ /**
18145
+ * Converts this GetDataContractsRequest to JSON.
18146
+ * @function toJSON
18147
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18148
+ * @instance
18149
+ * @returns {Object.<string,*>} JSON object
18150
+ */
18151
+ GetDataContractsRequest.prototype.toJSON = function toJSON() {
18152
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18153
+ };
18154
+
18155
+ GetDataContractsRequest.GetDataContractsRequestV0 = (function() {
18156
+
18157
+ /**
18158
+ * Properties of a GetDataContractsRequestV0.
18159
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18160
+ * @interface IGetDataContractsRequestV0
18161
+ * @property {Array.<Uint8Array>|null} [ids] GetDataContractsRequestV0 ids
18162
+ * @property {boolean|null} [prove] GetDataContractsRequestV0 prove
18163
+ */
18164
+
18165
+ /**
18166
+ * Constructs a new GetDataContractsRequestV0.
18167
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest
18168
+ * @classdesc Represents a GetDataContractsRequestV0.
18169
+ * @implements IGetDataContractsRequestV0
18170
+ * @constructor
18171
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0=} [properties] Properties to set
18172
+ */
18173
+ function GetDataContractsRequestV0(properties) {
18174
+ this.ids = [];
18175
+ if (properties)
18176
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18177
+ if (properties[keys[i]] != null)
18178
+ this[keys[i]] = properties[keys[i]];
18179
+ }
18180
+
18181
+ /**
18182
+ * GetDataContractsRequestV0 ids.
18183
+ * @member {Array.<Uint8Array>} ids
18184
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18185
+ * @instance
18186
+ */
18187
+ GetDataContractsRequestV0.prototype.ids = $util.emptyArray;
18188
+
18189
+ /**
18190
+ * GetDataContractsRequestV0 prove.
18191
+ * @member {boolean} prove
18192
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18193
+ * @instance
18194
+ */
18195
+ GetDataContractsRequestV0.prototype.prove = false;
18196
+
18197
+ /**
18198
+ * Creates a new GetDataContractsRequestV0 instance using the specified properties.
18199
+ * @function create
18200
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18201
+ * @static
18202
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0=} [properties] Properties to set
18203
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0 instance
18204
+ */
18205
+ GetDataContractsRequestV0.create = function create(properties) {
18206
+ return new GetDataContractsRequestV0(properties);
18207
+ };
18208
+
18209
+ /**
18210
+ * Encodes the specified GetDataContractsRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify|verify} messages.
18211
+ * @function encode
18212
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18213
+ * @static
18214
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0} message GetDataContractsRequestV0 message or plain object to encode
18215
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18216
+ * @returns {$protobuf.Writer} Writer
18217
+ */
18218
+ GetDataContractsRequestV0.encode = function encode(message, writer) {
18219
+ if (!writer)
18220
+ writer = $Writer.create();
18221
+ if (message.ids != null && message.ids.length)
18222
+ for (var i = 0; i < message.ids.length; ++i)
18223
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ids[i]);
18224
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
18225
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
18226
+ return writer;
18227
+ };
18228
+
18229
+ /**
18230
+ * Encodes the specified GetDataContractsRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.verify|verify} messages.
18231
+ * @function encodeDelimited
18232
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18233
+ * @static
18234
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.IGetDataContractsRequestV0} message GetDataContractsRequestV0 message or plain object to encode
18235
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18236
+ * @returns {$protobuf.Writer} Writer
18237
+ */
18238
+ GetDataContractsRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
18239
+ return this.encode(message, writer).ldelim();
18240
+ };
18241
+
18242
+ /**
18243
+ * Decodes a GetDataContractsRequestV0 message from the specified reader or buffer.
18244
+ * @function decode
18245
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18246
+ * @static
18247
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18248
+ * @param {number} [length] Message length if known beforehand
18249
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
18250
+ * @throws {Error} If the payload is not a reader or valid buffer
18251
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18252
+ */
18253
+ GetDataContractsRequestV0.decode = function decode(reader, length) {
18254
+ if (!(reader instanceof $Reader))
18255
+ reader = $Reader.create(reader);
18256
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0();
18257
+ while (reader.pos < end) {
18258
+ var tag = reader.uint32();
18259
+ switch (tag >>> 3) {
18260
+ case 1:
18261
+ if (!(message.ids && message.ids.length))
18262
+ message.ids = [];
18263
+ message.ids.push(reader.bytes());
18264
+ break;
18265
+ case 2:
18266
+ message.prove = reader.bool();
18267
+ break;
18268
+ default:
18269
+ reader.skipType(tag & 7);
18270
+ break;
18271
+ }
18272
+ }
18273
+ return message;
18274
+ };
18275
+
18276
+ /**
18277
+ * Decodes a GetDataContractsRequestV0 message from the specified reader or buffer, length delimited.
18278
+ * @function decodeDelimited
18279
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18280
+ * @static
18281
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18282
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
18283
+ * @throws {Error} If the payload is not a reader or valid buffer
18284
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18285
+ */
18286
+ GetDataContractsRequestV0.decodeDelimited = function decodeDelimited(reader) {
18287
+ if (!(reader instanceof $Reader))
18288
+ reader = new $Reader(reader);
18289
+ return this.decode(reader, reader.uint32());
18290
+ };
18291
+
18292
+ /**
18293
+ * Verifies a GetDataContractsRequestV0 message.
18294
+ * @function verify
18295
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18296
+ * @static
18297
+ * @param {Object.<string,*>} message Plain object to verify
18298
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18299
+ */
18300
+ GetDataContractsRequestV0.verify = function verify(message) {
18301
+ if (typeof message !== "object" || message === null)
18302
+ return "object expected";
18303
+ if (message.ids != null && message.hasOwnProperty("ids")) {
18304
+ if (!Array.isArray(message.ids))
18305
+ return "ids: array expected";
18306
+ for (var i = 0; i < message.ids.length; ++i)
18307
+ if (!(message.ids[i] && typeof message.ids[i].length === "number" || $util.isString(message.ids[i])))
18308
+ return "ids: buffer[] expected";
18309
+ }
18310
+ if (message.prove != null && message.hasOwnProperty("prove"))
18311
+ if (typeof message.prove !== "boolean")
18312
+ return "prove: boolean expected";
18313
+ return null;
18314
+ };
18315
+
18316
+ /**
18317
+ * Creates a GetDataContractsRequestV0 message from a plain object. Also converts values to their respective internal types.
18318
+ * @function fromObject
18319
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18320
+ * @static
18321
+ * @param {Object.<string,*>} object Plain object
18322
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} GetDataContractsRequestV0
18323
+ */
18324
+ GetDataContractsRequestV0.fromObject = function fromObject(object) {
18325
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0)
18326
+ return object;
18327
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0();
18328
+ if (object.ids) {
18329
+ if (!Array.isArray(object.ids))
18330
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0.ids: array expected");
18331
+ message.ids = [];
18332
+ for (var i = 0; i < object.ids.length; ++i)
18333
+ if (typeof object.ids[i] === "string")
18334
+ $util.base64.decode(object.ids[i], message.ids[i] = $util.newBuffer($util.base64.length(object.ids[i])), 0);
18335
+ else if (object.ids[i].length >= 0)
18336
+ message.ids[i] = object.ids[i];
18337
+ }
18338
+ if (object.prove != null)
18339
+ message.prove = Boolean(object.prove);
18340
+ return message;
18341
+ };
18342
+
18343
+ /**
18344
+ * Creates a plain object from a GetDataContractsRequestV0 message. Also converts values to other types if specified.
18345
+ * @function toObject
18346
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18347
+ * @static
18348
+ * @param {org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0} message GetDataContractsRequestV0
18349
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18350
+ * @returns {Object.<string,*>} Plain object
18351
+ */
18352
+ GetDataContractsRequestV0.toObject = function toObject(message, options) {
18353
+ if (!options)
18354
+ options = {};
18355
+ var object = {};
18356
+ if (options.arrays || options.defaults)
18357
+ object.ids = [];
18358
+ if (options.defaults)
18359
+ object.prove = false;
18360
+ if (message.ids && message.ids.length) {
18361
+ object.ids = [];
18362
+ for (var j = 0; j < message.ids.length; ++j)
18363
+ object.ids[j] = options.bytes === String ? $util.base64.encode(message.ids[j], 0, message.ids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.ids[j]) : message.ids[j];
18364
+ }
18365
+ if (message.prove != null && message.hasOwnProperty("prove"))
18366
+ object.prove = message.prove;
18367
+ return object;
18368
+ };
18369
+
18370
+ /**
18371
+ * Converts this GetDataContractsRequestV0 to JSON.
18372
+ * @function toJSON
18373
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0
18374
+ * @instance
18375
+ * @returns {Object.<string,*>} JSON object
18376
+ */
18377
+ GetDataContractsRequestV0.prototype.toJSON = function toJSON() {
18378
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18379
+ };
18380
+
18381
+ return GetDataContractsRequestV0;
18382
+ })();
18383
+
18384
+ return GetDataContractsRequest;
18385
+ })();
18386
+
18387
+ v0.GetDataContractsByRangeRequest = (function() {
18388
+
18389
+ /**
18390
+ * Properties of a GetDataContractsByRangeRequest.
18391
+ * @memberof org.dash.platform.dapi.v0
18392
+ * @interface IGetDataContractsByRangeRequest
18393
+ * @property {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0|null} [v0] GetDataContractsByRangeRequest v0
18394
+ */
18395
+
18396
+ /**
18397
+ * Constructs a new GetDataContractsByRangeRequest.
18398
+ * @memberof org.dash.platform.dapi.v0
18399
+ * @classdesc Represents a GetDataContractsByRangeRequest.
18400
+ * @implements IGetDataContractsByRangeRequest
18401
+ * @constructor
18402
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest=} [properties] Properties to set
18403
+ */
18404
+ function GetDataContractsByRangeRequest(properties) {
18405
+ if (properties)
18406
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18407
+ if (properties[keys[i]] != null)
18408
+ this[keys[i]] = properties[keys[i]];
18409
+ }
18410
+
18411
+ /**
18412
+ * GetDataContractsByRangeRequest v0.
18413
+ * @member {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0|null|undefined} v0
18414
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18415
+ * @instance
18416
+ */
18417
+ GetDataContractsByRangeRequest.prototype.v0 = null;
18418
+
18419
+ // OneOf field names bound to virtual getters and setters
18420
+ var $oneOfFields;
18421
+
18422
+ /**
18423
+ * GetDataContractsByRangeRequest version.
18424
+ * @member {"v0"|undefined} version
18425
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18426
+ * @instance
18427
+ */
18428
+ Object.defineProperty(GetDataContractsByRangeRequest.prototype, "version", {
18429
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
18430
+ set: $util.oneOfSetter($oneOfFields)
18431
+ });
18432
+
18433
+ /**
18434
+ * Creates a new GetDataContractsByRangeRequest instance using the specified properties.
18435
+ * @function create
18436
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18437
+ * @static
18438
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest=} [properties] Properties to set
18439
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest} GetDataContractsByRangeRequest instance
18440
+ */
18441
+ GetDataContractsByRangeRequest.create = function create(properties) {
18442
+ return new GetDataContractsByRangeRequest(properties);
18443
+ };
18444
+
18445
+ /**
18446
+ * Encodes the specified GetDataContractsByRangeRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.verify|verify} messages.
18447
+ * @function encode
18448
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18449
+ * @static
18450
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest} message GetDataContractsByRangeRequest message or plain object to encode
18451
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18452
+ * @returns {$protobuf.Writer} Writer
18453
+ */
18454
+ GetDataContractsByRangeRequest.encode = function encode(message, writer) {
18455
+ if (!writer)
18456
+ writer = $Writer.create();
18457
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
18458
+ $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18459
+ return writer;
18460
+ };
18461
+
18462
+ /**
18463
+ * Encodes the specified GetDataContractsByRangeRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.verify|verify} messages.
18464
+ * @function encodeDelimited
18465
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18466
+ * @static
18467
+ * @param {org.dash.platform.dapi.v0.IGetDataContractsByRangeRequest} message GetDataContractsByRangeRequest message or plain object to encode
18468
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18469
+ * @returns {$protobuf.Writer} Writer
18470
+ */
18471
+ GetDataContractsByRangeRequest.encodeDelimited = function encodeDelimited(message, writer) {
18472
+ return this.encode(message, writer).ldelim();
18473
+ };
18474
+
18475
+ /**
18476
+ * Decodes a GetDataContractsByRangeRequest message from the specified reader or buffer.
18477
+ * @function decode
18478
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18479
+ * @static
18480
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18481
+ * @param {number} [length] Message length if known beforehand
18482
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest} GetDataContractsByRangeRequest
18483
+ * @throws {Error} If the payload is not a reader or valid buffer
18484
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18485
+ */
18486
+ GetDataContractsByRangeRequest.decode = function decode(reader, length) {
18487
+ if (!(reader instanceof $Reader))
18488
+ reader = $Reader.create(reader);
18489
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest();
18490
+ while (reader.pos < end) {
18491
+ var tag = reader.uint32();
18492
+ switch (tag >>> 3) {
18493
+ case 1:
18494
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.decode(reader, reader.uint32());
18495
+ break;
18496
+ default:
18497
+ reader.skipType(tag & 7);
18498
+ break;
18499
+ }
18500
+ }
18501
+ return message;
18502
+ };
18503
+
18504
+ /**
18505
+ * Decodes a GetDataContractsByRangeRequest message from the specified reader or buffer, length delimited.
18506
+ * @function decodeDelimited
18507
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18508
+ * @static
18509
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18510
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest} GetDataContractsByRangeRequest
18511
+ * @throws {Error} If the payload is not a reader or valid buffer
18512
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18513
+ */
18514
+ GetDataContractsByRangeRequest.decodeDelimited = function decodeDelimited(reader) {
18515
+ if (!(reader instanceof $Reader))
18516
+ reader = new $Reader(reader);
18517
+ return this.decode(reader, reader.uint32());
18518
+ };
18519
+
18520
+ /**
18521
+ * Verifies a GetDataContractsByRangeRequest message.
18522
+ * @function verify
18523
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18524
+ * @static
18525
+ * @param {Object.<string,*>} message Plain object to verify
18526
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18527
+ */
18528
+ GetDataContractsByRangeRequest.verify = function verify(message) {
18529
+ if (typeof message !== "object" || message === null)
18530
+ return "object expected";
18531
+ var properties = {};
18532
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
18533
+ properties.version = 1;
18534
+ {
18535
+ var error = $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.verify(message.v0);
18536
+ if (error)
18537
+ return "v0." + error;
18538
+ }
18539
+ }
18540
+ return null;
18541
+ };
18542
+
18543
+ /**
18544
+ * Creates a GetDataContractsByRangeRequest message from a plain object. Also converts values to their respective internal types.
18545
+ * @function fromObject
18546
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18547
+ * @static
18548
+ * @param {Object.<string,*>} object Plain object
18549
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest} GetDataContractsByRangeRequest
18550
+ */
18551
+ GetDataContractsByRangeRequest.fromObject = function fromObject(object) {
18552
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest)
18553
+ return object;
18554
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest();
18555
+ if (object.v0 != null) {
18556
+ if (typeof object.v0 !== "object")
18557
+ throw TypeError(".org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.v0: object expected");
18558
+ message.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.fromObject(object.v0);
18559
+ }
18560
+ return message;
18561
+ };
18562
+
18563
+ /**
18564
+ * Creates a plain object from a GetDataContractsByRangeRequest message. Also converts values to other types if specified.
18565
+ * @function toObject
18566
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18567
+ * @static
18568
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest} message GetDataContractsByRangeRequest
18569
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18570
+ * @returns {Object.<string,*>} Plain object
18571
+ */
18572
+ GetDataContractsByRangeRequest.toObject = function toObject(message, options) {
18573
+ if (!options)
18574
+ options = {};
18575
+ var object = {};
18576
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
18577
+ object.v0 = $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.toObject(message.v0, options);
18578
+ if (options.oneofs)
18579
+ object.version = "v0";
18580
+ }
18581
+ return object;
18582
+ };
18583
+
18584
+ /**
18585
+ * Converts this GetDataContractsByRangeRequest to JSON.
18586
+ * @function toJSON
18587
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18588
+ * @instance
18589
+ * @returns {Object.<string,*>} JSON object
18590
+ */
18591
+ GetDataContractsByRangeRequest.prototype.toJSON = function toJSON() {
18592
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18593
+ };
18594
+
18595
+ GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0 = (function() {
18596
+
18597
+ /**
18598
+ * Properties of a GetDataContractsByRangeRequestV0.
18599
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18600
+ * @interface IGetDataContractsByRangeRequestV0
18601
+ * @property {number|null} [limit] GetDataContractsByRangeRequestV0 limit
18602
+ * @property {Uint8Array|null} [startAfter] GetDataContractsByRangeRequestV0 startAfter
18603
+ * @property {Uint8Array|null} [startAt] GetDataContractsByRangeRequestV0 startAt
18604
+ * @property {boolean|null} [idsOnly] GetDataContractsByRangeRequestV0 idsOnly
18605
+ * @property {boolean|null} [prove] GetDataContractsByRangeRequestV0 prove
18606
+ */
18607
+
18608
+ /**
18609
+ * Constructs a new GetDataContractsByRangeRequestV0.
18610
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest
18611
+ * @classdesc Represents a GetDataContractsByRangeRequestV0.
18612
+ * @implements IGetDataContractsByRangeRequestV0
18613
+ * @constructor
18614
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0=} [properties] Properties to set
18615
+ */
18616
+ function GetDataContractsByRangeRequestV0(properties) {
18617
+ if (properties)
18618
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18619
+ if (properties[keys[i]] != null)
18620
+ this[keys[i]] = properties[keys[i]];
18621
+ }
18622
+
18623
+ /**
18624
+ * GetDataContractsByRangeRequestV0 limit.
18625
+ * @member {number} limit
18626
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18627
+ * @instance
18628
+ */
18629
+ GetDataContractsByRangeRequestV0.prototype.limit = 0;
18630
+
18631
+ /**
18632
+ * GetDataContractsByRangeRequestV0 startAfter.
18633
+ * @member {Uint8Array} startAfter
18634
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18635
+ * @instance
18636
+ */
18637
+ GetDataContractsByRangeRequestV0.prototype.startAfter = $util.newBuffer([]);
18638
+
18639
+ /**
18640
+ * GetDataContractsByRangeRequestV0 startAt.
18641
+ * @member {Uint8Array} startAt
18642
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18643
+ * @instance
18644
+ */
18645
+ GetDataContractsByRangeRequestV0.prototype.startAt = $util.newBuffer([]);
18646
+
18647
+ /**
18648
+ * GetDataContractsByRangeRequestV0 idsOnly.
18649
+ * @member {boolean} idsOnly
18650
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18651
+ * @instance
18652
+ */
18653
+ GetDataContractsByRangeRequestV0.prototype.idsOnly = false;
18654
+
18655
+ /**
18656
+ * GetDataContractsByRangeRequestV0 prove.
18657
+ * @member {boolean} prove
18658
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18659
+ * @instance
18660
+ */
18661
+ GetDataContractsByRangeRequestV0.prototype.prove = false;
18662
+
18663
+ // OneOf field names bound to virtual getters and setters
18664
+ var $oneOfFields;
18665
+
18666
+ /**
18667
+ * GetDataContractsByRangeRequestV0 start.
18668
+ * @member {"startAfter"|"startAt"|undefined} start
18669
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18670
+ * @instance
18671
+ */
18672
+ Object.defineProperty(GetDataContractsByRangeRequestV0.prototype, "start", {
18673
+ get: $util.oneOfGetter($oneOfFields = ["startAfter", "startAt"]),
18674
+ set: $util.oneOfSetter($oneOfFields)
18675
+ });
18676
+
18677
+ /**
18678
+ * Creates a new GetDataContractsByRangeRequestV0 instance using the specified properties.
18679
+ * @function create
18680
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18681
+ * @static
18682
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0=} [properties] Properties to set
18683
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0} GetDataContractsByRangeRequestV0 instance
18684
+ */
18685
+ GetDataContractsByRangeRequestV0.create = function create(properties) {
18686
+ return new GetDataContractsByRangeRequestV0(properties);
18687
+ };
18688
+
18689
+ /**
18690
+ * Encodes the specified GetDataContractsByRangeRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.verify|verify} messages.
18691
+ * @function encode
18692
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18693
+ * @static
18694
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0} message GetDataContractsByRangeRequestV0 message or plain object to encode
18695
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18696
+ * @returns {$protobuf.Writer} Writer
18697
+ */
18698
+ GetDataContractsByRangeRequestV0.encode = function encode(message, writer) {
18699
+ if (!writer)
18700
+ writer = $Writer.create();
18701
+ if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
18702
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.limit);
18703
+ if (message.startAfter != null && Object.hasOwnProperty.call(message, "startAfter"))
18704
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startAfter);
18705
+ if (message.startAt != null && Object.hasOwnProperty.call(message, "startAt"))
18706
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.startAt);
18707
+ if (message.idsOnly != null && Object.hasOwnProperty.call(message, "idsOnly"))
18708
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.idsOnly);
18709
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
18710
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
18711
+ return writer;
18712
+ };
18713
+
18714
+ /**
18715
+ * Encodes the specified GetDataContractsByRangeRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0.verify|verify} messages.
18716
+ * @function encodeDelimited
18717
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18718
+ * @static
18719
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.IGetDataContractsByRangeRequestV0} message GetDataContractsByRangeRequestV0 message or plain object to encode
18720
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18721
+ * @returns {$protobuf.Writer} Writer
18722
+ */
18723
+ GetDataContractsByRangeRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
18724
+ return this.encode(message, writer).ldelim();
18725
+ };
18726
+
18727
+ /**
18728
+ * Decodes a GetDataContractsByRangeRequestV0 message from the specified reader or buffer.
18729
+ * @function decode
18730
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18731
+ * @static
18732
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18733
+ * @param {number} [length] Message length if known beforehand
18734
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0} GetDataContractsByRangeRequestV0
18735
+ * @throws {Error} If the payload is not a reader or valid buffer
18736
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18737
+ */
18738
+ GetDataContractsByRangeRequestV0.decode = function decode(reader, length) {
18739
+ if (!(reader instanceof $Reader))
18740
+ reader = $Reader.create(reader);
18741
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0();
18742
+ while (reader.pos < end) {
18743
+ var tag = reader.uint32();
18744
+ switch (tag >>> 3) {
18745
+ case 1:
18746
+ message.limit = reader.uint32();
18747
+ break;
18748
+ case 2:
18749
+ message.startAfter = reader.bytes();
18750
+ break;
18751
+ case 3:
18752
+ message.startAt = reader.bytes();
18753
+ break;
18754
+ case 4:
18755
+ message.idsOnly = reader.bool();
18756
+ break;
18757
+ case 5:
18758
+ message.prove = reader.bool();
18759
+ break;
18760
+ default:
18761
+ reader.skipType(tag & 7);
18762
+ break;
18763
+ }
18764
+ }
18765
+ return message;
18766
+ };
18767
+
18768
+ /**
18769
+ * Decodes a GetDataContractsByRangeRequestV0 message from the specified reader or buffer, length delimited.
18770
+ * @function decodeDelimited
18771
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18772
+ * @static
18773
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18774
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0} GetDataContractsByRangeRequestV0
18775
+ * @throws {Error} If the payload is not a reader or valid buffer
18776
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18777
+ */
18778
+ GetDataContractsByRangeRequestV0.decodeDelimited = function decodeDelimited(reader) {
18779
+ if (!(reader instanceof $Reader))
18780
+ reader = new $Reader(reader);
18781
+ return this.decode(reader, reader.uint32());
18782
+ };
18783
+
18784
+ /**
18785
+ * Verifies a GetDataContractsByRangeRequestV0 message.
18786
+ * @function verify
18787
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18788
+ * @static
18789
+ * @param {Object.<string,*>} message Plain object to verify
18790
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18791
+ */
18792
+ GetDataContractsByRangeRequestV0.verify = function verify(message) {
18793
+ if (typeof message !== "object" || message === null)
18794
+ return "object expected";
18795
+ var properties = {};
18796
+ if (message.limit != null && message.hasOwnProperty("limit"))
18797
+ if (!$util.isInteger(message.limit))
18798
+ return "limit: integer expected";
18799
+ if (message.startAfter != null && message.hasOwnProperty("startAfter")) {
18800
+ properties.start = 1;
18801
+ if (!(message.startAfter && typeof message.startAfter.length === "number" || $util.isString(message.startAfter)))
18802
+ return "startAfter: buffer expected";
18803
+ }
18804
+ if (message.startAt != null && message.hasOwnProperty("startAt")) {
18805
+ if (properties.start === 1)
18806
+ return "start: multiple values";
18807
+ properties.start = 1;
18808
+ if (!(message.startAt && typeof message.startAt.length === "number" || $util.isString(message.startAt)))
18809
+ return "startAt: buffer expected";
18810
+ }
18811
+ if (message.idsOnly != null && message.hasOwnProperty("idsOnly"))
18812
+ if (typeof message.idsOnly !== "boolean")
18813
+ return "idsOnly: boolean expected";
18814
+ if (message.prove != null && message.hasOwnProperty("prove"))
18815
+ if (typeof message.prove !== "boolean")
18816
+ return "prove: boolean expected";
18817
+ return null;
18818
+ };
18819
+
18820
+ /**
18821
+ * Creates a GetDataContractsByRangeRequestV0 message from a plain object. Also converts values to their respective internal types.
18822
+ * @function fromObject
18823
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18824
+ * @static
18825
+ * @param {Object.<string,*>} object Plain object
18826
+ * @returns {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0} GetDataContractsByRangeRequestV0
18827
+ */
18828
+ GetDataContractsByRangeRequestV0.fromObject = function fromObject(object) {
18829
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0)
18830
+ return object;
18831
+ var message = new $root.org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0();
18832
+ if (object.limit != null)
18833
+ message.limit = object.limit >>> 0;
18834
+ if (object.startAfter != null)
18835
+ if (typeof object.startAfter === "string")
18836
+ $util.base64.decode(object.startAfter, message.startAfter = $util.newBuffer($util.base64.length(object.startAfter)), 0);
18837
+ else if (object.startAfter.length >= 0)
18838
+ message.startAfter = object.startAfter;
18839
+ if (object.startAt != null)
18840
+ if (typeof object.startAt === "string")
18841
+ $util.base64.decode(object.startAt, message.startAt = $util.newBuffer($util.base64.length(object.startAt)), 0);
18842
+ else if (object.startAt.length >= 0)
18843
+ message.startAt = object.startAt;
18844
+ if (object.idsOnly != null)
18845
+ message.idsOnly = Boolean(object.idsOnly);
18846
+ if (object.prove != null)
18847
+ message.prove = Boolean(object.prove);
18848
+ return message;
18849
+ };
18850
+
18851
+ /**
18852
+ * Creates a plain object from a GetDataContractsByRangeRequestV0 message. Also converts values to other types if specified.
18853
+ * @function toObject
18854
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18855
+ * @static
18856
+ * @param {org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0} message GetDataContractsByRangeRequestV0
18857
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18858
+ * @returns {Object.<string,*>} Plain object
18859
+ */
18860
+ GetDataContractsByRangeRequestV0.toObject = function toObject(message, options) {
18861
+ if (!options)
18862
+ options = {};
18863
+ var object = {};
18864
+ if (options.defaults) {
18865
+ object.limit = 0;
18866
+ object.idsOnly = false;
18867
+ object.prove = false;
18868
+ }
18869
+ if (message.limit != null && message.hasOwnProperty("limit"))
18870
+ object.limit = message.limit;
18871
+ if (message.startAfter != null && message.hasOwnProperty("startAfter")) {
18872
+ object.startAfter = options.bytes === String ? $util.base64.encode(message.startAfter, 0, message.startAfter.length) : options.bytes === Array ? Array.prototype.slice.call(message.startAfter) : message.startAfter;
18873
+ if (options.oneofs)
18874
+ object.start = "startAfter";
18875
+ }
18876
+ if (message.startAt != null && message.hasOwnProperty("startAt")) {
18877
+ object.startAt = options.bytes === String ? $util.base64.encode(message.startAt, 0, message.startAt.length) : options.bytes === Array ? Array.prototype.slice.call(message.startAt) : message.startAt;
18878
+ if (options.oneofs)
18879
+ object.start = "startAt";
18880
+ }
18881
+ if (message.idsOnly != null && message.hasOwnProperty("idsOnly"))
18882
+ object.idsOnly = message.idsOnly;
18883
+ if (message.prove != null && message.hasOwnProperty("prove"))
18884
+ object.prove = message.prove;
18885
+ return object;
18886
+ };
18887
+
18888
+ /**
18889
+ * Converts this GetDataContractsByRangeRequestV0 to JSON.
18890
+ * @function toJSON
18891
+ * @memberof org.dash.platform.dapi.v0.GetDataContractsByRangeRequest.GetDataContractsByRangeRequestV0
18892
+ * @instance
18893
+ * @returns {Object.<string,*>} JSON object
18894
+ */
18895
+ GetDataContractsByRangeRequestV0.prototype.toJSON = function toJSON() {
18896
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18897
+ };
18898
+
18899
+ return GetDataContractsByRangeRequestV0;
18900
+ })();
18901
+
18902
+ return GetDataContractsByRangeRequest;
16914
18903
  })();
16915
18904
 
16916
18905
  v0.GetDataContractsResponse = (function() {