@ocap/proto 1.14.0 → 1.14.4

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.
@@ -23,19 +23,14 @@ var enum_pb = require('./enum_pb.js');
23
23
  goog.object.extend(proto, enum_pb);
24
24
  var tx_pb = require('./tx_pb.js');
25
25
  goog.object.extend(proto, tx_pb);
26
- goog.exportSymbol('proto.ocap.AbciServerStatus', null, global);
27
26
  goog.exportSymbol('proto.ocap.AccountFilter', null, global);
28
27
  goog.exportSymbol('proto.ocap.AccountToken', null, global);
29
28
  goog.exportSymbol('proto.ocap.AddressFilter', null, global);
30
29
  goog.exportSymbol('proto.ocap.AssetFilter', null, global);
31
30
  goog.exportSymbol('proto.ocap.ByDay', null, global);
32
31
  goog.exportSymbol('proto.ocap.ByHour', null, global);
33
- goog.exportSymbol('proto.ocap.ConsensusStatus', null, global);
34
32
  goog.exportSymbol('proto.ocap.Direction', null, global);
35
- goog.exportSymbol('proto.ocap.DiskSpaceStatus', null, global);
36
33
  goog.exportSymbol('proto.ocap.FactoryFilter', null, global);
37
- goog.exportSymbol('proto.ocap.ForgeStatus', null, global);
38
- goog.exportSymbol('proto.ocap.HealthStatus', null, global);
39
34
  goog.exportSymbol('proto.ocap.IndexedAccountState', null, global);
40
35
  goog.exportSymbol('proto.ocap.IndexedAssetState', null, global);
41
36
  goog.exportSymbol('proto.ocap.IndexedBlock', null, global);
@@ -46,14 +41,12 @@ goog.exportSymbol('proto.ocap.IndexedRollupValidator', null, global);
46
41
  goog.exportSymbol('proto.ocap.IndexedStakeState', null, global);
47
42
  goog.exportSymbol('proto.ocap.IndexedTokenState', null, global);
48
43
  goog.exportSymbol('proto.ocap.IndexedTransaction', null, global);
49
- goog.exportSymbol('proto.ocap.NetworkStatus', null, global);
50
44
  goog.exportSymbol('proto.ocap.Page', null, global);
51
45
  goog.exportSymbol('proto.ocap.PageInfo', null, global);
52
46
  goog.exportSymbol('proto.ocap.PageOrder', null, global);
53
47
  goog.exportSymbol('proto.ocap.RangeFilter', null, global);
54
48
  goog.exportSymbol('proto.ocap.RollupFilter', null, global);
55
49
  goog.exportSymbol('proto.ocap.SearchResult', null, global);
56
- goog.exportSymbol('proto.ocap.StorageStatus', null, global);
57
50
  goog.exportSymbol('proto.ocap.TimeFilter', null, global);
58
51
  goog.exportSymbol('proto.ocap.TokenFilter', null, global);
59
52
  goog.exportSymbol('proto.ocap.TokenInfo', null, global);
@@ -356,153 +349,6 @@ if (goog.DEBUG && !COMPILED) {
356
349
  */
357
350
  proto.ocap.TokenInfo.displayName = 'proto.ocap.TokenInfo';
358
351
  }
359
- /**
360
- * Generated by JsPbCodeGenerator.
361
- * @param {Array=} opt_data Optional initial data array, typically from a
362
- * server response, or constructed directly in Javascript. The array is used
363
- * in place and becomes part of the constructed object. It is not cloned.
364
- * If no data is provided, the constructed object will be empty, but still
365
- * valid.
366
- * @extends {jspb.Message}
367
- * @constructor
368
- */
369
- proto.ocap.HealthStatus = function(opt_data) {
370
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
371
- };
372
- goog.inherits(proto.ocap.HealthStatus, jspb.Message);
373
- if (goog.DEBUG && !COMPILED) {
374
- /**
375
- * @public
376
- * @override
377
- */
378
- proto.ocap.HealthStatus.displayName = 'proto.ocap.HealthStatus';
379
- }
380
- /**
381
- * Generated by JsPbCodeGenerator.
382
- * @param {Array=} opt_data Optional initial data array, typically from a
383
- * server response, or constructed directly in Javascript. The array is used
384
- * in place and becomes part of the constructed object. It is not cloned.
385
- * If no data is provided, the constructed object will be empty, but still
386
- * valid.
387
- * @extends {jspb.Message}
388
- * @constructor
389
- */
390
- proto.ocap.ConsensusStatus = function(opt_data) {
391
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
392
- };
393
- goog.inherits(proto.ocap.ConsensusStatus, jspb.Message);
394
- if (goog.DEBUG && !COMPILED) {
395
- /**
396
- * @public
397
- * @override
398
- */
399
- proto.ocap.ConsensusStatus.displayName = 'proto.ocap.ConsensusStatus';
400
- }
401
- /**
402
- * Generated by JsPbCodeGenerator.
403
- * @param {Array=} opt_data Optional initial data array, typically from a
404
- * server response, or constructed directly in Javascript. The array is used
405
- * in place and becomes part of the constructed object. It is not cloned.
406
- * If no data is provided, the constructed object will be empty, but still
407
- * valid.
408
- * @extends {jspb.Message}
409
- * @constructor
410
- */
411
- proto.ocap.NetworkStatus = function(opt_data) {
412
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
413
- };
414
- goog.inherits(proto.ocap.NetworkStatus, jspb.Message);
415
- if (goog.DEBUG && !COMPILED) {
416
- /**
417
- * @public
418
- * @override
419
- */
420
- proto.ocap.NetworkStatus.displayName = 'proto.ocap.NetworkStatus';
421
- }
422
- /**
423
- * Generated by JsPbCodeGenerator.
424
- * @param {Array=} opt_data Optional initial data array, typically from a
425
- * server response, or constructed directly in Javascript. The array is used
426
- * in place and becomes part of the constructed object. It is not cloned.
427
- * If no data is provided, the constructed object will be empty, but still
428
- * valid.
429
- * @extends {jspb.Message}
430
- * @constructor
431
- */
432
- proto.ocap.StorageStatus = function(opt_data) {
433
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
434
- };
435
- goog.inherits(proto.ocap.StorageStatus, jspb.Message);
436
- if (goog.DEBUG && !COMPILED) {
437
- /**
438
- * @public
439
- * @override
440
- */
441
- proto.ocap.StorageStatus.displayName = 'proto.ocap.StorageStatus';
442
- }
443
- /**
444
- * Generated by JsPbCodeGenerator.
445
- * @param {Array=} opt_data Optional initial data array, typically from a
446
- * server response, or constructed directly in Javascript. The array is used
447
- * in place and becomes part of the constructed object. It is not cloned.
448
- * If no data is provided, the constructed object will be empty, but still
449
- * valid.
450
- * @extends {jspb.Message}
451
- * @constructor
452
- */
453
- proto.ocap.DiskSpaceStatus = function(opt_data) {
454
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
455
- };
456
- goog.inherits(proto.ocap.DiskSpaceStatus, jspb.Message);
457
- if (goog.DEBUG && !COMPILED) {
458
- /**
459
- * @public
460
- * @override
461
- */
462
- proto.ocap.DiskSpaceStatus.displayName = 'proto.ocap.DiskSpaceStatus';
463
- }
464
- /**
465
- * Generated by JsPbCodeGenerator.
466
- * @param {Array=} opt_data Optional initial data array, typically from a
467
- * server response, or constructed directly in Javascript. The array is used
468
- * in place and becomes part of the constructed object. It is not cloned.
469
- * If no data is provided, the constructed object will be empty, but still
470
- * valid.
471
- * @extends {jspb.Message}
472
- * @constructor
473
- */
474
- proto.ocap.ForgeStatus = function(opt_data) {
475
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
476
- };
477
- goog.inherits(proto.ocap.ForgeStatus, jspb.Message);
478
- if (goog.DEBUG && !COMPILED) {
479
- /**
480
- * @public
481
- * @override
482
- */
483
- proto.ocap.ForgeStatus.displayName = 'proto.ocap.ForgeStatus';
484
- }
485
- /**
486
- * Generated by JsPbCodeGenerator.
487
- * @param {Array=} opt_data Optional initial data array, typically from a
488
- * server response, or constructed directly in Javascript. The array is used
489
- * in place and becomes part of the constructed object. It is not cloned.
490
- * If no data is provided, the constructed object will be empty, but still
491
- * valid.
492
- * @extends {jspb.Message}
493
- * @constructor
494
- */
495
- proto.ocap.AbciServerStatus = function(opt_data) {
496
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
497
- };
498
- goog.inherits(proto.ocap.AbciServerStatus, jspb.Message);
499
- if (goog.DEBUG && !COMPILED) {
500
- /**
501
- * @public
502
- * @override
503
- */
504
- proto.ocap.AbciServerStatus.displayName = 'proto.ocap.AbciServerStatus';
505
- }
506
352
  /**
507
353
  * Generated by JsPbCodeGenerator.
508
354
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3290,1462 +3136,6 @@ proto.ocap.TokenInfo.prototype.setSymbol = function(value) {
3290
3136
 
3291
3137
 
3292
3138
 
3293
- if (jspb.Message.GENERATE_TO_OBJECT) {
3294
- /**
3295
- * Creates an object representation of this proto.
3296
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3297
- * Optional fields that are not set will be set to undefined.
3298
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3299
- * For the list of reserved names please see:
3300
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3301
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3302
- * JSPB instance for transitional soy proto support:
3303
- * http://goto/soy-param-migration
3304
- * @return {!Object}
3305
- */
3306
- proto.ocap.HealthStatus.prototype.toObject = function(opt_includeInstance) {
3307
- return proto.ocap.HealthStatus.toObject(opt_includeInstance, this);
3308
- };
3309
-
3310
-
3311
- /**
3312
- * Static version of the {@see toObject} method.
3313
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3314
- * the JSPB instance for transitional soy proto support:
3315
- * http://goto/soy-param-migration
3316
- * @param {!proto.ocap.HealthStatus} msg The msg instance to transform.
3317
- * @return {!Object}
3318
- * @suppress {unusedLocalVariables} f is only used for nested messages
3319
- */
3320
- proto.ocap.HealthStatus.toObject = function(includeInstance, msg) {
3321
- var f, obj = {
3322
- consensus: (f = msg.getConsensus()) && proto.ocap.ConsensusStatus.toObject(includeInstance, f),
3323
- network: (f = msg.getNetwork()) && proto.ocap.NetworkStatus.toObject(includeInstance, f),
3324
- storage: (f = msg.getStorage()) && proto.ocap.StorageStatus.toObject(includeInstance, f),
3325
- forge: (f = msg.getForge()) && proto.ocap.ForgeStatus.toObject(includeInstance, f)
3326
- };
3327
-
3328
- if (includeInstance) {
3329
- obj.$jspbMessageInstance = msg;
3330
- }
3331
- return obj;
3332
- };
3333
- }
3334
-
3335
-
3336
- /**
3337
- * Deserializes binary data (in protobuf wire format).
3338
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3339
- * @return {!proto.ocap.HealthStatus}
3340
- */
3341
- proto.ocap.HealthStatus.deserializeBinary = function(bytes) {
3342
- var reader = new jspb.BinaryReader(bytes);
3343
- var msg = new proto.ocap.HealthStatus;
3344
- return proto.ocap.HealthStatus.deserializeBinaryFromReader(msg, reader);
3345
- };
3346
-
3347
-
3348
- /**
3349
- * Deserializes binary data (in protobuf wire format) from the
3350
- * given reader into the given message object.
3351
- * @param {!proto.ocap.HealthStatus} msg The message object to deserialize into.
3352
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3353
- * @return {!proto.ocap.HealthStatus}
3354
- */
3355
- proto.ocap.HealthStatus.deserializeBinaryFromReader = function(msg, reader) {
3356
- while (reader.nextField()) {
3357
- if (reader.isEndGroup()) {
3358
- break;
3359
- }
3360
- var field = reader.getFieldNumber();
3361
- switch (field) {
3362
- case 1:
3363
- var value = new proto.ocap.ConsensusStatus;
3364
- reader.readMessage(value,proto.ocap.ConsensusStatus.deserializeBinaryFromReader);
3365
- msg.setConsensus(value);
3366
- break;
3367
- case 2:
3368
- var value = new proto.ocap.NetworkStatus;
3369
- reader.readMessage(value,proto.ocap.NetworkStatus.deserializeBinaryFromReader);
3370
- msg.setNetwork(value);
3371
- break;
3372
- case 3:
3373
- var value = new proto.ocap.StorageStatus;
3374
- reader.readMessage(value,proto.ocap.StorageStatus.deserializeBinaryFromReader);
3375
- msg.setStorage(value);
3376
- break;
3377
- case 4:
3378
- var value = new proto.ocap.ForgeStatus;
3379
- reader.readMessage(value,proto.ocap.ForgeStatus.deserializeBinaryFromReader);
3380
- msg.setForge(value);
3381
- break;
3382
- default:
3383
- reader.skipField();
3384
- break;
3385
- }
3386
- }
3387
- return msg;
3388
- };
3389
-
3390
-
3391
- /**
3392
- * Serializes the message to binary data (in protobuf wire format).
3393
- * @return {!Uint8Array}
3394
- */
3395
- proto.ocap.HealthStatus.prototype.serializeBinary = function() {
3396
- var writer = new jspb.BinaryWriter();
3397
- proto.ocap.HealthStatus.serializeBinaryToWriter(this, writer);
3398
- return writer.getResultBuffer();
3399
- };
3400
-
3401
-
3402
- /**
3403
- * Serializes the given message to binary data (in protobuf wire
3404
- * format), writing to the given BinaryWriter.
3405
- * @param {!proto.ocap.HealthStatus} message
3406
- * @param {!jspb.BinaryWriter} writer
3407
- * @suppress {unusedLocalVariables} f is only used for nested messages
3408
- */
3409
- proto.ocap.HealthStatus.serializeBinaryToWriter = function(message, writer) {
3410
- var f = undefined;
3411
- f = message.getConsensus();
3412
- if (f != null) {
3413
- writer.writeMessage(
3414
- 1,
3415
- f,
3416
- proto.ocap.ConsensusStatus.serializeBinaryToWriter
3417
- );
3418
- }
3419
- f = message.getNetwork();
3420
- if (f != null) {
3421
- writer.writeMessage(
3422
- 2,
3423
- f,
3424
- proto.ocap.NetworkStatus.serializeBinaryToWriter
3425
- );
3426
- }
3427
- f = message.getStorage();
3428
- if (f != null) {
3429
- writer.writeMessage(
3430
- 3,
3431
- f,
3432
- proto.ocap.StorageStatus.serializeBinaryToWriter
3433
- );
3434
- }
3435
- f = message.getForge();
3436
- if (f != null) {
3437
- writer.writeMessage(
3438
- 4,
3439
- f,
3440
- proto.ocap.ForgeStatus.serializeBinaryToWriter
3441
- );
3442
- }
3443
- };
3444
-
3445
-
3446
- /**
3447
- * optional ConsensusStatus consensus = 1;
3448
- * @return {?proto.ocap.ConsensusStatus}
3449
- */
3450
- proto.ocap.HealthStatus.prototype.getConsensus = function() {
3451
- return /** @type{?proto.ocap.ConsensusStatus} */ (
3452
- jspb.Message.getWrapperField(this, proto.ocap.ConsensusStatus, 1));
3453
- };
3454
-
3455
-
3456
- /**
3457
- * @param {?proto.ocap.ConsensusStatus|undefined} value
3458
- * @return {!proto.ocap.HealthStatus} returns this
3459
- */
3460
- proto.ocap.HealthStatus.prototype.setConsensus = function(value) {
3461
- return jspb.Message.setWrapperField(this, 1, value);
3462
- };
3463
-
3464
-
3465
- /**
3466
- * Clears the message field making it undefined.
3467
- * @return {!proto.ocap.HealthStatus} returns this
3468
- */
3469
- proto.ocap.HealthStatus.prototype.clearConsensus = function() {
3470
- return this.setConsensus(undefined);
3471
- };
3472
-
3473
-
3474
- /**
3475
- * Returns whether this field is set.
3476
- * @return {boolean}
3477
- */
3478
- proto.ocap.HealthStatus.prototype.hasConsensus = function() {
3479
- return jspb.Message.getField(this, 1) != null;
3480
- };
3481
-
3482
-
3483
- /**
3484
- * optional NetworkStatus network = 2;
3485
- * @return {?proto.ocap.NetworkStatus}
3486
- */
3487
- proto.ocap.HealthStatus.prototype.getNetwork = function() {
3488
- return /** @type{?proto.ocap.NetworkStatus} */ (
3489
- jspb.Message.getWrapperField(this, proto.ocap.NetworkStatus, 2));
3490
- };
3491
-
3492
-
3493
- /**
3494
- * @param {?proto.ocap.NetworkStatus|undefined} value
3495
- * @return {!proto.ocap.HealthStatus} returns this
3496
- */
3497
- proto.ocap.HealthStatus.prototype.setNetwork = function(value) {
3498
- return jspb.Message.setWrapperField(this, 2, value);
3499
- };
3500
-
3501
-
3502
- /**
3503
- * Clears the message field making it undefined.
3504
- * @return {!proto.ocap.HealthStatus} returns this
3505
- */
3506
- proto.ocap.HealthStatus.prototype.clearNetwork = function() {
3507
- return this.setNetwork(undefined);
3508
- };
3509
-
3510
-
3511
- /**
3512
- * Returns whether this field is set.
3513
- * @return {boolean}
3514
- */
3515
- proto.ocap.HealthStatus.prototype.hasNetwork = function() {
3516
- return jspb.Message.getField(this, 2) != null;
3517
- };
3518
-
3519
-
3520
- /**
3521
- * optional StorageStatus storage = 3;
3522
- * @return {?proto.ocap.StorageStatus}
3523
- */
3524
- proto.ocap.HealthStatus.prototype.getStorage = function() {
3525
- return /** @type{?proto.ocap.StorageStatus} */ (
3526
- jspb.Message.getWrapperField(this, proto.ocap.StorageStatus, 3));
3527
- };
3528
-
3529
-
3530
- /**
3531
- * @param {?proto.ocap.StorageStatus|undefined} value
3532
- * @return {!proto.ocap.HealthStatus} returns this
3533
- */
3534
- proto.ocap.HealthStatus.prototype.setStorage = function(value) {
3535
- return jspb.Message.setWrapperField(this, 3, value);
3536
- };
3537
-
3538
-
3539
- /**
3540
- * Clears the message field making it undefined.
3541
- * @return {!proto.ocap.HealthStatus} returns this
3542
- */
3543
- proto.ocap.HealthStatus.prototype.clearStorage = function() {
3544
- return this.setStorage(undefined);
3545
- };
3546
-
3547
-
3548
- /**
3549
- * Returns whether this field is set.
3550
- * @return {boolean}
3551
- */
3552
- proto.ocap.HealthStatus.prototype.hasStorage = function() {
3553
- return jspb.Message.getField(this, 3) != null;
3554
- };
3555
-
3556
-
3557
- /**
3558
- * optional ForgeStatus forge = 4;
3559
- * @return {?proto.ocap.ForgeStatus}
3560
- */
3561
- proto.ocap.HealthStatus.prototype.getForge = function() {
3562
- return /** @type{?proto.ocap.ForgeStatus} */ (
3563
- jspb.Message.getWrapperField(this, proto.ocap.ForgeStatus, 4));
3564
- };
3565
-
3566
-
3567
- /**
3568
- * @param {?proto.ocap.ForgeStatus|undefined} value
3569
- * @return {!proto.ocap.HealthStatus} returns this
3570
- */
3571
- proto.ocap.HealthStatus.prototype.setForge = function(value) {
3572
- return jspb.Message.setWrapperField(this, 4, value);
3573
- };
3574
-
3575
-
3576
- /**
3577
- * Clears the message field making it undefined.
3578
- * @return {!proto.ocap.HealthStatus} returns this
3579
- */
3580
- proto.ocap.HealthStatus.prototype.clearForge = function() {
3581
- return this.setForge(undefined);
3582
- };
3583
-
3584
-
3585
- /**
3586
- * Returns whether this field is set.
3587
- * @return {boolean}
3588
- */
3589
- proto.ocap.HealthStatus.prototype.hasForge = function() {
3590
- return jspb.Message.getField(this, 4) != null;
3591
- };
3592
-
3593
-
3594
-
3595
-
3596
-
3597
- if (jspb.Message.GENERATE_TO_OBJECT) {
3598
- /**
3599
- * Creates an object representation of this proto.
3600
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3601
- * Optional fields that are not set will be set to undefined.
3602
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3603
- * For the list of reserved names please see:
3604
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3605
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3606
- * JSPB instance for transitional soy proto support:
3607
- * http://goto/soy-param-migration
3608
- * @return {!Object}
3609
- */
3610
- proto.ocap.ConsensusStatus.prototype.toObject = function(opt_includeInstance) {
3611
- return proto.ocap.ConsensusStatus.toObject(opt_includeInstance, this);
3612
- };
3613
-
3614
-
3615
- /**
3616
- * Static version of the {@see toObject} method.
3617
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3618
- * the JSPB instance for transitional soy proto support:
3619
- * http://goto/soy-param-migration
3620
- * @param {!proto.ocap.ConsensusStatus} msg The msg instance to transform.
3621
- * @return {!Object}
3622
- * @suppress {unusedLocalVariables} f is only used for nested messages
3623
- */
3624
- proto.ocap.ConsensusStatus.toObject = function(includeInstance, msg) {
3625
- var f, obj = {
3626
- health: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
3627
- synced: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
3628
- blockHeight: jspb.Message.getFieldWithDefault(msg, 3, "")
3629
- };
3630
-
3631
- if (includeInstance) {
3632
- obj.$jspbMessageInstance = msg;
3633
- }
3634
- return obj;
3635
- };
3636
- }
3637
-
3638
-
3639
- /**
3640
- * Deserializes binary data (in protobuf wire format).
3641
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3642
- * @return {!proto.ocap.ConsensusStatus}
3643
- */
3644
- proto.ocap.ConsensusStatus.deserializeBinary = function(bytes) {
3645
- var reader = new jspb.BinaryReader(bytes);
3646
- var msg = new proto.ocap.ConsensusStatus;
3647
- return proto.ocap.ConsensusStatus.deserializeBinaryFromReader(msg, reader);
3648
- };
3649
-
3650
-
3651
- /**
3652
- * Deserializes binary data (in protobuf wire format) from the
3653
- * given reader into the given message object.
3654
- * @param {!proto.ocap.ConsensusStatus} msg The message object to deserialize into.
3655
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3656
- * @return {!proto.ocap.ConsensusStatus}
3657
- */
3658
- proto.ocap.ConsensusStatus.deserializeBinaryFromReader = function(msg, reader) {
3659
- while (reader.nextField()) {
3660
- if (reader.isEndGroup()) {
3661
- break;
3662
- }
3663
- var field = reader.getFieldNumber();
3664
- switch (field) {
3665
- case 1:
3666
- var value = /** @type {boolean} */ (reader.readBool());
3667
- msg.setHealth(value);
3668
- break;
3669
- case 2:
3670
- var value = /** @type {boolean} */ (reader.readBool());
3671
- msg.setSynced(value);
3672
- break;
3673
- case 3:
3674
- var value = /** @type {string} */ (reader.readString());
3675
- msg.setBlockHeight(value);
3676
- break;
3677
- default:
3678
- reader.skipField();
3679
- break;
3680
- }
3681
- }
3682
- return msg;
3683
- };
3684
-
3685
-
3686
- /**
3687
- * Serializes the message to binary data (in protobuf wire format).
3688
- * @return {!Uint8Array}
3689
- */
3690
- proto.ocap.ConsensusStatus.prototype.serializeBinary = function() {
3691
- var writer = new jspb.BinaryWriter();
3692
- proto.ocap.ConsensusStatus.serializeBinaryToWriter(this, writer);
3693
- return writer.getResultBuffer();
3694
- };
3695
-
3696
-
3697
- /**
3698
- * Serializes the given message to binary data (in protobuf wire
3699
- * format), writing to the given BinaryWriter.
3700
- * @param {!proto.ocap.ConsensusStatus} message
3701
- * @param {!jspb.BinaryWriter} writer
3702
- * @suppress {unusedLocalVariables} f is only used for nested messages
3703
- */
3704
- proto.ocap.ConsensusStatus.serializeBinaryToWriter = function(message, writer) {
3705
- var f = undefined;
3706
- f = message.getHealth();
3707
- if (f) {
3708
- writer.writeBool(
3709
- 1,
3710
- f
3711
- );
3712
- }
3713
- f = message.getSynced();
3714
- if (f) {
3715
- writer.writeBool(
3716
- 2,
3717
- f
3718
- );
3719
- }
3720
- f = message.getBlockHeight();
3721
- if (f.length > 0) {
3722
- writer.writeString(
3723
- 3,
3724
- f
3725
- );
3726
- }
3727
- };
3728
-
3729
-
3730
- /**
3731
- * optional bool health = 1;
3732
- * @return {boolean}
3733
- */
3734
- proto.ocap.ConsensusStatus.prototype.getHealth = function() {
3735
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
3736
- };
3737
-
3738
-
3739
- /**
3740
- * @param {boolean} value
3741
- * @return {!proto.ocap.ConsensusStatus} returns this
3742
- */
3743
- proto.ocap.ConsensusStatus.prototype.setHealth = function(value) {
3744
- return jspb.Message.setProto3BooleanField(this, 1, value);
3745
- };
3746
-
3747
-
3748
- /**
3749
- * optional bool synced = 2;
3750
- * @return {boolean}
3751
- */
3752
- proto.ocap.ConsensusStatus.prototype.getSynced = function() {
3753
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
3754
- };
3755
-
3756
-
3757
- /**
3758
- * @param {boolean} value
3759
- * @return {!proto.ocap.ConsensusStatus} returns this
3760
- */
3761
- proto.ocap.ConsensusStatus.prototype.setSynced = function(value) {
3762
- return jspb.Message.setProto3BooleanField(this, 2, value);
3763
- };
3764
-
3765
-
3766
- /**
3767
- * optional string block_height = 3;
3768
- * @return {string}
3769
- */
3770
- proto.ocap.ConsensusStatus.prototype.getBlockHeight = function() {
3771
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3772
- };
3773
-
3774
-
3775
- /**
3776
- * @param {string} value
3777
- * @return {!proto.ocap.ConsensusStatus} returns this
3778
- */
3779
- proto.ocap.ConsensusStatus.prototype.setBlockHeight = function(value) {
3780
- return jspb.Message.setProto3StringField(this, 3, value);
3781
- };
3782
-
3783
-
3784
-
3785
-
3786
-
3787
- if (jspb.Message.GENERATE_TO_OBJECT) {
3788
- /**
3789
- * Creates an object representation of this proto.
3790
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3791
- * Optional fields that are not set will be set to undefined.
3792
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3793
- * For the list of reserved names please see:
3794
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3795
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3796
- * JSPB instance for transitional soy proto support:
3797
- * http://goto/soy-param-migration
3798
- * @return {!Object}
3799
- */
3800
- proto.ocap.NetworkStatus.prototype.toObject = function(opt_includeInstance) {
3801
- return proto.ocap.NetworkStatus.toObject(opt_includeInstance, this);
3802
- };
3803
-
3804
-
3805
- /**
3806
- * Static version of the {@see toObject} method.
3807
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3808
- * the JSPB instance for transitional soy proto support:
3809
- * http://goto/soy-param-migration
3810
- * @param {!proto.ocap.NetworkStatus} msg The msg instance to transform.
3811
- * @return {!Object}
3812
- * @suppress {unusedLocalVariables} f is only used for nested messages
3813
- */
3814
- proto.ocap.NetworkStatus.toObject = function(includeInstance, msg) {
3815
- var f, obj = {
3816
- health: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
3817
- numPeers: jspb.Message.getFieldWithDefault(msg, 2, 0)
3818
- };
3819
-
3820
- if (includeInstance) {
3821
- obj.$jspbMessageInstance = msg;
3822
- }
3823
- return obj;
3824
- };
3825
- }
3826
-
3827
-
3828
- /**
3829
- * Deserializes binary data (in protobuf wire format).
3830
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3831
- * @return {!proto.ocap.NetworkStatus}
3832
- */
3833
- proto.ocap.NetworkStatus.deserializeBinary = function(bytes) {
3834
- var reader = new jspb.BinaryReader(bytes);
3835
- var msg = new proto.ocap.NetworkStatus;
3836
- return proto.ocap.NetworkStatus.deserializeBinaryFromReader(msg, reader);
3837
- };
3838
-
3839
-
3840
- /**
3841
- * Deserializes binary data (in protobuf wire format) from the
3842
- * given reader into the given message object.
3843
- * @param {!proto.ocap.NetworkStatus} msg The message object to deserialize into.
3844
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3845
- * @return {!proto.ocap.NetworkStatus}
3846
- */
3847
- proto.ocap.NetworkStatus.deserializeBinaryFromReader = function(msg, reader) {
3848
- while (reader.nextField()) {
3849
- if (reader.isEndGroup()) {
3850
- break;
3851
- }
3852
- var field = reader.getFieldNumber();
3853
- switch (field) {
3854
- case 1:
3855
- var value = /** @type {boolean} */ (reader.readBool());
3856
- msg.setHealth(value);
3857
- break;
3858
- case 2:
3859
- var value = /** @type {number} */ (reader.readUint32());
3860
- msg.setNumPeers(value);
3861
- break;
3862
- default:
3863
- reader.skipField();
3864
- break;
3865
- }
3866
- }
3867
- return msg;
3868
- };
3869
-
3870
-
3871
- /**
3872
- * Serializes the message to binary data (in protobuf wire format).
3873
- * @return {!Uint8Array}
3874
- */
3875
- proto.ocap.NetworkStatus.prototype.serializeBinary = function() {
3876
- var writer = new jspb.BinaryWriter();
3877
- proto.ocap.NetworkStatus.serializeBinaryToWriter(this, writer);
3878
- return writer.getResultBuffer();
3879
- };
3880
-
3881
-
3882
- /**
3883
- * Serializes the given message to binary data (in protobuf wire
3884
- * format), writing to the given BinaryWriter.
3885
- * @param {!proto.ocap.NetworkStatus} message
3886
- * @param {!jspb.BinaryWriter} writer
3887
- * @suppress {unusedLocalVariables} f is only used for nested messages
3888
- */
3889
- proto.ocap.NetworkStatus.serializeBinaryToWriter = function(message, writer) {
3890
- var f = undefined;
3891
- f = message.getHealth();
3892
- if (f) {
3893
- writer.writeBool(
3894
- 1,
3895
- f
3896
- );
3897
- }
3898
- f = message.getNumPeers();
3899
- if (f !== 0) {
3900
- writer.writeUint32(
3901
- 2,
3902
- f
3903
- );
3904
- }
3905
- };
3906
-
3907
-
3908
- /**
3909
- * optional bool health = 1;
3910
- * @return {boolean}
3911
- */
3912
- proto.ocap.NetworkStatus.prototype.getHealth = function() {
3913
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
3914
- };
3915
-
3916
-
3917
- /**
3918
- * @param {boolean} value
3919
- * @return {!proto.ocap.NetworkStatus} returns this
3920
- */
3921
- proto.ocap.NetworkStatus.prototype.setHealth = function(value) {
3922
- return jspb.Message.setProto3BooleanField(this, 1, value);
3923
- };
3924
-
3925
-
3926
- /**
3927
- * optional uint32 num_peers = 2;
3928
- * @return {number}
3929
- */
3930
- proto.ocap.NetworkStatus.prototype.getNumPeers = function() {
3931
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3932
- };
3933
-
3934
-
3935
- /**
3936
- * @param {number} value
3937
- * @return {!proto.ocap.NetworkStatus} returns this
3938
- */
3939
- proto.ocap.NetworkStatus.prototype.setNumPeers = function(value) {
3940
- return jspb.Message.setProto3IntField(this, 2, value);
3941
- };
3942
-
3943
-
3944
-
3945
-
3946
-
3947
- if (jspb.Message.GENERATE_TO_OBJECT) {
3948
- /**
3949
- * Creates an object representation of this proto.
3950
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3951
- * Optional fields that are not set will be set to undefined.
3952
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3953
- * For the list of reserved names please see:
3954
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3955
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3956
- * JSPB instance for transitional soy proto support:
3957
- * http://goto/soy-param-migration
3958
- * @return {!Object}
3959
- */
3960
- proto.ocap.StorageStatus.prototype.toObject = function(opt_includeInstance) {
3961
- return proto.ocap.StorageStatus.toObject(opt_includeInstance, this);
3962
- };
3963
-
3964
-
3965
- /**
3966
- * Static version of the {@see toObject} method.
3967
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3968
- * the JSPB instance for transitional soy proto support:
3969
- * http://goto/soy-param-migration
3970
- * @param {!proto.ocap.StorageStatus} msg The msg instance to transform.
3971
- * @return {!Object}
3972
- * @suppress {unusedLocalVariables} f is only used for nested messages
3973
- */
3974
- proto.ocap.StorageStatus.toObject = function(includeInstance, msg) {
3975
- var f, obj = {
3976
- health: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
3977
- indexerServer: jspb.Message.getFieldWithDefault(msg, 2, ""),
3978
- stateDb: jspb.Message.getFieldWithDefault(msg, 3, ""),
3979
- diskSpace: (f = msg.getDiskSpace()) && proto.ocap.DiskSpaceStatus.toObject(includeInstance, f)
3980
- };
3981
-
3982
- if (includeInstance) {
3983
- obj.$jspbMessageInstance = msg;
3984
- }
3985
- return obj;
3986
- };
3987
- }
3988
-
3989
-
3990
- /**
3991
- * Deserializes binary data (in protobuf wire format).
3992
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3993
- * @return {!proto.ocap.StorageStatus}
3994
- */
3995
- proto.ocap.StorageStatus.deserializeBinary = function(bytes) {
3996
- var reader = new jspb.BinaryReader(bytes);
3997
- var msg = new proto.ocap.StorageStatus;
3998
- return proto.ocap.StorageStatus.deserializeBinaryFromReader(msg, reader);
3999
- };
4000
-
4001
-
4002
- /**
4003
- * Deserializes binary data (in protobuf wire format) from the
4004
- * given reader into the given message object.
4005
- * @param {!proto.ocap.StorageStatus} msg The message object to deserialize into.
4006
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4007
- * @return {!proto.ocap.StorageStatus}
4008
- */
4009
- proto.ocap.StorageStatus.deserializeBinaryFromReader = function(msg, reader) {
4010
- while (reader.nextField()) {
4011
- if (reader.isEndGroup()) {
4012
- break;
4013
- }
4014
- var field = reader.getFieldNumber();
4015
- switch (field) {
4016
- case 1:
4017
- var value = /** @type {boolean} */ (reader.readBool());
4018
- msg.setHealth(value);
4019
- break;
4020
- case 2:
4021
- var value = /** @type {string} */ (reader.readString());
4022
- msg.setIndexerServer(value);
4023
- break;
4024
- case 3:
4025
- var value = /** @type {string} */ (reader.readString());
4026
- msg.setStateDb(value);
4027
- break;
4028
- case 4:
4029
- var value = new proto.ocap.DiskSpaceStatus;
4030
- reader.readMessage(value,proto.ocap.DiskSpaceStatus.deserializeBinaryFromReader);
4031
- msg.setDiskSpace(value);
4032
- break;
4033
- default:
4034
- reader.skipField();
4035
- break;
4036
- }
4037
- }
4038
- return msg;
4039
- };
4040
-
4041
-
4042
- /**
4043
- * Serializes the message to binary data (in protobuf wire format).
4044
- * @return {!Uint8Array}
4045
- */
4046
- proto.ocap.StorageStatus.prototype.serializeBinary = function() {
4047
- var writer = new jspb.BinaryWriter();
4048
- proto.ocap.StorageStatus.serializeBinaryToWriter(this, writer);
4049
- return writer.getResultBuffer();
4050
- };
4051
-
4052
-
4053
- /**
4054
- * Serializes the given message to binary data (in protobuf wire
4055
- * format), writing to the given BinaryWriter.
4056
- * @param {!proto.ocap.StorageStatus} message
4057
- * @param {!jspb.BinaryWriter} writer
4058
- * @suppress {unusedLocalVariables} f is only used for nested messages
4059
- */
4060
- proto.ocap.StorageStatus.serializeBinaryToWriter = function(message, writer) {
4061
- var f = undefined;
4062
- f = message.getHealth();
4063
- if (f) {
4064
- writer.writeBool(
4065
- 1,
4066
- f
4067
- );
4068
- }
4069
- f = message.getIndexerServer();
4070
- if (f.length > 0) {
4071
- writer.writeString(
4072
- 2,
4073
- f
4074
- );
4075
- }
4076
- f = message.getStateDb();
4077
- if (f.length > 0) {
4078
- writer.writeString(
4079
- 3,
4080
- f
4081
- );
4082
- }
4083
- f = message.getDiskSpace();
4084
- if (f != null) {
4085
- writer.writeMessage(
4086
- 4,
4087
- f,
4088
- proto.ocap.DiskSpaceStatus.serializeBinaryToWriter
4089
- );
4090
- }
4091
- };
4092
-
4093
-
4094
- /**
4095
- * optional bool health = 1;
4096
- * @return {boolean}
4097
- */
4098
- proto.ocap.StorageStatus.prototype.getHealth = function() {
4099
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
4100
- };
4101
-
4102
-
4103
- /**
4104
- * @param {boolean} value
4105
- * @return {!proto.ocap.StorageStatus} returns this
4106
- */
4107
- proto.ocap.StorageStatus.prototype.setHealth = function(value) {
4108
- return jspb.Message.setProto3BooleanField(this, 1, value);
4109
- };
4110
-
4111
-
4112
- /**
4113
- * optional string indexer_server = 2;
4114
- * @return {string}
4115
- */
4116
- proto.ocap.StorageStatus.prototype.getIndexerServer = function() {
4117
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4118
- };
4119
-
4120
-
4121
- /**
4122
- * @param {string} value
4123
- * @return {!proto.ocap.StorageStatus} returns this
4124
- */
4125
- proto.ocap.StorageStatus.prototype.setIndexerServer = function(value) {
4126
- return jspb.Message.setProto3StringField(this, 2, value);
4127
- };
4128
-
4129
-
4130
- /**
4131
- * optional string state_db = 3;
4132
- * @return {string}
4133
- */
4134
- proto.ocap.StorageStatus.prototype.getStateDb = function() {
4135
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4136
- };
4137
-
4138
-
4139
- /**
4140
- * @param {string} value
4141
- * @return {!proto.ocap.StorageStatus} returns this
4142
- */
4143
- proto.ocap.StorageStatus.prototype.setStateDb = function(value) {
4144
- return jspb.Message.setProto3StringField(this, 3, value);
4145
- };
4146
-
4147
-
4148
- /**
4149
- * optional DiskSpaceStatus disk_space = 4;
4150
- * @return {?proto.ocap.DiskSpaceStatus}
4151
- */
4152
- proto.ocap.StorageStatus.prototype.getDiskSpace = function() {
4153
- return /** @type{?proto.ocap.DiskSpaceStatus} */ (
4154
- jspb.Message.getWrapperField(this, proto.ocap.DiskSpaceStatus, 4));
4155
- };
4156
-
4157
-
4158
- /**
4159
- * @param {?proto.ocap.DiskSpaceStatus|undefined} value
4160
- * @return {!proto.ocap.StorageStatus} returns this
4161
- */
4162
- proto.ocap.StorageStatus.prototype.setDiskSpace = function(value) {
4163
- return jspb.Message.setWrapperField(this, 4, value);
4164
- };
4165
-
4166
-
4167
- /**
4168
- * Clears the message field making it undefined.
4169
- * @return {!proto.ocap.StorageStatus} returns this
4170
- */
4171
- proto.ocap.StorageStatus.prototype.clearDiskSpace = function() {
4172
- return this.setDiskSpace(undefined);
4173
- };
4174
-
4175
-
4176
- /**
4177
- * Returns whether this field is set.
4178
- * @return {boolean}
4179
- */
4180
- proto.ocap.StorageStatus.prototype.hasDiskSpace = function() {
4181
- return jspb.Message.getField(this, 4) != null;
4182
- };
4183
-
4184
-
4185
-
4186
-
4187
-
4188
- if (jspb.Message.GENERATE_TO_OBJECT) {
4189
- /**
4190
- * Creates an object representation of this proto.
4191
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4192
- * Optional fields that are not set will be set to undefined.
4193
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4194
- * For the list of reserved names please see:
4195
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4196
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4197
- * JSPB instance for transitional soy proto support:
4198
- * http://goto/soy-param-migration
4199
- * @return {!Object}
4200
- */
4201
- proto.ocap.DiskSpaceStatus.prototype.toObject = function(opt_includeInstance) {
4202
- return proto.ocap.DiskSpaceStatus.toObject(opt_includeInstance, this);
4203
- };
4204
-
4205
-
4206
- /**
4207
- * Static version of the {@see toObject} method.
4208
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4209
- * the JSPB instance for transitional soy proto support:
4210
- * http://goto/soy-param-migration
4211
- * @param {!proto.ocap.DiskSpaceStatus} msg The msg instance to transform.
4212
- * @return {!Object}
4213
- * @suppress {unusedLocalVariables} f is only used for nested messages
4214
- */
4215
- proto.ocap.DiskSpaceStatus.toObject = function(includeInstance, msg) {
4216
- var f, obj = {
4217
- forgeUsage: jspb.Message.getFieldWithDefault(msg, 1, ""),
4218
- total: jspb.Message.getFieldWithDefault(msg, 2, "")
4219
- };
4220
-
4221
- if (includeInstance) {
4222
- obj.$jspbMessageInstance = msg;
4223
- }
4224
- return obj;
4225
- };
4226
- }
4227
-
4228
-
4229
- /**
4230
- * Deserializes binary data (in protobuf wire format).
4231
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4232
- * @return {!proto.ocap.DiskSpaceStatus}
4233
- */
4234
- proto.ocap.DiskSpaceStatus.deserializeBinary = function(bytes) {
4235
- var reader = new jspb.BinaryReader(bytes);
4236
- var msg = new proto.ocap.DiskSpaceStatus;
4237
- return proto.ocap.DiskSpaceStatus.deserializeBinaryFromReader(msg, reader);
4238
- };
4239
-
4240
-
4241
- /**
4242
- * Deserializes binary data (in protobuf wire format) from the
4243
- * given reader into the given message object.
4244
- * @param {!proto.ocap.DiskSpaceStatus} msg The message object to deserialize into.
4245
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4246
- * @return {!proto.ocap.DiskSpaceStatus}
4247
- */
4248
- proto.ocap.DiskSpaceStatus.deserializeBinaryFromReader = function(msg, reader) {
4249
- while (reader.nextField()) {
4250
- if (reader.isEndGroup()) {
4251
- break;
4252
- }
4253
- var field = reader.getFieldNumber();
4254
- switch (field) {
4255
- case 1:
4256
- var value = /** @type {string} */ (reader.readString());
4257
- msg.setForgeUsage(value);
4258
- break;
4259
- case 2:
4260
- var value = /** @type {string} */ (reader.readString());
4261
- msg.setTotal(value);
4262
- break;
4263
- default:
4264
- reader.skipField();
4265
- break;
4266
- }
4267
- }
4268
- return msg;
4269
- };
4270
-
4271
-
4272
- /**
4273
- * Serializes the message to binary data (in protobuf wire format).
4274
- * @return {!Uint8Array}
4275
- */
4276
- proto.ocap.DiskSpaceStatus.prototype.serializeBinary = function() {
4277
- var writer = new jspb.BinaryWriter();
4278
- proto.ocap.DiskSpaceStatus.serializeBinaryToWriter(this, writer);
4279
- return writer.getResultBuffer();
4280
- };
4281
-
4282
-
4283
- /**
4284
- * Serializes the given message to binary data (in protobuf wire
4285
- * format), writing to the given BinaryWriter.
4286
- * @param {!proto.ocap.DiskSpaceStatus} message
4287
- * @param {!jspb.BinaryWriter} writer
4288
- * @suppress {unusedLocalVariables} f is only used for nested messages
4289
- */
4290
- proto.ocap.DiskSpaceStatus.serializeBinaryToWriter = function(message, writer) {
4291
- var f = undefined;
4292
- f = message.getForgeUsage();
4293
- if (f.length > 0) {
4294
- writer.writeString(
4295
- 1,
4296
- f
4297
- );
4298
- }
4299
- f = message.getTotal();
4300
- if (f.length > 0) {
4301
- writer.writeString(
4302
- 2,
4303
- f
4304
- );
4305
- }
4306
- };
4307
-
4308
-
4309
- /**
4310
- * optional string forge_usage = 1;
4311
- * @return {string}
4312
- */
4313
- proto.ocap.DiskSpaceStatus.prototype.getForgeUsage = function() {
4314
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4315
- };
4316
-
4317
-
4318
- /**
4319
- * @param {string} value
4320
- * @return {!proto.ocap.DiskSpaceStatus} returns this
4321
- */
4322
- proto.ocap.DiskSpaceStatus.prototype.setForgeUsage = function(value) {
4323
- return jspb.Message.setProto3StringField(this, 1, value);
4324
- };
4325
-
4326
-
4327
- /**
4328
- * optional string total = 2;
4329
- * @return {string}
4330
- */
4331
- proto.ocap.DiskSpaceStatus.prototype.getTotal = function() {
4332
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4333
- };
4334
-
4335
-
4336
- /**
4337
- * @param {string} value
4338
- * @return {!proto.ocap.DiskSpaceStatus} returns this
4339
- */
4340
- proto.ocap.DiskSpaceStatus.prototype.setTotal = function(value) {
4341
- return jspb.Message.setProto3StringField(this, 2, value);
4342
- };
4343
-
4344
-
4345
-
4346
-
4347
-
4348
- if (jspb.Message.GENERATE_TO_OBJECT) {
4349
- /**
4350
- * Creates an object representation of this proto.
4351
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4352
- * Optional fields that are not set will be set to undefined.
4353
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4354
- * For the list of reserved names please see:
4355
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4356
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4357
- * JSPB instance for transitional soy proto support:
4358
- * http://goto/soy-param-migration
4359
- * @return {!Object}
4360
- */
4361
- proto.ocap.ForgeStatus.prototype.toObject = function(opt_includeInstance) {
4362
- return proto.ocap.ForgeStatus.toObject(opt_includeInstance, this);
4363
- };
4364
-
4365
-
4366
- /**
4367
- * Static version of the {@see toObject} method.
4368
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4369
- * the JSPB instance for transitional soy proto support:
4370
- * http://goto/soy-param-migration
4371
- * @param {!proto.ocap.ForgeStatus} msg The msg instance to transform.
4372
- * @return {!Object}
4373
- * @suppress {unusedLocalVariables} f is only used for nested messages
4374
- */
4375
- proto.ocap.ForgeStatus.toObject = function(includeInstance, msg) {
4376
- var f, obj = {
4377
- health: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
4378
- abiServer: jspb.Message.getFieldWithDefault(msg, 2, ""),
4379
- forgeWeb: jspb.Message.getFieldWithDefault(msg, 3, ""),
4380
- abciServer: (f = msg.getAbciServer()) && proto.ocap.AbciServerStatus.toObject(includeInstance, f)
4381
- };
4382
-
4383
- if (includeInstance) {
4384
- obj.$jspbMessageInstance = msg;
4385
- }
4386
- return obj;
4387
- };
4388
- }
4389
-
4390
-
4391
- /**
4392
- * Deserializes binary data (in protobuf wire format).
4393
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4394
- * @return {!proto.ocap.ForgeStatus}
4395
- */
4396
- proto.ocap.ForgeStatus.deserializeBinary = function(bytes) {
4397
- var reader = new jspb.BinaryReader(bytes);
4398
- var msg = new proto.ocap.ForgeStatus;
4399
- return proto.ocap.ForgeStatus.deserializeBinaryFromReader(msg, reader);
4400
- };
4401
-
4402
-
4403
- /**
4404
- * Deserializes binary data (in protobuf wire format) from the
4405
- * given reader into the given message object.
4406
- * @param {!proto.ocap.ForgeStatus} msg The message object to deserialize into.
4407
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4408
- * @return {!proto.ocap.ForgeStatus}
4409
- */
4410
- proto.ocap.ForgeStatus.deserializeBinaryFromReader = function(msg, reader) {
4411
- while (reader.nextField()) {
4412
- if (reader.isEndGroup()) {
4413
- break;
4414
- }
4415
- var field = reader.getFieldNumber();
4416
- switch (field) {
4417
- case 1:
4418
- var value = /** @type {boolean} */ (reader.readBool());
4419
- msg.setHealth(value);
4420
- break;
4421
- case 2:
4422
- var value = /** @type {string} */ (reader.readString());
4423
- msg.setAbiServer(value);
4424
- break;
4425
- case 3:
4426
- var value = /** @type {string} */ (reader.readString());
4427
- msg.setForgeWeb(value);
4428
- break;
4429
- case 4:
4430
- var value = new proto.ocap.AbciServerStatus;
4431
- reader.readMessage(value,proto.ocap.AbciServerStatus.deserializeBinaryFromReader);
4432
- msg.setAbciServer(value);
4433
- break;
4434
- default:
4435
- reader.skipField();
4436
- break;
4437
- }
4438
- }
4439
- return msg;
4440
- };
4441
-
4442
-
4443
- /**
4444
- * Serializes the message to binary data (in protobuf wire format).
4445
- * @return {!Uint8Array}
4446
- */
4447
- proto.ocap.ForgeStatus.prototype.serializeBinary = function() {
4448
- var writer = new jspb.BinaryWriter();
4449
- proto.ocap.ForgeStatus.serializeBinaryToWriter(this, writer);
4450
- return writer.getResultBuffer();
4451
- };
4452
-
4453
-
4454
- /**
4455
- * Serializes the given message to binary data (in protobuf wire
4456
- * format), writing to the given BinaryWriter.
4457
- * @param {!proto.ocap.ForgeStatus} message
4458
- * @param {!jspb.BinaryWriter} writer
4459
- * @suppress {unusedLocalVariables} f is only used for nested messages
4460
- */
4461
- proto.ocap.ForgeStatus.serializeBinaryToWriter = function(message, writer) {
4462
- var f = undefined;
4463
- f = message.getHealth();
4464
- if (f) {
4465
- writer.writeBool(
4466
- 1,
4467
- f
4468
- );
4469
- }
4470
- f = message.getAbiServer();
4471
- if (f.length > 0) {
4472
- writer.writeString(
4473
- 2,
4474
- f
4475
- );
4476
- }
4477
- f = message.getForgeWeb();
4478
- if (f.length > 0) {
4479
- writer.writeString(
4480
- 3,
4481
- f
4482
- );
4483
- }
4484
- f = message.getAbciServer();
4485
- if (f != null) {
4486
- writer.writeMessage(
4487
- 4,
4488
- f,
4489
- proto.ocap.AbciServerStatus.serializeBinaryToWriter
4490
- );
4491
- }
4492
- };
4493
-
4494
-
4495
- /**
4496
- * optional bool health = 1;
4497
- * @return {boolean}
4498
- */
4499
- proto.ocap.ForgeStatus.prototype.getHealth = function() {
4500
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
4501
- };
4502
-
4503
-
4504
- /**
4505
- * @param {boolean} value
4506
- * @return {!proto.ocap.ForgeStatus} returns this
4507
- */
4508
- proto.ocap.ForgeStatus.prototype.setHealth = function(value) {
4509
- return jspb.Message.setProto3BooleanField(this, 1, value);
4510
- };
4511
-
4512
-
4513
- /**
4514
- * optional string abi_server = 2;
4515
- * @return {string}
4516
- */
4517
- proto.ocap.ForgeStatus.prototype.getAbiServer = function() {
4518
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4519
- };
4520
-
4521
-
4522
- /**
4523
- * @param {string} value
4524
- * @return {!proto.ocap.ForgeStatus} returns this
4525
- */
4526
- proto.ocap.ForgeStatus.prototype.setAbiServer = function(value) {
4527
- return jspb.Message.setProto3StringField(this, 2, value);
4528
- };
4529
-
4530
-
4531
- /**
4532
- * optional string forge_web = 3;
4533
- * @return {string}
4534
- */
4535
- proto.ocap.ForgeStatus.prototype.getForgeWeb = function() {
4536
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4537
- };
4538
-
4539
-
4540
- /**
4541
- * @param {string} value
4542
- * @return {!proto.ocap.ForgeStatus} returns this
4543
- */
4544
- proto.ocap.ForgeStatus.prototype.setForgeWeb = function(value) {
4545
- return jspb.Message.setProto3StringField(this, 3, value);
4546
- };
4547
-
4548
-
4549
- /**
4550
- * optional AbciServerStatus abci_server = 4;
4551
- * @return {?proto.ocap.AbciServerStatus}
4552
- */
4553
- proto.ocap.ForgeStatus.prototype.getAbciServer = function() {
4554
- return /** @type{?proto.ocap.AbciServerStatus} */ (
4555
- jspb.Message.getWrapperField(this, proto.ocap.AbciServerStatus, 4));
4556
- };
4557
-
4558
-
4559
- /**
4560
- * @param {?proto.ocap.AbciServerStatus|undefined} value
4561
- * @return {!proto.ocap.ForgeStatus} returns this
4562
- */
4563
- proto.ocap.ForgeStatus.prototype.setAbciServer = function(value) {
4564
- return jspb.Message.setWrapperField(this, 4, value);
4565
- };
4566
-
4567
-
4568
- /**
4569
- * Clears the message field making it undefined.
4570
- * @return {!proto.ocap.ForgeStatus} returns this
4571
- */
4572
- proto.ocap.ForgeStatus.prototype.clearAbciServer = function() {
4573
- return this.setAbciServer(undefined);
4574
- };
4575
-
4576
-
4577
- /**
4578
- * Returns whether this field is set.
4579
- * @return {boolean}
4580
- */
4581
- proto.ocap.ForgeStatus.prototype.hasAbciServer = function() {
4582
- return jspb.Message.getField(this, 4) != null;
4583
- };
4584
-
4585
-
4586
-
4587
-
4588
-
4589
- if (jspb.Message.GENERATE_TO_OBJECT) {
4590
- /**
4591
- * Creates an object representation of this proto.
4592
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4593
- * Optional fields that are not set will be set to undefined.
4594
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4595
- * For the list of reserved names please see:
4596
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4597
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4598
- * JSPB instance for transitional soy proto support:
4599
- * http://goto/soy-param-migration
4600
- * @return {!Object}
4601
- */
4602
- proto.ocap.AbciServerStatus.prototype.toObject = function(opt_includeInstance) {
4603
- return proto.ocap.AbciServerStatus.toObject(opt_includeInstance, this);
4604
- };
4605
-
4606
-
4607
- /**
4608
- * Static version of the {@see toObject} method.
4609
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4610
- * the JSPB instance for transitional soy proto support:
4611
- * http://goto/soy-param-migration
4612
- * @param {!proto.ocap.AbciServerStatus} msg The msg instance to transform.
4613
- * @return {!Object}
4614
- * @suppress {unusedLocalVariables} f is only used for nested messages
4615
- */
4616
- proto.ocap.AbciServerStatus.toObject = function(includeInstance, msg) {
4617
- var f, obj = {
4618
- abciConsensus: jspb.Message.getFieldWithDefault(msg, 1, ""),
4619
- abciInfo: jspb.Message.getFieldWithDefault(msg, 2, "")
4620
- };
4621
-
4622
- if (includeInstance) {
4623
- obj.$jspbMessageInstance = msg;
4624
- }
4625
- return obj;
4626
- };
4627
- }
4628
-
4629
-
4630
- /**
4631
- * Deserializes binary data (in protobuf wire format).
4632
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4633
- * @return {!proto.ocap.AbciServerStatus}
4634
- */
4635
- proto.ocap.AbciServerStatus.deserializeBinary = function(bytes) {
4636
- var reader = new jspb.BinaryReader(bytes);
4637
- var msg = new proto.ocap.AbciServerStatus;
4638
- return proto.ocap.AbciServerStatus.deserializeBinaryFromReader(msg, reader);
4639
- };
4640
-
4641
-
4642
- /**
4643
- * Deserializes binary data (in protobuf wire format) from the
4644
- * given reader into the given message object.
4645
- * @param {!proto.ocap.AbciServerStatus} msg The message object to deserialize into.
4646
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4647
- * @return {!proto.ocap.AbciServerStatus}
4648
- */
4649
- proto.ocap.AbciServerStatus.deserializeBinaryFromReader = function(msg, reader) {
4650
- while (reader.nextField()) {
4651
- if (reader.isEndGroup()) {
4652
- break;
4653
- }
4654
- var field = reader.getFieldNumber();
4655
- switch (field) {
4656
- case 1:
4657
- var value = /** @type {string} */ (reader.readString());
4658
- msg.setAbciConsensus(value);
4659
- break;
4660
- case 2:
4661
- var value = /** @type {string} */ (reader.readString());
4662
- msg.setAbciInfo(value);
4663
- break;
4664
- default:
4665
- reader.skipField();
4666
- break;
4667
- }
4668
- }
4669
- return msg;
4670
- };
4671
-
4672
-
4673
- /**
4674
- * Serializes the message to binary data (in protobuf wire format).
4675
- * @return {!Uint8Array}
4676
- */
4677
- proto.ocap.AbciServerStatus.prototype.serializeBinary = function() {
4678
- var writer = new jspb.BinaryWriter();
4679
- proto.ocap.AbciServerStatus.serializeBinaryToWriter(this, writer);
4680
- return writer.getResultBuffer();
4681
- };
4682
-
4683
-
4684
- /**
4685
- * Serializes the given message to binary data (in protobuf wire
4686
- * format), writing to the given BinaryWriter.
4687
- * @param {!proto.ocap.AbciServerStatus} message
4688
- * @param {!jspb.BinaryWriter} writer
4689
- * @suppress {unusedLocalVariables} f is only used for nested messages
4690
- */
4691
- proto.ocap.AbciServerStatus.serializeBinaryToWriter = function(message, writer) {
4692
- var f = undefined;
4693
- f = message.getAbciConsensus();
4694
- if (f.length > 0) {
4695
- writer.writeString(
4696
- 1,
4697
- f
4698
- );
4699
- }
4700
- f = message.getAbciInfo();
4701
- if (f.length > 0) {
4702
- writer.writeString(
4703
- 2,
4704
- f
4705
- );
4706
- }
4707
- };
4708
-
4709
-
4710
- /**
4711
- * optional string abci_consensus = 1;
4712
- * @return {string}
4713
- */
4714
- proto.ocap.AbciServerStatus.prototype.getAbciConsensus = function() {
4715
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4716
- };
4717
-
4718
-
4719
- /**
4720
- * @param {string} value
4721
- * @return {!proto.ocap.AbciServerStatus} returns this
4722
- */
4723
- proto.ocap.AbciServerStatus.prototype.setAbciConsensus = function(value) {
4724
- return jspb.Message.setProto3StringField(this, 1, value);
4725
- };
4726
-
4727
-
4728
- /**
4729
- * optional string abci_info = 2;
4730
- * @return {string}
4731
- */
4732
- proto.ocap.AbciServerStatus.prototype.getAbciInfo = function() {
4733
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4734
- };
4735
-
4736
-
4737
- /**
4738
- * @param {string} value
4739
- * @return {!proto.ocap.AbciServerStatus} returns this
4740
- */
4741
- proto.ocap.AbciServerStatus.prototype.setAbciInfo = function(value) {
4742
- return jspb.Message.setProto3StringField(this, 2, value);
4743
- };
4744
-
4745
-
4746
-
4747
-
4748
-
4749
3139
  if (jspb.Message.GENERATE_TO_OBJECT) {
4750
3140
  /**
4751
3141
  * Creates an object representation of this proto.
@@ -8021,7 +6411,7 @@ proto.ocap.IndexedFactoryState.toObject = function(includeInstance, msg) {
8021
6411
  lastSettlement: jspb.Message.getFieldWithDefault(msg, 16, ""),
8022
6412
  genesisTime: jspb.Message.getFieldWithDefault(msg, 17, ""),
8023
6413
  renaissanceTime: jspb.Message.getFieldWithDefault(msg, 18, ""),
8024
- display: (f = msg.getDisplay()) && type_pb.AssetDisplay.toObject(includeInstance, f)
6414
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f)
8025
6415
  };
8026
6416
 
8027
6417
  if (includeInstance) {
@@ -8132,8 +6522,8 @@ proto.ocap.IndexedFactoryState.deserializeBinaryFromReader = function(msg, reade
8132
6522
  msg.setRenaissanceTime(value);
8133
6523
  break;
8134
6524
  case 19:
8135
- var value = new type_pb.AssetDisplay;
8136
- reader.readMessage(value,type_pb.AssetDisplay.deserializeBinaryFromReader);
6525
+ var value = new type_pb.NFTDisplay;
6526
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
8137
6527
  msg.setDisplay(value);
8138
6528
  break;
8139
6529
  default:
@@ -8294,7 +6684,7 @@ proto.ocap.IndexedFactoryState.serializeBinaryToWriter = function(message, write
8294
6684
  writer.writeMessage(
8295
6685
  19,
8296
6686
  f,
8297
- type_pb.AssetDisplay.serializeBinaryToWriter
6687
+ type_pb.NFTDisplay.serializeBinaryToWriter
8298
6688
  );
8299
6689
  }
8300
6690
  };
@@ -8723,17 +7113,17 @@ proto.ocap.IndexedFactoryState.prototype.setRenaissanceTime = function(value) {
8723
7113
 
8724
7114
 
8725
7115
  /**
8726
- * optional AssetDisplay display = 19;
8727
- * @return {?proto.ocap.AssetDisplay}
7116
+ * optional NFTDisplay display = 19;
7117
+ * @return {?proto.ocap.NFTDisplay}
8728
7118
  */
8729
7119
  proto.ocap.IndexedFactoryState.prototype.getDisplay = function() {
8730
- return /** @type{?proto.ocap.AssetDisplay} */ (
8731
- jspb.Message.getWrapperField(this, type_pb.AssetDisplay, 19));
7120
+ return /** @type{?proto.ocap.NFTDisplay} */ (
7121
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 19));
8732
7122
  };
8733
7123
 
8734
7124
 
8735
7125
  /**
8736
- * @param {?proto.ocap.AssetDisplay|undefined} value
7126
+ * @param {?proto.ocap.NFTDisplay|undefined} value
8737
7127
  * @return {!proto.ocap.IndexedFactoryState} returns this
8738
7128
  */
8739
7129
  proto.ocap.IndexedFactoryState.prototype.setDisplay = function(value) {