@ocap/proto 1.18.95 → 1.18.97
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.
- package/lib/gen/spec.json +170 -18
- package/lib/gen/state_pb.js +112 -1
- package/lib/gen/trace-type_pb.js +178 -0
- package/lib/gen/tx_pb.js +198 -147
- package/lib/gen/type_pb.js +1284 -0
- package/package.json +5 -5
package/lib/gen/spec.json
CHANGED
|
@@ -521,6 +521,10 @@
|
|
|
521
521
|
"stakeFilter": {
|
|
522
522
|
"type": "StakeFilter",
|
|
523
523
|
"id": 12
|
|
524
|
+
},
|
|
525
|
+
"delegationFilter": {
|
|
526
|
+
"type": "DelegationFilter",
|
|
527
|
+
"id": 13
|
|
524
528
|
}
|
|
525
529
|
}
|
|
526
530
|
},
|
|
@@ -2424,6 +2428,111 @@
|
|
|
2424
2428
|
}
|
|
2425
2429
|
}
|
|
2426
2430
|
},
|
|
2431
|
+
"RateLimit": {
|
|
2432
|
+
"fields": {
|
|
2433
|
+
"interval": {
|
|
2434
|
+
"type": "uint64",
|
|
2435
|
+
"id": 1
|
|
2436
|
+
},
|
|
2437
|
+
"anchor": {
|
|
2438
|
+
"type": "uint64",
|
|
2439
|
+
"id": 3
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
},
|
|
2443
|
+
"TokenLimit": {
|
|
2444
|
+
"fields": {
|
|
2445
|
+
"address": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"id": 1
|
|
2448
|
+
},
|
|
2449
|
+
"to": {
|
|
2450
|
+
"rule": "repeated",
|
|
2451
|
+
"type": "string",
|
|
2452
|
+
"id": 2
|
|
2453
|
+
},
|
|
2454
|
+
"txCount": {
|
|
2455
|
+
"type": "uint32",
|
|
2456
|
+
"id": 3
|
|
2457
|
+
},
|
|
2458
|
+
"txAllowance": {
|
|
2459
|
+
"type": "string",
|
|
2460
|
+
"id": 4
|
|
2461
|
+
},
|
|
2462
|
+
"totalAllowance": {
|
|
2463
|
+
"type": "string",
|
|
2464
|
+
"id": 5
|
|
2465
|
+
},
|
|
2466
|
+
"validUntil": {
|
|
2467
|
+
"type": "uint64",
|
|
2468
|
+
"id": 6
|
|
2469
|
+
},
|
|
2470
|
+
"rate": {
|
|
2471
|
+
"type": "RateLimit",
|
|
2472
|
+
"id": 7
|
|
2473
|
+
},
|
|
2474
|
+
"txSent": {
|
|
2475
|
+
"type": "uint32",
|
|
2476
|
+
"id": 8
|
|
2477
|
+
},
|
|
2478
|
+
"spentAllowance": {
|
|
2479
|
+
"type": "string",
|
|
2480
|
+
"id": 9
|
|
2481
|
+
},
|
|
2482
|
+
"lastTx": {
|
|
2483
|
+
"type": "uint64",
|
|
2484
|
+
"id": 10
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2488
|
+
"AssetLimit": {
|
|
2489
|
+
"fields": {
|
|
2490
|
+
"address": {
|
|
2491
|
+
"rule": "repeated",
|
|
2492
|
+
"type": "string",
|
|
2493
|
+
"id": 1
|
|
2494
|
+
},
|
|
2495
|
+
"to": {
|
|
2496
|
+
"rule": "repeated",
|
|
2497
|
+
"type": "string",
|
|
2498
|
+
"id": 2
|
|
2499
|
+
},
|
|
2500
|
+
"txCount": {
|
|
2501
|
+
"type": "uint32",
|
|
2502
|
+
"id": 3
|
|
2503
|
+
},
|
|
2504
|
+
"validUntil": {
|
|
2505
|
+
"type": "uint64",
|
|
2506
|
+
"id": 4
|
|
2507
|
+
},
|
|
2508
|
+
"rate": {
|
|
2509
|
+
"type": "RateLimit",
|
|
2510
|
+
"id": 5
|
|
2511
|
+
},
|
|
2512
|
+
"txSent": {
|
|
2513
|
+
"type": "uint32",
|
|
2514
|
+
"id": 6
|
|
2515
|
+
},
|
|
2516
|
+
"lastTx": {
|
|
2517
|
+
"type": "uint64",
|
|
2518
|
+
"id": 7
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
"DelegateLimit": {
|
|
2523
|
+
"fields": {
|
|
2524
|
+
"tokens": {
|
|
2525
|
+
"rule": "repeated",
|
|
2526
|
+
"type": "TokenLimit",
|
|
2527
|
+
"id": 1
|
|
2528
|
+
},
|
|
2529
|
+
"assets": {
|
|
2530
|
+
"rule": "repeated",
|
|
2531
|
+
"type": "AssetLimit",
|
|
2532
|
+
"id": 2
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
},
|
|
2427
2536
|
"AccountState": {
|
|
2428
2537
|
"fields": {
|
|
2429
2538
|
"balance": {
|
|
@@ -2640,23 +2749,42 @@
|
|
|
2640
2749
|
"fields": {
|
|
2641
2750
|
"rule": {
|
|
2642
2751
|
"type": "string",
|
|
2643
|
-
"id": 1
|
|
2752
|
+
"id": 1,
|
|
2753
|
+
"options": {
|
|
2754
|
+
"deprecated": true
|
|
2755
|
+
}
|
|
2644
2756
|
},
|
|
2645
2757
|
"numTxs": {
|
|
2646
2758
|
"type": "uint64",
|
|
2647
|
-
"id": 2
|
|
2759
|
+
"id": 2,
|
|
2760
|
+
"options": {
|
|
2761
|
+
"deprecated": true
|
|
2762
|
+
}
|
|
2648
2763
|
},
|
|
2649
2764
|
"numTxsDelta": {
|
|
2650
2765
|
"type": "uint64",
|
|
2651
|
-
"id": 3
|
|
2766
|
+
"id": 3,
|
|
2767
|
+
"options": {
|
|
2768
|
+
"deprecated": true
|
|
2769
|
+
}
|
|
2652
2770
|
},
|
|
2653
2771
|
"balance": {
|
|
2654
2772
|
"type": "BigUint",
|
|
2655
|
-
"id": 4
|
|
2773
|
+
"id": 4,
|
|
2774
|
+
"options": {
|
|
2775
|
+
"deprecated": true
|
|
2776
|
+
}
|
|
2656
2777
|
},
|
|
2657
2778
|
"balanceDelta": {
|
|
2658
2779
|
"type": "BigUint",
|
|
2659
|
-
"id": 5
|
|
2780
|
+
"id": 5,
|
|
2781
|
+
"options": {
|
|
2782
|
+
"deprecated": true
|
|
2783
|
+
}
|
|
2784
|
+
},
|
|
2785
|
+
"limit": {
|
|
2786
|
+
"type": "DelegateLimit",
|
|
2787
|
+
"id": 6
|
|
2660
2788
|
}
|
|
2661
2789
|
}
|
|
2662
2790
|
},
|
|
@@ -2671,6 +2799,14 @@
|
|
|
2671
2799
|
"type": "DelegateOpState",
|
|
2672
2800
|
"id": 2
|
|
2673
2801
|
},
|
|
2802
|
+
"from": {
|
|
2803
|
+
"type": "string",
|
|
2804
|
+
"id": 3
|
|
2805
|
+
},
|
|
2806
|
+
"to": {
|
|
2807
|
+
"type": "string",
|
|
2808
|
+
"id": 4
|
|
2809
|
+
},
|
|
2674
2810
|
"context": {
|
|
2675
2811
|
"type": "StateContext",
|
|
2676
2812
|
"id": 14
|
|
@@ -3170,6 +3306,26 @@
|
|
|
3170
3306
|
}
|
|
3171
3307
|
}
|
|
3172
3308
|
},
|
|
3309
|
+
"DelegateOp": {
|
|
3310
|
+
"fields": {
|
|
3311
|
+
"typeUrl": {
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"id": 1
|
|
3314
|
+
},
|
|
3315
|
+
"rules": {
|
|
3316
|
+
"rule": "repeated",
|
|
3317
|
+
"type": "string",
|
|
3318
|
+
"id": 2,
|
|
3319
|
+
"options": {
|
|
3320
|
+
"deprecated": true
|
|
3321
|
+
}
|
|
3322
|
+
},
|
|
3323
|
+
"limit": {
|
|
3324
|
+
"type": "DelegateLimit",
|
|
3325
|
+
"id": 3
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3173
3329
|
"DelegateTx": {
|
|
3174
3330
|
"fields": {
|
|
3175
3331
|
"address": {
|
|
@@ -3191,19 +3347,6 @@
|
|
|
3191
3347
|
}
|
|
3192
3348
|
}
|
|
3193
3349
|
},
|
|
3194
|
-
"DelegateOp": {
|
|
3195
|
-
"fields": {
|
|
3196
|
-
"typeUrl": {
|
|
3197
|
-
"type": "string",
|
|
3198
|
-
"id": 1
|
|
3199
|
-
},
|
|
3200
|
-
"rules": {
|
|
3201
|
-
"rule": "repeated",
|
|
3202
|
-
"type": "string",
|
|
3203
|
-
"id": 2
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
},
|
|
3207
3350
|
"RevokeDelegateTx": {
|
|
3208
3351
|
"fields": {
|
|
3209
3352
|
"address": {
|
|
@@ -4502,6 +4645,15 @@
|
|
|
4502
4645
|
}
|
|
4503
4646
|
}
|
|
4504
4647
|
},
|
|
4648
|
+
"DelegationFilter": {
|
|
4649
|
+
"fields": {
|
|
4650
|
+
"delegations": {
|
|
4651
|
+
"rule": "repeated",
|
|
4652
|
+
"type": "string",
|
|
4653
|
+
"id": 1
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4505
4657
|
"TokenFilter": {
|
|
4506
4658
|
"fields": {
|
|
4507
4659
|
"tokens": {
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -2740,7 +2740,8 @@ proto.ocap.DelegateOpState.toObject = function(includeInstance, msg) {
|
|
|
2740
2740
|
numTxs: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2741
2741
|
numTxsDelta: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2742
2742
|
balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
|
|
2743
|
-
balanceDelta: (f = msg.getBalanceDelta()) && type_pb.BigUint.toObject(includeInstance, f)
|
|
2743
|
+
balanceDelta: (f = msg.getBalanceDelta()) && type_pb.BigUint.toObject(includeInstance, f),
|
|
2744
|
+
limit: (f = msg.getLimit()) && type_pb.DelegateLimit.toObject(includeInstance, f)
|
|
2744
2745
|
};
|
|
2745
2746
|
|
|
2746
2747
|
if (includeInstance) {
|
|
@@ -2799,6 +2800,11 @@ proto.ocap.DelegateOpState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2799
2800
|
reader.readMessage(value,type_pb.BigUint.deserializeBinaryFromReader);
|
|
2800
2801
|
msg.setBalanceDelta(value);
|
|
2801
2802
|
break;
|
|
2803
|
+
case 6:
|
|
2804
|
+
var value = new type_pb.DelegateLimit;
|
|
2805
|
+
reader.readMessage(value,type_pb.DelegateLimit.deserializeBinaryFromReader);
|
|
2806
|
+
msg.setLimit(value);
|
|
2807
|
+
break;
|
|
2802
2808
|
default:
|
|
2803
2809
|
reader.skipField();
|
|
2804
2810
|
break;
|
|
@@ -2865,6 +2871,14 @@ proto.ocap.DelegateOpState.serializeBinaryToWriter = function(message, writer) {
|
|
|
2865
2871
|
type_pb.BigUint.serializeBinaryToWriter
|
|
2866
2872
|
);
|
|
2867
2873
|
}
|
|
2874
|
+
f = message.getLimit();
|
|
2875
|
+
if (f != null) {
|
|
2876
|
+
writer.writeMessage(
|
|
2877
|
+
6,
|
|
2878
|
+
f,
|
|
2879
|
+
type_pb.DelegateLimit.serializeBinaryToWriter
|
|
2880
|
+
);
|
|
2881
|
+
}
|
|
2868
2882
|
};
|
|
2869
2883
|
|
|
2870
2884
|
|
|
@@ -2996,6 +3010,43 @@ proto.ocap.DelegateOpState.prototype.hasBalanceDelta = function() {
|
|
|
2996
3010
|
};
|
|
2997
3011
|
|
|
2998
3012
|
|
|
3013
|
+
/**
|
|
3014
|
+
* optional DelegateLimit limit = 6;
|
|
3015
|
+
* @return {?proto.ocap.DelegateLimit}
|
|
3016
|
+
*/
|
|
3017
|
+
proto.ocap.DelegateOpState.prototype.getLimit = function() {
|
|
3018
|
+
return /** @type{?proto.ocap.DelegateLimit} */ (
|
|
3019
|
+
jspb.Message.getWrapperField(this, type_pb.DelegateLimit, 6));
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
/**
|
|
3024
|
+
* @param {?proto.ocap.DelegateLimit|undefined} value
|
|
3025
|
+
* @return {!proto.ocap.DelegateOpState} returns this
|
|
3026
|
+
*/
|
|
3027
|
+
proto.ocap.DelegateOpState.prototype.setLimit = function(value) {
|
|
3028
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Clears the message field making it undefined.
|
|
3034
|
+
* @return {!proto.ocap.DelegateOpState} returns this
|
|
3035
|
+
*/
|
|
3036
|
+
proto.ocap.DelegateOpState.prototype.clearLimit = function() {
|
|
3037
|
+
return this.setLimit(undefined);
|
|
3038
|
+
};
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
/**
|
|
3042
|
+
* Returns whether this field is set.
|
|
3043
|
+
* @return {boolean}
|
|
3044
|
+
*/
|
|
3045
|
+
proto.ocap.DelegateOpState.prototype.hasLimit = function() {
|
|
3046
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
|
|
2999
3050
|
|
|
3000
3051
|
|
|
3001
3052
|
|
|
@@ -3030,6 +3081,8 @@ proto.ocap.DelegateState.toObject = function(includeInstance, msg) {
|
|
|
3030
3081
|
var f, obj = {
|
|
3031
3082
|
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3032
3083
|
opsMap: (f = msg.getOpsMap()) ? f.toObject(includeInstance, proto.ocap.DelegateOpState.toObject) : [],
|
|
3084
|
+
from: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3085
|
+
to: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3033
3086
|
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
|
|
3034
3087
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
3035
3088
|
};
|
|
@@ -3078,6 +3131,14 @@ proto.ocap.DelegateState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3078
3131
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ocap.DelegateOpState.deserializeBinaryFromReader, "", new proto.ocap.DelegateOpState());
|
|
3079
3132
|
});
|
|
3080
3133
|
break;
|
|
3134
|
+
case 3:
|
|
3135
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3136
|
+
msg.setFrom(value);
|
|
3137
|
+
break;
|
|
3138
|
+
case 4:
|
|
3139
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3140
|
+
msg.setTo(value);
|
|
3141
|
+
break;
|
|
3081
3142
|
case 14:
|
|
3082
3143
|
var value = new type_pb.StateContext;
|
|
3083
3144
|
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
@@ -3128,6 +3189,20 @@ proto.ocap.DelegateState.serializeBinaryToWriter = function(message, writer) {
|
|
|
3128
3189
|
if (f && f.getLength() > 0) {
|
|
3129
3190
|
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ocap.DelegateOpState.serializeBinaryToWriter);
|
|
3130
3191
|
}
|
|
3192
|
+
f = message.getFrom();
|
|
3193
|
+
if (f.length > 0) {
|
|
3194
|
+
writer.writeString(
|
|
3195
|
+
3,
|
|
3196
|
+
f
|
|
3197
|
+
);
|
|
3198
|
+
}
|
|
3199
|
+
f = message.getTo();
|
|
3200
|
+
if (f.length > 0) {
|
|
3201
|
+
writer.writeString(
|
|
3202
|
+
4,
|
|
3203
|
+
f
|
|
3204
|
+
);
|
|
3205
|
+
}
|
|
3131
3206
|
f = message.getContext();
|
|
3132
3207
|
if (f != null) {
|
|
3133
3208
|
writer.writeMessage(
|
|
@@ -3187,6 +3262,42 @@ proto.ocap.DelegateState.prototype.clearOpsMap = function() {
|
|
|
3187
3262
|
return this;};
|
|
3188
3263
|
|
|
3189
3264
|
|
|
3265
|
+
/**
|
|
3266
|
+
* optional string from = 3;
|
|
3267
|
+
* @return {string}
|
|
3268
|
+
*/
|
|
3269
|
+
proto.ocap.DelegateState.prototype.getFrom = function() {
|
|
3270
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3271
|
+
};
|
|
3272
|
+
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* @param {string} value
|
|
3276
|
+
* @return {!proto.ocap.DelegateState} returns this
|
|
3277
|
+
*/
|
|
3278
|
+
proto.ocap.DelegateState.prototype.setFrom = function(value) {
|
|
3279
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* optional string to = 4;
|
|
3285
|
+
* @return {string}
|
|
3286
|
+
*/
|
|
3287
|
+
proto.ocap.DelegateState.prototype.getTo = function() {
|
|
3288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* @param {string} value
|
|
3294
|
+
* @return {!proto.ocap.DelegateState} returns this
|
|
3295
|
+
*/
|
|
3296
|
+
proto.ocap.DelegateState.prototype.setTo = function(value) {
|
|
3297
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3298
|
+
};
|
|
3299
|
+
|
|
3300
|
+
|
|
3190
3301
|
/**
|
|
3191
3302
|
* optional StateContext context = 14;
|
|
3192
3303
|
* @return {?proto.ocap.StateContext}
|
package/lib/gen/trace-type_pb.js
CHANGED
|
@@ -37,6 +37,7 @@ goog.exportSymbol('proto.ocap.AddressFilter', null, root);
|
|
|
37
37
|
goog.exportSymbol('proto.ocap.AssetFilter', null, root);
|
|
38
38
|
goog.exportSymbol('proto.ocap.ByDay', null, root);
|
|
39
39
|
goog.exportSymbol('proto.ocap.ByHour', null, root);
|
|
40
|
+
goog.exportSymbol('proto.ocap.DelegationFilter', null, root);
|
|
40
41
|
goog.exportSymbol('proto.ocap.Direction', null, root);
|
|
41
42
|
goog.exportSymbol('proto.ocap.FactoryFilter', null, root);
|
|
42
43
|
goog.exportSymbol('proto.ocap.IndexedAccountState', null, root);
|
|
@@ -170,6 +171,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
170
171
|
*/
|
|
171
172
|
proto.ocap.FactoryFilter.displayName = 'proto.ocap.FactoryFilter';
|
|
172
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Generated by JsPbCodeGenerator.
|
|
176
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
177
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
178
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
179
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
180
|
+
* valid.
|
|
181
|
+
* @extends {jspb.Message}
|
|
182
|
+
* @constructor
|
|
183
|
+
*/
|
|
184
|
+
proto.ocap.DelegationFilter = function(opt_data) {
|
|
185
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegationFilter.repeatedFields_, null);
|
|
186
|
+
};
|
|
187
|
+
goog.inherits(proto.ocap.DelegationFilter, jspb.Message);
|
|
188
|
+
if (goog.DEBUG && !COMPILED) {
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @override
|
|
192
|
+
*/
|
|
193
|
+
proto.ocap.DelegationFilter.displayName = 'proto.ocap.DelegationFilter';
|
|
194
|
+
}
|
|
173
195
|
/**
|
|
174
196
|
* Generated by JsPbCodeGenerator.
|
|
175
197
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1586,6 +1608,162 @@ proto.ocap.FactoryFilter.prototype.clearFactoriesList = function() {
|
|
|
1586
1608
|
|
|
1587
1609
|
|
|
1588
1610
|
|
|
1611
|
+
/**
|
|
1612
|
+
* List of repeated fields within this message type.
|
|
1613
|
+
* @private {!Array<number>}
|
|
1614
|
+
* @const
|
|
1615
|
+
*/
|
|
1616
|
+
proto.ocap.DelegationFilter.repeatedFields_ = [1];
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1621
|
+
/**
|
|
1622
|
+
* Creates an object representation of this proto.
|
|
1623
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1624
|
+
* Optional fields that are not set will be set to undefined.
|
|
1625
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1626
|
+
* For the list of reserved names please see:
|
|
1627
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1628
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1629
|
+
* JSPB instance for transitional soy proto support:
|
|
1630
|
+
* http://goto/soy-param-migration
|
|
1631
|
+
* @return {!Object}
|
|
1632
|
+
*/
|
|
1633
|
+
proto.ocap.DelegationFilter.prototype.toObject = function(opt_includeInstance) {
|
|
1634
|
+
return proto.ocap.DelegationFilter.toObject(opt_includeInstance, this);
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Static version of the {@see toObject} method.
|
|
1640
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1641
|
+
* the JSPB instance for transitional soy proto support:
|
|
1642
|
+
* http://goto/soy-param-migration
|
|
1643
|
+
* @param {!proto.ocap.DelegationFilter} msg The msg instance to transform.
|
|
1644
|
+
* @return {!Object}
|
|
1645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1646
|
+
*/
|
|
1647
|
+
proto.ocap.DelegationFilter.toObject = function(includeInstance, msg) {
|
|
1648
|
+
var f, obj = {
|
|
1649
|
+
delegationsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1652
|
+
if (includeInstance) {
|
|
1653
|
+
obj.$jspbMessageInstance = msg;
|
|
1654
|
+
}
|
|
1655
|
+
return obj;
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1662
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1663
|
+
* @return {!proto.ocap.DelegationFilter}
|
|
1664
|
+
*/
|
|
1665
|
+
proto.ocap.DelegationFilter.deserializeBinary = function(bytes) {
|
|
1666
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1667
|
+
var msg = new proto.ocap.DelegationFilter;
|
|
1668
|
+
return proto.ocap.DelegationFilter.deserializeBinaryFromReader(msg, reader);
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1674
|
+
* given reader into the given message object.
|
|
1675
|
+
* @param {!proto.ocap.DelegationFilter} msg The message object to deserialize into.
|
|
1676
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1677
|
+
* @return {!proto.ocap.DelegationFilter}
|
|
1678
|
+
*/
|
|
1679
|
+
proto.ocap.DelegationFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
1680
|
+
while (reader.nextField()) {
|
|
1681
|
+
if (reader.isEndGroup()) {
|
|
1682
|
+
break;
|
|
1683
|
+
}
|
|
1684
|
+
var field = reader.getFieldNumber();
|
|
1685
|
+
switch (field) {
|
|
1686
|
+
case 1:
|
|
1687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1688
|
+
msg.addDelegations(value);
|
|
1689
|
+
break;
|
|
1690
|
+
default:
|
|
1691
|
+
reader.skipField();
|
|
1692
|
+
break;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
return msg;
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1701
|
+
* @return {!Uint8Array}
|
|
1702
|
+
*/
|
|
1703
|
+
proto.ocap.DelegationFilter.prototype.serializeBinary = function() {
|
|
1704
|
+
var writer = new jspb.BinaryWriter();
|
|
1705
|
+
proto.ocap.DelegationFilter.serializeBinaryToWriter(this, writer);
|
|
1706
|
+
return writer.getResultBuffer();
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1712
|
+
* format), writing to the given BinaryWriter.
|
|
1713
|
+
* @param {!proto.ocap.DelegationFilter} message
|
|
1714
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1716
|
+
*/
|
|
1717
|
+
proto.ocap.DelegationFilter.serializeBinaryToWriter = function(message, writer) {
|
|
1718
|
+
var f = undefined;
|
|
1719
|
+
f = message.getDelegationsList();
|
|
1720
|
+
if (f.length > 0) {
|
|
1721
|
+
writer.writeRepeatedString(
|
|
1722
|
+
1,
|
|
1723
|
+
f
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* repeated string delegations = 1;
|
|
1731
|
+
* @return {!Array<string>}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.ocap.DelegationFilter.prototype.getDelegationsList = function() {
|
|
1734
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* @param {!Array<string>} value
|
|
1740
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1741
|
+
*/
|
|
1742
|
+
proto.ocap.DelegationFilter.prototype.setDelegationsList = function(value) {
|
|
1743
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* @param {string} value
|
|
1749
|
+
* @param {number=} opt_index
|
|
1750
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1751
|
+
*/
|
|
1752
|
+
proto.ocap.DelegationFilter.prototype.addDelegations = function(value, opt_index) {
|
|
1753
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Clears the list making it empty but non-null.
|
|
1759
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1760
|
+
*/
|
|
1761
|
+
proto.ocap.DelegationFilter.prototype.clearDelegationsList = function() {
|
|
1762
|
+
return this.setDelegationsList([]);
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1589
1767
|
/**
|
|
1590
1768
|
* List of repeated fields within this message type.
|
|
1591
1769
|
* @private {!Array<number>}
|