@dashevo/dapi-grpc 1.1.0 → 1.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -227,6 +227,22 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVote
227
227
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignal', null, { proto });
228
228
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignals', null, { proto });
229
229
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.VersionCase', null, { proto });
230
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusRequest', null, { proto });
231
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0', null, { proto });
232
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusRequest.VersionCase', null, { proto });
233
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse', null, { proto });
234
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0', null, { proto });
235
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain', null, { proto });
236
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network', null, { proto });
237
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node', null, { proto });
238
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync', null, { proto });
239
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time', null, { proto });
240
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version', null, { proto });
241
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol', null, { proto });
242
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive', null, { proto });
243
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash', null, { proto });
244
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software', null, { proto });
245
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.VersionCase', null, { proto });
230
246
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest', null, { proto });
231
247
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0', null, { proto });
232
248
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.VersionCase', null, { proto });
@@ -3496,6 +3512,300 @@ if (goog.DEBUG && !COMPILED) {
3496
3512
  */
3497
3513
  proto.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0.Elements.displayName = 'proto.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0.Elements';
3498
3514
  }
3515
+ /**
3516
+ * Generated by JsPbCodeGenerator.
3517
+ * @param {Array=} opt_data Optional initial data array, typically from a
3518
+ * server response, or constructed directly in Javascript. The array is used
3519
+ * in place and becomes part of the constructed object. It is not cloned.
3520
+ * If no data is provided, the constructed object will be empty, but still
3521
+ * valid.
3522
+ * @extends {jspb.Message}
3523
+ * @constructor
3524
+ */
3525
+ proto.org.dash.platform.dapi.v0.GetStatusRequest = function(opt_data) {
3526
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetStatusRequest.oneofGroups_);
3527
+ };
3528
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusRequest, jspb.Message);
3529
+ if (goog.DEBUG && !COMPILED) {
3530
+ /**
3531
+ * @public
3532
+ * @override
3533
+ */
3534
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusRequest';
3535
+ }
3536
+ /**
3537
+ * Generated by JsPbCodeGenerator.
3538
+ * @param {Array=} opt_data Optional initial data array, typically from a
3539
+ * server response, or constructed directly in Javascript. The array is used
3540
+ * in place and becomes part of the constructed object. It is not cloned.
3541
+ * If no data is provided, the constructed object will be empty, but still
3542
+ * valid.
3543
+ * @extends {jspb.Message}
3544
+ * @constructor
3545
+ */
3546
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0 = function(opt_data) {
3547
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3548
+ };
3549
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0, jspb.Message);
3550
+ if (goog.DEBUG && !COMPILED) {
3551
+ /**
3552
+ * @public
3553
+ * @override
3554
+ */
3555
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0';
3556
+ }
3557
+ /**
3558
+ * Generated by JsPbCodeGenerator.
3559
+ * @param {Array=} opt_data Optional initial data array, typically from a
3560
+ * server response, or constructed directly in Javascript. The array is used
3561
+ * in place and becomes part of the constructed object. It is not cloned.
3562
+ * If no data is provided, the constructed object will be empty, but still
3563
+ * valid.
3564
+ * @extends {jspb.Message}
3565
+ * @constructor
3566
+ */
3567
+ proto.org.dash.platform.dapi.v0.GetStatusResponse = function(opt_data) {
3568
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetStatusResponse.oneofGroups_);
3569
+ };
3570
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse, jspb.Message);
3571
+ if (goog.DEBUG && !COMPILED) {
3572
+ /**
3573
+ * @public
3574
+ * @override
3575
+ */
3576
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse';
3577
+ }
3578
+ /**
3579
+ * Generated by JsPbCodeGenerator.
3580
+ * @param {Array=} opt_data Optional initial data array, typically from a
3581
+ * server response, or constructed directly in Javascript. The array is used
3582
+ * in place and becomes part of the constructed object. It is not cloned.
3583
+ * If no data is provided, the constructed object will be empty, but still
3584
+ * valid.
3585
+ * @extends {jspb.Message}
3586
+ * @constructor
3587
+ */
3588
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0 = function(opt_data) {
3589
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3590
+ };
3591
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0, jspb.Message);
3592
+ if (goog.DEBUG && !COMPILED) {
3593
+ /**
3594
+ * @public
3595
+ * @override
3596
+ */
3597
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0';
3598
+ }
3599
+ /**
3600
+ * Generated by JsPbCodeGenerator.
3601
+ * @param {Array=} opt_data Optional initial data array, typically from a
3602
+ * server response, or constructed directly in Javascript. The array is used
3603
+ * in place and becomes part of the constructed object. It is not cloned.
3604
+ * If no data is provided, the constructed object will be empty, but still
3605
+ * valid.
3606
+ * @extends {jspb.Message}
3607
+ * @constructor
3608
+ */
3609
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version = function(opt_data) {
3610
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3611
+ };
3612
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version, jspb.Message);
3613
+ if (goog.DEBUG && !COMPILED) {
3614
+ /**
3615
+ * @public
3616
+ * @override
3617
+ */
3618
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version';
3619
+ }
3620
+ /**
3621
+ * Generated by JsPbCodeGenerator.
3622
+ * @param {Array=} opt_data Optional initial data array, typically from a
3623
+ * server response, or constructed directly in Javascript. The array is used
3624
+ * in place and becomes part of the constructed object. It is not cloned.
3625
+ * If no data is provided, the constructed object will be empty, but still
3626
+ * valid.
3627
+ * @extends {jspb.Message}
3628
+ * @constructor
3629
+ */
3630
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software = function(opt_data) {
3631
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3632
+ };
3633
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software, jspb.Message);
3634
+ if (goog.DEBUG && !COMPILED) {
3635
+ /**
3636
+ * @public
3637
+ * @override
3638
+ */
3639
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software';
3640
+ }
3641
+ /**
3642
+ * Generated by JsPbCodeGenerator.
3643
+ * @param {Array=} opt_data Optional initial data array, typically from a
3644
+ * server response, or constructed directly in Javascript. The array is used
3645
+ * in place and becomes part of the constructed object. It is not cloned.
3646
+ * If no data is provided, the constructed object will be empty, but still
3647
+ * valid.
3648
+ * @extends {jspb.Message}
3649
+ * @constructor
3650
+ */
3651
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol = function(opt_data) {
3652
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3653
+ };
3654
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol, jspb.Message);
3655
+ if (goog.DEBUG && !COMPILED) {
3656
+ /**
3657
+ * @public
3658
+ * @override
3659
+ */
3660
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol';
3661
+ }
3662
+ /**
3663
+ * Generated by JsPbCodeGenerator.
3664
+ * @param {Array=} opt_data Optional initial data array, typically from a
3665
+ * server response, or constructed directly in Javascript. The array is used
3666
+ * in place and becomes part of the constructed object. It is not cloned.
3667
+ * If no data is provided, the constructed object will be empty, but still
3668
+ * valid.
3669
+ * @extends {jspb.Message}
3670
+ * @constructor
3671
+ */
3672
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash = function(opt_data) {
3673
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3674
+ };
3675
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash, jspb.Message);
3676
+ if (goog.DEBUG && !COMPILED) {
3677
+ /**
3678
+ * @public
3679
+ * @override
3680
+ */
3681
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash';
3682
+ }
3683
+ /**
3684
+ * Generated by JsPbCodeGenerator.
3685
+ * @param {Array=} opt_data Optional initial data array, typically from a
3686
+ * server response, or constructed directly in Javascript. The array is used
3687
+ * in place and becomes part of the constructed object. It is not cloned.
3688
+ * If no data is provided, the constructed object will be empty, but still
3689
+ * valid.
3690
+ * @extends {jspb.Message}
3691
+ * @constructor
3692
+ */
3693
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive = function(opt_data) {
3694
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3695
+ };
3696
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive, jspb.Message);
3697
+ if (goog.DEBUG && !COMPILED) {
3698
+ /**
3699
+ * @public
3700
+ * @override
3701
+ */
3702
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive';
3703
+ }
3704
+ /**
3705
+ * Generated by JsPbCodeGenerator.
3706
+ * @param {Array=} opt_data Optional initial data array, typically from a
3707
+ * server response, or constructed directly in Javascript. The array is used
3708
+ * in place and becomes part of the constructed object. It is not cloned.
3709
+ * If no data is provided, the constructed object will be empty, but still
3710
+ * valid.
3711
+ * @extends {jspb.Message}
3712
+ * @constructor
3713
+ */
3714
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time = function(opt_data) {
3715
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3716
+ };
3717
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time, jspb.Message);
3718
+ if (goog.DEBUG && !COMPILED) {
3719
+ /**
3720
+ * @public
3721
+ * @override
3722
+ */
3723
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time';
3724
+ }
3725
+ /**
3726
+ * Generated by JsPbCodeGenerator.
3727
+ * @param {Array=} opt_data Optional initial data array, typically from a
3728
+ * server response, or constructed directly in Javascript. The array is used
3729
+ * in place and becomes part of the constructed object. It is not cloned.
3730
+ * If no data is provided, the constructed object will be empty, but still
3731
+ * valid.
3732
+ * @extends {jspb.Message}
3733
+ * @constructor
3734
+ */
3735
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node = function(opt_data) {
3736
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3737
+ };
3738
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node, jspb.Message);
3739
+ if (goog.DEBUG && !COMPILED) {
3740
+ /**
3741
+ * @public
3742
+ * @override
3743
+ */
3744
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node';
3745
+ }
3746
+ /**
3747
+ * Generated by JsPbCodeGenerator.
3748
+ * @param {Array=} opt_data Optional initial data array, typically from a
3749
+ * server response, or constructed directly in Javascript. The array is used
3750
+ * in place and becomes part of the constructed object. It is not cloned.
3751
+ * If no data is provided, the constructed object will be empty, but still
3752
+ * valid.
3753
+ * @extends {jspb.Message}
3754
+ * @constructor
3755
+ */
3756
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain = function(opt_data) {
3757
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3758
+ };
3759
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain, jspb.Message);
3760
+ if (goog.DEBUG && !COMPILED) {
3761
+ /**
3762
+ * @public
3763
+ * @override
3764
+ */
3765
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain';
3766
+ }
3767
+ /**
3768
+ * Generated by JsPbCodeGenerator.
3769
+ * @param {Array=} opt_data Optional initial data array, typically from a
3770
+ * server response, or constructed directly in Javascript. The array is used
3771
+ * in place and becomes part of the constructed object. It is not cloned.
3772
+ * If no data is provided, the constructed object will be empty, but still
3773
+ * valid.
3774
+ * @extends {jspb.Message}
3775
+ * @constructor
3776
+ */
3777
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network = function(opt_data) {
3778
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3779
+ };
3780
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network, jspb.Message);
3781
+ if (goog.DEBUG && !COMPILED) {
3782
+ /**
3783
+ * @public
3784
+ * @override
3785
+ */
3786
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network';
3787
+ }
3788
+ /**
3789
+ * Generated by JsPbCodeGenerator.
3790
+ * @param {Array=} opt_data Optional initial data array, typically from a
3791
+ * server response, or constructed directly in Javascript. The array is used
3792
+ * in place and becomes part of the constructed object. It is not cloned.
3793
+ * If no data is provided, the constructed object will be empty, but still
3794
+ * valid.
3795
+ * @extends {jspb.Message}
3796
+ * @constructor
3797
+ */
3798
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync = function(opt_data) {
3799
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3800
+ };
3801
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync, jspb.Message);
3802
+ if (goog.DEBUG && !COMPILED) {
3803
+ /**
3804
+ * @public
3805
+ * @override
3806
+ */
3807
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.displayName = 'proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync';
3808
+ }
3499
3809
 
3500
3810
 
3501
3811
 
@@ -37074,6 +37384,3329 @@ proto.org.dash.platform.dapi.v0.GetPathElementsResponse.prototype.hasV0 = functi
37074
37384
  };
37075
37385
 
37076
37386
 
37387
+
37388
+ /**
37389
+ * Oneof group definitions for this message. Each group defines the field
37390
+ * numbers belonging to that group. When of these fields' value is set, all
37391
+ * other fields in the group are cleared. During deserialization, if multiple
37392
+ * fields are encountered for a group, only the last value seen will be kept.
37393
+ * @private {!Array<!Array<number>>}
37394
+ * @const
37395
+ */
37396
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.oneofGroups_ = [[1]];
37397
+
37398
+ /**
37399
+ * @enum {number}
37400
+ */
37401
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.VersionCase = {
37402
+ VERSION_NOT_SET: 0,
37403
+ V0: 1
37404
+ };
37405
+
37406
+ /**
37407
+ * @return {proto.org.dash.platform.dapi.v0.GetStatusRequest.VersionCase}
37408
+ */
37409
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.getVersionCase = function() {
37410
+ return /** @type {proto.org.dash.platform.dapi.v0.GetStatusRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetStatusRequest.oneofGroups_[0]));
37411
+ };
37412
+
37413
+
37414
+
37415
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37416
+ /**
37417
+ * Creates an object representation of this proto.
37418
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37419
+ * Optional fields that are not set will be set to undefined.
37420
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37421
+ * For the list of reserved names please see:
37422
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37423
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37424
+ * JSPB instance for transitional soy proto support:
37425
+ * http://goto/soy-param-migration
37426
+ * @return {!Object}
37427
+ */
37428
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.toObject = function(opt_includeInstance) {
37429
+ return proto.org.dash.platform.dapi.v0.GetStatusRequest.toObject(opt_includeInstance, this);
37430
+ };
37431
+
37432
+
37433
+ /**
37434
+ * Static version of the {@see toObject} method.
37435
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37436
+ * the JSPB instance for transitional soy proto support:
37437
+ * http://goto/soy-param-migration
37438
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} msg The msg instance to transform.
37439
+ * @return {!Object}
37440
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37441
+ */
37442
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.toObject = function(includeInstance, msg) {
37443
+ var f, obj = {
37444
+ v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.toObject(includeInstance, f)
37445
+ };
37446
+
37447
+ if (includeInstance) {
37448
+ obj.$jspbMessageInstance = msg;
37449
+ }
37450
+ return obj;
37451
+ };
37452
+ }
37453
+
37454
+
37455
+ /**
37456
+ * Deserializes binary data (in protobuf wire format).
37457
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37458
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest}
37459
+ */
37460
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.deserializeBinary = function(bytes) {
37461
+ var reader = new jspb.BinaryReader(bytes);
37462
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusRequest;
37463
+ return proto.org.dash.platform.dapi.v0.GetStatusRequest.deserializeBinaryFromReader(msg, reader);
37464
+ };
37465
+
37466
+
37467
+ /**
37468
+ * Deserializes binary data (in protobuf wire format) from the
37469
+ * given reader into the given message object.
37470
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} msg The message object to deserialize into.
37471
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37472
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest}
37473
+ */
37474
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
37475
+ while (reader.nextField()) {
37476
+ if (reader.isEndGroup()) {
37477
+ break;
37478
+ }
37479
+ var field = reader.getFieldNumber();
37480
+ switch (field) {
37481
+ case 1:
37482
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0;
37483
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.deserializeBinaryFromReader);
37484
+ msg.setV0(value);
37485
+ break;
37486
+ default:
37487
+ reader.skipField();
37488
+ break;
37489
+ }
37490
+ }
37491
+ return msg;
37492
+ };
37493
+
37494
+
37495
+ /**
37496
+ * Serializes the message to binary data (in protobuf wire format).
37497
+ * @return {!Uint8Array}
37498
+ */
37499
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.serializeBinary = function() {
37500
+ var writer = new jspb.BinaryWriter();
37501
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.serializeBinaryToWriter(this, writer);
37502
+ return writer.getResultBuffer();
37503
+ };
37504
+
37505
+
37506
+ /**
37507
+ * Serializes the given message to binary data (in protobuf wire
37508
+ * format), writing to the given BinaryWriter.
37509
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} message
37510
+ * @param {!jspb.BinaryWriter} writer
37511
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37512
+ */
37513
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.serializeBinaryToWriter = function(message, writer) {
37514
+ var f = undefined;
37515
+ f = message.getV0();
37516
+ if (f != null) {
37517
+ writer.writeMessage(
37518
+ 1,
37519
+ f,
37520
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.serializeBinaryToWriter
37521
+ );
37522
+ }
37523
+ };
37524
+
37525
+
37526
+
37527
+
37528
+
37529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37530
+ /**
37531
+ * Creates an object representation of this proto.
37532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37533
+ * Optional fields that are not set will be set to undefined.
37534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37535
+ * For the list of reserved names please see:
37536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37538
+ * JSPB instance for transitional soy proto support:
37539
+ * http://goto/soy-param-migration
37540
+ * @return {!Object}
37541
+ */
37542
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.prototype.toObject = function(opt_includeInstance) {
37543
+ return proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.toObject(opt_includeInstance, this);
37544
+ };
37545
+
37546
+
37547
+ /**
37548
+ * Static version of the {@see toObject} method.
37549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37550
+ * the JSPB instance for transitional soy proto support:
37551
+ * http://goto/soy-param-migration
37552
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0} msg The msg instance to transform.
37553
+ * @return {!Object}
37554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37555
+ */
37556
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.toObject = function(includeInstance, msg) {
37557
+ var f, obj = {
37558
+
37559
+ };
37560
+
37561
+ if (includeInstance) {
37562
+ obj.$jspbMessageInstance = msg;
37563
+ }
37564
+ return obj;
37565
+ };
37566
+ }
37567
+
37568
+
37569
+ /**
37570
+ * Deserializes binary data (in protobuf wire format).
37571
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37572
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0}
37573
+ */
37574
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.deserializeBinary = function(bytes) {
37575
+ var reader = new jspb.BinaryReader(bytes);
37576
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0;
37577
+ return proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.deserializeBinaryFromReader(msg, reader);
37578
+ };
37579
+
37580
+
37581
+ /**
37582
+ * Deserializes binary data (in protobuf wire format) from the
37583
+ * given reader into the given message object.
37584
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0} msg The message object to deserialize into.
37585
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37586
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0}
37587
+ */
37588
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.deserializeBinaryFromReader = function(msg, reader) {
37589
+ while (reader.nextField()) {
37590
+ if (reader.isEndGroup()) {
37591
+ break;
37592
+ }
37593
+ var field = reader.getFieldNumber();
37594
+ switch (field) {
37595
+ default:
37596
+ reader.skipField();
37597
+ break;
37598
+ }
37599
+ }
37600
+ return msg;
37601
+ };
37602
+
37603
+
37604
+ /**
37605
+ * Serializes the message to binary data (in protobuf wire format).
37606
+ * @return {!Uint8Array}
37607
+ */
37608
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.prototype.serializeBinary = function() {
37609
+ var writer = new jspb.BinaryWriter();
37610
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.serializeBinaryToWriter(this, writer);
37611
+ return writer.getResultBuffer();
37612
+ };
37613
+
37614
+
37615
+ /**
37616
+ * Serializes the given message to binary data (in protobuf wire
37617
+ * format), writing to the given BinaryWriter.
37618
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0} message
37619
+ * @param {!jspb.BinaryWriter} writer
37620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37621
+ */
37622
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0.serializeBinaryToWriter = function(message, writer) {
37623
+ var f = undefined;
37624
+ };
37625
+
37626
+
37627
+ /**
37628
+ * optional GetStatusRequestV0 v0 = 1;
37629
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0}
37630
+ */
37631
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.getV0 = function() {
37632
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0} */ (
37633
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0, 1));
37634
+ };
37635
+
37636
+
37637
+ /**
37638
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0|undefined} value
37639
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest} returns this
37640
+ */
37641
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.setV0 = function(value) {
37642
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetStatusRequest.oneofGroups_[0], value);
37643
+ };
37644
+
37645
+
37646
+ /**
37647
+ * Clears the message field making it undefined.
37648
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusRequest} returns this
37649
+ */
37650
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.clearV0 = function() {
37651
+ return this.setV0(undefined);
37652
+ };
37653
+
37654
+
37655
+ /**
37656
+ * Returns whether this field is set.
37657
+ * @return {boolean}
37658
+ */
37659
+ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.hasV0 = function() {
37660
+ return jspb.Message.getField(this, 1) != null;
37661
+ };
37662
+
37663
+
37664
+
37665
+ /**
37666
+ * Oneof group definitions for this message. Each group defines the field
37667
+ * numbers belonging to that group. When of these fields' value is set, all
37668
+ * other fields in the group are cleared. During deserialization, if multiple
37669
+ * fields are encountered for a group, only the last value seen will be kept.
37670
+ * @private {!Array<!Array<number>>}
37671
+ * @const
37672
+ */
37673
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.oneofGroups_ = [[1]];
37674
+
37675
+ /**
37676
+ * @enum {number}
37677
+ */
37678
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.VersionCase = {
37679
+ VERSION_NOT_SET: 0,
37680
+ V0: 1
37681
+ };
37682
+
37683
+ /**
37684
+ * @return {proto.org.dash.platform.dapi.v0.GetStatusResponse.VersionCase}
37685
+ */
37686
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.getVersionCase = function() {
37687
+ return /** @type {proto.org.dash.platform.dapi.v0.GetStatusResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.oneofGroups_[0]));
37688
+ };
37689
+
37690
+
37691
+
37692
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37693
+ /**
37694
+ * Creates an object representation of this proto.
37695
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37696
+ * Optional fields that are not set will be set to undefined.
37697
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37698
+ * For the list of reserved names please see:
37699
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37700
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37701
+ * JSPB instance for transitional soy proto support:
37702
+ * http://goto/soy-param-migration
37703
+ * @return {!Object}
37704
+ */
37705
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.toObject = function(opt_includeInstance) {
37706
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.toObject(opt_includeInstance, this);
37707
+ };
37708
+
37709
+
37710
+ /**
37711
+ * Static version of the {@see toObject} method.
37712
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37713
+ * the JSPB instance for transitional soy proto support:
37714
+ * http://goto/soy-param-migration
37715
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse} msg The msg instance to transform.
37716
+ * @return {!Object}
37717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37718
+ */
37719
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.toObject = function(includeInstance, msg) {
37720
+ var f, obj = {
37721
+ v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.toObject(includeInstance, f)
37722
+ };
37723
+
37724
+ if (includeInstance) {
37725
+ obj.$jspbMessageInstance = msg;
37726
+ }
37727
+ return obj;
37728
+ };
37729
+ }
37730
+
37731
+
37732
+ /**
37733
+ * Deserializes binary data (in protobuf wire format).
37734
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37735
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse}
37736
+ */
37737
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinary = function(bytes) {
37738
+ var reader = new jspb.BinaryReader(bytes);
37739
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse;
37740
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader(msg, reader);
37741
+ };
37742
+
37743
+
37744
+ /**
37745
+ * Deserializes binary data (in protobuf wire format) from the
37746
+ * given reader into the given message object.
37747
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse} msg The message object to deserialize into.
37748
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37749
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse}
37750
+ */
37751
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
37752
+ while (reader.nextField()) {
37753
+ if (reader.isEndGroup()) {
37754
+ break;
37755
+ }
37756
+ var field = reader.getFieldNumber();
37757
+ switch (field) {
37758
+ case 1:
37759
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0;
37760
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.deserializeBinaryFromReader);
37761
+ msg.setV0(value);
37762
+ break;
37763
+ default:
37764
+ reader.skipField();
37765
+ break;
37766
+ }
37767
+ }
37768
+ return msg;
37769
+ };
37770
+
37771
+
37772
+ /**
37773
+ * Serializes the message to binary data (in protobuf wire format).
37774
+ * @return {!Uint8Array}
37775
+ */
37776
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.serializeBinary = function() {
37777
+ var writer = new jspb.BinaryWriter();
37778
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter(this, writer);
37779
+ return writer.getResultBuffer();
37780
+ };
37781
+
37782
+
37783
+ /**
37784
+ * Serializes the given message to binary data (in protobuf wire
37785
+ * format), writing to the given BinaryWriter.
37786
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse} message
37787
+ * @param {!jspb.BinaryWriter} writer
37788
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37789
+ */
37790
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = function(message, writer) {
37791
+ var f = undefined;
37792
+ f = message.getV0();
37793
+ if (f != null) {
37794
+ writer.writeMessage(
37795
+ 1,
37796
+ f,
37797
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.serializeBinaryToWriter
37798
+ );
37799
+ }
37800
+ };
37801
+
37802
+
37803
+
37804
+
37805
+
37806
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37807
+ /**
37808
+ * Creates an object representation of this proto.
37809
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37810
+ * Optional fields that are not set will be set to undefined.
37811
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37812
+ * For the list of reserved names please see:
37813
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37814
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37815
+ * JSPB instance for transitional soy proto support:
37816
+ * http://goto/soy-param-migration
37817
+ * @return {!Object}
37818
+ */
37819
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.toObject = function(opt_includeInstance) {
37820
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.toObject(opt_includeInstance, this);
37821
+ };
37822
+
37823
+
37824
+ /**
37825
+ * Static version of the {@see toObject} method.
37826
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37827
+ * the JSPB instance for transitional soy proto support:
37828
+ * http://goto/soy-param-migration
37829
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} msg The msg instance to transform.
37830
+ * @return {!Object}
37831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37832
+ */
37833
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.toObject = function(includeInstance, msg) {
37834
+ var f, obj = {
37835
+ version: (f = msg.getVersion()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.toObject(includeInstance, f),
37836
+ node: (f = msg.getNode()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.toObject(includeInstance, f),
37837
+ chain: (f = msg.getChain()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.toObject(includeInstance, f),
37838
+ network: (f = msg.getNetwork()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.toObject(includeInstance, f),
37839
+ stateSync: (f = msg.getStateSync()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.toObject(includeInstance, f),
37840
+ time: (f = msg.getTime()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.toObject(includeInstance, f)
37841
+ };
37842
+
37843
+ if (includeInstance) {
37844
+ obj.$jspbMessageInstance = msg;
37845
+ }
37846
+ return obj;
37847
+ };
37848
+ }
37849
+
37850
+
37851
+ /**
37852
+ * Deserializes binary data (in protobuf wire format).
37853
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37854
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0}
37855
+ */
37856
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.deserializeBinary = function(bytes) {
37857
+ var reader = new jspb.BinaryReader(bytes);
37858
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0;
37859
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.deserializeBinaryFromReader(msg, reader);
37860
+ };
37861
+
37862
+
37863
+ /**
37864
+ * Deserializes binary data (in protobuf wire format) from the
37865
+ * given reader into the given message object.
37866
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} msg The message object to deserialize into.
37867
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37868
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0}
37869
+ */
37870
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.deserializeBinaryFromReader = function(msg, reader) {
37871
+ while (reader.nextField()) {
37872
+ if (reader.isEndGroup()) {
37873
+ break;
37874
+ }
37875
+ var field = reader.getFieldNumber();
37876
+ switch (field) {
37877
+ case 1:
37878
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version;
37879
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.deserializeBinaryFromReader);
37880
+ msg.setVersion(value);
37881
+ break;
37882
+ case 2:
37883
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node;
37884
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.deserializeBinaryFromReader);
37885
+ msg.setNode(value);
37886
+ break;
37887
+ case 3:
37888
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain;
37889
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.deserializeBinaryFromReader);
37890
+ msg.setChain(value);
37891
+ break;
37892
+ case 4:
37893
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network;
37894
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.deserializeBinaryFromReader);
37895
+ msg.setNetwork(value);
37896
+ break;
37897
+ case 5:
37898
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync;
37899
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.deserializeBinaryFromReader);
37900
+ msg.setStateSync(value);
37901
+ break;
37902
+ case 6:
37903
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time;
37904
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.deserializeBinaryFromReader);
37905
+ msg.setTime(value);
37906
+ break;
37907
+ default:
37908
+ reader.skipField();
37909
+ break;
37910
+ }
37911
+ }
37912
+ return msg;
37913
+ };
37914
+
37915
+
37916
+ /**
37917
+ * Serializes the message to binary data (in protobuf wire format).
37918
+ * @return {!Uint8Array}
37919
+ */
37920
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.serializeBinary = function() {
37921
+ var writer = new jspb.BinaryWriter();
37922
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.serializeBinaryToWriter(this, writer);
37923
+ return writer.getResultBuffer();
37924
+ };
37925
+
37926
+
37927
+ /**
37928
+ * Serializes the given message to binary data (in protobuf wire
37929
+ * format), writing to the given BinaryWriter.
37930
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} message
37931
+ * @param {!jspb.BinaryWriter} writer
37932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37933
+ */
37934
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.serializeBinaryToWriter = function(message, writer) {
37935
+ var f = undefined;
37936
+ f = message.getVersion();
37937
+ if (f != null) {
37938
+ writer.writeMessage(
37939
+ 1,
37940
+ f,
37941
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.serializeBinaryToWriter
37942
+ );
37943
+ }
37944
+ f = message.getNode();
37945
+ if (f != null) {
37946
+ writer.writeMessage(
37947
+ 2,
37948
+ f,
37949
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.serializeBinaryToWriter
37950
+ );
37951
+ }
37952
+ f = message.getChain();
37953
+ if (f != null) {
37954
+ writer.writeMessage(
37955
+ 3,
37956
+ f,
37957
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.serializeBinaryToWriter
37958
+ );
37959
+ }
37960
+ f = message.getNetwork();
37961
+ if (f != null) {
37962
+ writer.writeMessage(
37963
+ 4,
37964
+ f,
37965
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.serializeBinaryToWriter
37966
+ );
37967
+ }
37968
+ f = message.getStateSync();
37969
+ if (f != null) {
37970
+ writer.writeMessage(
37971
+ 5,
37972
+ f,
37973
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.serializeBinaryToWriter
37974
+ );
37975
+ }
37976
+ f = message.getTime();
37977
+ if (f != null) {
37978
+ writer.writeMessage(
37979
+ 6,
37980
+ f,
37981
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.serializeBinaryToWriter
37982
+ );
37983
+ }
37984
+ };
37985
+
37986
+
37987
+
37988
+
37989
+
37990
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37991
+ /**
37992
+ * Creates an object representation of this proto.
37993
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37994
+ * Optional fields that are not set will be set to undefined.
37995
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37996
+ * For the list of reserved names please see:
37997
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37998
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37999
+ * JSPB instance for transitional soy proto support:
38000
+ * http://goto/soy-param-migration
38001
+ * @return {!Object}
38002
+ */
38003
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.toObject = function(opt_includeInstance) {
38004
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.toObject(opt_includeInstance, this);
38005
+ };
38006
+
38007
+
38008
+ /**
38009
+ * Static version of the {@see toObject} method.
38010
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38011
+ * the JSPB instance for transitional soy proto support:
38012
+ * http://goto/soy-param-migration
38013
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} msg The msg instance to transform.
38014
+ * @return {!Object}
38015
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38016
+ */
38017
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.toObject = function(includeInstance, msg) {
38018
+ var f, obj = {
38019
+ software: (f = msg.getSoftware()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.toObject(includeInstance, f),
38020
+ protocol: (f = msg.getProtocol()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.toObject(includeInstance, f)
38021
+ };
38022
+
38023
+ if (includeInstance) {
38024
+ obj.$jspbMessageInstance = msg;
38025
+ }
38026
+ return obj;
38027
+ };
38028
+ }
38029
+
38030
+
38031
+ /**
38032
+ * Deserializes binary data (in protobuf wire format).
38033
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38034
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version}
38035
+ */
38036
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.deserializeBinary = function(bytes) {
38037
+ var reader = new jspb.BinaryReader(bytes);
38038
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version;
38039
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.deserializeBinaryFromReader(msg, reader);
38040
+ };
38041
+
38042
+
38043
+ /**
38044
+ * Deserializes binary data (in protobuf wire format) from the
38045
+ * given reader into the given message object.
38046
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} msg The message object to deserialize into.
38047
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38048
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version}
38049
+ */
38050
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.deserializeBinaryFromReader = function(msg, reader) {
38051
+ while (reader.nextField()) {
38052
+ if (reader.isEndGroup()) {
38053
+ break;
38054
+ }
38055
+ var field = reader.getFieldNumber();
38056
+ switch (field) {
38057
+ case 1:
38058
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software;
38059
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.deserializeBinaryFromReader);
38060
+ msg.setSoftware(value);
38061
+ break;
38062
+ case 2:
38063
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol;
38064
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.deserializeBinaryFromReader);
38065
+ msg.setProtocol(value);
38066
+ break;
38067
+ default:
38068
+ reader.skipField();
38069
+ break;
38070
+ }
38071
+ }
38072
+ return msg;
38073
+ };
38074
+
38075
+
38076
+ /**
38077
+ * Serializes the message to binary data (in protobuf wire format).
38078
+ * @return {!Uint8Array}
38079
+ */
38080
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.serializeBinary = function() {
38081
+ var writer = new jspb.BinaryWriter();
38082
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.serializeBinaryToWriter(this, writer);
38083
+ return writer.getResultBuffer();
38084
+ };
38085
+
38086
+
38087
+ /**
38088
+ * Serializes the given message to binary data (in protobuf wire
38089
+ * format), writing to the given BinaryWriter.
38090
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} message
38091
+ * @param {!jspb.BinaryWriter} writer
38092
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38093
+ */
38094
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.serializeBinaryToWriter = function(message, writer) {
38095
+ var f = undefined;
38096
+ f = message.getSoftware();
38097
+ if (f != null) {
38098
+ writer.writeMessage(
38099
+ 1,
38100
+ f,
38101
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.serializeBinaryToWriter
38102
+ );
38103
+ }
38104
+ f = message.getProtocol();
38105
+ if (f != null) {
38106
+ writer.writeMessage(
38107
+ 2,
38108
+ f,
38109
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.serializeBinaryToWriter
38110
+ );
38111
+ }
38112
+ };
38113
+
38114
+
38115
+
38116
+
38117
+
38118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38119
+ /**
38120
+ * Creates an object representation of this proto.
38121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38122
+ * Optional fields that are not set will be set to undefined.
38123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38124
+ * For the list of reserved names please see:
38125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38127
+ * JSPB instance for transitional soy proto support:
38128
+ * http://goto/soy-param-migration
38129
+ * @return {!Object}
38130
+ */
38131
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.toObject = function(opt_includeInstance) {
38132
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.toObject(opt_includeInstance, this);
38133
+ };
38134
+
38135
+
38136
+ /**
38137
+ * Static version of the {@see toObject} method.
38138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38139
+ * the JSPB instance for transitional soy proto support:
38140
+ * http://goto/soy-param-migration
38141
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} msg The msg instance to transform.
38142
+ * @return {!Object}
38143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38144
+ */
38145
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.toObject = function(includeInstance, msg) {
38146
+ var f, obj = {
38147
+ dapi: jspb.Message.getFieldWithDefault(msg, 1, ""),
38148
+ drive: jspb.Message.getFieldWithDefault(msg, 2, ""),
38149
+ tenderdash: jspb.Message.getFieldWithDefault(msg, 3, "")
38150
+ };
38151
+
38152
+ if (includeInstance) {
38153
+ obj.$jspbMessageInstance = msg;
38154
+ }
38155
+ return obj;
38156
+ };
38157
+ }
38158
+
38159
+
38160
+ /**
38161
+ * Deserializes binary data (in protobuf wire format).
38162
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38163
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software}
38164
+ */
38165
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.deserializeBinary = function(bytes) {
38166
+ var reader = new jspb.BinaryReader(bytes);
38167
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software;
38168
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.deserializeBinaryFromReader(msg, reader);
38169
+ };
38170
+
38171
+
38172
+ /**
38173
+ * Deserializes binary data (in protobuf wire format) from the
38174
+ * given reader into the given message object.
38175
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} msg The message object to deserialize into.
38176
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38177
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software}
38178
+ */
38179
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.deserializeBinaryFromReader = function(msg, reader) {
38180
+ while (reader.nextField()) {
38181
+ if (reader.isEndGroup()) {
38182
+ break;
38183
+ }
38184
+ var field = reader.getFieldNumber();
38185
+ switch (field) {
38186
+ case 1:
38187
+ var value = /** @type {string} */ (reader.readString());
38188
+ msg.setDapi(value);
38189
+ break;
38190
+ case 2:
38191
+ var value = /** @type {string} */ (reader.readString());
38192
+ msg.setDrive(value);
38193
+ break;
38194
+ case 3:
38195
+ var value = /** @type {string} */ (reader.readString());
38196
+ msg.setTenderdash(value);
38197
+ break;
38198
+ default:
38199
+ reader.skipField();
38200
+ break;
38201
+ }
38202
+ }
38203
+ return msg;
38204
+ };
38205
+
38206
+
38207
+ /**
38208
+ * Serializes the message to binary data (in protobuf wire format).
38209
+ * @return {!Uint8Array}
38210
+ */
38211
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.serializeBinary = function() {
38212
+ var writer = new jspb.BinaryWriter();
38213
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.serializeBinaryToWriter(this, writer);
38214
+ return writer.getResultBuffer();
38215
+ };
38216
+
38217
+
38218
+ /**
38219
+ * Serializes the given message to binary data (in protobuf wire
38220
+ * format), writing to the given BinaryWriter.
38221
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} message
38222
+ * @param {!jspb.BinaryWriter} writer
38223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38224
+ */
38225
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.serializeBinaryToWriter = function(message, writer) {
38226
+ var f = undefined;
38227
+ f = message.getDapi();
38228
+ if (f.length > 0) {
38229
+ writer.writeString(
38230
+ 1,
38231
+ f
38232
+ );
38233
+ }
38234
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
38235
+ if (f != null) {
38236
+ writer.writeString(
38237
+ 2,
38238
+ f
38239
+ );
38240
+ }
38241
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
38242
+ if (f != null) {
38243
+ writer.writeString(
38244
+ 3,
38245
+ f
38246
+ );
38247
+ }
38248
+ };
38249
+
38250
+
38251
+ /**
38252
+ * optional string dapi = 1;
38253
+ * @return {string}
38254
+ */
38255
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.getDapi = function() {
38256
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
38257
+ };
38258
+
38259
+
38260
+ /**
38261
+ * @param {string} value
38262
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} returns this
38263
+ */
38264
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.setDapi = function(value) {
38265
+ return jspb.Message.setProto3StringField(this, 1, value);
38266
+ };
38267
+
38268
+
38269
+ /**
38270
+ * optional string drive = 2;
38271
+ * @return {string}
38272
+ */
38273
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.getDrive = function() {
38274
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
38275
+ };
38276
+
38277
+
38278
+ /**
38279
+ * @param {string} value
38280
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} returns this
38281
+ */
38282
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.setDrive = function(value) {
38283
+ return jspb.Message.setField(this, 2, value);
38284
+ };
38285
+
38286
+
38287
+ /**
38288
+ * Clears the field making it undefined.
38289
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} returns this
38290
+ */
38291
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.clearDrive = function() {
38292
+ return jspb.Message.setField(this, 2, undefined);
38293
+ };
38294
+
38295
+
38296
+ /**
38297
+ * Returns whether this field is set.
38298
+ * @return {boolean}
38299
+ */
38300
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.hasDrive = function() {
38301
+ return jspb.Message.getField(this, 2) != null;
38302
+ };
38303
+
38304
+
38305
+ /**
38306
+ * optional string tenderdash = 3;
38307
+ * @return {string}
38308
+ */
38309
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.getTenderdash = function() {
38310
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
38311
+ };
38312
+
38313
+
38314
+ /**
38315
+ * @param {string} value
38316
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} returns this
38317
+ */
38318
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.setTenderdash = function(value) {
38319
+ return jspb.Message.setField(this, 3, value);
38320
+ };
38321
+
38322
+
38323
+ /**
38324
+ * Clears the field making it undefined.
38325
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} returns this
38326
+ */
38327
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.clearTenderdash = function() {
38328
+ return jspb.Message.setField(this, 3, undefined);
38329
+ };
38330
+
38331
+
38332
+ /**
38333
+ * Returns whether this field is set.
38334
+ * @return {boolean}
38335
+ */
38336
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software.prototype.hasTenderdash = function() {
38337
+ return jspb.Message.getField(this, 3) != null;
38338
+ };
38339
+
38340
+
38341
+
38342
+
38343
+
38344
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38345
+ /**
38346
+ * Creates an object representation of this proto.
38347
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38348
+ * Optional fields that are not set will be set to undefined.
38349
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38350
+ * For the list of reserved names please see:
38351
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38352
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38353
+ * JSPB instance for transitional soy proto support:
38354
+ * http://goto/soy-param-migration
38355
+ * @return {!Object}
38356
+ */
38357
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.toObject = function(opt_includeInstance) {
38358
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.toObject(opt_includeInstance, this);
38359
+ };
38360
+
38361
+
38362
+ /**
38363
+ * Static version of the {@see toObject} method.
38364
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38365
+ * the JSPB instance for transitional soy proto support:
38366
+ * http://goto/soy-param-migration
38367
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} msg The msg instance to transform.
38368
+ * @return {!Object}
38369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38370
+ */
38371
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.toObject = function(includeInstance, msg) {
38372
+ var f, obj = {
38373
+ tenderdash: (f = msg.getTenderdash()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.toObject(includeInstance, f),
38374
+ drive: (f = msg.getDrive()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.toObject(includeInstance, f)
38375
+ };
38376
+
38377
+ if (includeInstance) {
38378
+ obj.$jspbMessageInstance = msg;
38379
+ }
38380
+ return obj;
38381
+ };
38382
+ }
38383
+
38384
+
38385
+ /**
38386
+ * Deserializes binary data (in protobuf wire format).
38387
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38388
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol}
38389
+ */
38390
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.deserializeBinary = function(bytes) {
38391
+ var reader = new jspb.BinaryReader(bytes);
38392
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol;
38393
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.deserializeBinaryFromReader(msg, reader);
38394
+ };
38395
+
38396
+
38397
+ /**
38398
+ * Deserializes binary data (in protobuf wire format) from the
38399
+ * given reader into the given message object.
38400
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} msg The message object to deserialize into.
38401
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38402
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol}
38403
+ */
38404
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.deserializeBinaryFromReader = function(msg, reader) {
38405
+ while (reader.nextField()) {
38406
+ if (reader.isEndGroup()) {
38407
+ break;
38408
+ }
38409
+ var field = reader.getFieldNumber();
38410
+ switch (field) {
38411
+ case 1:
38412
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash;
38413
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.deserializeBinaryFromReader);
38414
+ msg.setTenderdash(value);
38415
+ break;
38416
+ case 2:
38417
+ var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive;
38418
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.deserializeBinaryFromReader);
38419
+ msg.setDrive(value);
38420
+ break;
38421
+ default:
38422
+ reader.skipField();
38423
+ break;
38424
+ }
38425
+ }
38426
+ return msg;
38427
+ };
38428
+
38429
+
38430
+ /**
38431
+ * Serializes the message to binary data (in protobuf wire format).
38432
+ * @return {!Uint8Array}
38433
+ */
38434
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.serializeBinary = function() {
38435
+ var writer = new jspb.BinaryWriter();
38436
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.serializeBinaryToWriter(this, writer);
38437
+ return writer.getResultBuffer();
38438
+ };
38439
+
38440
+
38441
+ /**
38442
+ * Serializes the given message to binary data (in protobuf wire
38443
+ * format), writing to the given BinaryWriter.
38444
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} message
38445
+ * @param {!jspb.BinaryWriter} writer
38446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38447
+ */
38448
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.serializeBinaryToWriter = function(message, writer) {
38449
+ var f = undefined;
38450
+ f = message.getTenderdash();
38451
+ if (f != null) {
38452
+ writer.writeMessage(
38453
+ 1,
38454
+ f,
38455
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.serializeBinaryToWriter
38456
+ );
38457
+ }
38458
+ f = message.getDrive();
38459
+ if (f != null) {
38460
+ writer.writeMessage(
38461
+ 2,
38462
+ f,
38463
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.serializeBinaryToWriter
38464
+ );
38465
+ }
38466
+ };
38467
+
38468
+
38469
+
38470
+
38471
+
38472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38473
+ /**
38474
+ * Creates an object representation of this proto.
38475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38476
+ * Optional fields that are not set will be set to undefined.
38477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38478
+ * For the list of reserved names please see:
38479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38481
+ * JSPB instance for transitional soy proto support:
38482
+ * http://goto/soy-param-migration
38483
+ * @return {!Object}
38484
+ */
38485
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.toObject = function(opt_includeInstance) {
38486
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.toObject(opt_includeInstance, this);
38487
+ };
38488
+
38489
+
38490
+ /**
38491
+ * Static version of the {@see toObject} method.
38492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38493
+ * the JSPB instance for transitional soy proto support:
38494
+ * http://goto/soy-param-migration
38495
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} msg The msg instance to transform.
38496
+ * @return {!Object}
38497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38498
+ */
38499
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.toObject = function(includeInstance, msg) {
38500
+ var f, obj = {
38501
+ p2p: jspb.Message.getFieldWithDefault(msg, 1, 0),
38502
+ block: jspb.Message.getFieldWithDefault(msg, 2, 0)
38503
+ };
38504
+
38505
+ if (includeInstance) {
38506
+ obj.$jspbMessageInstance = msg;
38507
+ }
38508
+ return obj;
38509
+ };
38510
+ }
38511
+
38512
+
38513
+ /**
38514
+ * Deserializes binary data (in protobuf wire format).
38515
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38516
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash}
38517
+ */
38518
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.deserializeBinary = function(bytes) {
38519
+ var reader = new jspb.BinaryReader(bytes);
38520
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash;
38521
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.deserializeBinaryFromReader(msg, reader);
38522
+ };
38523
+
38524
+
38525
+ /**
38526
+ * Deserializes binary data (in protobuf wire format) from the
38527
+ * given reader into the given message object.
38528
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} msg The message object to deserialize into.
38529
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38530
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash}
38531
+ */
38532
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.deserializeBinaryFromReader = function(msg, reader) {
38533
+ while (reader.nextField()) {
38534
+ if (reader.isEndGroup()) {
38535
+ break;
38536
+ }
38537
+ var field = reader.getFieldNumber();
38538
+ switch (field) {
38539
+ case 1:
38540
+ var value = /** @type {number} */ (reader.readUint32());
38541
+ msg.setP2p(value);
38542
+ break;
38543
+ case 2:
38544
+ var value = /** @type {number} */ (reader.readUint32());
38545
+ msg.setBlock(value);
38546
+ break;
38547
+ default:
38548
+ reader.skipField();
38549
+ break;
38550
+ }
38551
+ }
38552
+ return msg;
38553
+ };
38554
+
38555
+
38556
+ /**
38557
+ * Serializes the message to binary data (in protobuf wire format).
38558
+ * @return {!Uint8Array}
38559
+ */
38560
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.serializeBinary = function() {
38561
+ var writer = new jspb.BinaryWriter();
38562
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.serializeBinaryToWriter(this, writer);
38563
+ return writer.getResultBuffer();
38564
+ };
38565
+
38566
+
38567
+ /**
38568
+ * Serializes the given message to binary data (in protobuf wire
38569
+ * format), writing to the given BinaryWriter.
38570
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} message
38571
+ * @param {!jspb.BinaryWriter} writer
38572
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38573
+ */
38574
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.serializeBinaryToWriter = function(message, writer) {
38575
+ var f = undefined;
38576
+ f = message.getP2p();
38577
+ if (f !== 0) {
38578
+ writer.writeUint32(
38579
+ 1,
38580
+ f
38581
+ );
38582
+ }
38583
+ f = message.getBlock();
38584
+ if (f !== 0) {
38585
+ writer.writeUint32(
38586
+ 2,
38587
+ f
38588
+ );
38589
+ }
38590
+ };
38591
+
38592
+
38593
+ /**
38594
+ * optional uint32 p2p = 1;
38595
+ * @return {number}
38596
+ */
38597
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.getP2p = function() {
38598
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38599
+ };
38600
+
38601
+
38602
+ /**
38603
+ * @param {number} value
38604
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} returns this
38605
+ */
38606
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.setP2p = function(value) {
38607
+ return jspb.Message.setProto3IntField(this, 1, value);
38608
+ };
38609
+
38610
+
38611
+ /**
38612
+ * optional uint32 block = 2;
38613
+ * @return {number}
38614
+ */
38615
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.getBlock = function() {
38616
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
38617
+ };
38618
+
38619
+
38620
+ /**
38621
+ * @param {number} value
38622
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} returns this
38623
+ */
38624
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.prototype.setBlock = function(value) {
38625
+ return jspb.Message.setProto3IntField(this, 2, value);
38626
+ };
38627
+
38628
+
38629
+
38630
+
38631
+
38632
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38633
+ /**
38634
+ * Creates an object representation of this proto.
38635
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38636
+ * Optional fields that are not set will be set to undefined.
38637
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38638
+ * For the list of reserved names please see:
38639
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38640
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38641
+ * JSPB instance for transitional soy proto support:
38642
+ * http://goto/soy-param-migration
38643
+ * @return {!Object}
38644
+ */
38645
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.toObject = function(opt_includeInstance) {
38646
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.toObject(opt_includeInstance, this);
38647
+ };
38648
+
38649
+
38650
+ /**
38651
+ * Static version of the {@see toObject} method.
38652
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38653
+ * the JSPB instance for transitional soy proto support:
38654
+ * http://goto/soy-param-migration
38655
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} msg The msg instance to transform.
38656
+ * @return {!Object}
38657
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38658
+ */
38659
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.toObject = function(includeInstance, msg) {
38660
+ var f, obj = {
38661
+ latest: jspb.Message.getFieldWithDefault(msg, 3, 0),
38662
+ current: jspb.Message.getFieldWithDefault(msg, 4, 0)
38663
+ };
38664
+
38665
+ if (includeInstance) {
38666
+ obj.$jspbMessageInstance = msg;
38667
+ }
38668
+ return obj;
38669
+ };
38670
+ }
38671
+
38672
+
38673
+ /**
38674
+ * Deserializes binary data (in protobuf wire format).
38675
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38676
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive}
38677
+ */
38678
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.deserializeBinary = function(bytes) {
38679
+ var reader = new jspb.BinaryReader(bytes);
38680
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive;
38681
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.deserializeBinaryFromReader(msg, reader);
38682
+ };
38683
+
38684
+
38685
+ /**
38686
+ * Deserializes binary data (in protobuf wire format) from the
38687
+ * given reader into the given message object.
38688
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} msg The message object to deserialize into.
38689
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38690
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive}
38691
+ */
38692
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.deserializeBinaryFromReader = function(msg, reader) {
38693
+ while (reader.nextField()) {
38694
+ if (reader.isEndGroup()) {
38695
+ break;
38696
+ }
38697
+ var field = reader.getFieldNumber();
38698
+ switch (field) {
38699
+ case 3:
38700
+ var value = /** @type {number} */ (reader.readUint32());
38701
+ msg.setLatest(value);
38702
+ break;
38703
+ case 4:
38704
+ var value = /** @type {number} */ (reader.readUint32());
38705
+ msg.setCurrent(value);
38706
+ break;
38707
+ default:
38708
+ reader.skipField();
38709
+ break;
38710
+ }
38711
+ }
38712
+ return msg;
38713
+ };
38714
+
38715
+
38716
+ /**
38717
+ * Serializes the message to binary data (in protobuf wire format).
38718
+ * @return {!Uint8Array}
38719
+ */
38720
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.serializeBinary = function() {
38721
+ var writer = new jspb.BinaryWriter();
38722
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.serializeBinaryToWriter(this, writer);
38723
+ return writer.getResultBuffer();
38724
+ };
38725
+
38726
+
38727
+ /**
38728
+ * Serializes the given message to binary data (in protobuf wire
38729
+ * format), writing to the given BinaryWriter.
38730
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} message
38731
+ * @param {!jspb.BinaryWriter} writer
38732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38733
+ */
38734
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.serializeBinaryToWriter = function(message, writer) {
38735
+ var f = undefined;
38736
+ f = message.getLatest();
38737
+ if (f !== 0) {
38738
+ writer.writeUint32(
38739
+ 3,
38740
+ f
38741
+ );
38742
+ }
38743
+ f = message.getCurrent();
38744
+ if (f !== 0) {
38745
+ writer.writeUint32(
38746
+ 4,
38747
+ f
38748
+ );
38749
+ }
38750
+ };
38751
+
38752
+
38753
+ /**
38754
+ * optional uint32 latest = 3;
38755
+ * @return {number}
38756
+ */
38757
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.getLatest = function() {
38758
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
38759
+ };
38760
+
38761
+
38762
+ /**
38763
+ * @param {number} value
38764
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} returns this
38765
+ */
38766
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.setLatest = function(value) {
38767
+ return jspb.Message.setProto3IntField(this, 3, value);
38768
+ };
38769
+
38770
+
38771
+ /**
38772
+ * optional uint32 current = 4;
38773
+ * @return {number}
38774
+ */
38775
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.getCurrent = function() {
38776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
38777
+ };
38778
+
38779
+
38780
+ /**
38781
+ * @param {number} value
38782
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} returns this
38783
+ */
38784
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.setCurrent = function(value) {
38785
+ return jspb.Message.setProto3IntField(this, 4, value);
38786
+ };
38787
+
38788
+
38789
+ /**
38790
+ * optional Tenderdash tenderdash = 1;
38791
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash}
38792
+ */
38793
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.getTenderdash = function() {
38794
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash} */ (
38795
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash, 1));
38796
+ };
38797
+
38798
+
38799
+ /**
38800
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash|undefined} value
38801
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} returns this
38802
+ */
38803
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.setTenderdash = function(value) {
38804
+ return jspb.Message.setWrapperField(this, 1, value);
38805
+ };
38806
+
38807
+
38808
+ /**
38809
+ * Clears the message field making it undefined.
38810
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} returns this
38811
+ */
38812
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.clearTenderdash = function() {
38813
+ return this.setTenderdash(undefined);
38814
+ };
38815
+
38816
+
38817
+ /**
38818
+ * Returns whether this field is set.
38819
+ * @return {boolean}
38820
+ */
38821
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.hasTenderdash = function() {
38822
+ return jspb.Message.getField(this, 1) != null;
38823
+ };
38824
+
38825
+
38826
+ /**
38827
+ * optional Drive drive = 2;
38828
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive}
38829
+ */
38830
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.getDrive = function() {
38831
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} */ (
38832
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive, 2));
38833
+ };
38834
+
38835
+
38836
+ /**
38837
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive|undefined} value
38838
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} returns this
38839
+ */
38840
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.setDrive = function(value) {
38841
+ return jspb.Message.setWrapperField(this, 2, value);
38842
+ };
38843
+
38844
+
38845
+ /**
38846
+ * Clears the message field making it undefined.
38847
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} returns this
38848
+ */
38849
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.clearDrive = function() {
38850
+ return this.setDrive(undefined);
38851
+ };
38852
+
38853
+
38854
+ /**
38855
+ * Returns whether this field is set.
38856
+ * @return {boolean}
38857
+ */
38858
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.prototype.hasDrive = function() {
38859
+ return jspb.Message.getField(this, 2) != null;
38860
+ };
38861
+
38862
+
38863
+ /**
38864
+ * optional Software software = 1;
38865
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software}
38866
+ */
38867
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.getSoftware = function() {
38868
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software} */ (
38869
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software, 1));
38870
+ };
38871
+
38872
+
38873
+ /**
38874
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software|undefined} value
38875
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} returns this
38876
+ */
38877
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.setSoftware = function(value) {
38878
+ return jspb.Message.setWrapperField(this, 1, value);
38879
+ };
38880
+
38881
+
38882
+ /**
38883
+ * Clears the message field making it undefined.
38884
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} returns this
38885
+ */
38886
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.clearSoftware = function() {
38887
+ return this.setSoftware(undefined);
38888
+ };
38889
+
38890
+
38891
+ /**
38892
+ * Returns whether this field is set.
38893
+ * @return {boolean}
38894
+ */
38895
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.hasSoftware = function() {
38896
+ return jspb.Message.getField(this, 1) != null;
38897
+ };
38898
+
38899
+
38900
+ /**
38901
+ * optional Protocol protocol = 2;
38902
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol}
38903
+ */
38904
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.getProtocol = function() {
38905
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol} */ (
38906
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol, 2));
38907
+ };
38908
+
38909
+
38910
+ /**
38911
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol|undefined} value
38912
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} returns this
38913
+ */
38914
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.setProtocol = function(value) {
38915
+ return jspb.Message.setWrapperField(this, 2, value);
38916
+ };
38917
+
38918
+
38919
+ /**
38920
+ * Clears the message field making it undefined.
38921
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} returns this
38922
+ */
38923
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.clearProtocol = function() {
38924
+ return this.setProtocol(undefined);
38925
+ };
38926
+
38927
+
38928
+ /**
38929
+ * Returns whether this field is set.
38930
+ * @return {boolean}
38931
+ */
38932
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.prototype.hasProtocol = function() {
38933
+ return jspb.Message.getField(this, 2) != null;
38934
+ };
38935
+
38936
+
38937
+
38938
+
38939
+
38940
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38941
+ /**
38942
+ * Creates an object representation of this proto.
38943
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38944
+ * Optional fields that are not set will be set to undefined.
38945
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38946
+ * For the list of reserved names please see:
38947
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38948
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38949
+ * JSPB instance for transitional soy proto support:
38950
+ * http://goto/soy-param-migration
38951
+ * @return {!Object}
38952
+ */
38953
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.toObject = function(opt_includeInstance) {
38954
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.toObject(opt_includeInstance, this);
38955
+ };
38956
+
38957
+
38958
+ /**
38959
+ * Static version of the {@see toObject} method.
38960
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38961
+ * the JSPB instance for transitional soy proto support:
38962
+ * http://goto/soy-param-migration
38963
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} msg The msg instance to transform.
38964
+ * @return {!Object}
38965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38966
+ */
38967
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.toObject = function(includeInstance, msg) {
38968
+ var f, obj = {
38969
+ local: jspb.Message.getFieldWithDefault(msg, 1, 0),
38970
+ block: jspb.Message.getFieldWithDefault(msg, 2, 0),
38971
+ genesis: jspb.Message.getFieldWithDefault(msg, 3, 0),
38972
+ epoch: jspb.Message.getFieldWithDefault(msg, 4, 0)
38973
+ };
38974
+
38975
+ if (includeInstance) {
38976
+ obj.$jspbMessageInstance = msg;
38977
+ }
38978
+ return obj;
38979
+ };
38980
+ }
38981
+
38982
+
38983
+ /**
38984
+ * Deserializes binary data (in protobuf wire format).
38985
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38986
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time}
38987
+ */
38988
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.deserializeBinary = function(bytes) {
38989
+ var reader = new jspb.BinaryReader(bytes);
38990
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time;
38991
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.deserializeBinaryFromReader(msg, reader);
38992
+ };
38993
+
38994
+
38995
+ /**
38996
+ * Deserializes binary data (in protobuf wire format) from the
38997
+ * given reader into the given message object.
38998
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} msg The message object to deserialize into.
38999
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39000
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time}
39001
+ */
39002
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.deserializeBinaryFromReader = function(msg, reader) {
39003
+ while (reader.nextField()) {
39004
+ if (reader.isEndGroup()) {
39005
+ break;
39006
+ }
39007
+ var field = reader.getFieldNumber();
39008
+ switch (field) {
39009
+ case 1:
39010
+ var value = /** @type {number} */ (reader.readUint64());
39011
+ msg.setLocal(value);
39012
+ break;
39013
+ case 2:
39014
+ var value = /** @type {number} */ (reader.readUint64());
39015
+ msg.setBlock(value);
39016
+ break;
39017
+ case 3:
39018
+ var value = /** @type {number} */ (reader.readUint64());
39019
+ msg.setGenesis(value);
39020
+ break;
39021
+ case 4:
39022
+ var value = /** @type {number} */ (reader.readUint32());
39023
+ msg.setEpoch(value);
39024
+ break;
39025
+ default:
39026
+ reader.skipField();
39027
+ break;
39028
+ }
39029
+ }
39030
+ return msg;
39031
+ };
39032
+
39033
+
39034
+ /**
39035
+ * Serializes the message to binary data (in protobuf wire format).
39036
+ * @return {!Uint8Array}
39037
+ */
39038
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.serializeBinary = function() {
39039
+ var writer = new jspb.BinaryWriter();
39040
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.serializeBinaryToWriter(this, writer);
39041
+ return writer.getResultBuffer();
39042
+ };
39043
+
39044
+
39045
+ /**
39046
+ * Serializes the given message to binary data (in protobuf wire
39047
+ * format), writing to the given BinaryWriter.
39048
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} message
39049
+ * @param {!jspb.BinaryWriter} writer
39050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39051
+ */
39052
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.serializeBinaryToWriter = function(message, writer) {
39053
+ var f = undefined;
39054
+ f = message.getLocal();
39055
+ if (f !== 0) {
39056
+ writer.writeUint64(
39057
+ 1,
39058
+ f
39059
+ );
39060
+ }
39061
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
39062
+ if (f != null) {
39063
+ writer.writeUint64(
39064
+ 2,
39065
+ f
39066
+ );
39067
+ }
39068
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
39069
+ if (f != null) {
39070
+ writer.writeUint64(
39071
+ 3,
39072
+ f
39073
+ );
39074
+ }
39075
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
39076
+ if (f != null) {
39077
+ writer.writeUint32(
39078
+ 4,
39079
+ f
39080
+ );
39081
+ }
39082
+ };
39083
+
39084
+
39085
+ /**
39086
+ * optional uint64 local = 1;
39087
+ * @return {number}
39088
+ */
39089
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.getLocal = function() {
39090
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39091
+ };
39092
+
39093
+
39094
+ /**
39095
+ * @param {number} value
39096
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39097
+ */
39098
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.setLocal = function(value) {
39099
+ return jspb.Message.setProto3IntField(this, 1, value);
39100
+ };
39101
+
39102
+
39103
+ /**
39104
+ * optional uint64 block = 2;
39105
+ * @return {number}
39106
+ */
39107
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.getBlock = function() {
39108
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
39109
+ };
39110
+
39111
+
39112
+ /**
39113
+ * @param {number} value
39114
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39115
+ */
39116
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.setBlock = function(value) {
39117
+ return jspb.Message.setField(this, 2, value);
39118
+ };
39119
+
39120
+
39121
+ /**
39122
+ * Clears the field making it undefined.
39123
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39124
+ */
39125
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.clearBlock = function() {
39126
+ return jspb.Message.setField(this, 2, undefined);
39127
+ };
39128
+
39129
+
39130
+ /**
39131
+ * Returns whether this field is set.
39132
+ * @return {boolean}
39133
+ */
39134
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.hasBlock = function() {
39135
+ return jspb.Message.getField(this, 2) != null;
39136
+ };
39137
+
39138
+
39139
+ /**
39140
+ * optional uint64 genesis = 3;
39141
+ * @return {number}
39142
+ */
39143
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.getGenesis = function() {
39144
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
39145
+ };
39146
+
39147
+
39148
+ /**
39149
+ * @param {number} value
39150
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39151
+ */
39152
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.setGenesis = function(value) {
39153
+ return jspb.Message.setField(this, 3, value);
39154
+ };
39155
+
39156
+
39157
+ /**
39158
+ * Clears the field making it undefined.
39159
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39160
+ */
39161
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.clearGenesis = function() {
39162
+ return jspb.Message.setField(this, 3, undefined);
39163
+ };
39164
+
39165
+
39166
+ /**
39167
+ * Returns whether this field is set.
39168
+ * @return {boolean}
39169
+ */
39170
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.hasGenesis = function() {
39171
+ return jspb.Message.getField(this, 3) != null;
39172
+ };
39173
+
39174
+
39175
+ /**
39176
+ * optional uint32 epoch = 4;
39177
+ * @return {number}
39178
+ */
39179
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.getEpoch = function() {
39180
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
39181
+ };
39182
+
39183
+
39184
+ /**
39185
+ * @param {number} value
39186
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39187
+ */
39188
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.setEpoch = function(value) {
39189
+ return jspb.Message.setField(this, 4, value);
39190
+ };
39191
+
39192
+
39193
+ /**
39194
+ * Clears the field making it undefined.
39195
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} returns this
39196
+ */
39197
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.clearEpoch = function() {
39198
+ return jspb.Message.setField(this, 4, undefined);
39199
+ };
39200
+
39201
+
39202
+ /**
39203
+ * Returns whether this field is set.
39204
+ * @return {boolean}
39205
+ */
39206
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time.prototype.hasEpoch = function() {
39207
+ return jspb.Message.getField(this, 4) != null;
39208
+ };
39209
+
39210
+
39211
+
39212
+
39213
+
39214
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39215
+ /**
39216
+ * Creates an object representation of this proto.
39217
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39218
+ * Optional fields that are not set will be set to undefined.
39219
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39220
+ * For the list of reserved names please see:
39221
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39222
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39223
+ * JSPB instance for transitional soy proto support:
39224
+ * http://goto/soy-param-migration
39225
+ * @return {!Object}
39226
+ */
39227
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.toObject = function(opt_includeInstance) {
39228
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.toObject(opt_includeInstance, this);
39229
+ };
39230
+
39231
+
39232
+ /**
39233
+ * Static version of the {@see toObject} method.
39234
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39235
+ * the JSPB instance for transitional soy proto support:
39236
+ * http://goto/soy-param-migration
39237
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} msg The msg instance to transform.
39238
+ * @return {!Object}
39239
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39240
+ */
39241
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.toObject = function(includeInstance, msg) {
39242
+ var f, obj = {
39243
+ id: msg.getId_asB64(),
39244
+ proTxHash: msg.getProTxHash_asB64()
39245
+ };
39246
+
39247
+ if (includeInstance) {
39248
+ obj.$jspbMessageInstance = msg;
39249
+ }
39250
+ return obj;
39251
+ };
39252
+ }
39253
+
39254
+
39255
+ /**
39256
+ * Deserializes binary data (in protobuf wire format).
39257
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39258
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node}
39259
+ */
39260
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.deserializeBinary = function(bytes) {
39261
+ var reader = new jspb.BinaryReader(bytes);
39262
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node;
39263
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.deserializeBinaryFromReader(msg, reader);
39264
+ };
39265
+
39266
+
39267
+ /**
39268
+ * Deserializes binary data (in protobuf wire format) from the
39269
+ * given reader into the given message object.
39270
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} msg The message object to deserialize into.
39271
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39272
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node}
39273
+ */
39274
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.deserializeBinaryFromReader = function(msg, reader) {
39275
+ while (reader.nextField()) {
39276
+ if (reader.isEndGroup()) {
39277
+ break;
39278
+ }
39279
+ var field = reader.getFieldNumber();
39280
+ switch (field) {
39281
+ case 1:
39282
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39283
+ msg.setId(value);
39284
+ break;
39285
+ case 2:
39286
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39287
+ msg.setProTxHash(value);
39288
+ break;
39289
+ default:
39290
+ reader.skipField();
39291
+ break;
39292
+ }
39293
+ }
39294
+ return msg;
39295
+ };
39296
+
39297
+
39298
+ /**
39299
+ * Serializes the message to binary data (in protobuf wire format).
39300
+ * @return {!Uint8Array}
39301
+ */
39302
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.serializeBinary = function() {
39303
+ var writer = new jspb.BinaryWriter();
39304
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.serializeBinaryToWriter(this, writer);
39305
+ return writer.getResultBuffer();
39306
+ };
39307
+
39308
+
39309
+ /**
39310
+ * Serializes the given message to binary data (in protobuf wire
39311
+ * format), writing to the given BinaryWriter.
39312
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} message
39313
+ * @param {!jspb.BinaryWriter} writer
39314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39315
+ */
39316
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.serializeBinaryToWriter = function(message, writer) {
39317
+ var f = undefined;
39318
+ f = message.getId_asU8();
39319
+ if (f.length > 0) {
39320
+ writer.writeBytes(
39321
+ 1,
39322
+ f
39323
+ );
39324
+ }
39325
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
39326
+ if (f != null) {
39327
+ writer.writeBytes(
39328
+ 2,
39329
+ f
39330
+ );
39331
+ }
39332
+ };
39333
+
39334
+
39335
+ /**
39336
+ * optional bytes id = 1;
39337
+ * @return {string}
39338
+ */
39339
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getId = function() {
39340
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
39341
+ };
39342
+
39343
+
39344
+ /**
39345
+ * optional bytes id = 1;
39346
+ * This is a type-conversion wrapper around `getId()`
39347
+ * @return {string}
39348
+ */
39349
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getId_asB64 = function() {
39350
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39351
+ this.getId()));
39352
+ };
39353
+
39354
+
39355
+ /**
39356
+ * optional bytes id = 1;
39357
+ * Note that Uint8Array is not supported on all browsers.
39358
+ * @see http://caniuse.com/Uint8Array
39359
+ * This is a type-conversion wrapper around `getId()`
39360
+ * @return {!Uint8Array}
39361
+ */
39362
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getId_asU8 = function() {
39363
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39364
+ this.getId()));
39365
+ };
39366
+
39367
+
39368
+ /**
39369
+ * @param {!(string|Uint8Array)} value
39370
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} returns this
39371
+ */
39372
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.setId = function(value) {
39373
+ return jspb.Message.setProto3BytesField(this, 1, value);
39374
+ };
39375
+
39376
+
39377
+ /**
39378
+ * optional bytes pro_tx_hash = 2;
39379
+ * @return {string}
39380
+ */
39381
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getProTxHash = function() {
39382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
39383
+ };
39384
+
39385
+
39386
+ /**
39387
+ * optional bytes pro_tx_hash = 2;
39388
+ * This is a type-conversion wrapper around `getProTxHash()`
39389
+ * @return {string}
39390
+ */
39391
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getProTxHash_asB64 = function() {
39392
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39393
+ this.getProTxHash()));
39394
+ };
39395
+
39396
+
39397
+ /**
39398
+ * optional bytes pro_tx_hash = 2;
39399
+ * Note that Uint8Array is not supported on all browsers.
39400
+ * @see http://caniuse.com/Uint8Array
39401
+ * This is a type-conversion wrapper around `getProTxHash()`
39402
+ * @return {!Uint8Array}
39403
+ */
39404
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.getProTxHash_asU8 = function() {
39405
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39406
+ this.getProTxHash()));
39407
+ };
39408
+
39409
+
39410
+ /**
39411
+ * @param {!(string|Uint8Array)} value
39412
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} returns this
39413
+ */
39414
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.setProTxHash = function(value) {
39415
+ return jspb.Message.setField(this, 2, value);
39416
+ };
39417
+
39418
+
39419
+ /**
39420
+ * Clears the field making it undefined.
39421
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} returns this
39422
+ */
39423
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.clearProTxHash = function() {
39424
+ return jspb.Message.setField(this, 2, undefined);
39425
+ };
39426
+
39427
+
39428
+ /**
39429
+ * Returns whether this field is set.
39430
+ * @return {boolean}
39431
+ */
39432
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node.prototype.hasProTxHash = function() {
39433
+ return jspb.Message.getField(this, 2) != null;
39434
+ };
39435
+
39436
+
39437
+
39438
+
39439
+
39440
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39441
+ /**
39442
+ * Creates an object representation of this proto.
39443
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39444
+ * Optional fields that are not set will be set to undefined.
39445
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39446
+ * For the list of reserved names please see:
39447
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39448
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39449
+ * JSPB instance for transitional soy proto support:
39450
+ * http://goto/soy-param-migration
39451
+ * @return {!Object}
39452
+ */
39453
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.toObject = function(opt_includeInstance) {
39454
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.toObject(opt_includeInstance, this);
39455
+ };
39456
+
39457
+
39458
+ /**
39459
+ * Static version of the {@see toObject} method.
39460
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39461
+ * the JSPB instance for transitional soy proto support:
39462
+ * http://goto/soy-param-migration
39463
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} msg The msg instance to transform.
39464
+ * @return {!Object}
39465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39466
+ */
39467
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.toObject = function(includeInstance, msg) {
39468
+ var f, obj = {
39469
+ catchingUp: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
39470
+ latestBlockHash: msg.getLatestBlockHash_asB64(),
39471
+ latestAppHash: msg.getLatestAppHash_asB64(),
39472
+ latestBlockHeight: jspb.Message.getFieldWithDefault(msg, 4, 0),
39473
+ earliestBlockHash: msg.getEarliestBlockHash_asB64(),
39474
+ earliestAppHash: msg.getEarliestAppHash_asB64(),
39475
+ earliestBlockHeight: jspb.Message.getFieldWithDefault(msg, 7, 0),
39476
+ maxPeerBlockHeight: jspb.Message.getFieldWithDefault(msg, 9, 0),
39477
+ coreChainLockedHeight: jspb.Message.getFieldWithDefault(msg, 10, 0)
39478
+ };
39479
+
39480
+ if (includeInstance) {
39481
+ obj.$jspbMessageInstance = msg;
39482
+ }
39483
+ return obj;
39484
+ };
39485
+ }
39486
+
39487
+
39488
+ /**
39489
+ * Deserializes binary data (in protobuf wire format).
39490
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39491
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain}
39492
+ */
39493
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.deserializeBinary = function(bytes) {
39494
+ var reader = new jspb.BinaryReader(bytes);
39495
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain;
39496
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.deserializeBinaryFromReader(msg, reader);
39497
+ };
39498
+
39499
+
39500
+ /**
39501
+ * Deserializes binary data (in protobuf wire format) from the
39502
+ * given reader into the given message object.
39503
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} msg The message object to deserialize into.
39504
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39505
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain}
39506
+ */
39507
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.deserializeBinaryFromReader = function(msg, reader) {
39508
+ while (reader.nextField()) {
39509
+ if (reader.isEndGroup()) {
39510
+ break;
39511
+ }
39512
+ var field = reader.getFieldNumber();
39513
+ switch (field) {
39514
+ case 1:
39515
+ var value = /** @type {boolean} */ (reader.readBool());
39516
+ msg.setCatchingUp(value);
39517
+ break;
39518
+ case 2:
39519
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39520
+ msg.setLatestBlockHash(value);
39521
+ break;
39522
+ case 3:
39523
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39524
+ msg.setLatestAppHash(value);
39525
+ break;
39526
+ case 4:
39527
+ var value = /** @type {number} */ (reader.readUint64());
39528
+ msg.setLatestBlockHeight(value);
39529
+ break;
39530
+ case 5:
39531
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39532
+ msg.setEarliestBlockHash(value);
39533
+ break;
39534
+ case 6:
39535
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
39536
+ msg.setEarliestAppHash(value);
39537
+ break;
39538
+ case 7:
39539
+ var value = /** @type {number} */ (reader.readUint64());
39540
+ msg.setEarliestBlockHeight(value);
39541
+ break;
39542
+ case 9:
39543
+ var value = /** @type {number} */ (reader.readUint64());
39544
+ msg.setMaxPeerBlockHeight(value);
39545
+ break;
39546
+ case 10:
39547
+ var value = /** @type {number} */ (reader.readUint32());
39548
+ msg.setCoreChainLockedHeight(value);
39549
+ break;
39550
+ default:
39551
+ reader.skipField();
39552
+ break;
39553
+ }
39554
+ }
39555
+ return msg;
39556
+ };
39557
+
39558
+
39559
+ /**
39560
+ * Serializes the message to binary data (in protobuf wire format).
39561
+ * @return {!Uint8Array}
39562
+ */
39563
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.serializeBinary = function() {
39564
+ var writer = new jspb.BinaryWriter();
39565
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.serializeBinaryToWriter(this, writer);
39566
+ return writer.getResultBuffer();
39567
+ };
39568
+
39569
+
39570
+ /**
39571
+ * Serializes the given message to binary data (in protobuf wire
39572
+ * format), writing to the given BinaryWriter.
39573
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} message
39574
+ * @param {!jspb.BinaryWriter} writer
39575
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39576
+ */
39577
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.serializeBinaryToWriter = function(message, writer) {
39578
+ var f = undefined;
39579
+ f = message.getCatchingUp();
39580
+ if (f) {
39581
+ writer.writeBool(
39582
+ 1,
39583
+ f
39584
+ );
39585
+ }
39586
+ f = message.getLatestBlockHash_asU8();
39587
+ if (f.length > 0) {
39588
+ writer.writeBytes(
39589
+ 2,
39590
+ f
39591
+ );
39592
+ }
39593
+ f = message.getLatestAppHash_asU8();
39594
+ if (f.length > 0) {
39595
+ writer.writeBytes(
39596
+ 3,
39597
+ f
39598
+ );
39599
+ }
39600
+ f = message.getLatestBlockHeight();
39601
+ if (f !== 0) {
39602
+ writer.writeUint64(
39603
+ 4,
39604
+ f
39605
+ );
39606
+ }
39607
+ f = message.getEarliestBlockHash_asU8();
39608
+ if (f.length > 0) {
39609
+ writer.writeBytes(
39610
+ 5,
39611
+ f
39612
+ );
39613
+ }
39614
+ f = message.getEarliestAppHash_asU8();
39615
+ if (f.length > 0) {
39616
+ writer.writeBytes(
39617
+ 6,
39618
+ f
39619
+ );
39620
+ }
39621
+ f = message.getEarliestBlockHeight();
39622
+ if (f !== 0) {
39623
+ writer.writeUint64(
39624
+ 7,
39625
+ f
39626
+ );
39627
+ }
39628
+ f = message.getMaxPeerBlockHeight();
39629
+ if (f !== 0) {
39630
+ writer.writeUint64(
39631
+ 9,
39632
+ f
39633
+ );
39634
+ }
39635
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
39636
+ if (f != null) {
39637
+ writer.writeUint32(
39638
+ 10,
39639
+ f
39640
+ );
39641
+ }
39642
+ };
39643
+
39644
+
39645
+ /**
39646
+ * optional bool catching_up = 1;
39647
+ * @return {boolean}
39648
+ */
39649
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getCatchingUp = function() {
39650
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
39651
+ };
39652
+
39653
+
39654
+ /**
39655
+ * @param {boolean} value
39656
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39657
+ */
39658
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setCatchingUp = function(value) {
39659
+ return jspb.Message.setProto3BooleanField(this, 1, value);
39660
+ };
39661
+
39662
+
39663
+ /**
39664
+ * optional bytes latest_block_hash = 2;
39665
+ * @return {string}
39666
+ */
39667
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestBlockHash = function() {
39668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
39669
+ };
39670
+
39671
+
39672
+ /**
39673
+ * optional bytes latest_block_hash = 2;
39674
+ * This is a type-conversion wrapper around `getLatestBlockHash()`
39675
+ * @return {string}
39676
+ */
39677
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestBlockHash_asB64 = function() {
39678
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39679
+ this.getLatestBlockHash()));
39680
+ };
39681
+
39682
+
39683
+ /**
39684
+ * optional bytes latest_block_hash = 2;
39685
+ * Note that Uint8Array is not supported on all browsers.
39686
+ * @see http://caniuse.com/Uint8Array
39687
+ * This is a type-conversion wrapper around `getLatestBlockHash()`
39688
+ * @return {!Uint8Array}
39689
+ */
39690
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestBlockHash_asU8 = function() {
39691
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39692
+ this.getLatestBlockHash()));
39693
+ };
39694
+
39695
+
39696
+ /**
39697
+ * @param {!(string|Uint8Array)} value
39698
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39699
+ */
39700
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setLatestBlockHash = function(value) {
39701
+ return jspb.Message.setProto3BytesField(this, 2, value);
39702
+ };
39703
+
39704
+
39705
+ /**
39706
+ * optional bytes latest_app_hash = 3;
39707
+ * @return {string}
39708
+ */
39709
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestAppHash = function() {
39710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
39711
+ };
39712
+
39713
+
39714
+ /**
39715
+ * optional bytes latest_app_hash = 3;
39716
+ * This is a type-conversion wrapper around `getLatestAppHash()`
39717
+ * @return {string}
39718
+ */
39719
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestAppHash_asB64 = function() {
39720
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39721
+ this.getLatestAppHash()));
39722
+ };
39723
+
39724
+
39725
+ /**
39726
+ * optional bytes latest_app_hash = 3;
39727
+ * Note that Uint8Array is not supported on all browsers.
39728
+ * @see http://caniuse.com/Uint8Array
39729
+ * This is a type-conversion wrapper around `getLatestAppHash()`
39730
+ * @return {!Uint8Array}
39731
+ */
39732
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestAppHash_asU8 = function() {
39733
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39734
+ this.getLatestAppHash()));
39735
+ };
39736
+
39737
+
39738
+ /**
39739
+ * @param {!(string|Uint8Array)} value
39740
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39741
+ */
39742
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setLatestAppHash = function(value) {
39743
+ return jspb.Message.setProto3BytesField(this, 3, value);
39744
+ };
39745
+
39746
+
39747
+ /**
39748
+ * optional uint64 latest_block_height = 4;
39749
+ * @return {number}
39750
+ */
39751
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getLatestBlockHeight = function() {
39752
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
39753
+ };
39754
+
39755
+
39756
+ /**
39757
+ * @param {number} value
39758
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39759
+ */
39760
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setLatestBlockHeight = function(value) {
39761
+ return jspb.Message.setProto3IntField(this, 4, value);
39762
+ };
39763
+
39764
+
39765
+ /**
39766
+ * optional bytes earliest_block_hash = 5;
39767
+ * @return {string}
39768
+ */
39769
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestBlockHash = function() {
39770
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
39771
+ };
39772
+
39773
+
39774
+ /**
39775
+ * optional bytes earliest_block_hash = 5;
39776
+ * This is a type-conversion wrapper around `getEarliestBlockHash()`
39777
+ * @return {string}
39778
+ */
39779
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestBlockHash_asB64 = function() {
39780
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39781
+ this.getEarliestBlockHash()));
39782
+ };
39783
+
39784
+
39785
+ /**
39786
+ * optional bytes earliest_block_hash = 5;
39787
+ * Note that Uint8Array is not supported on all browsers.
39788
+ * @see http://caniuse.com/Uint8Array
39789
+ * This is a type-conversion wrapper around `getEarliestBlockHash()`
39790
+ * @return {!Uint8Array}
39791
+ */
39792
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestBlockHash_asU8 = function() {
39793
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39794
+ this.getEarliestBlockHash()));
39795
+ };
39796
+
39797
+
39798
+ /**
39799
+ * @param {!(string|Uint8Array)} value
39800
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39801
+ */
39802
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setEarliestBlockHash = function(value) {
39803
+ return jspb.Message.setProto3BytesField(this, 5, value);
39804
+ };
39805
+
39806
+
39807
+ /**
39808
+ * optional bytes earliest_app_hash = 6;
39809
+ * @return {string}
39810
+ */
39811
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestAppHash = function() {
39812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
39813
+ };
39814
+
39815
+
39816
+ /**
39817
+ * optional bytes earliest_app_hash = 6;
39818
+ * This is a type-conversion wrapper around `getEarliestAppHash()`
39819
+ * @return {string}
39820
+ */
39821
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestAppHash_asB64 = function() {
39822
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
39823
+ this.getEarliestAppHash()));
39824
+ };
39825
+
39826
+
39827
+ /**
39828
+ * optional bytes earliest_app_hash = 6;
39829
+ * Note that Uint8Array is not supported on all browsers.
39830
+ * @see http://caniuse.com/Uint8Array
39831
+ * This is a type-conversion wrapper around `getEarliestAppHash()`
39832
+ * @return {!Uint8Array}
39833
+ */
39834
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestAppHash_asU8 = function() {
39835
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
39836
+ this.getEarliestAppHash()));
39837
+ };
39838
+
39839
+
39840
+ /**
39841
+ * @param {!(string|Uint8Array)} value
39842
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39843
+ */
39844
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setEarliestAppHash = function(value) {
39845
+ return jspb.Message.setProto3BytesField(this, 6, value);
39846
+ };
39847
+
39848
+
39849
+ /**
39850
+ * optional uint64 earliest_block_height = 7;
39851
+ * @return {number}
39852
+ */
39853
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getEarliestBlockHeight = function() {
39854
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
39855
+ };
39856
+
39857
+
39858
+ /**
39859
+ * @param {number} value
39860
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39861
+ */
39862
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setEarliestBlockHeight = function(value) {
39863
+ return jspb.Message.setProto3IntField(this, 7, value);
39864
+ };
39865
+
39866
+
39867
+ /**
39868
+ * optional uint64 max_peer_block_height = 9;
39869
+ * @return {number}
39870
+ */
39871
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getMaxPeerBlockHeight = function() {
39872
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
39873
+ };
39874
+
39875
+
39876
+ /**
39877
+ * @param {number} value
39878
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39879
+ */
39880
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setMaxPeerBlockHeight = function(value) {
39881
+ return jspb.Message.setProto3IntField(this, 9, value);
39882
+ };
39883
+
39884
+
39885
+ /**
39886
+ * optional uint32 core_chain_locked_height = 10;
39887
+ * @return {number}
39888
+ */
39889
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.getCoreChainLockedHeight = function() {
39890
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
39891
+ };
39892
+
39893
+
39894
+ /**
39895
+ * @param {number} value
39896
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39897
+ */
39898
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.setCoreChainLockedHeight = function(value) {
39899
+ return jspb.Message.setField(this, 10, value);
39900
+ };
39901
+
39902
+
39903
+ /**
39904
+ * Clears the field making it undefined.
39905
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} returns this
39906
+ */
39907
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.clearCoreChainLockedHeight = function() {
39908
+ return jspb.Message.setField(this, 10, undefined);
39909
+ };
39910
+
39911
+
39912
+ /**
39913
+ * Returns whether this field is set.
39914
+ * @return {boolean}
39915
+ */
39916
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain.prototype.hasCoreChainLockedHeight = function() {
39917
+ return jspb.Message.getField(this, 10) != null;
39918
+ };
39919
+
39920
+
39921
+
39922
+
39923
+
39924
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39925
+ /**
39926
+ * Creates an object representation of this proto.
39927
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39928
+ * Optional fields that are not set will be set to undefined.
39929
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39930
+ * For the list of reserved names please see:
39931
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39932
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39933
+ * JSPB instance for transitional soy proto support:
39934
+ * http://goto/soy-param-migration
39935
+ * @return {!Object}
39936
+ */
39937
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.toObject = function(opt_includeInstance) {
39938
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.toObject(opt_includeInstance, this);
39939
+ };
39940
+
39941
+
39942
+ /**
39943
+ * Static version of the {@see toObject} method.
39944
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39945
+ * the JSPB instance for transitional soy proto support:
39946
+ * http://goto/soy-param-migration
39947
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} msg The msg instance to transform.
39948
+ * @return {!Object}
39949
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39950
+ */
39951
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.toObject = function(includeInstance, msg) {
39952
+ var f, obj = {
39953
+ chainId: jspb.Message.getFieldWithDefault(msg, 1, ""),
39954
+ peersCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
39955
+ listening: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
39956
+ };
39957
+
39958
+ if (includeInstance) {
39959
+ obj.$jspbMessageInstance = msg;
39960
+ }
39961
+ return obj;
39962
+ };
39963
+ }
39964
+
39965
+
39966
+ /**
39967
+ * Deserializes binary data (in protobuf wire format).
39968
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39969
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network}
39970
+ */
39971
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.deserializeBinary = function(bytes) {
39972
+ var reader = new jspb.BinaryReader(bytes);
39973
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network;
39974
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.deserializeBinaryFromReader(msg, reader);
39975
+ };
39976
+
39977
+
39978
+ /**
39979
+ * Deserializes binary data (in protobuf wire format) from the
39980
+ * given reader into the given message object.
39981
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} msg The message object to deserialize into.
39982
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39983
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network}
39984
+ */
39985
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.deserializeBinaryFromReader = function(msg, reader) {
39986
+ while (reader.nextField()) {
39987
+ if (reader.isEndGroup()) {
39988
+ break;
39989
+ }
39990
+ var field = reader.getFieldNumber();
39991
+ switch (field) {
39992
+ case 1:
39993
+ var value = /** @type {string} */ (reader.readString());
39994
+ msg.setChainId(value);
39995
+ break;
39996
+ case 2:
39997
+ var value = /** @type {number} */ (reader.readUint32());
39998
+ msg.setPeersCount(value);
39999
+ break;
40000
+ case 3:
40001
+ var value = /** @type {boolean} */ (reader.readBool());
40002
+ msg.setListening(value);
40003
+ break;
40004
+ default:
40005
+ reader.skipField();
40006
+ break;
40007
+ }
40008
+ }
40009
+ return msg;
40010
+ };
40011
+
40012
+
40013
+ /**
40014
+ * Serializes the message to binary data (in protobuf wire format).
40015
+ * @return {!Uint8Array}
40016
+ */
40017
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.serializeBinary = function() {
40018
+ var writer = new jspb.BinaryWriter();
40019
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.serializeBinaryToWriter(this, writer);
40020
+ return writer.getResultBuffer();
40021
+ };
40022
+
40023
+
40024
+ /**
40025
+ * Serializes the given message to binary data (in protobuf wire
40026
+ * format), writing to the given BinaryWriter.
40027
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} message
40028
+ * @param {!jspb.BinaryWriter} writer
40029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40030
+ */
40031
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.serializeBinaryToWriter = function(message, writer) {
40032
+ var f = undefined;
40033
+ f = message.getChainId();
40034
+ if (f.length > 0) {
40035
+ writer.writeString(
40036
+ 1,
40037
+ f
40038
+ );
40039
+ }
40040
+ f = message.getPeersCount();
40041
+ if (f !== 0) {
40042
+ writer.writeUint32(
40043
+ 2,
40044
+ f
40045
+ );
40046
+ }
40047
+ f = message.getListening();
40048
+ if (f) {
40049
+ writer.writeBool(
40050
+ 3,
40051
+ f
40052
+ );
40053
+ }
40054
+ };
40055
+
40056
+
40057
+ /**
40058
+ * optional string chain_id = 1;
40059
+ * @return {string}
40060
+ */
40061
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.getChainId = function() {
40062
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
40063
+ };
40064
+
40065
+
40066
+ /**
40067
+ * @param {string} value
40068
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} returns this
40069
+ */
40070
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.setChainId = function(value) {
40071
+ return jspb.Message.setProto3StringField(this, 1, value);
40072
+ };
40073
+
40074
+
40075
+ /**
40076
+ * optional uint32 peers_count = 2;
40077
+ * @return {number}
40078
+ */
40079
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.getPeersCount = function() {
40080
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40081
+ };
40082
+
40083
+
40084
+ /**
40085
+ * @param {number} value
40086
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} returns this
40087
+ */
40088
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.setPeersCount = function(value) {
40089
+ return jspb.Message.setProto3IntField(this, 2, value);
40090
+ };
40091
+
40092
+
40093
+ /**
40094
+ * optional bool listening = 3;
40095
+ * @return {boolean}
40096
+ */
40097
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.getListening = function() {
40098
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
40099
+ };
40100
+
40101
+
40102
+ /**
40103
+ * @param {boolean} value
40104
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} returns this
40105
+ */
40106
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network.prototype.setListening = function(value) {
40107
+ return jspb.Message.setProto3BooleanField(this, 3, value);
40108
+ };
40109
+
40110
+
40111
+
40112
+
40113
+
40114
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40115
+ /**
40116
+ * Creates an object representation of this proto.
40117
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40118
+ * Optional fields that are not set will be set to undefined.
40119
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40120
+ * For the list of reserved names please see:
40121
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40122
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40123
+ * JSPB instance for transitional soy proto support:
40124
+ * http://goto/soy-param-migration
40125
+ * @return {!Object}
40126
+ */
40127
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.toObject = function(opt_includeInstance) {
40128
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.toObject(opt_includeInstance, this);
40129
+ };
40130
+
40131
+
40132
+ /**
40133
+ * Static version of the {@see toObject} method.
40134
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40135
+ * the JSPB instance for transitional soy proto support:
40136
+ * http://goto/soy-param-migration
40137
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} msg The msg instance to transform.
40138
+ * @return {!Object}
40139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40140
+ */
40141
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.toObject = function(includeInstance, msg) {
40142
+ var f, obj = {
40143
+ totalSyncedTime: jspb.Message.getFieldWithDefault(msg, 1, 0),
40144
+ remainingTime: jspb.Message.getFieldWithDefault(msg, 2, 0),
40145
+ totalSnapshots: jspb.Message.getFieldWithDefault(msg, 3, 0),
40146
+ chunkProcessAvgTime: jspb.Message.getFieldWithDefault(msg, 4, 0),
40147
+ snapshotHeight: jspb.Message.getFieldWithDefault(msg, 5, 0),
40148
+ snapshotChunksCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
40149
+ backfilledBlocks: jspb.Message.getFieldWithDefault(msg, 7, 0),
40150
+ backfillBlocksTotal: jspb.Message.getFieldWithDefault(msg, 8, 0)
40151
+ };
40152
+
40153
+ if (includeInstance) {
40154
+ obj.$jspbMessageInstance = msg;
40155
+ }
40156
+ return obj;
40157
+ };
40158
+ }
40159
+
40160
+
40161
+ /**
40162
+ * Deserializes binary data (in protobuf wire format).
40163
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40164
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync}
40165
+ */
40166
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.deserializeBinary = function(bytes) {
40167
+ var reader = new jspb.BinaryReader(bytes);
40168
+ var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync;
40169
+ return proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.deserializeBinaryFromReader(msg, reader);
40170
+ };
40171
+
40172
+
40173
+ /**
40174
+ * Deserializes binary data (in protobuf wire format) from the
40175
+ * given reader into the given message object.
40176
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} msg The message object to deserialize into.
40177
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40178
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync}
40179
+ */
40180
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.deserializeBinaryFromReader = function(msg, reader) {
40181
+ while (reader.nextField()) {
40182
+ if (reader.isEndGroup()) {
40183
+ break;
40184
+ }
40185
+ var field = reader.getFieldNumber();
40186
+ switch (field) {
40187
+ case 1:
40188
+ var value = /** @type {number} */ (reader.readUint64());
40189
+ msg.setTotalSyncedTime(value);
40190
+ break;
40191
+ case 2:
40192
+ var value = /** @type {number} */ (reader.readUint64());
40193
+ msg.setRemainingTime(value);
40194
+ break;
40195
+ case 3:
40196
+ var value = /** @type {number} */ (reader.readUint32());
40197
+ msg.setTotalSnapshots(value);
40198
+ break;
40199
+ case 4:
40200
+ var value = /** @type {number} */ (reader.readUint64());
40201
+ msg.setChunkProcessAvgTime(value);
40202
+ break;
40203
+ case 5:
40204
+ var value = /** @type {number} */ (reader.readUint64());
40205
+ msg.setSnapshotHeight(value);
40206
+ break;
40207
+ case 6:
40208
+ var value = /** @type {number} */ (reader.readUint64());
40209
+ msg.setSnapshotChunksCount(value);
40210
+ break;
40211
+ case 7:
40212
+ var value = /** @type {number} */ (reader.readUint64());
40213
+ msg.setBackfilledBlocks(value);
40214
+ break;
40215
+ case 8:
40216
+ var value = /** @type {number} */ (reader.readUint64());
40217
+ msg.setBackfillBlocksTotal(value);
40218
+ break;
40219
+ default:
40220
+ reader.skipField();
40221
+ break;
40222
+ }
40223
+ }
40224
+ return msg;
40225
+ };
40226
+
40227
+
40228
+ /**
40229
+ * Serializes the message to binary data (in protobuf wire format).
40230
+ * @return {!Uint8Array}
40231
+ */
40232
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.serializeBinary = function() {
40233
+ var writer = new jspb.BinaryWriter();
40234
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.serializeBinaryToWriter(this, writer);
40235
+ return writer.getResultBuffer();
40236
+ };
40237
+
40238
+
40239
+ /**
40240
+ * Serializes the given message to binary data (in protobuf wire
40241
+ * format), writing to the given BinaryWriter.
40242
+ * @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} message
40243
+ * @param {!jspb.BinaryWriter} writer
40244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40245
+ */
40246
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.serializeBinaryToWriter = function(message, writer) {
40247
+ var f = undefined;
40248
+ f = message.getTotalSyncedTime();
40249
+ if (f !== 0) {
40250
+ writer.writeUint64(
40251
+ 1,
40252
+ f
40253
+ );
40254
+ }
40255
+ f = message.getRemainingTime();
40256
+ if (f !== 0) {
40257
+ writer.writeUint64(
40258
+ 2,
40259
+ f
40260
+ );
40261
+ }
40262
+ f = message.getTotalSnapshots();
40263
+ if (f !== 0) {
40264
+ writer.writeUint32(
40265
+ 3,
40266
+ f
40267
+ );
40268
+ }
40269
+ f = message.getChunkProcessAvgTime();
40270
+ if (f !== 0) {
40271
+ writer.writeUint64(
40272
+ 4,
40273
+ f
40274
+ );
40275
+ }
40276
+ f = message.getSnapshotHeight();
40277
+ if (f !== 0) {
40278
+ writer.writeUint64(
40279
+ 5,
40280
+ f
40281
+ );
40282
+ }
40283
+ f = message.getSnapshotChunksCount();
40284
+ if (f !== 0) {
40285
+ writer.writeUint64(
40286
+ 6,
40287
+ f
40288
+ );
40289
+ }
40290
+ f = message.getBackfilledBlocks();
40291
+ if (f !== 0) {
40292
+ writer.writeUint64(
40293
+ 7,
40294
+ f
40295
+ );
40296
+ }
40297
+ f = message.getBackfillBlocksTotal();
40298
+ if (f !== 0) {
40299
+ writer.writeUint64(
40300
+ 8,
40301
+ f
40302
+ );
40303
+ }
40304
+ };
40305
+
40306
+
40307
+ /**
40308
+ * optional uint64 total_synced_time = 1;
40309
+ * @return {number}
40310
+ */
40311
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getTotalSyncedTime = function() {
40312
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
40313
+ };
40314
+
40315
+
40316
+ /**
40317
+ * @param {number} value
40318
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40319
+ */
40320
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setTotalSyncedTime = function(value) {
40321
+ return jspb.Message.setProto3IntField(this, 1, value);
40322
+ };
40323
+
40324
+
40325
+ /**
40326
+ * optional uint64 remaining_time = 2;
40327
+ * @return {number}
40328
+ */
40329
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getRemainingTime = function() {
40330
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40331
+ };
40332
+
40333
+
40334
+ /**
40335
+ * @param {number} value
40336
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40337
+ */
40338
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setRemainingTime = function(value) {
40339
+ return jspb.Message.setProto3IntField(this, 2, value);
40340
+ };
40341
+
40342
+
40343
+ /**
40344
+ * optional uint32 total_snapshots = 3;
40345
+ * @return {number}
40346
+ */
40347
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getTotalSnapshots = function() {
40348
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
40349
+ };
40350
+
40351
+
40352
+ /**
40353
+ * @param {number} value
40354
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40355
+ */
40356
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setTotalSnapshots = function(value) {
40357
+ return jspb.Message.setProto3IntField(this, 3, value);
40358
+ };
40359
+
40360
+
40361
+ /**
40362
+ * optional uint64 chunk_process_avg_time = 4;
40363
+ * @return {number}
40364
+ */
40365
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getChunkProcessAvgTime = function() {
40366
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
40367
+ };
40368
+
40369
+
40370
+ /**
40371
+ * @param {number} value
40372
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40373
+ */
40374
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setChunkProcessAvgTime = function(value) {
40375
+ return jspb.Message.setProto3IntField(this, 4, value);
40376
+ };
40377
+
40378
+
40379
+ /**
40380
+ * optional uint64 snapshot_height = 5;
40381
+ * @return {number}
40382
+ */
40383
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getSnapshotHeight = function() {
40384
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
40385
+ };
40386
+
40387
+
40388
+ /**
40389
+ * @param {number} value
40390
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40391
+ */
40392
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setSnapshotHeight = function(value) {
40393
+ return jspb.Message.setProto3IntField(this, 5, value);
40394
+ };
40395
+
40396
+
40397
+ /**
40398
+ * optional uint64 snapshot_chunks_count = 6;
40399
+ * @return {number}
40400
+ */
40401
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getSnapshotChunksCount = function() {
40402
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
40403
+ };
40404
+
40405
+
40406
+ /**
40407
+ * @param {number} value
40408
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40409
+ */
40410
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setSnapshotChunksCount = function(value) {
40411
+ return jspb.Message.setProto3IntField(this, 6, value);
40412
+ };
40413
+
40414
+
40415
+ /**
40416
+ * optional uint64 backfilled_blocks = 7;
40417
+ * @return {number}
40418
+ */
40419
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getBackfilledBlocks = function() {
40420
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
40421
+ };
40422
+
40423
+
40424
+ /**
40425
+ * @param {number} value
40426
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40427
+ */
40428
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setBackfilledBlocks = function(value) {
40429
+ return jspb.Message.setProto3IntField(this, 7, value);
40430
+ };
40431
+
40432
+
40433
+ /**
40434
+ * optional uint64 backfill_blocks_total = 8;
40435
+ * @return {number}
40436
+ */
40437
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.getBackfillBlocksTotal = function() {
40438
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
40439
+ };
40440
+
40441
+
40442
+ /**
40443
+ * @param {number} value
40444
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} returns this
40445
+ */
40446
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync.prototype.setBackfillBlocksTotal = function(value) {
40447
+ return jspb.Message.setProto3IntField(this, 8, value);
40448
+ };
40449
+
40450
+
40451
+ /**
40452
+ * optional Version version = 1;
40453
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version}
40454
+ */
40455
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getVersion = function() {
40456
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version} */ (
40457
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version, 1));
40458
+ };
40459
+
40460
+
40461
+ /**
40462
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version|undefined} value
40463
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40464
+ */
40465
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setVersion = function(value) {
40466
+ return jspb.Message.setWrapperField(this, 1, value);
40467
+ };
40468
+
40469
+
40470
+ /**
40471
+ * Clears the message field making it undefined.
40472
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40473
+ */
40474
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearVersion = function() {
40475
+ return this.setVersion(undefined);
40476
+ };
40477
+
40478
+
40479
+ /**
40480
+ * Returns whether this field is set.
40481
+ * @return {boolean}
40482
+ */
40483
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasVersion = function() {
40484
+ return jspb.Message.getField(this, 1) != null;
40485
+ };
40486
+
40487
+
40488
+ /**
40489
+ * optional Node node = 2;
40490
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node}
40491
+ */
40492
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getNode = function() {
40493
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node} */ (
40494
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node, 2));
40495
+ };
40496
+
40497
+
40498
+ /**
40499
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node|undefined} value
40500
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40501
+ */
40502
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setNode = function(value) {
40503
+ return jspb.Message.setWrapperField(this, 2, value);
40504
+ };
40505
+
40506
+
40507
+ /**
40508
+ * Clears the message field making it undefined.
40509
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40510
+ */
40511
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearNode = function() {
40512
+ return this.setNode(undefined);
40513
+ };
40514
+
40515
+
40516
+ /**
40517
+ * Returns whether this field is set.
40518
+ * @return {boolean}
40519
+ */
40520
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasNode = function() {
40521
+ return jspb.Message.getField(this, 2) != null;
40522
+ };
40523
+
40524
+
40525
+ /**
40526
+ * optional Chain chain = 3;
40527
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain}
40528
+ */
40529
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getChain = function() {
40530
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain} */ (
40531
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain, 3));
40532
+ };
40533
+
40534
+
40535
+ /**
40536
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain|undefined} value
40537
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40538
+ */
40539
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setChain = function(value) {
40540
+ return jspb.Message.setWrapperField(this, 3, value);
40541
+ };
40542
+
40543
+
40544
+ /**
40545
+ * Clears the message field making it undefined.
40546
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40547
+ */
40548
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearChain = function() {
40549
+ return this.setChain(undefined);
40550
+ };
40551
+
40552
+
40553
+ /**
40554
+ * Returns whether this field is set.
40555
+ * @return {boolean}
40556
+ */
40557
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasChain = function() {
40558
+ return jspb.Message.getField(this, 3) != null;
40559
+ };
40560
+
40561
+
40562
+ /**
40563
+ * optional Network network = 4;
40564
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network}
40565
+ */
40566
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getNetwork = function() {
40567
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network} */ (
40568
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network, 4));
40569
+ };
40570
+
40571
+
40572
+ /**
40573
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network|undefined} value
40574
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40575
+ */
40576
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setNetwork = function(value) {
40577
+ return jspb.Message.setWrapperField(this, 4, value);
40578
+ };
40579
+
40580
+
40581
+ /**
40582
+ * Clears the message field making it undefined.
40583
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40584
+ */
40585
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearNetwork = function() {
40586
+ return this.setNetwork(undefined);
40587
+ };
40588
+
40589
+
40590
+ /**
40591
+ * Returns whether this field is set.
40592
+ * @return {boolean}
40593
+ */
40594
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasNetwork = function() {
40595
+ return jspb.Message.getField(this, 4) != null;
40596
+ };
40597
+
40598
+
40599
+ /**
40600
+ * optional StateSync state_sync = 5;
40601
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync}
40602
+ */
40603
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getStateSync = function() {
40604
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync} */ (
40605
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync, 5));
40606
+ };
40607
+
40608
+
40609
+ /**
40610
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync|undefined} value
40611
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40612
+ */
40613
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setStateSync = function(value) {
40614
+ return jspb.Message.setWrapperField(this, 5, value);
40615
+ };
40616
+
40617
+
40618
+ /**
40619
+ * Clears the message field making it undefined.
40620
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40621
+ */
40622
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearStateSync = function() {
40623
+ return this.setStateSync(undefined);
40624
+ };
40625
+
40626
+
40627
+ /**
40628
+ * Returns whether this field is set.
40629
+ * @return {boolean}
40630
+ */
40631
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasStateSync = function() {
40632
+ return jspb.Message.getField(this, 5) != null;
40633
+ };
40634
+
40635
+
40636
+ /**
40637
+ * optional Time time = 6;
40638
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time}
40639
+ */
40640
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.getTime = function() {
40641
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time} */ (
40642
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time, 6));
40643
+ };
40644
+
40645
+
40646
+ /**
40647
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time|undefined} value
40648
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40649
+ */
40650
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.setTime = function(value) {
40651
+ return jspb.Message.setWrapperField(this, 6, value);
40652
+ };
40653
+
40654
+
40655
+ /**
40656
+ * Clears the message field making it undefined.
40657
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} returns this
40658
+ */
40659
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.clearTime = function() {
40660
+ return this.setTime(undefined);
40661
+ };
40662
+
40663
+
40664
+ /**
40665
+ * Returns whether this field is set.
40666
+ * @return {boolean}
40667
+ */
40668
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.prototype.hasTime = function() {
40669
+ return jspb.Message.getField(this, 6) != null;
40670
+ };
40671
+
40672
+
40673
+ /**
40674
+ * optional GetStatusResponseV0 v0 = 1;
40675
+ * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0}
40676
+ */
40677
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.getV0 = function() {
40678
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0} */ (
40679
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0, 1));
40680
+ };
40681
+
40682
+
40683
+ /**
40684
+ * @param {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0|undefined} value
40685
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse} returns this
40686
+ */
40687
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.setV0 = function(value) {
40688
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetStatusResponse.oneofGroups_[0], value);
40689
+ };
40690
+
40691
+
40692
+ /**
40693
+ * Clears the message field making it undefined.
40694
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse} returns this
40695
+ */
40696
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.clearV0 = function() {
40697
+ return this.setV0(undefined);
40698
+ };
40699
+
40700
+
40701
+ /**
40702
+ * Returns whether this field is set.
40703
+ * @return {boolean}
40704
+ */
40705
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.hasV0 = function() {
40706
+ return jspb.Message.getField(this, 1) != null;
40707
+ };
40708
+
40709
+
37077
40710
  /**
37078
40711
  * @enum {number}
37079
40712
  */