protobuf-platform 1.2.641 → 1.2.643
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/bonus/bonus.proto +7 -0
- package/cashback/cashback.proto +11 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +424 -0
- package/game/game.proto +2 -0
- package/game/game_pb.js +49 -1
- package/loyalty/loyalty.proto +25 -0
- package/loyalty/loyalty_grpc_pb.js +22 -0
- package/loyalty/loyalty_pb.js +1173 -2
- package/package.json +1 -1
- package/sport/sport.proto +4 -0
- package/sport/sport_pb.js +97 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +454 -0
package/package.json
CHANGED
package/sport/sport.proto
CHANGED
|
@@ -240,6 +240,10 @@ message SportsbookRewardIssueTarget {
|
|
|
240
240
|
optional string amount = 2;
|
|
241
241
|
optional string currency = 3;
|
|
242
242
|
optional string operation_id = 4;
|
|
243
|
+
// Per-action Free Bet max win in reward currency. Absent = no cap.
|
|
244
|
+
optional string max_win = 5;
|
|
245
|
+
// Per-action winnings destination: "real" | "bonus". Absent/empty/legacy = bonus.
|
|
246
|
+
optional string winnings_destination = 6;
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
message IssueSportsbookRewardsRequest {
|
package/sport/sport_pb.js
CHANGED
|
@@ -6743,7 +6743,9 @@ proto.sport.SportsbookRewardIssueTarget.toObject = function(includeInstance, msg
|
|
|
6743
6743
|
playerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6744
6744
|
amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6745
6745
|
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6746
|
-
operationId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
6746
|
+
operationId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6747
|
+
maxWin: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6748
|
+
winningsDestination: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
6747
6749
|
};
|
|
6748
6750
|
|
|
6749
6751
|
if (includeInstance) {
|
|
@@ -6796,6 +6798,14 @@ proto.sport.SportsbookRewardIssueTarget.deserializeBinaryFromReader = function(m
|
|
|
6796
6798
|
var value = /** @type {string} */ (reader.readString());
|
|
6797
6799
|
msg.setOperationId(value);
|
|
6798
6800
|
break;
|
|
6801
|
+
case 5:
|
|
6802
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6803
|
+
msg.setMaxWin(value);
|
|
6804
|
+
break;
|
|
6805
|
+
case 6:
|
|
6806
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6807
|
+
msg.setWinningsDestination(value);
|
|
6808
|
+
break;
|
|
6799
6809
|
default:
|
|
6800
6810
|
reader.skipField();
|
|
6801
6811
|
break;
|
|
@@ -6853,6 +6863,20 @@ proto.sport.SportsbookRewardIssueTarget.serializeBinaryToWriter = function(messa
|
|
|
6853
6863
|
f
|
|
6854
6864
|
);
|
|
6855
6865
|
}
|
|
6866
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
6867
|
+
if (f != null) {
|
|
6868
|
+
writer.writeString(
|
|
6869
|
+
5,
|
|
6870
|
+
f
|
|
6871
|
+
);
|
|
6872
|
+
}
|
|
6873
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
6874
|
+
if (f != null) {
|
|
6875
|
+
writer.writeString(
|
|
6876
|
+
6,
|
|
6877
|
+
f
|
|
6878
|
+
);
|
|
6879
|
+
}
|
|
6856
6880
|
};
|
|
6857
6881
|
|
|
6858
6882
|
|
|
@@ -6982,6 +7006,78 @@ proto.sport.SportsbookRewardIssueTarget.prototype.hasOperationId = function() {
|
|
|
6982
7006
|
};
|
|
6983
7007
|
|
|
6984
7008
|
|
|
7009
|
+
/**
|
|
7010
|
+
* optional string max_win = 5;
|
|
7011
|
+
* @return {string}
|
|
7012
|
+
*/
|
|
7013
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.getMaxWin = function() {
|
|
7014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
/**
|
|
7019
|
+
* @param {string} value
|
|
7020
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7021
|
+
*/
|
|
7022
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.setMaxWin = function(value) {
|
|
7023
|
+
return jspb.Message.setField(this, 5, value);
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* Clears the field making it undefined.
|
|
7029
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7030
|
+
*/
|
|
7031
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.clearMaxWin = function() {
|
|
7032
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* Returns whether this field is set.
|
|
7038
|
+
* @return {boolean}
|
|
7039
|
+
*/
|
|
7040
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.hasMaxWin = function() {
|
|
7041
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7042
|
+
};
|
|
7043
|
+
|
|
7044
|
+
|
|
7045
|
+
/**
|
|
7046
|
+
* optional string winnings_destination = 6;
|
|
7047
|
+
* @return {string}
|
|
7048
|
+
*/
|
|
7049
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.getWinningsDestination = function() {
|
|
7050
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7051
|
+
};
|
|
7052
|
+
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* @param {string} value
|
|
7056
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7057
|
+
*/
|
|
7058
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.setWinningsDestination = function(value) {
|
|
7059
|
+
return jspb.Message.setField(this, 6, value);
|
|
7060
|
+
};
|
|
7061
|
+
|
|
7062
|
+
|
|
7063
|
+
/**
|
|
7064
|
+
* Clears the field making it undefined.
|
|
7065
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7066
|
+
*/
|
|
7067
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.clearWinningsDestination = function() {
|
|
7068
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7069
|
+
};
|
|
7070
|
+
|
|
7071
|
+
|
|
7072
|
+
/**
|
|
7073
|
+
* Returns whether this field is set.
|
|
7074
|
+
* @return {boolean}
|
|
7075
|
+
*/
|
|
7076
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.hasWinningsDestination = function() {
|
|
7077
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
|
|
6985
7081
|
|
|
6986
7082
|
/**
|
|
6987
7083
|
* List of repeated fields within this message type.
|
package/user/user.proto
CHANGED
|
@@ -41,6 +41,7 @@ service User {
|
|
|
41
41
|
//CRUD
|
|
42
42
|
rpc readListUsers(PaginationRequest) returns (UsersResponse);
|
|
43
43
|
rpc updateSingleUser(UserRequest) returns (UserDataResponse);
|
|
44
|
+
rpc grantUserReward(GrantUserRewardRequest) returns (GrantUserRewardResponse);
|
|
44
45
|
rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
|
|
45
46
|
rpc checkMissingProfileFields(CheckMissingProfileFieldsRequest) returns (CheckMissingProfileFieldsResponse);
|
|
46
47
|
rpc checkRegistrationFieldAvailability(CheckRegistrationFieldAvailabilityRequest) returns (CheckRegistrationFieldAvailabilityResponse);
|
|
@@ -208,6 +209,17 @@ service User {
|
|
|
208
209
|
//Technical
|
|
209
210
|
message PingRequest { string ping = 1; }
|
|
210
211
|
message PongResponse { string pong = 1; }
|
|
212
|
+
message GrantUserRewardRequest {
|
|
213
|
+
int32 user_id = 1;
|
|
214
|
+
string type = 2;
|
|
215
|
+
string amount = 3;
|
|
216
|
+
string grant_source = 4;
|
|
217
|
+
string grant_id = 5;
|
|
218
|
+
}
|
|
219
|
+
message GrantUserRewardResponse {
|
|
220
|
+
string status = 1;
|
|
221
|
+
string balance = 2;
|
|
222
|
+
}
|
|
211
223
|
message PaginationRequest {
|
|
212
224
|
int32 limit = 1;
|
|
213
225
|
int32 offset = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -719,6 +719,28 @@ function deserialize_user_GoogleLoginRequest(buffer_arg) {
|
|
|
719
719
|
return user_pb.GoogleLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
720
720
|
}
|
|
721
721
|
|
|
722
|
+
function serialize_user_GrantUserRewardRequest(arg) {
|
|
723
|
+
if (!(arg instanceof user_pb.GrantUserRewardRequest)) {
|
|
724
|
+
throw new Error('Expected argument of type user.GrantUserRewardRequest');
|
|
725
|
+
}
|
|
726
|
+
return Buffer.from(arg.serializeBinary());
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
function deserialize_user_GrantUserRewardRequest(buffer_arg) {
|
|
730
|
+
return user_pb.GrantUserRewardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
function serialize_user_GrantUserRewardResponse(arg) {
|
|
734
|
+
if (!(arg instanceof user_pb.GrantUserRewardResponse)) {
|
|
735
|
+
throw new Error('Expected argument of type user.GrantUserRewardResponse');
|
|
736
|
+
}
|
|
737
|
+
return Buffer.from(arg.serializeBinary());
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function deserialize_user_GrantUserRewardResponse(buffer_arg) {
|
|
741
|
+
return user_pb.GrantUserRewardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
742
|
+
}
|
|
743
|
+
|
|
722
744
|
function serialize_user_IngestUserKycDocumentToProviderRequest(arg) {
|
|
723
745
|
if (!(arg instanceof user_pb.IngestUserKycDocumentToProviderRequest)) {
|
|
724
746
|
throw new Error('Expected argument of type user.IngestUserKycDocumentToProviderRequest');
|
|
@@ -2848,6 +2870,17 @@ readListUsers: {
|
|
|
2848
2870
|
responseSerialize: serialize_user_UserDataResponse,
|
|
2849
2871
|
responseDeserialize: deserialize_user_UserDataResponse,
|
|
2850
2872
|
},
|
|
2873
|
+
grantUserReward: {
|
|
2874
|
+
path: '/user.User/grantUserReward',
|
|
2875
|
+
requestStream: false,
|
|
2876
|
+
responseStream: false,
|
|
2877
|
+
requestType: user_pb.GrantUserRewardRequest,
|
|
2878
|
+
responseType: user_pb.GrantUserRewardResponse,
|
|
2879
|
+
requestSerialize: serialize_user_GrantUserRewardRequest,
|
|
2880
|
+
requestDeserialize: deserialize_user_GrantUserRewardRequest,
|
|
2881
|
+
responseSerialize: serialize_user_GrantUserRewardResponse,
|
|
2882
|
+
responseDeserialize: deserialize_user_GrantUserRewardResponse,
|
|
2883
|
+
},
|
|
2851
2884
|
updateUserPassword: {
|
|
2852
2885
|
path: '/user.User/updateUserPassword',
|
|
2853
2886
|
requestStream: false,
|
package/user/user_pb.js
CHANGED
|
@@ -92,6 +92,8 @@ goog.exportSymbol('proto.user.GetUserWalletBalancesRequest', null, global);
|
|
|
92
92
|
goog.exportSymbol('proto.user.GetVerificationProfileDataRequirementsRequest', null, global);
|
|
93
93
|
goog.exportSymbol('proto.user.GetVerificationProfileDataRequirementsResponse', null, global);
|
|
94
94
|
goog.exportSymbol('proto.user.GoogleLoginRequest', null, global);
|
|
95
|
+
goog.exportSymbol('proto.user.GrantUserRewardRequest', null, global);
|
|
96
|
+
goog.exportSymbol('proto.user.GrantUserRewardResponse', null, global);
|
|
95
97
|
goog.exportSymbol('proto.user.IngestUserKycDocumentToProviderRequest', null, global);
|
|
96
98
|
goog.exportSymbol('proto.user.KycRequirementPresetItem', null, global);
|
|
97
99
|
goog.exportSymbol('proto.user.KycRequirementPresetResponse', null, global);
|
|
@@ -364,6 +366,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
364
366
|
*/
|
|
365
367
|
proto.user.PongResponse.displayName = 'proto.user.PongResponse';
|
|
366
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* Generated by JsPbCodeGenerator.
|
|
371
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
372
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
373
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
374
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
375
|
+
* valid.
|
|
376
|
+
* @extends {jspb.Message}
|
|
377
|
+
* @constructor
|
|
378
|
+
*/
|
|
379
|
+
proto.user.GrantUserRewardRequest = function(opt_data) {
|
|
380
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
381
|
+
};
|
|
382
|
+
goog.inherits(proto.user.GrantUserRewardRequest, jspb.Message);
|
|
383
|
+
if (goog.DEBUG && !COMPILED) {
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
* @override
|
|
387
|
+
*/
|
|
388
|
+
proto.user.GrantUserRewardRequest.displayName = 'proto.user.GrantUserRewardRequest';
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Generated by JsPbCodeGenerator.
|
|
392
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
393
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
394
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
395
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
396
|
+
* valid.
|
|
397
|
+
* @extends {jspb.Message}
|
|
398
|
+
* @constructor
|
|
399
|
+
*/
|
|
400
|
+
proto.user.GrantUserRewardResponse = function(opt_data) {
|
|
401
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
402
|
+
};
|
|
403
|
+
goog.inherits(proto.user.GrantUserRewardResponse, jspb.Message);
|
|
404
|
+
if (goog.DEBUG && !COMPILED) {
|
|
405
|
+
/**
|
|
406
|
+
* @public
|
|
407
|
+
* @override
|
|
408
|
+
*/
|
|
409
|
+
proto.user.GrantUserRewardResponse.displayName = 'proto.user.GrantUserRewardResponse';
|
|
410
|
+
}
|
|
367
411
|
/**
|
|
368
412
|
* Generated by JsPbCodeGenerator.
|
|
369
413
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6591,6 +6635,416 @@ proto.user.PongResponse.prototype.setPong = function(value) {
|
|
|
6591
6635
|
|
|
6592
6636
|
|
|
6593
6637
|
|
|
6638
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6639
|
+
/**
|
|
6640
|
+
* Creates an object representation of this proto.
|
|
6641
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6642
|
+
* Optional fields that are not set will be set to undefined.
|
|
6643
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6644
|
+
* For the list of reserved names please see:
|
|
6645
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6646
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6647
|
+
* JSPB instance for transitional soy proto support:
|
|
6648
|
+
* http://goto/soy-param-migration
|
|
6649
|
+
* @return {!Object}
|
|
6650
|
+
*/
|
|
6651
|
+
proto.user.GrantUserRewardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6652
|
+
return proto.user.GrantUserRewardRequest.toObject(opt_includeInstance, this);
|
|
6653
|
+
};
|
|
6654
|
+
|
|
6655
|
+
|
|
6656
|
+
/**
|
|
6657
|
+
* Static version of the {@see toObject} method.
|
|
6658
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6659
|
+
* the JSPB instance for transitional soy proto support:
|
|
6660
|
+
* http://goto/soy-param-migration
|
|
6661
|
+
* @param {!proto.user.GrantUserRewardRequest} msg The msg instance to transform.
|
|
6662
|
+
* @return {!Object}
|
|
6663
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6664
|
+
*/
|
|
6665
|
+
proto.user.GrantUserRewardRequest.toObject = function(includeInstance, msg) {
|
|
6666
|
+
var f, obj = {
|
|
6667
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6668
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6669
|
+
amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6670
|
+
grantSource: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6671
|
+
grantId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
6672
|
+
};
|
|
6673
|
+
|
|
6674
|
+
if (includeInstance) {
|
|
6675
|
+
obj.$jspbMessageInstance = msg;
|
|
6676
|
+
}
|
|
6677
|
+
return obj;
|
|
6678
|
+
};
|
|
6679
|
+
}
|
|
6680
|
+
|
|
6681
|
+
|
|
6682
|
+
/**
|
|
6683
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6684
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6685
|
+
* @return {!proto.user.GrantUserRewardRequest}
|
|
6686
|
+
*/
|
|
6687
|
+
proto.user.GrantUserRewardRequest.deserializeBinary = function(bytes) {
|
|
6688
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6689
|
+
var msg = new proto.user.GrantUserRewardRequest;
|
|
6690
|
+
return proto.user.GrantUserRewardRequest.deserializeBinaryFromReader(msg, reader);
|
|
6691
|
+
};
|
|
6692
|
+
|
|
6693
|
+
|
|
6694
|
+
/**
|
|
6695
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6696
|
+
* given reader into the given message object.
|
|
6697
|
+
* @param {!proto.user.GrantUserRewardRequest} msg The message object to deserialize into.
|
|
6698
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6699
|
+
* @return {!proto.user.GrantUserRewardRequest}
|
|
6700
|
+
*/
|
|
6701
|
+
proto.user.GrantUserRewardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6702
|
+
while (reader.nextField()) {
|
|
6703
|
+
if (reader.isEndGroup()) {
|
|
6704
|
+
break;
|
|
6705
|
+
}
|
|
6706
|
+
var field = reader.getFieldNumber();
|
|
6707
|
+
switch (field) {
|
|
6708
|
+
case 1:
|
|
6709
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6710
|
+
msg.setUserId(value);
|
|
6711
|
+
break;
|
|
6712
|
+
case 2:
|
|
6713
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6714
|
+
msg.setType(value);
|
|
6715
|
+
break;
|
|
6716
|
+
case 3:
|
|
6717
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6718
|
+
msg.setAmount(value);
|
|
6719
|
+
break;
|
|
6720
|
+
case 4:
|
|
6721
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6722
|
+
msg.setGrantSource(value);
|
|
6723
|
+
break;
|
|
6724
|
+
case 5:
|
|
6725
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6726
|
+
msg.setGrantId(value);
|
|
6727
|
+
break;
|
|
6728
|
+
default:
|
|
6729
|
+
reader.skipField();
|
|
6730
|
+
break;
|
|
6731
|
+
}
|
|
6732
|
+
}
|
|
6733
|
+
return msg;
|
|
6734
|
+
};
|
|
6735
|
+
|
|
6736
|
+
|
|
6737
|
+
/**
|
|
6738
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6739
|
+
* @return {!Uint8Array}
|
|
6740
|
+
*/
|
|
6741
|
+
proto.user.GrantUserRewardRequest.prototype.serializeBinary = function() {
|
|
6742
|
+
var writer = new jspb.BinaryWriter();
|
|
6743
|
+
proto.user.GrantUserRewardRequest.serializeBinaryToWriter(this, writer);
|
|
6744
|
+
return writer.getResultBuffer();
|
|
6745
|
+
};
|
|
6746
|
+
|
|
6747
|
+
|
|
6748
|
+
/**
|
|
6749
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6750
|
+
* format), writing to the given BinaryWriter.
|
|
6751
|
+
* @param {!proto.user.GrantUserRewardRequest} message
|
|
6752
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6753
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6754
|
+
*/
|
|
6755
|
+
proto.user.GrantUserRewardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6756
|
+
var f = undefined;
|
|
6757
|
+
f = message.getUserId();
|
|
6758
|
+
if (f !== 0) {
|
|
6759
|
+
writer.writeInt32(
|
|
6760
|
+
1,
|
|
6761
|
+
f
|
|
6762
|
+
);
|
|
6763
|
+
}
|
|
6764
|
+
f = message.getType();
|
|
6765
|
+
if (f.length > 0) {
|
|
6766
|
+
writer.writeString(
|
|
6767
|
+
2,
|
|
6768
|
+
f
|
|
6769
|
+
);
|
|
6770
|
+
}
|
|
6771
|
+
f = message.getAmount();
|
|
6772
|
+
if (f.length > 0) {
|
|
6773
|
+
writer.writeString(
|
|
6774
|
+
3,
|
|
6775
|
+
f
|
|
6776
|
+
);
|
|
6777
|
+
}
|
|
6778
|
+
f = message.getGrantSource();
|
|
6779
|
+
if (f.length > 0) {
|
|
6780
|
+
writer.writeString(
|
|
6781
|
+
4,
|
|
6782
|
+
f
|
|
6783
|
+
);
|
|
6784
|
+
}
|
|
6785
|
+
f = message.getGrantId();
|
|
6786
|
+
if (f.length > 0) {
|
|
6787
|
+
writer.writeString(
|
|
6788
|
+
5,
|
|
6789
|
+
f
|
|
6790
|
+
);
|
|
6791
|
+
}
|
|
6792
|
+
};
|
|
6793
|
+
|
|
6794
|
+
|
|
6795
|
+
/**
|
|
6796
|
+
* optional int32 user_id = 1;
|
|
6797
|
+
* @return {number}
|
|
6798
|
+
*/
|
|
6799
|
+
proto.user.GrantUserRewardRequest.prototype.getUserId = function() {
|
|
6800
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6801
|
+
};
|
|
6802
|
+
|
|
6803
|
+
|
|
6804
|
+
/**
|
|
6805
|
+
* @param {number} value
|
|
6806
|
+
* @return {!proto.user.GrantUserRewardRequest} returns this
|
|
6807
|
+
*/
|
|
6808
|
+
proto.user.GrantUserRewardRequest.prototype.setUserId = function(value) {
|
|
6809
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6810
|
+
};
|
|
6811
|
+
|
|
6812
|
+
|
|
6813
|
+
/**
|
|
6814
|
+
* optional string type = 2;
|
|
6815
|
+
* @return {string}
|
|
6816
|
+
*/
|
|
6817
|
+
proto.user.GrantUserRewardRequest.prototype.getType = function() {
|
|
6818
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6819
|
+
};
|
|
6820
|
+
|
|
6821
|
+
|
|
6822
|
+
/**
|
|
6823
|
+
* @param {string} value
|
|
6824
|
+
* @return {!proto.user.GrantUserRewardRequest} returns this
|
|
6825
|
+
*/
|
|
6826
|
+
proto.user.GrantUserRewardRequest.prototype.setType = function(value) {
|
|
6827
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6828
|
+
};
|
|
6829
|
+
|
|
6830
|
+
|
|
6831
|
+
/**
|
|
6832
|
+
* optional string amount = 3;
|
|
6833
|
+
* @return {string}
|
|
6834
|
+
*/
|
|
6835
|
+
proto.user.GrantUserRewardRequest.prototype.getAmount = function() {
|
|
6836
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6837
|
+
};
|
|
6838
|
+
|
|
6839
|
+
|
|
6840
|
+
/**
|
|
6841
|
+
* @param {string} value
|
|
6842
|
+
* @return {!proto.user.GrantUserRewardRequest} returns this
|
|
6843
|
+
*/
|
|
6844
|
+
proto.user.GrantUserRewardRequest.prototype.setAmount = function(value) {
|
|
6845
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6846
|
+
};
|
|
6847
|
+
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* optional string grant_source = 4;
|
|
6851
|
+
* @return {string}
|
|
6852
|
+
*/
|
|
6853
|
+
proto.user.GrantUserRewardRequest.prototype.getGrantSource = function() {
|
|
6854
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6855
|
+
};
|
|
6856
|
+
|
|
6857
|
+
|
|
6858
|
+
/**
|
|
6859
|
+
* @param {string} value
|
|
6860
|
+
* @return {!proto.user.GrantUserRewardRequest} returns this
|
|
6861
|
+
*/
|
|
6862
|
+
proto.user.GrantUserRewardRequest.prototype.setGrantSource = function(value) {
|
|
6863
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
6864
|
+
};
|
|
6865
|
+
|
|
6866
|
+
|
|
6867
|
+
/**
|
|
6868
|
+
* optional string grant_id = 5;
|
|
6869
|
+
* @return {string}
|
|
6870
|
+
*/
|
|
6871
|
+
proto.user.GrantUserRewardRequest.prototype.getGrantId = function() {
|
|
6872
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
6873
|
+
};
|
|
6874
|
+
|
|
6875
|
+
|
|
6876
|
+
/**
|
|
6877
|
+
* @param {string} value
|
|
6878
|
+
* @return {!proto.user.GrantUserRewardRequest} returns this
|
|
6879
|
+
*/
|
|
6880
|
+
proto.user.GrantUserRewardRequest.prototype.setGrantId = function(value) {
|
|
6881
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6882
|
+
};
|
|
6883
|
+
|
|
6884
|
+
|
|
6885
|
+
|
|
6886
|
+
|
|
6887
|
+
|
|
6888
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6889
|
+
/**
|
|
6890
|
+
* Creates an object representation of this proto.
|
|
6891
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6892
|
+
* Optional fields that are not set will be set to undefined.
|
|
6893
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6894
|
+
* For the list of reserved names please see:
|
|
6895
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6896
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6897
|
+
* JSPB instance for transitional soy proto support:
|
|
6898
|
+
* http://goto/soy-param-migration
|
|
6899
|
+
* @return {!Object}
|
|
6900
|
+
*/
|
|
6901
|
+
proto.user.GrantUserRewardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6902
|
+
return proto.user.GrantUserRewardResponse.toObject(opt_includeInstance, this);
|
|
6903
|
+
};
|
|
6904
|
+
|
|
6905
|
+
|
|
6906
|
+
/**
|
|
6907
|
+
* Static version of the {@see toObject} method.
|
|
6908
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6909
|
+
* the JSPB instance for transitional soy proto support:
|
|
6910
|
+
* http://goto/soy-param-migration
|
|
6911
|
+
* @param {!proto.user.GrantUserRewardResponse} msg The msg instance to transform.
|
|
6912
|
+
* @return {!Object}
|
|
6913
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6914
|
+
*/
|
|
6915
|
+
proto.user.GrantUserRewardResponse.toObject = function(includeInstance, msg) {
|
|
6916
|
+
var f, obj = {
|
|
6917
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6918
|
+
balance: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
6919
|
+
};
|
|
6920
|
+
|
|
6921
|
+
if (includeInstance) {
|
|
6922
|
+
obj.$jspbMessageInstance = msg;
|
|
6923
|
+
}
|
|
6924
|
+
return obj;
|
|
6925
|
+
};
|
|
6926
|
+
}
|
|
6927
|
+
|
|
6928
|
+
|
|
6929
|
+
/**
|
|
6930
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6931
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6932
|
+
* @return {!proto.user.GrantUserRewardResponse}
|
|
6933
|
+
*/
|
|
6934
|
+
proto.user.GrantUserRewardResponse.deserializeBinary = function(bytes) {
|
|
6935
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6936
|
+
var msg = new proto.user.GrantUserRewardResponse;
|
|
6937
|
+
return proto.user.GrantUserRewardResponse.deserializeBinaryFromReader(msg, reader);
|
|
6938
|
+
};
|
|
6939
|
+
|
|
6940
|
+
|
|
6941
|
+
/**
|
|
6942
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6943
|
+
* given reader into the given message object.
|
|
6944
|
+
* @param {!proto.user.GrantUserRewardResponse} msg The message object to deserialize into.
|
|
6945
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6946
|
+
* @return {!proto.user.GrantUserRewardResponse}
|
|
6947
|
+
*/
|
|
6948
|
+
proto.user.GrantUserRewardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6949
|
+
while (reader.nextField()) {
|
|
6950
|
+
if (reader.isEndGroup()) {
|
|
6951
|
+
break;
|
|
6952
|
+
}
|
|
6953
|
+
var field = reader.getFieldNumber();
|
|
6954
|
+
switch (field) {
|
|
6955
|
+
case 1:
|
|
6956
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6957
|
+
msg.setStatus(value);
|
|
6958
|
+
break;
|
|
6959
|
+
case 2:
|
|
6960
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6961
|
+
msg.setBalance(value);
|
|
6962
|
+
break;
|
|
6963
|
+
default:
|
|
6964
|
+
reader.skipField();
|
|
6965
|
+
break;
|
|
6966
|
+
}
|
|
6967
|
+
}
|
|
6968
|
+
return msg;
|
|
6969
|
+
};
|
|
6970
|
+
|
|
6971
|
+
|
|
6972
|
+
/**
|
|
6973
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6974
|
+
* @return {!Uint8Array}
|
|
6975
|
+
*/
|
|
6976
|
+
proto.user.GrantUserRewardResponse.prototype.serializeBinary = function() {
|
|
6977
|
+
var writer = new jspb.BinaryWriter();
|
|
6978
|
+
proto.user.GrantUserRewardResponse.serializeBinaryToWriter(this, writer);
|
|
6979
|
+
return writer.getResultBuffer();
|
|
6980
|
+
};
|
|
6981
|
+
|
|
6982
|
+
|
|
6983
|
+
/**
|
|
6984
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6985
|
+
* format), writing to the given BinaryWriter.
|
|
6986
|
+
* @param {!proto.user.GrantUserRewardResponse} message
|
|
6987
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6988
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6989
|
+
*/
|
|
6990
|
+
proto.user.GrantUserRewardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6991
|
+
var f = undefined;
|
|
6992
|
+
f = message.getStatus();
|
|
6993
|
+
if (f.length > 0) {
|
|
6994
|
+
writer.writeString(
|
|
6995
|
+
1,
|
|
6996
|
+
f
|
|
6997
|
+
);
|
|
6998
|
+
}
|
|
6999
|
+
f = message.getBalance();
|
|
7000
|
+
if (f.length > 0) {
|
|
7001
|
+
writer.writeString(
|
|
7002
|
+
2,
|
|
7003
|
+
f
|
|
7004
|
+
);
|
|
7005
|
+
}
|
|
7006
|
+
};
|
|
7007
|
+
|
|
7008
|
+
|
|
7009
|
+
/**
|
|
7010
|
+
* optional string status = 1;
|
|
7011
|
+
* @return {string}
|
|
7012
|
+
*/
|
|
7013
|
+
proto.user.GrantUserRewardResponse.prototype.getStatus = function() {
|
|
7014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
/**
|
|
7019
|
+
* @param {string} value
|
|
7020
|
+
* @return {!proto.user.GrantUserRewardResponse} returns this
|
|
7021
|
+
*/
|
|
7022
|
+
proto.user.GrantUserRewardResponse.prototype.setStatus = function(value) {
|
|
7023
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* optional string balance = 2;
|
|
7029
|
+
* @return {string}
|
|
7030
|
+
*/
|
|
7031
|
+
proto.user.GrantUserRewardResponse.prototype.getBalance = function() {
|
|
7032
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* @param {string} value
|
|
7038
|
+
* @return {!proto.user.GrantUserRewardResponse} returns this
|
|
7039
|
+
*/
|
|
7040
|
+
proto.user.GrantUserRewardResponse.prototype.setBalance = function(value) {
|
|
7041
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7042
|
+
};
|
|
7043
|
+
|
|
7044
|
+
|
|
7045
|
+
|
|
7046
|
+
|
|
7047
|
+
|
|
6594
7048
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6595
7049
|
/**
|
|
6596
7050
|
* Creates an object representation of this proto.
|