@ocap/proto 1.14.3 → 1.14.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -661,7 +507,7 @@ if (goog.DEBUG && !COMPILED) {
661
507
  * @constructor
662
508
  */
663
509
  proto.ocap.IndexedAssetState = function(opt_data) {
664
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
510
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.IndexedAssetState.repeatedFields_, null);
665
511
  };
666
512
  goog.inherits(proto.ocap.IndexedAssetState, jspb.Message);
667
513
  if (goog.DEBUG && !COMPILED) {
@@ -3303,8 +3149,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3303
3149
  * http://goto/soy-param-migration
3304
3150
  * @return {!Object}
3305
3151
  */
3306
- proto.ocap.HealthStatus.prototype.toObject = function(opt_includeInstance) {
3307
- return proto.ocap.HealthStatus.toObject(opt_includeInstance, this);
3152
+ proto.ocap.ValidityFilter.prototype.toObject = function(opt_includeInstance) {
3153
+ return proto.ocap.ValidityFilter.toObject(opt_includeInstance, this);
3308
3154
  };
3309
3155
 
3310
3156
 
@@ -3313,16 +3159,13 @@ proto.ocap.HealthStatus.prototype.toObject = function(opt_includeInstance) {
3313
3159
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3314
3160
  * the JSPB instance for transitional soy proto support:
3315
3161
  * http://goto/soy-param-migration
3316
- * @param {!proto.ocap.HealthStatus} msg The msg instance to transform.
3162
+ * @param {!proto.ocap.ValidityFilter} msg The msg instance to transform.
3317
3163
  * @return {!Object}
3318
3164
  * @suppress {unusedLocalVariables} f is only used for nested messages
3319
3165
  */
3320
- proto.ocap.HealthStatus.toObject = function(includeInstance, msg) {
3166
+ proto.ocap.ValidityFilter.toObject = function(includeInstance, msg) {
3321
3167
  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)
3168
+ validity: jspb.Message.getFieldWithDefault(msg, 1, 0)
3326
3169
  };
3327
3170
 
3328
3171
  if (includeInstance) {
@@ -3336,23 +3179,23 @@ proto.ocap.HealthStatus.toObject = function(includeInstance, msg) {
3336
3179
  /**
3337
3180
  * Deserializes binary data (in protobuf wire format).
3338
3181
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3339
- * @return {!proto.ocap.HealthStatus}
3182
+ * @return {!proto.ocap.ValidityFilter}
3340
3183
  */
3341
- proto.ocap.HealthStatus.deserializeBinary = function(bytes) {
3184
+ proto.ocap.ValidityFilter.deserializeBinary = function(bytes) {
3342
3185
  var reader = new jspb.BinaryReader(bytes);
3343
- var msg = new proto.ocap.HealthStatus;
3344
- return proto.ocap.HealthStatus.deserializeBinaryFromReader(msg, reader);
3186
+ var msg = new proto.ocap.ValidityFilter;
3187
+ return proto.ocap.ValidityFilter.deserializeBinaryFromReader(msg, reader);
3345
3188
  };
3346
3189
 
3347
3190
 
3348
3191
  /**
3349
3192
  * Deserializes binary data (in protobuf wire format) from the
3350
3193
  * given reader into the given message object.
3351
- * @param {!proto.ocap.HealthStatus} msg The message object to deserialize into.
3194
+ * @param {!proto.ocap.ValidityFilter} msg The message object to deserialize into.
3352
3195
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3353
- * @return {!proto.ocap.HealthStatus}
3196
+ * @return {!proto.ocap.ValidityFilter}
3354
3197
  */
3355
- proto.ocap.HealthStatus.deserializeBinaryFromReader = function(msg, reader) {
3198
+ proto.ocap.ValidityFilter.deserializeBinaryFromReader = function(msg, reader) {
3356
3199
  while (reader.nextField()) {
3357
3200
  if (reader.isEndGroup()) {
3358
3201
  break;
@@ -3360,24 +3203,8 @@ proto.ocap.HealthStatus.deserializeBinaryFromReader = function(msg, reader) {
3360
3203
  var field = reader.getFieldNumber();
3361
3204
  switch (field) {
3362
3205
  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);
3206
+ var value = /** @type {!proto.ocap.Validity} */ (reader.readEnum());
3207
+ msg.setValidity(value);
3381
3208
  break;
3382
3209
  default:
3383
3210
  reader.skipField();
@@ -3392,9 +3219,9 @@ proto.ocap.HealthStatus.deserializeBinaryFromReader = function(msg, reader) {
3392
3219
  * Serializes the message to binary data (in protobuf wire format).
3393
3220
  * @return {!Uint8Array}
3394
3221
  */
3395
- proto.ocap.HealthStatus.prototype.serializeBinary = function() {
3222
+ proto.ocap.ValidityFilter.prototype.serializeBinary = function() {
3396
3223
  var writer = new jspb.BinaryWriter();
3397
- proto.ocap.HealthStatus.serializeBinaryToWriter(this, writer);
3224
+ proto.ocap.ValidityFilter.serializeBinaryToWriter(this, writer);
3398
3225
  return writer.getResultBuffer();
3399
3226
  };
3400
3227
 
@@ -3402,1530 +3229,93 @@ proto.ocap.HealthStatus.prototype.serializeBinary = function() {
3402
3229
  /**
3403
3230
  * Serializes the given message to binary data (in protobuf wire
3404
3231
  * format), writing to the given BinaryWriter.
3405
- * @param {!proto.ocap.HealthStatus} message
3232
+ * @param {!proto.ocap.ValidityFilter} message
3406
3233
  * @param {!jspb.BinaryWriter} writer
3407
3234
  * @suppress {unusedLocalVariables} f is only used for nested messages
3408
3235
  */
3409
- proto.ocap.HealthStatus.serializeBinaryToWriter = function(message, writer) {
3236
+ proto.ocap.ValidityFilter.serializeBinaryToWriter = function(message, writer) {
3410
3237
  var f = undefined;
3411
- f = message.getConsensus();
3412
- if (f != null) {
3413
- writer.writeMessage(
3238
+ f = message.getValidity();
3239
+ if (f !== 0.0) {
3240
+ writer.writeEnum(
3414
3241
  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
3242
+ f
3441
3243
  );
3442
3244
  }
3443
3245
  };
3444
3246
 
3445
3247
 
3446
3248
  /**
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}
3249
+ * optional Validity validity = 1;
3250
+ * @return {!proto.ocap.Validity}
3477
3251
  */
3478
- proto.ocap.HealthStatus.prototype.hasConsensus = function() {
3479
- return jspb.Message.getField(this, 1) != null;
3252
+ proto.ocap.ValidityFilter.prototype.getValidity = function() {
3253
+ return /** @type {!proto.ocap.Validity} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3480
3254
  };
3481
3255
 
3482
3256
 
3483
3257
  /**
3484
- * optional NetworkStatus network = 2;
3485
- * @return {?proto.ocap.NetworkStatus}
3258
+ * @param {!proto.ocap.Validity} value
3259
+ * @return {!proto.ocap.ValidityFilter} returns this
3486
3260
  */
3487
- proto.ocap.HealthStatus.prototype.getNetwork = function() {
3488
- return /** @type{?proto.ocap.NetworkStatus} */ (
3489
- jspb.Message.getWrapperField(this, proto.ocap.NetworkStatus, 2));
3261
+ proto.ocap.ValidityFilter.prototype.setValidity = function(value) {
3262
+ return jspb.Message.setProto3EnumField(this, 1, value);
3490
3263
  };
3491
3264
 
3492
3265
 
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
3266
 
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
3267
 
3510
3268
 
3269
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3511
3270
  /**
3512
- * Returns whether this field is set.
3513
- * @return {boolean}
3271
+ * Creates an object representation of this proto.
3272
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3273
+ * Optional fields that are not set will be set to undefined.
3274
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3275
+ * For the list of reserved names please see:
3276
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3277
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3278
+ * JSPB instance for transitional soy proto support:
3279
+ * http://goto/soy-param-migration
3280
+ * @return {!Object}
3514
3281
  */
3515
- proto.ocap.HealthStatus.prototype.hasNetwork = function() {
3516
- return jspb.Message.getField(this, 2) != null;
3282
+ proto.ocap.RangeFilter.prototype.toObject = function(opt_includeInstance) {
3283
+ return proto.ocap.RangeFilter.toObject(opt_includeInstance, this);
3517
3284
  };
3518
3285
 
3519
3286
 
3520
3287
  /**
3521
- * optional StorageStatus storage = 3;
3522
- * @return {?proto.ocap.StorageStatus}
3288
+ * Static version of the {@see toObject} method.
3289
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3290
+ * the JSPB instance for transitional soy proto support:
3291
+ * http://goto/soy-param-migration
3292
+ * @param {!proto.ocap.RangeFilter} msg The msg instance to transform.
3293
+ * @return {!Object}
3294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3523
3295
  */
3524
- proto.ocap.HealthStatus.prototype.getStorage = function() {
3525
- return /** @type{?proto.ocap.StorageStatus} */ (
3526
- jspb.Message.getWrapperField(this, proto.ocap.StorageStatus, 3));
3527
- };
3528
-
3296
+ proto.ocap.RangeFilter.toObject = function(includeInstance, msg) {
3297
+ var f, obj = {
3298
+ from: jspb.Message.getFieldWithDefault(msg, 1, ""),
3299
+ to: jspb.Message.getFieldWithDefault(msg, 2, "")
3300
+ };
3529
3301
 
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);
3302
+ if (includeInstance) {
3303
+ obj.$jspbMessageInstance = msg;
3304
+ }
3305
+ return obj;
3536
3306
  };
3307
+ }
3537
3308
 
3538
3309
 
3539
3310
  /**
3540
- * Clears the message field making it undefined.
3541
- * @return {!proto.ocap.HealthStatus} returns this
3311
+ * Deserializes binary data (in protobuf wire format).
3312
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3313
+ * @return {!proto.ocap.RangeFilter}
3542
3314
  */
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
- if (jspb.Message.GENERATE_TO_OBJECT) {
4750
- /**
4751
- * Creates an object representation of this proto.
4752
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4753
- * Optional fields that are not set will be set to undefined.
4754
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4755
- * For the list of reserved names please see:
4756
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4757
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4758
- * JSPB instance for transitional soy proto support:
4759
- * http://goto/soy-param-migration
4760
- * @return {!Object}
4761
- */
4762
- proto.ocap.ValidityFilter.prototype.toObject = function(opt_includeInstance) {
4763
- return proto.ocap.ValidityFilter.toObject(opt_includeInstance, this);
4764
- };
4765
-
4766
-
4767
- /**
4768
- * Static version of the {@see toObject} method.
4769
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4770
- * the JSPB instance for transitional soy proto support:
4771
- * http://goto/soy-param-migration
4772
- * @param {!proto.ocap.ValidityFilter} msg The msg instance to transform.
4773
- * @return {!Object}
4774
- * @suppress {unusedLocalVariables} f is only used for nested messages
4775
- */
4776
- proto.ocap.ValidityFilter.toObject = function(includeInstance, msg) {
4777
- var f, obj = {
4778
- validity: jspb.Message.getFieldWithDefault(msg, 1, 0)
4779
- };
4780
-
4781
- if (includeInstance) {
4782
- obj.$jspbMessageInstance = msg;
4783
- }
4784
- return obj;
4785
- };
4786
- }
4787
-
4788
-
4789
- /**
4790
- * Deserializes binary data (in protobuf wire format).
4791
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4792
- * @return {!proto.ocap.ValidityFilter}
4793
- */
4794
- proto.ocap.ValidityFilter.deserializeBinary = function(bytes) {
4795
- var reader = new jspb.BinaryReader(bytes);
4796
- var msg = new proto.ocap.ValidityFilter;
4797
- return proto.ocap.ValidityFilter.deserializeBinaryFromReader(msg, reader);
4798
- };
4799
-
4800
-
4801
- /**
4802
- * Deserializes binary data (in protobuf wire format) from the
4803
- * given reader into the given message object.
4804
- * @param {!proto.ocap.ValidityFilter} msg The message object to deserialize into.
4805
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4806
- * @return {!proto.ocap.ValidityFilter}
4807
- */
4808
- proto.ocap.ValidityFilter.deserializeBinaryFromReader = function(msg, reader) {
4809
- while (reader.nextField()) {
4810
- if (reader.isEndGroup()) {
4811
- break;
4812
- }
4813
- var field = reader.getFieldNumber();
4814
- switch (field) {
4815
- case 1:
4816
- var value = /** @type {!proto.ocap.Validity} */ (reader.readEnum());
4817
- msg.setValidity(value);
4818
- break;
4819
- default:
4820
- reader.skipField();
4821
- break;
4822
- }
4823
- }
4824
- return msg;
4825
- };
4826
-
4827
-
4828
- /**
4829
- * Serializes the message to binary data (in protobuf wire format).
4830
- * @return {!Uint8Array}
4831
- */
4832
- proto.ocap.ValidityFilter.prototype.serializeBinary = function() {
4833
- var writer = new jspb.BinaryWriter();
4834
- proto.ocap.ValidityFilter.serializeBinaryToWriter(this, writer);
4835
- return writer.getResultBuffer();
4836
- };
4837
-
4838
-
4839
- /**
4840
- * Serializes the given message to binary data (in protobuf wire
4841
- * format), writing to the given BinaryWriter.
4842
- * @param {!proto.ocap.ValidityFilter} message
4843
- * @param {!jspb.BinaryWriter} writer
4844
- * @suppress {unusedLocalVariables} f is only used for nested messages
4845
- */
4846
- proto.ocap.ValidityFilter.serializeBinaryToWriter = function(message, writer) {
4847
- var f = undefined;
4848
- f = message.getValidity();
4849
- if (f !== 0.0) {
4850
- writer.writeEnum(
4851
- 1,
4852
- f
4853
- );
4854
- }
4855
- };
4856
-
4857
-
4858
- /**
4859
- * optional Validity validity = 1;
4860
- * @return {!proto.ocap.Validity}
4861
- */
4862
- proto.ocap.ValidityFilter.prototype.getValidity = function() {
4863
- return /** @type {!proto.ocap.Validity} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4864
- };
4865
-
4866
-
4867
- /**
4868
- * @param {!proto.ocap.Validity} value
4869
- * @return {!proto.ocap.ValidityFilter} returns this
4870
- */
4871
- proto.ocap.ValidityFilter.prototype.setValidity = function(value) {
4872
- return jspb.Message.setProto3EnumField(this, 1, value);
4873
- };
4874
-
4875
-
4876
-
4877
-
4878
-
4879
- if (jspb.Message.GENERATE_TO_OBJECT) {
4880
- /**
4881
- * Creates an object representation of this proto.
4882
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4883
- * Optional fields that are not set will be set to undefined.
4884
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4885
- * For the list of reserved names please see:
4886
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4887
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4888
- * JSPB instance for transitional soy proto support:
4889
- * http://goto/soy-param-migration
4890
- * @return {!Object}
4891
- */
4892
- proto.ocap.RangeFilter.prototype.toObject = function(opt_includeInstance) {
4893
- return proto.ocap.RangeFilter.toObject(opt_includeInstance, this);
4894
- };
4895
-
4896
-
4897
- /**
4898
- * Static version of the {@see toObject} method.
4899
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4900
- * the JSPB instance for transitional soy proto support:
4901
- * http://goto/soy-param-migration
4902
- * @param {!proto.ocap.RangeFilter} msg The msg instance to transform.
4903
- * @return {!Object}
4904
- * @suppress {unusedLocalVariables} f is only used for nested messages
4905
- */
4906
- proto.ocap.RangeFilter.toObject = function(includeInstance, msg) {
4907
- var f, obj = {
4908
- from: jspb.Message.getFieldWithDefault(msg, 1, ""),
4909
- to: jspb.Message.getFieldWithDefault(msg, 2, "")
4910
- };
4911
-
4912
- if (includeInstance) {
4913
- obj.$jspbMessageInstance = msg;
4914
- }
4915
- return obj;
4916
- };
4917
- }
4918
-
4919
-
4920
- /**
4921
- * Deserializes binary data (in protobuf wire format).
4922
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4923
- * @return {!proto.ocap.RangeFilter}
4924
- */
4925
- proto.ocap.RangeFilter.deserializeBinary = function(bytes) {
4926
- var reader = new jspb.BinaryReader(bytes);
4927
- var msg = new proto.ocap.RangeFilter;
4928
- return proto.ocap.RangeFilter.deserializeBinaryFromReader(msg, reader);
3315
+ proto.ocap.RangeFilter.deserializeBinary = function(bytes) {
3316
+ var reader = new jspb.BinaryReader(bytes);
3317
+ var msg = new proto.ocap.RangeFilter;
3318
+ return proto.ocap.RangeFilter.deserializeBinaryFromReader(msg, reader);
4929
3319
  };
4930
3320
 
4931
3321
 
@@ -6701,6 +5091,13 @@ proto.ocap.IndexedAccountState.prototype.clearTokensList = function() {
6701
5091
 
6702
5092
 
6703
5093
 
5094
+ /**
5095
+ * List of repeated fields within this message type.
5096
+ * @private {!Array<number>}
5097
+ * @const
5098
+ */
5099
+ proto.ocap.IndexedAssetState.repeatedFields_ = [14];
5100
+
6704
5101
 
6705
5102
 
6706
5103
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -6743,6 +5140,9 @@ proto.ocap.IndexedAssetState.toObject = function(includeInstance, msg) {
6743
5140
  parent: jspb.Message.getFieldWithDefault(msg, 9, ""),
6744
5141
  transferrable: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
6745
5142
  ttl: jspb.Message.getFieldWithDefault(msg, 11, ""),
5143
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f),
5144
+ endpoint: (f = msg.getEndpoint()) && type_pb.NFTEndpoint.toObject(includeInstance, f),
5145
+ tagsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
6746
5146
  data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
6747
5147
  };
6748
5148
 
@@ -6824,6 +5224,20 @@ proto.ocap.IndexedAssetState.deserializeBinaryFromReader = function(msg, reader)
6824
5224
  var value = /** @type {string} */ (reader.readString());
6825
5225
  msg.setTtl(value);
6826
5226
  break;
5227
+ case 12:
5228
+ var value = new type_pb.NFTDisplay;
5229
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
5230
+ msg.setDisplay(value);
5231
+ break;
5232
+ case 13:
5233
+ var value = new type_pb.NFTEndpoint;
5234
+ reader.readMessage(value,type_pb.NFTEndpoint.deserializeBinaryFromReader);
5235
+ msg.setEndpoint(value);
5236
+ break;
5237
+ case 14:
5238
+ var value = /** @type {string} */ (reader.readString());
5239
+ msg.addTags(value);
5240
+ break;
6827
5241
  case 50:
6828
5242
  var value = new google_protobuf_any_pb.Any;
6829
5243
  reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
@@ -6935,6 +5349,29 @@ proto.ocap.IndexedAssetState.serializeBinaryToWriter = function(message, writer)
6935
5349
  f
6936
5350
  );
6937
5351
  }
5352
+ f = message.getDisplay();
5353
+ if (f != null) {
5354
+ writer.writeMessage(
5355
+ 12,
5356
+ f,
5357
+ type_pb.NFTDisplay.serializeBinaryToWriter
5358
+ );
5359
+ }
5360
+ f = message.getEndpoint();
5361
+ if (f != null) {
5362
+ writer.writeMessage(
5363
+ 13,
5364
+ f,
5365
+ type_pb.NFTEndpoint.serializeBinaryToWriter
5366
+ );
5367
+ }
5368
+ f = message.getTagsList();
5369
+ if (f.length > 0) {
5370
+ writer.writeRepeatedString(
5371
+ 14,
5372
+ f
5373
+ );
5374
+ }
6938
5375
  f = message.getData();
6939
5376
  if (f != null) {
6940
5377
  writer.writeMessage(
@@ -7144,6 +5581,117 @@ proto.ocap.IndexedAssetState.prototype.setTtl = function(value) {
7144
5581
  };
7145
5582
 
7146
5583
 
5584
+ /**
5585
+ * optional NFTDisplay display = 12;
5586
+ * @return {?proto.ocap.NFTDisplay}
5587
+ */
5588
+ proto.ocap.IndexedAssetState.prototype.getDisplay = function() {
5589
+ return /** @type{?proto.ocap.NFTDisplay} */ (
5590
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 12));
5591
+ };
5592
+
5593
+
5594
+ /**
5595
+ * @param {?proto.ocap.NFTDisplay|undefined} value
5596
+ * @return {!proto.ocap.IndexedAssetState} returns this
5597
+ */
5598
+ proto.ocap.IndexedAssetState.prototype.setDisplay = function(value) {
5599
+ return jspb.Message.setWrapperField(this, 12, value);
5600
+ };
5601
+
5602
+
5603
+ /**
5604
+ * Clears the message field making it undefined.
5605
+ * @return {!proto.ocap.IndexedAssetState} returns this
5606
+ */
5607
+ proto.ocap.IndexedAssetState.prototype.clearDisplay = function() {
5608
+ return this.setDisplay(undefined);
5609
+ };
5610
+
5611
+
5612
+ /**
5613
+ * Returns whether this field is set.
5614
+ * @return {boolean}
5615
+ */
5616
+ proto.ocap.IndexedAssetState.prototype.hasDisplay = function() {
5617
+ return jspb.Message.getField(this, 12) != null;
5618
+ };
5619
+
5620
+
5621
+ /**
5622
+ * optional NFTEndpoint endpoint = 13;
5623
+ * @return {?proto.ocap.NFTEndpoint}
5624
+ */
5625
+ proto.ocap.IndexedAssetState.prototype.getEndpoint = function() {
5626
+ return /** @type{?proto.ocap.NFTEndpoint} */ (
5627
+ jspb.Message.getWrapperField(this, type_pb.NFTEndpoint, 13));
5628
+ };
5629
+
5630
+
5631
+ /**
5632
+ * @param {?proto.ocap.NFTEndpoint|undefined} value
5633
+ * @return {!proto.ocap.IndexedAssetState} returns this
5634
+ */
5635
+ proto.ocap.IndexedAssetState.prototype.setEndpoint = function(value) {
5636
+ return jspb.Message.setWrapperField(this, 13, value);
5637
+ };
5638
+
5639
+
5640
+ /**
5641
+ * Clears the message field making it undefined.
5642
+ * @return {!proto.ocap.IndexedAssetState} returns this
5643
+ */
5644
+ proto.ocap.IndexedAssetState.prototype.clearEndpoint = function() {
5645
+ return this.setEndpoint(undefined);
5646
+ };
5647
+
5648
+
5649
+ /**
5650
+ * Returns whether this field is set.
5651
+ * @return {boolean}
5652
+ */
5653
+ proto.ocap.IndexedAssetState.prototype.hasEndpoint = function() {
5654
+ return jspb.Message.getField(this, 13) != null;
5655
+ };
5656
+
5657
+
5658
+ /**
5659
+ * repeated string tags = 14;
5660
+ * @return {!Array<string>}
5661
+ */
5662
+ proto.ocap.IndexedAssetState.prototype.getTagsList = function() {
5663
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
5664
+ };
5665
+
5666
+
5667
+ /**
5668
+ * @param {!Array<string>} value
5669
+ * @return {!proto.ocap.IndexedAssetState} returns this
5670
+ */
5671
+ proto.ocap.IndexedAssetState.prototype.setTagsList = function(value) {
5672
+ return jspb.Message.setField(this, 14, value || []);
5673
+ };
5674
+
5675
+
5676
+ /**
5677
+ * @param {string} value
5678
+ * @param {number=} opt_index
5679
+ * @return {!proto.ocap.IndexedAssetState} returns this
5680
+ */
5681
+ proto.ocap.IndexedAssetState.prototype.addTags = function(value, opt_index) {
5682
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
5683
+ };
5684
+
5685
+
5686
+ /**
5687
+ * Clears the list making it empty but non-null.
5688
+ * @return {!proto.ocap.IndexedAssetState} returns this
5689
+ */
5690
+ proto.ocap.IndexedAssetState.prototype.clearTagsList = function() {
5691
+ return this.setTagsList([]);
5692
+ };
5693
+
5694
+
7147
5695
  /**
7148
5696
  * optional google.protobuf.Any data = 50;
7149
5697
  * @return {?proto.google.protobuf.Any}
@@ -8021,7 +6569,7 @@ proto.ocap.IndexedFactoryState.toObject = function(includeInstance, msg) {
8021
6569
  lastSettlement: jspb.Message.getFieldWithDefault(msg, 16, ""),
8022
6570
  genesisTime: jspb.Message.getFieldWithDefault(msg, 17, ""),
8023
6571
  renaissanceTime: jspb.Message.getFieldWithDefault(msg, 18, ""),
8024
- display: (f = msg.getDisplay()) && type_pb.AssetDisplay.toObject(includeInstance, f)
6572
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f)
8025
6573
  };
8026
6574
 
8027
6575
  if (includeInstance) {
@@ -8132,8 +6680,8 @@ proto.ocap.IndexedFactoryState.deserializeBinaryFromReader = function(msg, reade
8132
6680
  msg.setRenaissanceTime(value);
8133
6681
  break;
8134
6682
  case 19:
8135
- var value = new type_pb.AssetDisplay;
8136
- reader.readMessage(value,type_pb.AssetDisplay.deserializeBinaryFromReader);
6683
+ var value = new type_pb.NFTDisplay;
6684
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
8137
6685
  msg.setDisplay(value);
8138
6686
  break;
8139
6687
  default:
@@ -8294,7 +6842,7 @@ proto.ocap.IndexedFactoryState.serializeBinaryToWriter = function(message, write
8294
6842
  writer.writeMessage(
8295
6843
  19,
8296
6844
  f,
8297
- type_pb.AssetDisplay.serializeBinaryToWriter
6845
+ type_pb.NFTDisplay.serializeBinaryToWriter
8298
6846
  );
8299
6847
  }
8300
6848
  };
@@ -8723,17 +7271,17 @@ proto.ocap.IndexedFactoryState.prototype.setRenaissanceTime = function(value) {
8723
7271
 
8724
7272
 
8725
7273
  /**
8726
- * optional AssetDisplay display = 19;
8727
- * @return {?proto.ocap.AssetDisplay}
7274
+ * optional NFTDisplay display = 19;
7275
+ * @return {?proto.ocap.NFTDisplay}
8728
7276
  */
8729
7277
  proto.ocap.IndexedFactoryState.prototype.getDisplay = function() {
8730
- return /** @type{?proto.ocap.AssetDisplay} */ (
8731
- jspb.Message.getWrapperField(this, type_pb.AssetDisplay, 19));
7278
+ return /** @type{?proto.ocap.NFTDisplay} */ (
7279
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 19));
8732
7280
  };
8733
7281
 
8734
7282
 
8735
7283
  /**
8736
- * @param {?proto.ocap.AssetDisplay|undefined} value
7284
+ * @param {?proto.ocap.NFTDisplay|undefined} value
8737
7285
  * @return {!proto.ocap.IndexedFactoryState} returns this
8738
7286
  */
8739
7287
  proto.ocap.IndexedFactoryState.prototype.setDisplay = function(value) {