protobuf-platform 1.2.693 → 1.2.695
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/loyalty/loyalty.proto +17 -0
- package/loyalty/loyalty_pb.js +558 -2
- package/package.json +1 -1
- package/scripts/verify-delegated-rg-contract.js +57 -0
- package/user/user.proto +5 -0
- package/user/user_pb.js +193 -1
package/loyalty/loyalty.proto
CHANGED
|
@@ -89,6 +89,8 @@ message LevelItem {
|
|
|
89
89
|
// Level completion reward amount; currency is required for monetary execution.
|
|
90
90
|
optional string total_level_up_amount = 17;
|
|
91
91
|
optional string total_level_up_currency = 18;
|
|
92
|
+
// Absent when this level has no deposit-point cap. A present limit of "0" awards nothing.
|
|
93
|
+
optional ClientDepositPointLevelLimit deposit_points_limit = 19;
|
|
92
94
|
}
|
|
93
95
|
message LevelRewardTranslationItem {
|
|
94
96
|
string locale = 1;
|
|
@@ -308,6 +310,8 @@ message UserLoyaltyResponse {
|
|
|
308
310
|
repeated LevelRewardItem rewards = 17;
|
|
309
311
|
optional string total_level_up_amount = 18;
|
|
310
312
|
optional string total_level_up_currency = 19;
|
|
313
|
+
// Absent when the user's current level has no deposit-point cap.
|
|
314
|
+
optional ClientDepositPointLimit deposit_points_limit = 20;
|
|
311
315
|
}
|
|
312
316
|
message UserLoyaltyPoint {
|
|
313
317
|
int32 user_point_id = 1;
|
|
@@ -359,4 +363,17 @@ message DepositPointLevelLimitItemsResponse {
|
|
|
359
363
|
}
|
|
360
364
|
message DepositPointLimitStatusResponse {
|
|
361
365
|
string status = 1;
|
|
366
|
+
}
|
|
367
|
+
// Client catalog cap. limit is a non-negative decimal string. Absence means unlimited.
|
|
368
|
+
message ClientDepositPointLevelLimit {
|
|
369
|
+
string period = 1;
|
|
370
|
+
string limit = 2;
|
|
371
|
+
}
|
|
372
|
+
// Client cap for the current user. earned and remaining use the award ledger scale.
|
|
373
|
+
message ClientDepositPointLimit {
|
|
374
|
+
string period = 1;
|
|
375
|
+
string limit = 2;
|
|
376
|
+
string earned = 3;
|
|
377
|
+
string remaining = 4;
|
|
378
|
+
string resets_at = 5;
|
|
362
379
|
}
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -22,6 +22,8 @@ var global = (function() {
|
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
24
|
goog.exportSymbol('proto.loyalty.BetPoint', null, global);
|
|
25
|
+
goog.exportSymbol('proto.loyalty.ClientDepositPointLevelLimit', null, global);
|
|
26
|
+
goog.exportSymbol('proto.loyalty.ClientDepositPointLimit', null, global);
|
|
25
27
|
goog.exportSymbol('proto.loyalty.DepositPoint', null, global);
|
|
26
28
|
goog.exportSymbol('proto.loyalty.DepositPointLevelLimit', null, global);
|
|
27
29
|
goog.exportSymbol('proto.loyalty.DepositPointLevelLimitItemsResponse', null, global);
|
|
@@ -1078,6 +1080,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1078
1080
|
*/
|
|
1079
1081
|
proto.loyalty.DepositPointLimitStatusResponse.displayName = 'proto.loyalty.DepositPointLimitStatusResponse';
|
|
1080
1082
|
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Generated by JsPbCodeGenerator.
|
|
1085
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1086
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1087
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1088
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1089
|
+
* valid.
|
|
1090
|
+
* @extends {jspb.Message}
|
|
1091
|
+
* @constructor
|
|
1092
|
+
*/
|
|
1093
|
+
proto.loyalty.ClientDepositPointLevelLimit = function(opt_data) {
|
|
1094
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1095
|
+
};
|
|
1096
|
+
goog.inherits(proto.loyalty.ClientDepositPointLevelLimit, jspb.Message);
|
|
1097
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1098
|
+
/**
|
|
1099
|
+
* @public
|
|
1100
|
+
* @override
|
|
1101
|
+
*/
|
|
1102
|
+
proto.loyalty.ClientDepositPointLevelLimit.displayName = 'proto.loyalty.ClientDepositPointLevelLimit';
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Generated by JsPbCodeGenerator.
|
|
1106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1110
|
+
* valid.
|
|
1111
|
+
* @extends {jspb.Message}
|
|
1112
|
+
* @constructor
|
|
1113
|
+
*/
|
|
1114
|
+
proto.loyalty.ClientDepositPointLimit = function(opt_data) {
|
|
1115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1116
|
+
};
|
|
1117
|
+
goog.inherits(proto.loyalty.ClientDepositPointLimit, jspb.Message);
|
|
1118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1119
|
+
/**
|
|
1120
|
+
* @public
|
|
1121
|
+
* @override
|
|
1122
|
+
*/
|
|
1123
|
+
proto.loyalty.ClientDepositPointLimit.displayName = 'proto.loyalty.ClientDepositPointLimit';
|
|
1124
|
+
}
|
|
1081
1125
|
|
|
1082
1126
|
|
|
1083
1127
|
|
|
@@ -3004,7 +3048,8 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
3004
3048
|
portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
3005
3049
|
pointsRequired: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
3006
3050
|
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
3007
|
-
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
3051
|
+
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
3052
|
+
depositPointsLimit: (f = msg.getDepositPointsLimit()) && proto.loyalty.ClientDepositPointLevelLimit.toObject(includeInstance, f)
|
|
3008
3053
|
};
|
|
3009
3054
|
|
|
3010
3055
|
if (includeInstance) {
|
|
@@ -3115,6 +3160,11 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3115
3160
|
var value = /** @type {string} */ (reader.readString());
|
|
3116
3161
|
msg.setTotalLevelUpCurrency(value);
|
|
3117
3162
|
break;
|
|
3163
|
+
case 19:
|
|
3164
|
+
var value = new proto.loyalty.ClientDepositPointLevelLimit;
|
|
3165
|
+
reader.readMessage(value,proto.loyalty.ClientDepositPointLevelLimit.deserializeBinaryFromReader);
|
|
3166
|
+
msg.setDepositPointsLimit(value);
|
|
3167
|
+
break;
|
|
3118
3168
|
default:
|
|
3119
3169
|
reader.skipField();
|
|
3120
3170
|
break;
|
|
@@ -3272,6 +3322,14 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
3272
3322
|
f
|
|
3273
3323
|
);
|
|
3274
3324
|
}
|
|
3325
|
+
f = message.getDepositPointsLimit();
|
|
3326
|
+
if (f != null) {
|
|
3327
|
+
writer.writeMessage(
|
|
3328
|
+
19,
|
|
3329
|
+
f,
|
|
3330
|
+
proto.loyalty.ClientDepositPointLevelLimit.serializeBinaryToWriter
|
|
3331
|
+
);
|
|
3332
|
+
}
|
|
3275
3333
|
};
|
|
3276
3334
|
|
|
3277
3335
|
|
|
@@ -3927,6 +3985,43 @@ proto.loyalty.LevelItem.prototype.hasTotalLevelUpCurrency = function() {
|
|
|
3927
3985
|
};
|
|
3928
3986
|
|
|
3929
3987
|
|
|
3988
|
+
/**
|
|
3989
|
+
* optional ClientDepositPointLevelLimit deposit_points_limit = 19;
|
|
3990
|
+
* @return {?proto.loyalty.ClientDepositPointLevelLimit}
|
|
3991
|
+
*/
|
|
3992
|
+
proto.loyalty.LevelItem.prototype.getDepositPointsLimit = function() {
|
|
3993
|
+
return /** @type{?proto.loyalty.ClientDepositPointLevelLimit} */ (
|
|
3994
|
+
jspb.Message.getWrapperField(this, proto.loyalty.ClientDepositPointLevelLimit, 19));
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* @param {?proto.loyalty.ClientDepositPointLevelLimit|undefined} value
|
|
4000
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
4001
|
+
*/
|
|
4002
|
+
proto.loyalty.LevelItem.prototype.setDepositPointsLimit = function(value) {
|
|
4003
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Clears the message field making it undefined.
|
|
4009
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
4010
|
+
*/
|
|
4011
|
+
proto.loyalty.LevelItem.prototype.clearDepositPointsLimit = function() {
|
|
4012
|
+
return this.setDepositPointsLimit(undefined);
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* Returns whether this field is set.
|
|
4018
|
+
* @return {boolean}
|
|
4019
|
+
*/
|
|
4020
|
+
proto.loyalty.LevelItem.prototype.hasDepositPointsLimit = function() {
|
|
4021
|
+
return jspb.Message.getField(this, 19) != null;
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4024
|
+
|
|
3930
4025
|
|
|
3931
4026
|
|
|
3932
4027
|
|
|
@@ -12768,7 +12863,8 @@ proto.loyalty.UserLoyaltyResponse.toObject = function(includeInstance, msg) {
|
|
|
12768
12863
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
12769
12864
|
proto.loyalty.LevelRewardItem.toObject, includeInstance),
|
|
12770
12865
|
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
12771
|
-
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
12866
|
+
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
12867
|
+
depositPointsLimit: (f = msg.getDepositPointsLimit()) && proto.loyalty.ClientDepositPointLimit.toObject(includeInstance, f)
|
|
12772
12868
|
};
|
|
12773
12869
|
|
|
12774
12870
|
if (includeInstance) {
|
|
@@ -12882,6 +12978,11 @@ proto.loyalty.UserLoyaltyResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
12882
12978
|
var value = /** @type {string} */ (reader.readString());
|
|
12883
12979
|
msg.setTotalLevelUpCurrency(value);
|
|
12884
12980
|
break;
|
|
12981
|
+
case 20:
|
|
12982
|
+
var value = new proto.loyalty.ClientDepositPointLimit;
|
|
12983
|
+
reader.readMessage(value,proto.loyalty.ClientDepositPointLimit.deserializeBinaryFromReader);
|
|
12984
|
+
msg.setDepositPointsLimit(value);
|
|
12985
|
+
break;
|
|
12885
12986
|
default:
|
|
12886
12987
|
reader.skipField();
|
|
12887
12988
|
break;
|
|
@@ -13045,6 +13146,14 @@ proto.loyalty.UserLoyaltyResponse.serializeBinaryToWriter = function(message, wr
|
|
|
13045
13146
|
f
|
|
13046
13147
|
);
|
|
13047
13148
|
}
|
|
13149
|
+
f = message.getDepositPointsLimit();
|
|
13150
|
+
if (f != null) {
|
|
13151
|
+
writer.writeMessage(
|
|
13152
|
+
20,
|
|
13153
|
+
f,
|
|
13154
|
+
proto.loyalty.ClientDepositPointLimit.serializeBinaryToWriter
|
|
13155
|
+
);
|
|
13156
|
+
}
|
|
13048
13157
|
};
|
|
13049
13158
|
|
|
13050
13159
|
|
|
@@ -13734,6 +13843,43 @@ proto.loyalty.UserLoyaltyResponse.prototype.hasTotalLevelUpCurrency = function()
|
|
|
13734
13843
|
};
|
|
13735
13844
|
|
|
13736
13845
|
|
|
13846
|
+
/**
|
|
13847
|
+
* optional ClientDepositPointLimit deposit_points_limit = 20;
|
|
13848
|
+
* @return {?proto.loyalty.ClientDepositPointLimit}
|
|
13849
|
+
*/
|
|
13850
|
+
proto.loyalty.UserLoyaltyResponse.prototype.getDepositPointsLimit = function() {
|
|
13851
|
+
return /** @type{?proto.loyalty.ClientDepositPointLimit} */ (
|
|
13852
|
+
jspb.Message.getWrapperField(this, proto.loyalty.ClientDepositPointLimit, 20));
|
|
13853
|
+
};
|
|
13854
|
+
|
|
13855
|
+
|
|
13856
|
+
/**
|
|
13857
|
+
* @param {?proto.loyalty.ClientDepositPointLimit|undefined} value
|
|
13858
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
13859
|
+
*/
|
|
13860
|
+
proto.loyalty.UserLoyaltyResponse.prototype.setDepositPointsLimit = function(value) {
|
|
13861
|
+
return jspb.Message.setWrapperField(this, 20, value);
|
|
13862
|
+
};
|
|
13863
|
+
|
|
13864
|
+
|
|
13865
|
+
/**
|
|
13866
|
+
* Clears the message field making it undefined.
|
|
13867
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
13868
|
+
*/
|
|
13869
|
+
proto.loyalty.UserLoyaltyResponse.prototype.clearDepositPointsLimit = function() {
|
|
13870
|
+
return this.setDepositPointsLimit(undefined);
|
|
13871
|
+
};
|
|
13872
|
+
|
|
13873
|
+
|
|
13874
|
+
/**
|
|
13875
|
+
* Returns whether this field is set.
|
|
13876
|
+
* @return {boolean}
|
|
13877
|
+
*/
|
|
13878
|
+
proto.loyalty.UserLoyaltyResponse.prototype.hasDepositPointsLimit = function() {
|
|
13879
|
+
return jspb.Message.getField(this, 20) != null;
|
|
13880
|
+
};
|
|
13881
|
+
|
|
13882
|
+
|
|
13737
13883
|
|
|
13738
13884
|
|
|
13739
13885
|
|
|
@@ -15942,4 +16088,414 @@ proto.loyalty.DepositPointLimitStatusResponse.prototype.setStatus = function(val
|
|
|
15942
16088
|
};
|
|
15943
16089
|
|
|
15944
16090
|
|
|
16091
|
+
|
|
16092
|
+
|
|
16093
|
+
|
|
16094
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16095
|
+
/**
|
|
16096
|
+
* Creates an object representation of this proto.
|
|
16097
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16098
|
+
* Optional fields that are not set will be set to undefined.
|
|
16099
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16100
|
+
* For the list of reserved names please see:
|
|
16101
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16102
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16103
|
+
* JSPB instance for transitional soy proto support:
|
|
16104
|
+
* http://goto/soy-param-migration
|
|
16105
|
+
* @return {!Object}
|
|
16106
|
+
*/
|
|
16107
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.toObject = function(opt_includeInstance) {
|
|
16108
|
+
return proto.loyalty.ClientDepositPointLevelLimit.toObject(opt_includeInstance, this);
|
|
16109
|
+
};
|
|
16110
|
+
|
|
16111
|
+
|
|
16112
|
+
/**
|
|
16113
|
+
* Static version of the {@see toObject} method.
|
|
16114
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16115
|
+
* the JSPB instance for transitional soy proto support:
|
|
16116
|
+
* http://goto/soy-param-migration
|
|
16117
|
+
* @param {!proto.loyalty.ClientDepositPointLevelLimit} msg The msg instance to transform.
|
|
16118
|
+
* @return {!Object}
|
|
16119
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16120
|
+
*/
|
|
16121
|
+
proto.loyalty.ClientDepositPointLevelLimit.toObject = function(includeInstance, msg) {
|
|
16122
|
+
var f, obj = {
|
|
16123
|
+
period: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
16124
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
16125
|
+
};
|
|
16126
|
+
|
|
16127
|
+
if (includeInstance) {
|
|
16128
|
+
obj.$jspbMessageInstance = msg;
|
|
16129
|
+
}
|
|
16130
|
+
return obj;
|
|
16131
|
+
};
|
|
16132
|
+
}
|
|
16133
|
+
|
|
16134
|
+
|
|
16135
|
+
/**
|
|
16136
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16137
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16138
|
+
* @return {!proto.loyalty.ClientDepositPointLevelLimit}
|
|
16139
|
+
*/
|
|
16140
|
+
proto.loyalty.ClientDepositPointLevelLimit.deserializeBinary = function(bytes) {
|
|
16141
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16142
|
+
var msg = new proto.loyalty.ClientDepositPointLevelLimit;
|
|
16143
|
+
return proto.loyalty.ClientDepositPointLevelLimit.deserializeBinaryFromReader(msg, reader);
|
|
16144
|
+
};
|
|
16145
|
+
|
|
16146
|
+
|
|
16147
|
+
/**
|
|
16148
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16149
|
+
* given reader into the given message object.
|
|
16150
|
+
* @param {!proto.loyalty.ClientDepositPointLevelLimit} msg The message object to deserialize into.
|
|
16151
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16152
|
+
* @return {!proto.loyalty.ClientDepositPointLevelLimit}
|
|
16153
|
+
*/
|
|
16154
|
+
proto.loyalty.ClientDepositPointLevelLimit.deserializeBinaryFromReader = function(msg, reader) {
|
|
16155
|
+
while (reader.nextField()) {
|
|
16156
|
+
if (reader.isEndGroup()) {
|
|
16157
|
+
break;
|
|
16158
|
+
}
|
|
16159
|
+
var field = reader.getFieldNumber();
|
|
16160
|
+
switch (field) {
|
|
16161
|
+
case 1:
|
|
16162
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16163
|
+
msg.setPeriod(value);
|
|
16164
|
+
break;
|
|
16165
|
+
case 2:
|
|
16166
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16167
|
+
msg.setLimit(value);
|
|
16168
|
+
break;
|
|
16169
|
+
default:
|
|
16170
|
+
reader.skipField();
|
|
16171
|
+
break;
|
|
16172
|
+
}
|
|
16173
|
+
}
|
|
16174
|
+
return msg;
|
|
16175
|
+
};
|
|
16176
|
+
|
|
16177
|
+
|
|
16178
|
+
/**
|
|
16179
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16180
|
+
* @return {!Uint8Array}
|
|
16181
|
+
*/
|
|
16182
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.serializeBinary = function() {
|
|
16183
|
+
var writer = new jspb.BinaryWriter();
|
|
16184
|
+
proto.loyalty.ClientDepositPointLevelLimit.serializeBinaryToWriter(this, writer);
|
|
16185
|
+
return writer.getResultBuffer();
|
|
16186
|
+
};
|
|
16187
|
+
|
|
16188
|
+
|
|
16189
|
+
/**
|
|
16190
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16191
|
+
* format), writing to the given BinaryWriter.
|
|
16192
|
+
* @param {!proto.loyalty.ClientDepositPointLevelLimit} message
|
|
16193
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16194
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16195
|
+
*/
|
|
16196
|
+
proto.loyalty.ClientDepositPointLevelLimit.serializeBinaryToWriter = function(message, writer) {
|
|
16197
|
+
var f = undefined;
|
|
16198
|
+
f = message.getPeriod();
|
|
16199
|
+
if (f.length > 0) {
|
|
16200
|
+
writer.writeString(
|
|
16201
|
+
1,
|
|
16202
|
+
f
|
|
16203
|
+
);
|
|
16204
|
+
}
|
|
16205
|
+
f = message.getLimit();
|
|
16206
|
+
if (f.length > 0) {
|
|
16207
|
+
writer.writeString(
|
|
16208
|
+
2,
|
|
16209
|
+
f
|
|
16210
|
+
);
|
|
16211
|
+
}
|
|
16212
|
+
};
|
|
16213
|
+
|
|
16214
|
+
|
|
16215
|
+
/**
|
|
16216
|
+
* optional string period = 1;
|
|
16217
|
+
* @return {string}
|
|
16218
|
+
*/
|
|
16219
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.getPeriod = function() {
|
|
16220
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
16221
|
+
};
|
|
16222
|
+
|
|
16223
|
+
|
|
16224
|
+
/**
|
|
16225
|
+
* @param {string} value
|
|
16226
|
+
* @return {!proto.loyalty.ClientDepositPointLevelLimit} returns this
|
|
16227
|
+
*/
|
|
16228
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.setPeriod = function(value) {
|
|
16229
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
16230
|
+
};
|
|
16231
|
+
|
|
16232
|
+
|
|
16233
|
+
/**
|
|
16234
|
+
* optional string limit = 2;
|
|
16235
|
+
* @return {string}
|
|
16236
|
+
*/
|
|
16237
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.getLimit = function() {
|
|
16238
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
16239
|
+
};
|
|
16240
|
+
|
|
16241
|
+
|
|
16242
|
+
/**
|
|
16243
|
+
* @param {string} value
|
|
16244
|
+
* @return {!proto.loyalty.ClientDepositPointLevelLimit} returns this
|
|
16245
|
+
*/
|
|
16246
|
+
proto.loyalty.ClientDepositPointLevelLimit.prototype.setLimit = function(value) {
|
|
16247
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
16248
|
+
};
|
|
16249
|
+
|
|
16250
|
+
|
|
16251
|
+
|
|
16252
|
+
|
|
16253
|
+
|
|
16254
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16255
|
+
/**
|
|
16256
|
+
* Creates an object representation of this proto.
|
|
16257
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16258
|
+
* Optional fields that are not set will be set to undefined.
|
|
16259
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16260
|
+
* For the list of reserved names please see:
|
|
16261
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16262
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16263
|
+
* JSPB instance for transitional soy proto support:
|
|
16264
|
+
* http://goto/soy-param-migration
|
|
16265
|
+
* @return {!Object}
|
|
16266
|
+
*/
|
|
16267
|
+
proto.loyalty.ClientDepositPointLimit.prototype.toObject = function(opt_includeInstance) {
|
|
16268
|
+
return proto.loyalty.ClientDepositPointLimit.toObject(opt_includeInstance, this);
|
|
16269
|
+
};
|
|
16270
|
+
|
|
16271
|
+
|
|
16272
|
+
/**
|
|
16273
|
+
* Static version of the {@see toObject} method.
|
|
16274
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16275
|
+
* the JSPB instance for transitional soy proto support:
|
|
16276
|
+
* http://goto/soy-param-migration
|
|
16277
|
+
* @param {!proto.loyalty.ClientDepositPointLimit} msg The msg instance to transform.
|
|
16278
|
+
* @return {!Object}
|
|
16279
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16280
|
+
*/
|
|
16281
|
+
proto.loyalty.ClientDepositPointLimit.toObject = function(includeInstance, msg) {
|
|
16282
|
+
var f, obj = {
|
|
16283
|
+
period: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
16284
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
16285
|
+
earned: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
16286
|
+
remaining: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
16287
|
+
resetsAt: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
16288
|
+
};
|
|
16289
|
+
|
|
16290
|
+
if (includeInstance) {
|
|
16291
|
+
obj.$jspbMessageInstance = msg;
|
|
16292
|
+
}
|
|
16293
|
+
return obj;
|
|
16294
|
+
};
|
|
16295
|
+
}
|
|
16296
|
+
|
|
16297
|
+
|
|
16298
|
+
/**
|
|
16299
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16300
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16301
|
+
* @return {!proto.loyalty.ClientDepositPointLimit}
|
|
16302
|
+
*/
|
|
16303
|
+
proto.loyalty.ClientDepositPointLimit.deserializeBinary = function(bytes) {
|
|
16304
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16305
|
+
var msg = new proto.loyalty.ClientDepositPointLimit;
|
|
16306
|
+
return proto.loyalty.ClientDepositPointLimit.deserializeBinaryFromReader(msg, reader);
|
|
16307
|
+
};
|
|
16308
|
+
|
|
16309
|
+
|
|
16310
|
+
/**
|
|
16311
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16312
|
+
* given reader into the given message object.
|
|
16313
|
+
* @param {!proto.loyalty.ClientDepositPointLimit} msg The message object to deserialize into.
|
|
16314
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16315
|
+
* @return {!proto.loyalty.ClientDepositPointLimit}
|
|
16316
|
+
*/
|
|
16317
|
+
proto.loyalty.ClientDepositPointLimit.deserializeBinaryFromReader = function(msg, reader) {
|
|
16318
|
+
while (reader.nextField()) {
|
|
16319
|
+
if (reader.isEndGroup()) {
|
|
16320
|
+
break;
|
|
16321
|
+
}
|
|
16322
|
+
var field = reader.getFieldNumber();
|
|
16323
|
+
switch (field) {
|
|
16324
|
+
case 1:
|
|
16325
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16326
|
+
msg.setPeriod(value);
|
|
16327
|
+
break;
|
|
16328
|
+
case 2:
|
|
16329
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16330
|
+
msg.setLimit(value);
|
|
16331
|
+
break;
|
|
16332
|
+
case 3:
|
|
16333
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16334
|
+
msg.setEarned(value);
|
|
16335
|
+
break;
|
|
16336
|
+
case 4:
|
|
16337
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16338
|
+
msg.setRemaining(value);
|
|
16339
|
+
break;
|
|
16340
|
+
case 5:
|
|
16341
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16342
|
+
msg.setResetsAt(value);
|
|
16343
|
+
break;
|
|
16344
|
+
default:
|
|
16345
|
+
reader.skipField();
|
|
16346
|
+
break;
|
|
16347
|
+
}
|
|
16348
|
+
}
|
|
16349
|
+
return msg;
|
|
16350
|
+
};
|
|
16351
|
+
|
|
16352
|
+
|
|
16353
|
+
/**
|
|
16354
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16355
|
+
* @return {!Uint8Array}
|
|
16356
|
+
*/
|
|
16357
|
+
proto.loyalty.ClientDepositPointLimit.prototype.serializeBinary = function() {
|
|
16358
|
+
var writer = new jspb.BinaryWriter();
|
|
16359
|
+
proto.loyalty.ClientDepositPointLimit.serializeBinaryToWriter(this, writer);
|
|
16360
|
+
return writer.getResultBuffer();
|
|
16361
|
+
};
|
|
16362
|
+
|
|
16363
|
+
|
|
16364
|
+
/**
|
|
16365
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16366
|
+
* format), writing to the given BinaryWriter.
|
|
16367
|
+
* @param {!proto.loyalty.ClientDepositPointLimit} message
|
|
16368
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16369
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16370
|
+
*/
|
|
16371
|
+
proto.loyalty.ClientDepositPointLimit.serializeBinaryToWriter = function(message, writer) {
|
|
16372
|
+
var f = undefined;
|
|
16373
|
+
f = message.getPeriod();
|
|
16374
|
+
if (f.length > 0) {
|
|
16375
|
+
writer.writeString(
|
|
16376
|
+
1,
|
|
16377
|
+
f
|
|
16378
|
+
);
|
|
16379
|
+
}
|
|
16380
|
+
f = message.getLimit();
|
|
16381
|
+
if (f.length > 0) {
|
|
16382
|
+
writer.writeString(
|
|
16383
|
+
2,
|
|
16384
|
+
f
|
|
16385
|
+
);
|
|
16386
|
+
}
|
|
16387
|
+
f = message.getEarned();
|
|
16388
|
+
if (f.length > 0) {
|
|
16389
|
+
writer.writeString(
|
|
16390
|
+
3,
|
|
16391
|
+
f
|
|
16392
|
+
);
|
|
16393
|
+
}
|
|
16394
|
+
f = message.getRemaining();
|
|
16395
|
+
if (f.length > 0) {
|
|
16396
|
+
writer.writeString(
|
|
16397
|
+
4,
|
|
16398
|
+
f
|
|
16399
|
+
);
|
|
16400
|
+
}
|
|
16401
|
+
f = message.getResetsAt();
|
|
16402
|
+
if (f.length > 0) {
|
|
16403
|
+
writer.writeString(
|
|
16404
|
+
5,
|
|
16405
|
+
f
|
|
16406
|
+
);
|
|
16407
|
+
}
|
|
16408
|
+
};
|
|
16409
|
+
|
|
16410
|
+
|
|
16411
|
+
/**
|
|
16412
|
+
* optional string period = 1;
|
|
16413
|
+
* @return {string}
|
|
16414
|
+
*/
|
|
16415
|
+
proto.loyalty.ClientDepositPointLimit.prototype.getPeriod = function() {
|
|
16416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
16417
|
+
};
|
|
16418
|
+
|
|
16419
|
+
|
|
16420
|
+
/**
|
|
16421
|
+
* @param {string} value
|
|
16422
|
+
* @return {!proto.loyalty.ClientDepositPointLimit} returns this
|
|
16423
|
+
*/
|
|
16424
|
+
proto.loyalty.ClientDepositPointLimit.prototype.setPeriod = function(value) {
|
|
16425
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
16426
|
+
};
|
|
16427
|
+
|
|
16428
|
+
|
|
16429
|
+
/**
|
|
16430
|
+
* optional string limit = 2;
|
|
16431
|
+
* @return {string}
|
|
16432
|
+
*/
|
|
16433
|
+
proto.loyalty.ClientDepositPointLimit.prototype.getLimit = function() {
|
|
16434
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
16435
|
+
};
|
|
16436
|
+
|
|
16437
|
+
|
|
16438
|
+
/**
|
|
16439
|
+
* @param {string} value
|
|
16440
|
+
* @return {!proto.loyalty.ClientDepositPointLimit} returns this
|
|
16441
|
+
*/
|
|
16442
|
+
proto.loyalty.ClientDepositPointLimit.prototype.setLimit = function(value) {
|
|
16443
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
16444
|
+
};
|
|
16445
|
+
|
|
16446
|
+
|
|
16447
|
+
/**
|
|
16448
|
+
* optional string earned = 3;
|
|
16449
|
+
* @return {string}
|
|
16450
|
+
*/
|
|
16451
|
+
proto.loyalty.ClientDepositPointLimit.prototype.getEarned = function() {
|
|
16452
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
16453
|
+
};
|
|
16454
|
+
|
|
16455
|
+
|
|
16456
|
+
/**
|
|
16457
|
+
* @param {string} value
|
|
16458
|
+
* @return {!proto.loyalty.ClientDepositPointLimit} returns this
|
|
16459
|
+
*/
|
|
16460
|
+
proto.loyalty.ClientDepositPointLimit.prototype.setEarned = function(value) {
|
|
16461
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
16462
|
+
};
|
|
16463
|
+
|
|
16464
|
+
|
|
16465
|
+
/**
|
|
16466
|
+
* optional string remaining = 4;
|
|
16467
|
+
* @return {string}
|
|
16468
|
+
*/
|
|
16469
|
+
proto.loyalty.ClientDepositPointLimit.prototype.getRemaining = function() {
|
|
16470
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
16471
|
+
};
|
|
16472
|
+
|
|
16473
|
+
|
|
16474
|
+
/**
|
|
16475
|
+
* @param {string} value
|
|
16476
|
+
* @return {!proto.loyalty.ClientDepositPointLimit} returns this
|
|
16477
|
+
*/
|
|
16478
|
+
proto.loyalty.ClientDepositPointLimit.prototype.setRemaining = function(value) {
|
|
16479
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
16480
|
+
};
|
|
16481
|
+
|
|
16482
|
+
|
|
16483
|
+
/**
|
|
16484
|
+
* optional string resets_at = 5;
|
|
16485
|
+
* @return {string}
|
|
16486
|
+
*/
|
|
16487
|
+
proto.loyalty.ClientDepositPointLimit.prototype.getResetsAt = function() {
|
|
16488
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
16489
|
+
};
|
|
16490
|
+
|
|
16491
|
+
|
|
16492
|
+
/**
|
|
16493
|
+
* @param {string} value
|
|
16494
|
+
* @return {!proto.loyalty.ClientDepositPointLimit} returns this
|
|
16495
|
+
*/
|
|
16496
|
+
proto.loyalty.ClientDepositPointLimit.prototype.setResetsAt = function(value) {
|
|
16497
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
16498
|
+
};
|
|
16499
|
+
|
|
16500
|
+
|
|
15945
16501
|
goog.object.extend(exports, proto.loyalty);
|
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const assert = require('node:assert/strict');
|
|
4
|
+
const vm = require('node:vm');
|
|
5
|
+
const { execFileSync } = require('node:child_process');
|
|
6
|
+
const { createRequire } = require('node:module');
|
|
7
|
+
const path = require('node:path');
|
|
8
|
+
const current = require('../user/user_pb');
|
|
9
|
+
const filename = path.resolve(__dirname, '../user/user_pb.js');
|
|
10
|
+
const baseline = execFileSync('git', ['show', 'ca23b58:user/user_pb.js'], {
|
|
11
|
+
cwd: path.resolve(__dirname, '..'), encoding: 'utf8', maxBuffer: 16 * 1024 * 1024,
|
|
12
|
+
});
|
|
13
|
+
const before = { exports: {} };
|
|
14
|
+
vm.runInNewContext(baseline, {
|
|
15
|
+
module: before, exports: before.exports, require: createRequire(filename),
|
|
16
|
+
}, { filename: 'baseline-user_pb.js' });
|
|
17
|
+
const previous = before.exports;
|
|
18
|
+
const legacy = (bindings) => {
|
|
19
|
+
const value = new bindings.PrecisionRgBinding();
|
|
20
|
+
const fields = { UserId: '7001', CommandKey: 'fixture-command', RequestFingerprint: 'a'.repeat(64),
|
|
21
|
+
PrecisionSessionId: '9007199254740993', PreparationGeneration: '1',
|
|
22
|
+
PreparationFingerprint: 'b'.repeat(64), AccountingCurrency: 'EUR', AccountingScale: 2,
|
|
23
|
+
RequestedDebitMinor: '123', GameSessionId: 'fixture-session',
|
|
24
|
+
ProviderTransactionId: 'fixture-provider-transaction', RoundId: 'fixture-round' };
|
|
25
|
+
for (const [field, item] of Object.entries(fields)) value[`set${field}`](item);
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
const oldBinding = legacy(previous);
|
|
29
|
+
const binding = legacy(current);
|
|
30
|
+
assert.deepEqual(Buffer.from(binding.serializeBinary()), Buffer.from(oldBinding.serializeBinary()));
|
|
31
|
+
const tuple = ['FinancialAdmissionProtocolVersion', 'WalletReference', 'OwnershipEpoch', 'AdmissionVersion'];
|
|
32
|
+
for (const field of tuple) assert.equal(binding[`has${field}`](), false);
|
|
33
|
+
const readLegacy = current.PrecisionRgBinding.deserializeBinary(oldBinding.serializeBinary());
|
|
34
|
+
for (const field of tuple) assert.equal(readLegacy[`has${field}`](), false);
|
|
35
|
+
binding.setFinancialAdmissionProtocolVersion(1);
|
|
36
|
+
binding.setWalletReference('fixture-payment-wallet');
|
|
37
|
+
binding.setOwnershipEpoch('fixture-payment-epoch');
|
|
38
|
+
binding.setAdmissionVersion('18446744073709551615');
|
|
39
|
+
const decoded = current.PrecisionRgBinding.deserializeBinary(binding.serializeBinary());
|
|
40
|
+
assert.equal(decoded.getFinancialAdmissionProtocolVersion(), 1);
|
|
41
|
+
assert.equal(decoded.getWalletReference(), 'fixture-payment-wallet');
|
|
42
|
+
assert.equal(decoded.getOwnershipEpoch(), 'fixture-payment-epoch');
|
|
43
|
+
assert.equal(decoded.getAdmissionVersion(), '18446744073709551615');
|
|
44
|
+
const oldReader = previous.PrecisionRgBinding.deserializeBinary(binding.serializeBinary());
|
|
45
|
+
assert.deepEqual(Buffer.from(oldReader.serializeBinary()), Buffer.from(oldBinding.serializeBinary()));
|
|
46
|
+
const request = new current.PrecisionRgAdmissionRequest();
|
|
47
|
+
request.setBinding(binding);
|
|
48
|
+
request.setAction(current.PrecisionRgAction.PRECISION_RG_RESERVE);
|
|
49
|
+
const oldRequest = previous.PrecisionRgAdmissionRequest.deserializeBinary(request.serializeBinary());
|
|
50
|
+
assert.equal(oldRequest.getBinding().getPreparationFingerprint(), 'b'.repeat(64));
|
|
51
|
+
const response = new current.PrecisionRgAdmissionResponse();
|
|
52
|
+
response.setBinding(binding);
|
|
53
|
+
assert.equal(current.PrecisionRgAdmissionResponse.deserializeBinary(response.serializeBinary())
|
|
54
|
+
.getBinding().getAdmissionVersion(), '18446744073709551615');
|
|
55
|
+
for (const field of tuple) binding[`clear${field}`]();
|
|
56
|
+
assert.deepEqual(Buffer.from(binding.serializeBinary()), Buffer.from(oldBinding.serializeBinary()));
|
|
57
|
+
console.log('PASS additive delegated RG contract: fields 1-12 byte-compatible, old/new readers, optional presence/clear, nested roundtrip and exact sequence above MAX_SAFE_INTEGER; old readers cannot authorize enrollment');
|
package/user/user.proto
CHANGED
|
@@ -2659,6 +2659,11 @@ message PrecisionRgBinding {
|
|
|
2659
2659
|
string game_session_id = 10;
|
|
2660
2660
|
string provider_transaction_id = 11;
|
|
2661
2661
|
string round_id = 12;
|
|
2662
|
+
// Opt-in delegated admission. All four fields are required together in mode 1.
|
|
2663
|
+
optional uint32 financial_admission_protocol_version = 13;
|
|
2664
|
+
optional string wallet_reference = 14;
|
|
2665
|
+
optional string ownership_epoch = 15;
|
|
2666
|
+
optional string admission_version = 16;
|
|
2662
2667
|
}
|
|
2663
2668
|
message PrecisionRgAdmissionRequest {
|
|
2664
2669
|
PrecisionRgAction action = 1;
|
package/user/user_pb.js
CHANGED
|
@@ -106378,7 +106378,11 @@ proto.user.PrecisionRgBinding.toObject = function(includeInstance, msg) {
|
|
|
106378
106378
|
requestedDebitMinor: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
106379
106379
|
gameSessionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
106380
106380
|
providerTransactionId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
106381
|
-
roundId: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
106381
|
+
roundId: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
106382
|
+
financialAdmissionProtocolVersion: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
106383
|
+
walletReference: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
106384
|
+
ownershipEpoch: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
106385
|
+
admissionVersion: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
106382
106386
|
};
|
|
106383
106387
|
|
|
106384
106388
|
if (includeInstance) {
|
|
@@ -106463,6 +106467,22 @@ proto.user.PrecisionRgBinding.deserializeBinaryFromReader = function(msg, reader
|
|
|
106463
106467
|
var value = /** @type {string} */ (reader.readString());
|
|
106464
106468
|
msg.setRoundId(value);
|
|
106465
106469
|
break;
|
|
106470
|
+
case 13:
|
|
106471
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
106472
|
+
msg.setFinancialAdmissionProtocolVersion(value);
|
|
106473
|
+
break;
|
|
106474
|
+
case 14:
|
|
106475
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106476
|
+
msg.setWalletReference(value);
|
|
106477
|
+
break;
|
|
106478
|
+
case 15:
|
|
106479
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106480
|
+
msg.setOwnershipEpoch(value);
|
|
106481
|
+
break;
|
|
106482
|
+
case 16:
|
|
106483
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106484
|
+
msg.setAdmissionVersion(value);
|
|
106485
|
+
break;
|
|
106466
106486
|
default:
|
|
106467
106487
|
reader.skipField();
|
|
106468
106488
|
break;
|
|
@@ -106576,6 +106596,34 @@ proto.user.PrecisionRgBinding.serializeBinaryToWriter = function(message, writer
|
|
|
106576
106596
|
f
|
|
106577
106597
|
);
|
|
106578
106598
|
}
|
|
106599
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 13));
|
|
106600
|
+
if (f != null) {
|
|
106601
|
+
writer.writeUint32(
|
|
106602
|
+
13,
|
|
106603
|
+
f
|
|
106604
|
+
);
|
|
106605
|
+
}
|
|
106606
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 14));
|
|
106607
|
+
if (f != null) {
|
|
106608
|
+
writer.writeString(
|
|
106609
|
+
14,
|
|
106610
|
+
f
|
|
106611
|
+
);
|
|
106612
|
+
}
|
|
106613
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 15));
|
|
106614
|
+
if (f != null) {
|
|
106615
|
+
writer.writeString(
|
|
106616
|
+
15,
|
|
106617
|
+
f
|
|
106618
|
+
);
|
|
106619
|
+
}
|
|
106620
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 16));
|
|
106621
|
+
if (f != null) {
|
|
106622
|
+
writer.writeString(
|
|
106623
|
+
16,
|
|
106624
|
+
f
|
|
106625
|
+
);
|
|
106626
|
+
}
|
|
106579
106627
|
};
|
|
106580
106628
|
|
|
106581
106629
|
|
|
@@ -106795,6 +106843,150 @@ proto.user.PrecisionRgBinding.prototype.setRoundId = function(value) {
|
|
|
106795
106843
|
};
|
|
106796
106844
|
|
|
106797
106845
|
|
|
106846
|
+
/**
|
|
106847
|
+
* optional uint32 financial_admission_protocol_version = 13;
|
|
106848
|
+
* @return {number}
|
|
106849
|
+
*/
|
|
106850
|
+
proto.user.PrecisionRgBinding.prototype.getFinancialAdmissionProtocolVersion = function() {
|
|
106851
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
106852
|
+
};
|
|
106853
|
+
|
|
106854
|
+
|
|
106855
|
+
/**
|
|
106856
|
+
* @param {number} value
|
|
106857
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106858
|
+
*/
|
|
106859
|
+
proto.user.PrecisionRgBinding.prototype.setFinancialAdmissionProtocolVersion = function(value) {
|
|
106860
|
+
return jspb.Message.setField(this, 13, value);
|
|
106861
|
+
};
|
|
106862
|
+
|
|
106863
|
+
|
|
106864
|
+
/**
|
|
106865
|
+
* Clears the field making it undefined.
|
|
106866
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106867
|
+
*/
|
|
106868
|
+
proto.user.PrecisionRgBinding.prototype.clearFinancialAdmissionProtocolVersion = function() {
|
|
106869
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
106870
|
+
};
|
|
106871
|
+
|
|
106872
|
+
|
|
106873
|
+
/**
|
|
106874
|
+
* Returns whether this field is set.
|
|
106875
|
+
* @return {boolean}
|
|
106876
|
+
*/
|
|
106877
|
+
proto.user.PrecisionRgBinding.prototype.hasFinancialAdmissionProtocolVersion = function() {
|
|
106878
|
+
return jspb.Message.getField(this, 13) != null;
|
|
106879
|
+
};
|
|
106880
|
+
|
|
106881
|
+
|
|
106882
|
+
/**
|
|
106883
|
+
* optional string wallet_reference = 14;
|
|
106884
|
+
* @return {string}
|
|
106885
|
+
*/
|
|
106886
|
+
proto.user.PrecisionRgBinding.prototype.getWalletReference = function() {
|
|
106887
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
106888
|
+
};
|
|
106889
|
+
|
|
106890
|
+
|
|
106891
|
+
/**
|
|
106892
|
+
* @param {string} value
|
|
106893
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106894
|
+
*/
|
|
106895
|
+
proto.user.PrecisionRgBinding.prototype.setWalletReference = function(value) {
|
|
106896
|
+
return jspb.Message.setField(this, 14, value);
|
|
106897
|
+
};
|
|
106898
|
+
|
|
106899
|
+
|
|
106900
|
+
/**
|
|
106901
|
+
* Clears the field making it undefined.
|
|
106902
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106903
|
+
*/
|
|
106904
|
+
proto.user.PrecisionRgBinding.prototype.clearWalletReference = function() {
|
|
106905
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
106906
|
+
};
|
|
106907
|
+
|
|
106908
|
+
|
|
106909
|
+
/**
|
|
106910
|
+
* Returns whether this field is set.
|
|
106911
|
+
* @return {boolean}
|
|
106912
|
+
*/
|
|
106913
|
+
proto.user.PrecisionRgBinding.prototype.hasWalletReference = function() {
|
|
106914
|
+
return jspb.Message.getField(this, 14) != null;
|
|
106915
|
+
};
|
|
106916
|
+
|
|
106917
|
+
|
|
106918
|
+
/**
|
|
106919
|
+
* optional string ownership_epoch = 15;
|
|
106920
|
+
* @return {string}
|
|
106921
|
+
*/
|
|
106922
|
+
proto.user.PrecisionRgBinding.prototype.getOwnershipEpoch = function() {
|
|
106923
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
106924
|
+
};
|
|
106925
|
+
|
|
106926
|
+
|
|
106927
|
+
/**
|
|
106928
|
+
* @param {string} value
|
|
106929
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106930
|
+
*/
|
|
106931
|
+
proto.user.PrecisionRgBinding.prototype.setOwnershipEpoch = function(value) {
|
|
106932
|
+
return jspb.Message.setField(this, 15, value);
|
|
106933
|
+
};
|
|
106934
|
+
|
|
106935
|
+
|
|
106936
|
+
/**
|
|
106937
|
+
* Clears the field making it undefined.
|
|
106938
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106939
|
+
*/
|
|
106940
|
+
proto.user.PrecisionRgBinding.prototype.clearOwnershipEpoch = function() {
|
|
106941
|
+
return jspb.Message.setField(this, 15, undefined);
|
|
106942
|
+
};
|
|
106943
|
+
|
|
106944
|
+
|
|
106945
|
+
/**
|
|
106946
|
+
* Returns whether this field is set.
|
|
106947
|
+
* @return {boolean}
|
|
106948
|
+
*/
|
|
106949
|
+
proto.user.PrecisionRgBinding.prototype.hasOwnershipEpoch = function() {
|
|
106950
|
+
return jspb.Message.getField(this, 15) != null;
|
|
106951
|
+
};
|
|
106952
|
+
|
|
106953
|
+
|
|
106954
|
+
/**
|
|
106955
|
+
* optional string admission_version = 16;
|
|
106956
|
+
* @return {string}
|
|
106957
|
+
*/
|
|
106958
|
+
proto.user.PrecisionRgBinding.prototype.getAdmissionVersion = function() {
|
|
106959
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
106960
|
+
};
|
|
106961
|
+
|
|
106962
|
+
|
|
106963
|
+
/**
|
|
106964
|
+
* @param {string} value
|
|
106965
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106966
|
+
*/
|
|
106967
|
+
proto.user.PrecisionRgBinding.prototype.setAdmissionVersion = function(value) {
|
|
106968
|
+
return jspb.Message.setField(this, 16, value);
|
|
106969
|
+
};
|
|
106970
|
+
|
|
106971
|
+
|
|
106972
|
+
/**
|
|
106973
|
+
* Clears the field making it undefined.
|
|
106974
|
+
* @return {!proto.user.PrecisionRgBinding} returns this
|
|
106975
|
+
*/
|
|
106976
|
+
proto.user.PrecisionRgBinding.prototype.clearAdmissionVersion = function() {
|
|
106977
|
+
return jspb.Message.setField(this, 16, undefined);
|
|
106978
|
+
};
|
|
106979
|
+
|
|
106980
|
+
|
|
106981
|
+
/**
|
|
106982
|
+
* Returns whether this field is set.
|
|
106983
|
+
* @return {boolean}
|
|
106984
|
+
*/
|
|
106985
|
+
proto.user.PrecisionRgBinding.prototype.hasAdmissionVersion = function() {
|
|
106986
|
+
return jspb.Message.getField(this, 16) != null;
|
|
106987
|
+
};
|
|
106988
|
+
|
|
106989
|
+
|
|
106798
106990
|
|
|
106799
106991
|
|
|
106800
106992
|
|