protobuf-platform 1.2.470 → 1.2.472
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 +28 -0
- package/bonus/bonus_grpc_pb.js +212 -143
- package/bonus/bonus_pb.js +1282 -404
- package/cashback/cashback.proto +4 -0
- package/cashback/cashback_pb.js +196 -4
- package/game/game.proto +11 -0
- package/game/game_grpc_pb.js +23 -0
- package/game/game_pb.js +420 -0
- package/package.json +1 -1
- package/update_protobuf.sh +26 -19
package/bonus/bonus_pb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// source: bonus.proto
|
|
1
|
+
// source: bonus/bonus.proto
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview
|
|
4
4
|
* @enhanceable
|
|
@@ -21,6 +21,8 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
var game_game_pb = require('../game/game_pb.js');
|
|
25
|
+
goog.object.extend(proto, game_game_pb);
|
|
24
26
|
goog.exportSymbol('proto.bonus.ActivationRule', null, global);
|
|
25
27
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusItem', null, global);
|
|
26
28
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusesResponse', null, global);
|
|
@@ -61,12 +63,15 @@ goog.exportSymbol('proto.bonus.GetBonusBySlugRequest', null, global);
|
|
|
61
63
|
goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
|
|
62
64
|
goog.exportSymbol('proto.bonus.GetBonusSnapshotsByIdsRequest', null, global);
|
|
63
65
|
goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
|
|
66
|
+
goog.exportSymbol('proto.bonus.GetBonusWagerGamesRequest', null, global);
|
|
64
67
|
goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsRequest', null, global);
|
|
65
68
|
goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsResponse', null, global);
|
|
66
69
|
goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, global);
|
|
67
70
|
goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
|
|
68
71
|
goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
|
|
69
72
|
goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
73
|
+
goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
|
|
74
|
+
goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
|
|
70
75
|
goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
|
|
71
76
|
goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
|
|
72
77
|
goog.exportSymbol('proto.bonus.PingRequest', null, global);
|
|
@@ -434,6 +439,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
434
439
|
*/
|
|
435
440
|
proto.bonus.GetBonusBySlugRequest.displayName = 'proto.bonus.GetBonusBySlugRequest';
|
|
436
441
|
}
|
|
442
|
+
/**
|
|
443
|
+
* Generated by JsPbCodeGenerator.
|
|
444
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
445
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
446
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
447
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
448
|
+
* valid.
|
|
449
|
+
* @extends {jspb.Message}
|
|
450
|
+
* @constructor
|
|
451
|
+
*/
|
|
452
|
+
proto.bonus.GetBonusWagerGamesRequest = function(opt_data) {
|
|
453
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
454
|
+
};
|
|
455
|
+
goog.inherits(proto.bonus.GetBonusWagerGamesRequest, jspb.Message);
|
|
456
|
+
if (goog.DEBUG && !COMPILED) {
|
|
457
|
+
/**
|
|
458
|
+
* @public
|
|
459
|
+
* @override
|
|
460
|
+
*/
|
|
461
|
+
proto.bonus.GetBonusWagerGamesRequest.displayName = 'proto.bonus.GetBonusWagerGamesRequest';
|
|
462
|
+
}
|
|
437
463
|
/**
|
|
438
464
|
* Generated by JsPbCodeGenerator.
|
|
439
465
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -791,6 +817,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
791
817
|
*/
|
|
792
818
|
proto.bonus.ApplyUserBonusPromocodeRequest.displayName = 'proto.bonus.ApplyUserBonusPromocodeRequest';
|
|
793
819
|
}
|
|
820
|
+
/**
|
|
821
|
+
* Generated by JsPbCodeGenerator.
|
|
822
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
823
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
824
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
825
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
826
|
+
* valid.
|
|
827
|
+
* @extends {jspb.Message}
|
|
828
|
+
* @constructor
|
|
829
|
+
*/
|
|
830
|
+
proto.bonus.GrantDynamicUserBonusRequest = function(opt_data) {
|
|
831
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
832
|
+
};
|
|
833
|
+
goog.inherits(proto.bonus.GrantDynamicUserBonusRequest, jspb.Message);
|
|
834
|
+
if (goog.DEBUG && !COMPILED) {
|
|
835
|
+
/**
|
|
836
|
+
* @public
|
|
837
|
+
* @override
|
|
838
|
+
*/
|
|
839
|
+
proto.bonus.GrantDynamicUserBonusRequest.displayName = 'proto.bonus.GrantDynamicUserBonusRequest';
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Generated by JsPbCodeGenerator.
|
|
843
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
844
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
845
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
846
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
847
|
+
* valid.
|
|
848
|
+
* @extends {jspb.Message}
|
|
849
|
+
* @constructor
|
|
850
|
+
*/
|
|
851
|
+
proto.bonus.GrantDynamicUserBonusResponse = function(opt_data) {
|
|
852
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
853
|
+
};
|
|
854
|
+
goog.inherits(proto.bonus.GrantDynamicUserBonusResponse, jspb.Message);
|
|
855
|
+
if (goog.DEBUG && !COMPILED) {
|
|
856
|
+
/**
|
|
857
|
+
* @public
|
|
858
|
+
* @override
|
|
859
|
+
*/
|
|
860
|
+
proto.bonus.GrantDynamicUserBonusResponse.displayName = 'proto.bonus.GrantDynamicUserBonusResponse';
|
|
861
|
+
}
|
|
794
862
|
/**
|
|
795
863
|
* Generated by JsPbCodeGenerator.
|
|
796
864
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6824,8 +6892,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6824
6892
|
* http://goto/soy-param-migration
|
|
6825
6893
|
* @return {!Object}
|
|
6826
6894
|
*/
|
|
6827
|
-
proto.bonus.
|
|
6828
|
-
return proto.bonus.
|
|
6895
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6896
|
+
return proto.bonus.GetBonusWagerGamesRequest.toObject(opt_includeInstance, this);
|
|
6829
6897
|
};
|
|
6830
6898
|
|
|
6831
6899
|
|
|
@@ -6834,14 +6902,18 @@ proto.bonus.CurrencyStatusItem.prototype.toObject = function(opt_includeInstance
|
|
|
6834
6902
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6835
6903
|
* the JSPB instance for transitional soy proto support:
|
|
6836
6904
|
* http://goto/soy-param-migration
|
|
6837
|
-
* @param {!proto.bonus.
|
|
6905
|
+
* @param {!proto.bonus.GetBonusWagerGamesRequest} msg The msg instance to transform.
|
|
6838
6906
|
* @return {!Object}
|
|
6839
6907
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6840
6908
|
*/
|
|
6841
|
-
proto.bonus.
|
|
6909
|
+
proto.bonus.GetBonusWagerGamesRequest.toObject = function(includeInstance, msg) {
|
|
6842
6910
|
var f, obj = {
|
|
6843
|
-
|
|
6844
|
-
|
|
6911
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6912
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6913
|
+
offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
6914
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
6915
|
+
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6916
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
6845
6917
|
};
|
|
6846
6918
|
|
|
6847
6919
|
if (includeInstance) {
|
|
@@ -6855,23 +6927,23 @@ proto.bonus.CurrencyStatusItem.toObject = function(includeInstance, msg) {
|
|
|
6855
6927
|
/**
|
|
6856
6928
|
* Deserializes binary data (in protobuf wire format).
|
|
6857
6929
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6858
|
-
* @return {!proto.bonus.
|
|
6930
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest}
|
|
6859
6931
|
*/
|
|
6860
|
-
proto.bonus.
|
|
6932
|
+
proto.bonus.GetBonusWagerGamesRequest.deserializeBinary = function(bytes) {
|
|
6861
6933
|
var reader = new jspb.BinaryReader(bytes);
|
|
6862
|
-
var msg = new proto.bonus.
|
|
6863
|
-
return proto.bonus.
|
|
6934
|
+
var msg = new proto.bonus.GetBonusWagerGamesRequest;
|
|
6935
|
+
return proto.bonus.GetBonusWagerGamesRequest.deserializeBinaryFromReader(msg, reader);
|
|
6864
6936
|
};
|
|
6865
6937
|
|
|
6866
6938
|
|
|
6867
6939
|
/**
|
|
6868
6940
|
* Deserializes binary data (in protobuf wire format) from the
|
|
6869
6941
|
* given reader into the given message object.
|
|
6870
|
-
* @param {!proto.bonus.
|
|
6942
|
+
* @param {!proto.bonus.GetBonusWagerGamesRequest} msg The message object to deserialize into.
|
|
6871
6943
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6872
|
-
* @return {!proto.bonus.
|
|
6944
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest}
|
|
6873
6945
|
*/
|
|
6874
|
-
proto.bonus.
|
|
6946
|
+
proto.bonus.GetBonusWagerGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6875
6947
|
while (reader.nextField()) {
|
|
6876
6948
|
if (reader.isEndGroup()) {
|
|
6877
6949
|
break;
|
|
@@ -6879,12 +6951,28 @@ proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader = function(msg, reade
|
|
|
6879
6951
|
var field = reader.getFieldNumber();
|
|
6880
6952
|
switch (field) {
|
|
6881
6953
|
case 1:
|
|
6882
|
-
var value = /** @type {
|
|
6883
|
-
msg.
|
|
6954
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6955
|
+
msg.setBonusId(value);
|
|
6884
6956
|
break;
|
|
6885
6957
|
case 2:
|
|
6958
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6959
|
+
msg.setLimit(value);
|
|
6960
|
+
break;
|
|
6961
|
+
case 3:
|
|
6962
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6963
|
+
msg.setOffset(value);
|
|
6964
|
+
break;
|
|
6965
|
+
case 4:
|
|
6966
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6967
|
+
msg.setIsMobile(value);
|
|
6968
|
+
break;
|
|
6969
|
+
case 5:
|
|
6886
6970
|
var value = /** @type {string} */ (reader.readString());
|
|
6887
|
-
msg.
|
|
6971
|
+
msg.setCountry(value);
|
|
6972
|
+
break;
|
|
6973
|
+
case 6:
|
|
6974
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6975
|
+
msg.setAdminSide(value);
|
|
6888
6976
|
break;
|
|
6889
6977
|
default:
|
|
6890
6978
|
reader.skipField();
|
|
@@ -6899,9 +6987,9 @@ proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader = function(msg, reade
|
|
|
6899
6987
|
* Serializes the message to binary data (in protobuf wire format).
|
|
6900
6988
|
* @return {!Uint8Array}
|
|
6901
6989
|
*/
|
|
6902
|
-
proto.bonus.
|
|
6990
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.serializeBinary = function() {
|
|
6903
6991
|
var writer = new jspb.BinaryWriter();
|
|
6904
|
-
proto.bonus.
|
|
6992
|
+
proto.bonus.GetBonusWagerGamesRequest.serializeBinaryToWriter(this, writer);
|
|
6905
6993
|
return writer.getResultBuffer();
|
|
6906
6994
|
};
|
|
6907
6995
|
|
|
@@ -6909,53 +6997,99 @@ proto.bonus.CurrencyStatusItem.prototype.serializeBinary = function() {
|
|
|
6909
6997
|
/**
|
|
6910
6998
|
* Serializes the given message to binary data (in protobuf wire
|
|
6911
6999
|
* format), writing to the given BinaryWriter.
|
|
6912
|
-
* @param {!proto.bonus.
|
|
7000
|
+
* @param {!proto.bonus.GetBonusWagerGamesRequest} message
|
|
6913
7001
|
* @param {!jspb.BinaryWriter} writer
|
|
6914
7002
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6915
7003
|
*/
|
|
6916
|
-
proto.bonus.
|
|
7004
|
+
proto.bonus.GetBonusWagerGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6917
7005
|
var f = undefined;
|
|
6918
|
-
f =
|
|
6919
|
-
if (f
|
|
6920
|
-
writer.
|
|
7006
|
+
f = message.getBonusId();
|
|
7007
|
+
if (f !== 0) {
|
|
7008
|
+
writer.writeInt32(
|
|
6921
7009
|
1,
|
|
6922
7010
|
f
|
|
6923
7011
|
);
|
|
6924
7012
|
}
|
|
6925
|
-
f = /** @type {
|
|
7013
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
6926
7014
|
if (f != null) {
|
|
6927
|
-
writer.
|
|
7015
|
+
writer.writeInt32(
|
|
6928
7016
|
2,
|
|
6929
7017
|
f
|
|
6930
7018
|
);
|
|
6931
7019
|
}
|
|
7020
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
7021
|
+
if (f != null) {
|
|
7022
|
+
writer.writeInt32(
|
|
7023
|
+
3,
|
|
7024
|
+
f
|
|
7025
|
+
);
|
|
7026
|
+
}
|
|
7027
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
|
7028
|
+
if (f != null) {
|
|
7029
|
+
writer.writeBool(
|
|
7030
|
+
4,
|
|
7031
|
+
f
|
|
7032
|
+
);
|
|
7033
|
+
}
|
|
7034
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
7035
|
+
if (f != null) {
|
|
7036
|
+
writer.writeString(
|
|
7037
|
+
5,
|
|
7038
|
+
f
|
|
7039
|
+
);
|
|
7040
|
+
}
|
|
7041
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
7042
|
+
if (f != null) {
|
|
7043
|
+
writer.writeBool(
|
|
7044
|
+
6,
|
|
7045
|
+
f
|
|
7046
|
+
);
|
|
7047
|
+
}
|
|
6932
7048
|
};
|
|
6933
7049
|
|
|
6934
7050
|
|
|
6935
7051
|
/**
|
|
6936
|
-
* optional
|
|
6937
|
-
* @return {
|
|
7052
|
+
* optional int32 bonus_id = 1;
|
|
7053
|
+
* @return {number}
|
|
6938
7054
|
*/
|
|
6939
|
-
proto.bonus.
|
|
6940
|
-
return /** @type {
|
|
7055
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getBonusId = function() {
|
|
7056
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6941
7057
|
};
|
|
6942
7058
|
|
|
6943
7059
|
|
|
6944
7060
|
/**
|
|
6945
|
-
* @param {
|
|
6946
|
-
* @return {!proto.bonus.
|
|
7061
|
+
* @param {number} value
|
|
7062
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
6947
7063
|
*/
|
|
6948
|
-
proto.bonus.
|
|
6949
|
-
return jspb.Message.
|
|
7064
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setBonusId = function(value) {
|
|
7065
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7066
|
+
};
|
|
7067
|
+
|
|
7068
|
+
|
|
7069
|
+
/**
|
|
7070
|
+
* optional int32 limit = 2;
|
|
7071
|
+
* @return {number}
|
|
7072
|
+
*/
|
|
7073
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getLimit = function() {
|
|
7074
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7075
|
+
};
|
|
7076
|
+
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* @param {number} value
|
|
7080
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7081
|
+
*/
|
|
7082
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setLimit = function(value) {
|
|
7083
|
+
return jspb.Message.setField(this, 2, value);
|
|
6950
7084
|
};
|
|
6951
7085
|
|
|
6952
7086
|
|
|
6953
7087
|
/**
|
|
6954
7088
|
* Clears the field making it undefined.
|
|
6955
|
-
* @return {!proto.bonus.
|
|
7089
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
6956
7090
|
*/
|
|
6957
|
-
proto.bonus.
|
|
6958
|
-
return jspb.Message.setField(this,
|
|
7091
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.clearLimit = function() {
|
|
7092
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6959
7093
|
};
|
|
6960
7094
|
|
|
6961
7095
|
|
|
@@ -6963,35 +7097,35 @@ proto.bonus.CurrencyStatusItem.prototype.clearCurrency = function() {
|
|
|
6963
7097
|
* Returns whether this field is set.
|
|
6964
7098
|
* @return {boolean}
|
|
6965
7099
|
*/
|
|
6966
|
-
proto.bonus.
|
|
6967
|
-
return jspb.Message.getField(this,
|
|
7100
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.hasLimit = function() {
|
|
7101
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6968
7102
|
};
|
|
6969
7103
|
|
|
6970
7104
|
|
|
6971
7105
|
/**
|
|
6972
|
-
* optional
|
|
6973
|
-
* @return {
|
|
7106
|
+
* optional int32 offset = 3;
|
|
7107
|
+
* @return {number}
|
|
6974
7108
|
*/
|
|
6975
|
-
proto.bonus.
|
|
6976
|
-
return /** @type {
|
|
7109
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getOffset = function() {
|
|
7110
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6977
7111
|
};
|
|
6978
7112
|
|
|
6979
7113
|
|
|
6980
7114
|
/**
|
|
6981
|
-
* @param {
|
|
6982
|
-
* @return {!proto.bonus.
|
|
7115
|
+
* @param {number} value
|
|
7116
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
6983
7117
|
*/
|
|
6984
|
-
proto.bonus.
|
|
6985
|
-
return jspb.Message.setField(this,
|
|
7118
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setOffset = function(value) {
|
|
7119
|
+
return jspb.Message.setField(this, 3, value);
|
|
6986
7120
|
};
|
|
6987
7121
|
|
|
6988
7122
|
|
|
6989
7123
|
/**
|
|
6990
7124
|
* Clears the field making it undefined.
|
|
6991
|
-
* @return {!proto.bonus.
|
|
7125
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
6992
7126
|
*/
|
|
6993
|
-
proto.bonus.
|
|
6994
|
-
return jspb.Message.setField(this,
|
|
7127
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.clearOffset = function() {
|
|
7128
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6995
7129
|
};
|
|
6996
7130
|
|
|
6997
7131
|
|
|
@@ -6999,77 +7133,381 @@ proto.bonus.CurrencyStatusItem.prototype.clearStatus = function() {
|
|
|
6999
7133
|
* Returns whether this field is set.
|
|
7000
7134
|
* @return {boolean}
|
|
7001
7135
|
*/
|
|
7002
|
-
proto.bonus.
|
|
7003
|
-
return jspb.Message.getField(this,
|
|
7136
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.hasOffset = function() {
|
|
7137
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7004
7138
|
};
|
|
7005
7139
|
|
|
7006
7140
|
|
|
7141
|
+
/**
|
|
7142
|
+
* optional bool is_mobile = 4;
|
|
7143
|
+
* @return {boolean}
|
|
7144
|
+
*/
|
|
7145
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getIsMobile = function() {
|
|
7146
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
7147
|
+
};
|
|
7148
|
+
|
|
7007
7149
|
|
|
7150
|
+
/**
|
|
7151
|
+
* @param {boolean} value
|
|
7152
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7153
|
+
*/
|
|
7154
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setIsMobile = function(value) {
|
|
7155
|
+
return jspb.Message.setField(this, 4, value);
|
|
7156
|
+
};
|
|
7008
7157
|
|
|
7009
7158
|
|
|
7010
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7011
7159
|
/**
|
|
7012
|
-
*
|
|
7013
|
-
*
|
|
7014
|
-
* Optional fields that are not set will be set to undefined.
|
|
7015
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7016
|
-
* For the list of reserved names please see:
|
|
7017
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7018
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7019
|
-
* JSPB instance for transitional soy proto support:
|
|
7020
|
-
* http://goto/soy-param-migration
|
|
7021
|
-
* @return {!Object}
|
|
7160
|
+
* Clears the field making it undefined.
|
|
7161
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7022
7162
|
*/
|
|
7023
|
-
proto.bonus.
|
|
7024
|
-
return
|
|
7163
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.clearIsMobile = function() {
|
|
7164
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7025
7165
|
};
|
|
7026
7166
|
|
|
7027
7167
|
|
|
7028
7168
|
/**
|
|
7029
|
-
*
|
|
7030
|
-
* @
|
|
7031
|
-
* the JSPB instance for transitional soy proto support:
|
|
7032
|
-
* http://goto/soy-param-migration
|
|
7033
|
-
* @param {!proto.bonus.BonusResponse} msg The msg instance to transform.
|
|
7034
|
-
* @return {!Object}
|
|
7035
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7169
|
+
* Returns whether this field is set.
|
|
7170
|
+
* @return {boolean}
|
|
7036
7171
|
*/
|
|
7037
|
-
proto.bonus.
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
};
|
|
7172
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.hasIsMobile = function() {
|
|
7173
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7174
|
+
};
|
|
7041
7175
|
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7176
|
+
|
|
7177
|
+
/**
|
|
7178
|
+
* optional string country = 5;
|
|
7179
|
+
* @return {string}
|
|
7180
|
+
*/
|
|
7181
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getCountry = function() {
|
|
7182
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7046
7183
|
};
|
|
7047
|
-
}
|
|
7048
7184
|
|
|
7049
7185
|
|
|
7050
7186
|
/**
|
|
7051
|
-
*
|
|
7052
|
-
* @
|
|
7053
|
-
* @return {!proto.bonus.BonusResponse}
|
|
7187
|
+
* @param {string} value
|
|
7188
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7054
7189
|
*/
|
|
7055
|
-
proto.bonus.
|
|
7056
|
-
|
|
7057
|
-
var msg = new proto.bonus.BonusResponse;
|
|
7058
|
-
return proto.bonus.BonusResponse.deserializeBinaryFromReader(msg, reader);
|
|
7190
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setCountry = function(value) {
|
|
7191
|
+
return jspb.Message.setField(this, 5, value);
|
|
7059
7192
|
};
|
|
7060
7193
|
|
|
7061
7194
|
|
|
7062
7195
|
/**
|
|
7063
|
-
*
|
|
7064
|
-
*
|
|
7065
|
-
* @param {!proto.bonus.BonusResponse} msg The message object to deserialize into.
|
|
7066
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7067
|
-
* @return {!proto.bonus.BonusResponse}
|
|
7196
|
+
* Clears the field making it undefined.
|
|
7197
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7068
7198
|
*/
|
|
7069
|
-
proto.bonus.
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7199
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.clearCountry = function() {
|
|
7200
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7201
|
+
};
|
|
7202
|
+
|
|
7203
|
+
|
|
7204
|
+
/**
|
|
7205
|
+
* Returns whether this field is set.
|
|
7206
|
+
* @return {boolean}
|
|
7207
|
+
*/
|
|
7208
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.hasCountry = function() {
|
|
7209
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7210
|
+
};
|
|
7211
|
+
|
|
7212
|
+
|
|
7213
|
+
/**
|
|
7214
|
+
* optional bool admin_side = 6;
|
|
7215
|
+
* @return {boolean}
|
|
7216
|
+
*/
|
|
7217
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.getAdminSide = function() {
|
|
7218
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
7219
|
+
};
|
|
7220
|
+
|
|
7221
|
+
|
|
7222
|
+
/**
|
|
7223
|
+
* @param {boolean} value
|
|
7224
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7225
|
+
*/
|
|
7226
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.setAdminSide = function(value) {
|
|
7227
|
+
return jspb.Message.setField(this, 6, value);
|
|
7228
|
+
};
|
|
7229
|
+
|
|
7230
|
+
|
|
7231
|
+
/**
|
|
7232
|
+
* Clears the field making it undefined.
|
|
7233
|
+
* @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
|
|
7234
|
+
*/
|
|
7235
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.clearAdminSide = function() {
|
|
7236
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7237
|
+
};
|
|
7238
|
+
|
|
7239
|
+
|
|
7240
|
+
/**
|
|
7241
|
+
* Returns whether this field is set.
|
|
7242
|
+
* @return {boolean}
|
|
7243
|
+
*/
|
|
7244
|
+
proto.bonus.GetBonusWagerGamesRequest.prototype.hasAdminSide = function() {
|
|
7245
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7246
|
+
};
|
|
7247
|
+
|
|
7248
|
+
|
|
7249
|
+
|
|
7250
|
+
|
|
7251
|
+
|
|
7252
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7253
|
+
/**
|
|
7254
|
+
* Creates an object representation of this proto.
|
|
7255
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7256
|
+
* Optional fields that are not set will be set to undefined.
|
|
7257
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7258
|
+
* For the list of reserved names please see:
|
|
7259
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7260
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7261
|
+
* JSPB instance for transitional soy proto support:
|
|
7262
|
+
* http://goto/soy-param-migration
|
|
7263
|
+
* @return {!Object}
|
|
7264
|
+
*/
|
|
7265
|
+
proto.bonus.CurrencyStatusItem.prototype.toObject = function(opt_includeInstance) {
|
|
7266
|
+
return proto.bonus.CurrencyStatusItem.toObject(opt_includeInstance, this);
|
|
7267
|
+
};
|
|
7268
|
+
|
|
7269
|
+
|
|
7270
|
+
/**
|
|
7271
|
+
* Static version of the {@see toObject} method.
|
|
7272
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7273
|
+
* the JSPB instance for transitional soy proto support:
|
|
7274
|
+
* http://goto/soy-param-migration
|
|
7275
|
+
* @param {!proto.bonus.CurrencyStatusItem} msg The msg instance to transform.
|
|
7276
|
+
* @return {!Object}
|
|
7277
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7278
|
+
*/
|
|
7279
|
+
proto.bonus.CurrencyStatusItem.toObject = function(includeInstance, msg) {
|
|
7280
|
+
var f, obj = {
|
|
7281
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7282
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7283
|
+
};
|
|
7284
|
+
|
|
7285
|
+
if (includeInstance) {
|
|
7286
|
+
obj.$jspbMessageInstance = msg;
|
|
7287
|
+
}
|
|
7288
|
+
return obj;
|
|
7289
|
+
};
|
|
7290
|
+
}
|
|
7291
|
+
|
|
7292
|
+
|
|
7293
|
+
/**
|
|
7294
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7295
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7296
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
7297
|
+
*/
|
|
7298
|
+
proto.bonus.CurrencyStatusItem.deserializeBinary = function(bytes) {
|
|
7299
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7300
|
+
var msg = new proto.bonus.CurrencyStatusItem;
|
|
7301
|
+
return proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader(msg, reader);
|
|
7302
|
+
};
|
|
7303
|
+
|
|
7304
|
+
|
|
7305
|
+
/**
|
|
7306
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7307
|
+
* given reader into the given message object.
|
|
7308
|
+
* @param {!proto.bonus.CurrencyStatusItem} msg The message object to deserialize into.
|
|
7309
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7310
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
7311
|
+
*/
|
|
7312
|
+
proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
7313
|
+
while (reader.nextField()) {
|
|
7314
|
+
if (reader.isEndGroup()) {
|
|
7315
|
+
break;
|
|
7316
|
+
}
|
|
7317
|
+
var field = reader.getFieldNumber();
|
|
7318
|
+
switch (field) {
|
|
7319
|
+
case 1:
|
|
7320
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7321
|
+
msg.setCurrency(value);
|
|
7322
|
+
break;
|
|
7323
|
+
case 2:
|
|
7324
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7325
|
+
msg.setStatus(value);
|
|
7326
|
+
break;
|
|
7327
|
+
default:
|
|
7328
|
+
reader.skipField();
|
|
7329
|
+
break;
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
return msg;
|
|
7333
|
+
};
|
|
7334
|
+
|
|
7335
|
+
|
|
7336
|
+
/**
|
|
7337
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7338
|
+
* @return {!Uint8Array}
|
|
7339
|
+
*/
|
|
7340
|
+
proto.bonus.CurrencyStatusItem.prototype.serializeBinary = function() {
|
|
7341
|
+
var writer = new jspb.BinaryWriter();
|
|
7342
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter(this, writer);
|
|
7343
|
+
return writer.getResultBuffer();
|
|
7344
|
+
};
|
|
7345
|
+
|
|
7346
|
+
|
|
7347
|
+
/**
|
|
7348
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7349
|
+
* format), writing to the given BinaryWriter.
|
|
7350
|
+
* @param {!proto.bonus.CurrencyStatusItem} message
|
|
7351
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7352
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7353
|
+
*/
|
|
7354
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter = function(message, writer) {
|
|
7355
|
+
var f = undefined;
|
|
7356
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7357
|
+
if (f != null) {
|
|
7358
|
+
writer.writeString(
|
|
7359
|
+
1,
|
|
7360
|
+
f
|
|
7361
|
+
);
|
|
7362
|
+
}
|
|
7363
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
7364
|
+
if (f != null) {
|
|
7365
|
+
writer.writeString(
|
|
7366
|
+
2,
|
|
7367
|
+
f
|
|
7368
|
+
);
|
|
7369
|
+
}
|
|
7370
|
+
};
|
|
7371
|
+
|
|
7372
|
+
|
|
7373
|
+
/**
|
|
7374
|
+
* optional string currency = 1;
|
|
7375
|
+
* @return {string}
|
|
7376
|
+
*/
|
|
7377
|
+
proto.bonus.CurrencyStatusItem.prototype.getCurrency = function() {
|
|
7378
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7379
|
+
};
|
|
7380
|
+
|
|
7381
|
+
|
|
7382
|
+
/**
|
|
7383
|
+
* @param {string} value
|
|
7384
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
7385
|
+
*/
|
|
7386
|
+
proto.bonus.CurrencyStatusItem.prototype.setCurrency = function(value) {
|
|
7387
|
+
return jspb.Message.setField(this, 1, value);
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
|
|
7391
|
+
/**
|
|
7392
|
+
* Clears the field making it undefined.
|
|
7393
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
7394
|
+
*/
|
|
7395
|
+
proto.bonus.CurrencyStatusItem.prototype.clearCurrency = function() {
|
|
7396
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7397
|
+
};
|
|
7398
|
+
|
|
7399
|
+
|
|
7400
|
+
/**
|
|
7401
|
+
* Returns whether this field is set.
|
|
7402
|
+
* @return {boolean}
|
|
7403
|
+
*/
|
|
7404
|
+
proto.bonus.CurrencyStatusItem.prototype.hasCurrency = function() {
|
|
7405
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7406
|
+
};
|
|
7407
|
+
|
|
7408
|
+
|
|
7409
|
+
/**
|
|
7410
|
+
* optional string status = 2;
|
|
7411
|
+
* @return {string}
|
|
7412
|
+
*/
|
|
7413
|
+
proto.bonus.CurrencyStatusItem.prototype.getStatus = function() {
|
|
7414
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7415
|
+
};
|
|
7416
|
+
|
|
7417
|
+
|
|
7418
|
+
/**
|
|
7419
|
+
* @param {string} value
|
|
7420
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
7421
|
+
*/
|
|
7422
|
+
proto.bonus.CurrencyStatusItem.prototype.setStatus = function(value) {
|
|
7423
|
+
return jspb.Message.setField(this, 2, value);
|
|
7424
|
+
};
|
|
7425
|
+
|
|
7426
|
+
|
|
7427
|
+
/**
|
|
7428
|
+
* Clears the field making it undefined.
|
|
7429
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
7430
|
+
*/
|
|
7431
|
+
proto.bonus.CurrencyStatusItem.prototype.clearStatus = function() {
|
|
7432
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7433
|
+
};
|
|
7434
|
+
|
|
7435
|
+
|
|
7436
|
+
/**
|
|
7437
|
+
* Returns whether this field is set.
|
|
7438
|
+
* @return {boolean}
|
|
7439
|
+
*/
|
|
7440
|
+
proto.bonus.CurrencyStatusItem.prototype.hasStatus = function() {
|
|
7441
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7442
|
+
};
|
|
7443
|
+
|
|
7444
|
+
|
|
7445
|
+
|
|
7446
|
+
|
|
7447
|
+
|
|
7448
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7449
|
+
/**
|
|
7450
|
+
* Creates an object representation of this proto.
|
|
7451
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7452
|
+
* Optional fields that are not set will be set to undefined.
|
|
7453
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7454
|
+
* For the list of reserved names please see:
|
|
7455
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7456
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7457
|
+
* JSPB instance for transitional soy proto support:
|
|
7458
|
+
* http://goto/soy-param-migration
|
|
7459
|
+
* @return {!Object}
|
|
7460
|
+
*/
|
|
7461
|
+
proto.bonus.BonusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7462
|
+
return proto.bonus.BonusResponse.toObject(opt_includeInstance, this);
|
|
7463
|
+
};
|
|
7464
|
+
|
|
7465
|
+
|
|
7466
|
+
/**
|
|
7467
|
+
* Static version of the {@see toObject} method.
|
|
7468
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7469
|
+
* the JSPB instance for transitional soy proto support:
|
|
7470
|
+
* http://goto/soy-param-migration
|
|
7471
|
+
* @param {!proto.bonus.BonusResponse} msg The msg instance to transform.
|
|
7472
|
+
* @return {!Object}
|
|
7473
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7474
|
+
*/
|
|
7475
|
+
proto.bonus.BonusResponse.toObject = function(includeInstance, msg) {
|
|
7476
|
+
var f, obj = {
|
|
7477
|
+
data: (f = msg.getData()) && proto.bonus.BonusItem.toObject(includeInstance, f)
|
|
7478
|
+
};
|
|
7479
|
+
|
|
7480
|
+
if (includeInstance) {
|
|
7481
|
+
obj.$jspbMessageInstance = msg;
|
|
7482
|
+
}
|
|
7483
|
+
return obj;
|
|
7484
|
+
};
|
|
7485
|
+
}
|
|
7486
|
+
|
|
7487
|
+
|
|
7488
|
+
/**
|
|
7489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7491
|
+
* @return {!proto.bonus.BonusResponse}
|
|
7492
|
+
*/
|
|
7493
|
+
proto.bonus.BonusResponse.deserializeBinary = function(bytes) {
|
|
7494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7495
|
+
var msg = new proto.bonus.BonusResponse;
|
|
7496
|
+
return proto.bonus.BonusResponse.deserializeBinaryFromReader(msg, reader);
|
|
7497
|
+
};
|
|
7498
|
+
|
|
7499
|
+
|
|
7500
|
+
/**
|
|
7501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7502
|
+
* given reader into the given message object.
|
|
7503
|
+
* @param {!proto.bonus.BonusResponse} msg The message object to deserialize into.
|
|
7504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7505
|
+
* @return {!proto.bonus.BonusResponse}
|
|
7506
|
+
*/
|
|
7507
|
+
proto.bonus.BonusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7508
|
+
while (reader.nextField()) {
|
|
7509
|
+
if (reader.isEndGroup()) {
|
|
7510
|
+
break;
|
|
7073
7511
|
}
|
|
7074
7512
|
var field = reader.getFieldNumber();
|
|
7075
7513
|
switch (field) {
|
|
@@ -14625,8 +15063,224 @@ proto.bonus.GetUserBonusRequest.prototype.setBonusId = function(value) {
|
|
|
14625
15063
|
* Clears the field making it undefined.
|
|
14626
15064
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14627
15065
|
*/
|
|
14628
|
-
proto.bonus.GetUserBonusRequest.prototype.clearBonusId = function() {
|
|
14629
|
-
return jspb.Message.setField(this, 2, undefined);
|
|
15066
|
+
proto.bonus.GetUserBonusRequest.prototype.clearBonusId = function() {
|
|
15067
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
15068
|
+
};
|
|
15069
|
+
|
|
15070
|
+
|
|
15071
|
+
/**
|
|
15072
|
+
* Returns whether this field is set.
|
|
15073
|
+
* @return {boolean}
|
|
15074
|
+
*/
|
|
15075
|
+
proto.bonus.GetUserBonusRequest.prototype.hasBonusId = function() {
|
|
15076
|
+
return jspb.Message.getField(this, 2) != null;
|
|
15077
|
+
};
|
|
15078
|
+
|
|
15079
|
+
|
|
15080
|
+
/**
|
|
15081
|
+
* optional int32 user_bonus_id = 3;
|
|
15082
|
+
* @return {number}
|
|
15083
|
+
*/
|
|
15084
|
+
proto.bonus.GetUserBonusRequest.prototype.getUserBonusId = function() {
|
|
15085
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
15086
|
+
};
|
|
15087
|
+
|
|
15088
|
+
|
|
15089
|
+
/**
|
|
15090
|
+
* @param {number} value
|
|
15091
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15092
|
+
*/
|
|
15093
|
+
proto.bonus.GetUserBonusRequest.prototype.setUserBonusId = function(value) {
|
|
15094
|
+
return jspb.Message.setField(this, 3, value);
|
|
15095
|
+
};
|
|
15096
|
+
|
|
15097
|
+
|
|
15098
|
+
/**
|
|
15099
|
+
* Clears the field making it undefined.
|
|
15100
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15101
|
+
*/
|
|
15102
|
+
proto.bonus.GetUserBonusRequest.prototype.clearUserBonusId = function() {
|
|
15103
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15104
|
+
};
|
|
15105
|
+
|
|
15106
|
+
|
|
15107
|
+
/**
|
|
15108
|
+
* Returns whether this field is set.
|
|
15109
|
+
* @return {boolean}
|
|
15110
|
+
*/
|
|
15111
|
+
proto.bonus.GetUserBonusRequest.prototype.hasUserBonusId = function() {
|
|
15112
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15113
|
+
};
|
|
15114
|
+
|
|
15115
|
+
|
|
15116
|
+
/**
|
|
15117
|
+
* optional string type = 4;
|
|
15118
|
+
* @return {string}
|
|
15119
|
+
*/
|
|
15120
|
+
proto.bonus.GetUserBonusRequest.prototype.getType = function() {
|
|
15121
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15122
|
+
};
|
|
15123
|
+
|
|
15124
|
+
|
|
15125
|
+
/**
|
|
15126
|
+
* @param {string} value
|
|
15127
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15128
|
+
*/
|
|
15129
|
+
proto.bonus.GetUserBonusRequest.prototype.setType = function(value) {
|
|
15130
|
+
return jspb.Message.setField(this, 4, value);
|
|
15131
|
+
};
|
|
15132
|
+
|
|
15133
|
+
|
|
15134
|
+
/**
|
|
15135
|
+
* Clears the field making it undefined.
|
|
15136
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15137
|
+
*/
|
|
15138
|
+
proto.bonus.GetUserBonusRequest.prototype.clearType = function() {
|
|
15139
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15140
|
+
};
|
|
15141
|
+
|
|
15142
|
+
|
|
15143
|
+
/**
|
|
15144
|
+
* Returns whether this field is set.
|
|
15145
|
+
* @return {boolean}
|
|
15146
|
+
*/
|
|
15147
|
+
proto.bonus.GetUserBonusRequest.prototype.hasType = function() {
|
|
15148
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15149
|
+
};
|
|
15150
|
+
|
|
15151
|
+
|
|
15152
|
+
/**
|
|
15153
|
+
* optional string currency = 5;
|
|
15154
|
+
* @return {string}
|
|
15155
|
+
*/
|
|
15156
|
+
proto.bonus.GetUserBonusRequest.prototype.getCurrency = function() {
|
|
15157
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15158
|
+
};
|
|
15159
|
+
|
|
15160
|
+
|
|
15161
|
+
/**
|
|
15162
|
+
* @param {string} value
|
|
15163
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15164
|
+
*/
|
|
15165
|
+
proto.bonus.GetUserBonusRequest.prototype.setCurrency = function(value) {
|
|
15166
|
+
return jspb.Message.setField(this, 5, value);
|
|
15167
|
+
};
|
|
15168
|
+
|
|
15169
|
+
|
|
15170
|
+
/**
|
|
15171
|
+
* Clears the field making it undefined.
|
|
15172
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15173
|
+
*/
|
|
15174
|
+
proto.bonus.GetUserBonusRequest.prototype.clearCurrency = function() {
|
|
15175
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
15176
|
+
};
|
|
15177
|
+
|
|
15178
|
+
|
|
15179
|
+
/**
|
|
15180
|
+
* Returns whether this field is set.
|
|
15181
|
+
* @return {boolean}
|
|
15182
|
+
*/
|
|
15183
|
+
proto.bonus.GetUserBonusRequest.prototype.hasCurrency = function() {
|
|
15184
|
+
return jspb.Message.getField(this, 5) != null;
|
|
15185
|
+
};
|
|
15186
|
+
|
|
15187
|
+
|
|
15188
|
+
/**
|
|
15189
|
+
* optional string country = 6;
|
|
15190
|
+
* @return {string}
|
|
15191
|
+
*/
|
|
15192
|
+
proto.bonus.GetUserBonusRequest.prototype.getCountry = function() {
|
|
15193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15194
|
+
};
|
|
15195
|
+
|
|
15196
|
+
|
|
15197
|
+
/**
|
|
15198
|
+
* @param {string} value
|
|
15199
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15200
|
+
*/
|
|
15201
|
+
proto.bonus.GetUserBonusRequest.prototype.setCountry = function(value) {
|
|
15202
|
+
return jspb.Message.setField(this, 6, value);
|
|
15203
|
+
};
|
|
15204
|
+
|
|
15205
|
+
|
|
15206
|
+
/**
|
|
15207
|
+
* Clears the field making it undefined.
|
|
15208
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15209
|
+
*/
|
|
15210
|
+
proto.bonus.GetUserBonusRequest.prototype.clearCountry = function() {
|
|
15211
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
15212
|
+
};
|
|
15213
|
+
|
|
15214
|
+
|
|
15215
|
+
/**
|
|
15216
|
+
* Returns whether this field is set.
|
|
15217
|
+
* @return {boolean}
|
|
15218
|
+
*/
|
|
15219
|
+
proto.bonus.GetUserBonusRequest.prototype.hasCountry = function() {
|
|
15220
|
+
return jspb.Message.getField(this, 6) != null;
|
|
15221
|
+
};
|
|
15222
|
+
|
|
15223
|
+
|
|
15224
|
+
/**
|
|
15225
|
+
* optional string locale = 7;
|
|
15226
|
+
* @return {string}
|
|
15227
|
+
*/
|
|
15228
|
+
proto.bonus.GetUserBonusRequest.prototype.getLocale = function() {
|
|
15229
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
15230
|
+
};
|
|
15231
|
+
|
|
15232
|
+
|
|
15233
|
+
/**
|
|
15234
|
+
* @param {string} value
|
|
15235
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15236
|
+
*/
|
|
15237
|
+
proto.bonus.GetUserBonusRequest.prototype.setLocale = function(value) {
|
|
15238
|
+
return jspb.Message.setField(this, 7, value);
|
|
15239
|
+
};
|
|
15240
|
+
|
|
15241
|
+
|
|
15242
|
+
/**
|
|
15243
|
+
* Clears the field making it undefined.
|
|
15244
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15245
|
+
*/
|
|
15246
|
+
proto.bonus.GetUserBonusRequest.prototype.clearLocale = function() {
|
|
15247
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
15248
|
+
};
|
|
15249
|
+
|
|
15250
|
+
|
|
15251
|
+
/**
|
|
15252
|
+
* Returns whether this field is set.
|
|
15253
|
+
* @return {boolean}
|
|
15254
|
+
*/
|
|
15255
|
+
proto.bonus.GetUserBonusRequest.prototype.hasLocale = function() {
|
|
15256
|
+
return jspb.Message.getField(this, 7) != null;
|
|
15257
|
+
};
|
|
15258
|
+
|
|
15259
|
+
|
|
15260
|
+
/**
|
|
15261
|
+
* optional string user_public_id = 8;
|
|
15262
|
+
* @return {string}
|
|
15263
|
+
*/
|
|
15264
|
+
proto.bonus.GetUserBonusRequest.prototype.getUserPublicId = function() {
|
|
15265
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
15266
|
+
};
|
|
15267
|
+
|
|
15268
|
+
|
|
15269
|
+
/**
|
|
15270
|
+
* @param {string} value
|
|
15271
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15272
|
+
*/
|
|
15273
|
+
proto.bonus.GetUserBonusRequest.prototype.setUserPublicId = function(value) {
|
|
15274
|
+
return jspb.Message.setField(this, 8, value);
|
|
15275
|
+
};
|
|
15276
|
+
|
|
15277
|
+
|
|
15278
|
+
/**
|
|
15279
|
+
* Clears the field making it undefined.
|
|
15280
|
+
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
15281
|
+
*/
|
|
15282
|
+
proto.bonus.GetUserBonusRequest.prototype.clearUserPublicId = function() {
|
|
15283
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
14630
15284
|
};
|
|
14631
15285
|
|
|
14632
15286
|
|
|
@@ -14634,26 +15288,26 @@ proto.bonus.GetUserBonusRequest.prototype.clearBonusId = function() {
|
|
|
14634
15288
|
* Returns whether this field is set.
|
|
14635
15289
|
* @return {boolean}
|
|
14636
15290
|
*/
|
|
14637
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14638
|
-
return jspb.Message.getField(this,
|
|
15291
|
+
proto.bonus.GetUserBonusRequest.prototype.hasUserPublicId = function() {
|
|
15292
|
+
return jspb.Message.getField(this, 8) != null;
|
|
14639
15293
|
};
|
|
14640
15294
|
|
|
14641
15295
|
|
|
14642
15296
|
/**
|
|
14643
|
-
* optional
|
|
14644
|
-
* @return {
|
|
15297
|
+
* optional string user_name = 9;
|
|
15298
|
+
* @return {string}
|
|
14645
15299
|
*/
|
|
14646
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14647
|
-
return /** @type {
|
|
15300
|
+
proto.bonus.GetUserBonusRequest.prototype.getUserName = function() {
|
|
15301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
14648
15302
|
};
|
|
14649
15303
|
|
|
14650
15304
|
|
|
14651
15305
|
/**
|
|
14652
|
-
* @param {
|
|
15306
|
+
* @param {string} value
|
|
14653
15307
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14654
15308
|
*/
|
|
14655
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14656
|
-
return jspb.Message.setField(this,
|
|
15309
|
+
proto.bonus.GetUserBonusRequest.prototype.setUserName = function(value) {
|
|
15310
|
+
return jspb.Message.setField(this, 9, value);
|
|
14657
15311
|
};
|
|
14658
15312
|
|
|
14659
15313
|
|
|
@@ -14661,8 +15315,8 @@ proto.bonus.GetUserBonusRequest.prototype.setUserBonusId = function(value) {
|
|
|
14661
15315
|
* Clears the field making it undefined.
|
|
14662
15316
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14663
15317
|
*/
|
|
14664
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14665
|
-
return jspb.Message.setField(this,
|
|
15318
|
+
proto.bonus.GetUserBonusRequest.prototype.clearUserName = function() {
|
|
15319
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
14666
15320
|
};
|
|
14667
15321
|
|
|
14668
15322
|
|
|
@@ -14670,17 +15324,17 @@ proto.bonus.GetUserBonusRequest.prototype.clearUserBonusId = function() {
|
|
|
14670
15324
|
* Returns whether this field is set.
|
|
14671
15325
|
* @return {boolean}
|
|
14672
15326
|
*/
|
|
14673
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14674
|
-
return jspb.Message.getField(this,
|
|
15327
|
+
proto.bonus.GetUserBonusRequest.prototype.hasUserName = function() {
|
|
15328
|
+
return jspb.Message.getField(this, 9) != null;
|
|
14675
15329
|
};
|
|
14676
15330
|
|
|
14677
15331
|
|
|
14678
15332
|
/**
|
|
14679
|
-
* optional string
|
|
15333
|
+
* optional string status = 10;
|
|
14680
15334
|
* @return {string}
|
|
14681
15335
|
*/
|
|
14682
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14683
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
15336
|
+
proto.bonus.GetUserBonusRequest.prototype.getStatus = function() {
|
|
15337
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
14684
15338
|
};
|
|
14685
15339
|
|
|
14686
15340
|
|
|
@@ -14688,8 +15342,8 @@ proto.bonus.GetUserBonusRequest.prototype.getType = function() {
|
|
|
14688
15342
|
* @param {string} value
|
|
14689
15343
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14690
15344
|
*/
|
|
14691
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14692
|
-
return jspb.Message.setField(this,
|
|
15345
|
+
proto.bonus.GetUserBonusRequest.prototype.setStatus = function(value) {
|
|
15346
|
+
return jspb.Message.setField(this, 10, value);
|
|
14693
15347
|
};
|
|
14694
15348
|
|
|
14695
15349
|
|
|
@@ -14697,8 +15351,8 @@ proto.bonus.GetUserBonusRequest.prototype.setType = function(value) {
|
|
|
14697
15351
|
* Clears the field making it undefined.
|
|
14698
15352
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14699
15353
|
*/
|
|
14700
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14701
|
-
return jspb.Message.setField(this,
|
|
15354
|
+
proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
|
|
15355
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
14702
15356
|
};
|
|
14703
15357
|
|
|
14704
15358
|
|
|
@@ -14706,26 +15360,26 @@ proto.bonus.GetUserBonusRequest.prototype.clearType = function() {
|
|
|
14706
15360
|
* Returns whether this field is set.
|
|
14707
15361
|
* @return {boolean}
|
|
14708
15362
|
*/
|
|
14709
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14710
|
-
return jspb.Message.getField(this,
|
|
15363
|
+
proto.bonus.GetUserBonusRequest.prototype.hasStatus = function() {
|
|
15364
|
+
return jspb.Message.getField(this, 10) != null;
|
|
14711
15365
|
};
|
|
14712
15366
|
|
|
14713
15367
|
|
|
14714
15368
|
/**
|
|
14715
|
-
* optional
|
|
14716
|
-
* @return {
|
|
15369
|
+
* optional bool is_mobile = 11;
|
|
15370
|
+
* @return {boolean}
|
|
14717
15371
|
*/
|
|
14718
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14719
|
-
return /** @type {
|
|
15372
|
+
proto.bonus.GetUserBonusRequest.prototype.getIsMobile = function() {
|
|
15373
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
|
|
14720
15374
|
};
|
|
14721
15375
|
|
|
14722
15376
|
|
|
14723
15377
|
/**
|
|
14724
|
-
* @param {
|
|
15378
|
+
* @param {boolean} value
|
|
14725
15379
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14726
15380
|
*/
|
|
14727
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14728
|
-
return jspb.Message.setField(this,
|
|
15381
|
+
proto.bonus.GetUserBonusRequest.prototype.setIsMobile = function(value) {
|
|
15382
|
+
return jspb.Message.setField(this, 11, value);
|
|
14729
15383
|
};
|
|
14730
15384
|
|
|
14731
15385
|
|
|
@@ -14733,8 +15387,8 @@ proto.bonus.GetUserBonusRequest.prototype.setCurrency = function(value) {
|
|
|
14733
15387
|
* Clears the field making it undefined.
|
|
14734
15388
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14735
15389
|
*/
|
|
14736
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14737
|
-
return jspb.Message.setField(this,
|
|
15390
|
+
proto.bonus.GetUserBonusRequest.prototype.clearIsMobile = function() {
|
|
15391
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
14738
15392
|
};
|
|
14739
15393
|
|
|
14740
15394
|
|
|
@@ -14742,17 +15396,17 @@ proto.bonus.GetUserBonusRequest.prototype.clearCurrency = function() {
|
|
|
14742
15396
|
* Returns whether this field is set.
|
|
14743
15397
|
* @return {boolean}
|
|
14744
15398
|
*/
|
|
14745
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14746
|
-
return jspb.Message.getField(this,
|
|
15399
|
+
proto.bonus.GetUserBonusRequest.prototype.hasIsMobile = function() {
|
|
15400
|
+
return jspb.Message.getField(this, 11) != null;
|
|
14747
15401
|
};
|
|
14748
15402
|
|
|
14749
15403
|
|
|
14750
15404
|
/**
|
|
14751
|
-
* optional string
|
|
15405
|
+
* optional string promo_code = 12;
|
|
14752
15406
|
* @return {string}
|
|
14753
15407
|
*/
|
|
14754
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14755
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
15408
|
+
proto.bonus.GetUserBonusRequest.prototype.getPromoCode = function() {
|
|
15409
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
14756
15410
|
};
|
|
14757
15411
|
|
|
14758
15412
|
|
|
@@ -14760,8 +15414,8 @@ proto.bonus.GetUserBonusRequest.prototype.getCountry = function() {
|
|
|
14760
15414
|
* @param {string} value
|
|
14761
15415
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14762
15416
|
*/
|
|
14763
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14764
|
-
return jspb.Message.setField(this,
|
|
15417
|
+
proto.bonus.GetUserBonusRequest.prototype.setPromoCode = function(value) {
|
|
15418
|
+
return jspb.Message.setField(this, 12, value);
|
|
14765
15419
|
};
|
|
14766
15420
|
|
|
14767
15421
|
|
|
@@ -14769,8 +15423,8 @@ proto.bonus.GetUserBonusRequest.prototype.setCountry = function(value) {
|
|
|
14769
15423
|
* Clears the field making it undefined.
|
|
14770
15424
|
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14771
15425
|
*/
|
|
14772
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14773
|
-
return jspb.Message.setField(this,
|
|
15426
|
+
proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
|
|
15427
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
14774
15428
|
};
|
|
14775
15429
|
|
|
14776
15430
|
|
|
@@ -14778,143 +15432,261 @@ proto.bonus.GetUserBonusRequest.prototype.clearCountry = function() {
|
|
|
14778
15432
|
* Returns whether this field is set.
|
|
14779
15433
|
* @return {boolean}
|
|
14780
15434
|
*/
|
|
14781
|
-
proto.bonus.GetUserBonusRequest.prototype.
|
|
14782
|
-
return jspb.Message.getField(this,
|
|
15435
|
+
proto.bonus.GetUserBonusRequest.prototype.hasPromoCode = function() {
|
|
15436
|
+
return jspb.Message.getField(this, 12) != null;
|
|
14783
15437
|
};
|
|
14784
15438
|
|
|
14785
15439
|
|
|
15440
|
+
|
|
15441
|
+
|
|
15442
|
+
|
|
15443
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14786
15444
|
/**
|
|
14787
|
-
*
|
|
14788
|
-
*
|
|
15445
|
+
* Creates an object representation of this proto.
|
|
15446
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15447
|
+
* Optional fields that are not set will be set to undefined.
|
|
15448
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15449
|
+
* For the list of reserved names please see:
|
|
15450
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15451
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15452
|
+
* JSPB instance for transitional soy proto support:
|
|
15453
|
+
* http://goto/soy-param-migration
|
|
15454
|
+
* @return {!Object}
|
|
14789
15455
|
*/
|
|
14790
|
-
proto.bonus.
|
|
14791
|
-
return
|
|
15456
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15457
|
+
return proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject(opt_includeInstance, this);
|
|
14792
15458
|
};
|
|
14793
15459
|
|
|
14794
15460
|
|
|
14795
15461
|
/**
|
|
14796
|
-
* @
|
|
14797
|
-
* @
|
|
15462
|
+
* Static version of the {@see toObject} method.
|
|
15463
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15464
|
+
* the JSPB instance for transitional soy proto support:
|
|
15465
|
+
* http://goto/soy-param-migration
|
|
15466
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The msg instance to transform.
|
|
15467
|
+
* @return {!Object}
|
|
15468
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14798
15469
|
*/
|
|
14799
|
-
proto.bonus.
|
|
14800
|
-
|
|
15470
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInstance, msg) {
|
|
15471
|
+
var f, obj = {
|
|
15472
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15473
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
15474
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
15475
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15476
|
+
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
15477
|
+
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
15478
|
+
};
|
|
15479
|
+
|
|
15480
|
+
if (includeInstance) {
|
|
15481
|
+
obj.$jspbMessageInstance = msg;
|
|
15482
|
+
}
|
|
15483
|
+
return obj;
|
|
14801
15484
|
};
|
|
15485
|
+
}
|
|
14802
15486
|
|
|
14803
15487
|
|
|
14804
15488
|
/**
|
|
14805
|
-
*
|
|
14806
|
-
* @
|
|
15489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15491
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
|
|
14807
15492
|
*/
|
|
14808
|
-
proto.bonus.
|
|
14809
|
-
|
|
15493
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinary = function(bytes) {
|
|
15494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15495
|
+
var msg = new proto.bonus.ApplyUserPromocodeToUserBonusRequest;
|
|
15496
|
+
return proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader(msg, reader);
|
|
14810
15497
|
};
|
|
14811
15498
|
|
|
14812
15499
|
|
|
14813
15500
|
/**
|
|
14814
|
-
*
|
|
14815
|
-
*
|
|
15501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15502
|
+
* given reader into the given message object.
|
|
15503
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The message object to deserialize into.
|
|
15504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15505
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
|
|
14816
15506
|
*/
|
|
14817
|
-
proto.bonus.
|
|
14818
|
-
|
|
15507
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15508
|
+
while (reader.nextField()) {
|
|
15509
|
+
if (reader.isEndGroup()) {
|
|
15510
|
+
break;
|
|
15511
|
+
}
|
|
15512
|
+
var field = reader.getFieldNumber();
|
|
15513
|
+
switch (field) {
|
|
15514
|
+
case 1:
|
|
15515
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
15516
|
+
msg.setUserId(value);
|
|
15517
|
+
break;
|
|
15518
|
+
case 2:
|
|
15519
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
15520
|
+
msg.setUserBonusId(value);
|
|
15521
|
+
break;
|
|
15522
|
+
case 3:
|
|
15523
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15524
|
+
msg.setPromoCode(value);
|
|
15525
|
+
break;
|
|
15526
|
+
case 4:
|
|
15527
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15528
|
+
msg.setCurrency(value);
|
|
15529
|
+
break;
|
|
15530
|
+
case 5:
|
|
15531
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15532
|
+
msg.setCountry(value);
|
|
15533
|
+
break;
|
|
15534
|
+
case 6:
|
|
15535
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15536
|
+
msg.setLocale(value);
|
|
15537
|
+
break;
|
|
15538
|
+
default:
|
|
15539
|
+
reader.skipField();
|
|
15540
|
+
break;
|
|
15541
|
+
}
|
|
15542
|
+
}
|
|
15543
|
+
return msg;
|
|
15544
|
+
};
|
|
15545
|
+
|
|
15546
|
+
|
|
15547
|
+
/**
|
|
15548
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15549
|
+
* @return {!Uint8Array}
|
|
15550
|
+
*/
|
|
15551
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = function() {
|
|
15552
|
+
var writer = new jspb.BinaryWriter();
|
|
15553
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter(this, writer);
|
|
15554
|
+
return writer.getResultBuffer();
|
|
15555
|
+
};
|
|
15556
|
+
|
|
15557
|
+
|
|
15558
|
+
/**
|
|
15559
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15560
|
+
* format), writing to the given BinaryWriter.
|
|
15561
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} message
|
|
15562
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15563
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15564
|
+
*/
|
|
15565
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15566
|
+
var f = undefined;
|
|
15567
|
+
f = message.getUserId();
|
|
15568
|
+
if (f !== 0) {
|
|
15569
|
+
writer.writeInt32(
|
|
15570
|
+
1,
|
|
15571
|
+
f
|
|
15572
|
+
);
|
|
15573
|
+
}
|
|
15574
|
+
f = message.getUserBonusId();
|
|
15575
|
+
if (f !== 0) {
|
|
15576
|
+
writer.writeInt32(
|
|
15577
|
+
2,
|
|
15578
|
+
f
|
|
15579
|
+
);
|
|
15580
|
+
}
|
|
15581
|
+
f = message.getPromoCode();
|
|
15582
|
+
if (f.length > 0) {
|
|
15583
|
+
writer.writeString(
|
|
15584
|
+
3,
|
|
15585
|
+
f
|
|
15586
|
+
);
|
|
15587
|
+
}
|
|
15588
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
15589
|
+
if (f != null) {
|
|
15590
|
+
writer.writeString(
|
|
15591
|
+
4,
|
|
15592
|
+
f
|
|
15593
|
+
);
|
|
15594
|
+
}
|
|
15595
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
15596
|
+
if (f != null) {
|
|
15597
|
+
writer.writeString(
|
|
15598
|
+
5,
|
|
15599
|
+
f
|
|
15600
|
+
);
|
|
15601
|
+
}
|
|
15602
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
15603
|
+
if (f != null) {
|
|
15604
|
+
writer.writeString(
|
|
15605
|
+
6,
|
|
15606
|
+
f
|
|
15607
|
+
);
|
|
15608
|
+
}
|
|
14819
15609
|
};
|
|
14820
15610
|
|
|
14821
15611
|
|
|
14822
15612
|
/**
|
|
14823
|
-
* optional
|
|
14824
|
-
* @return {
|
|
15613
|
+
* optional int32 user_id = 1;
|
|
15614
|
+
* @return {number}
|
|
14825
15615
|
*/
|
|
14826
|
-
proto.bonus.
|
|
14827
|
-
return /** @type {
|
|
15616
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserId = function() {
|
|
15617
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
14828
15618
|
};
|
|
14829
15619
|
|
|
14830
15620
|
|
|
14831
15621
|
/**
|
|
14832
|
-
* @param {
|
|
14833
|
-
* @return {!proto.bonus.
|
|
15622
|
+
* @param {number} value
|
|
15623
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14834
15624
|
*/
|
|
14835
|
-
proto.bonus.
|
|
14836
|
-
return jspb.Message.
|
|
15625
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserId = function(value) {
|
|
15626
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
14837
15627
|
};
|
|
14838
15628
|
|
|
14839
15629
|
|
|
14840
15630
|
/**
|
|
14841
|
-
*
|
|
14842
|
-
* @return {
|
|
15631
|
+
* optional int32 user_bonus_id = 2;
|
|
15632
|
+
* @return {number}
|
|
14843
15633
|
*/
|
|
14844
|
-
proto.bonus.
|
|
14845
|
-
return jspb.Message.
|
|
15634
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserBonusId = function() {
|
|
15635
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
14846
15636
|
};
|
|
14847
15637
|
|
|
14848
15638
|
|
|
14849
15639
|
/**
|
|
14850
|
-
*
|
|
14851
|
-
* @return {
|
|
15640
|
+
* @param {number} value
|
|
15641
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14852
15642
|
*/
|
|
14853
|
-
proto.bonus.
|
|
14854
|
-
return jspb.Message.
|
|
15643
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserBonusId = function(value) {
|
|
15644
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
14855
15645
|
};
|
|
14856
15646
|
|
|
14857
15647
|
|
|
14858
15648
|
/**
|
|
14859
|
-
* optional string
|
|
15649
|
+
* optional string promo_code = 3;
|
|
14860
15650
|
* @return {string}
|
|
14861
15651
|
*/
|
|
14862
|
-
proto.bonus.
|
|
14863
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
15652
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getPromoCode = function() {
|
|
15653
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
14864
15654
|
};
|
|
14865
15655
|
|
|
14866
15656
|
|
|
14867
15657
|
/**
|
|
14868
15658
|
* @param {string} value
|
|
14869
|
-
* @return {!proto.bonus.
|
|
14870
|
-
*/
|
|
14871
|
-
proto.bonus.GetUserBonusRequest.prototype.setUserName = function(value) {
|
|
14872
|
-
return jspb.Message.setField(this, 9, value);
|
|
14873
|
-
};
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
/**
|
|
14877
|
-
* Clears the field making it undefined.
|
|
14878
|
-
* @return {!proto.bonus.GetUserBonusRequest} returns this
|
|
14879
|
-
*/
|
|
14880
|
-
proto.bonus.GetUserBonusRequest.prototype.clearUserName = function() {
|
|
14881
|
-
return jspb.Message.setField(this, 9, undefined);
|
|
14882
|
-
};
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
/**
|
|
14886
|
-
* Returns whether this field is set.
|
|
14887
|
-
* @return {boolean}
|
|
15659
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14888
15660
|
*/
|
|
14889
|
-
proto.bonus.
|
|
14890
|
-
return jspb.Message.
|
|
15661
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = function(value) {
|
|
15662
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
14891
15663
|
};
|
|
14892
15664
|
|
|
14893
15665
|
|
|
14894
15666
|
/**
|
|
14895
|
-
* optional string
|
|
15667
|
+
* optional string currency = 4;
|
|
14896
15668
|
* @return {string}
|
|
14897
15669
|
*/
|
|
14898
|
-
proto.bonus.
|
|
14899
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
15670
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCurrency = function() {
|
|
15671
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
14900
15672
|
};
|
|
14901
15673
|
|
|
14902
15674
|
|
|
14903
15675
|
/**
|
|
14904
15676
|
* @param {string} value
|
|
14905
|
-
* @return {!proto.bonus.
|
|
15677
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14906
15678
|
*/
|
|
14907
|
-
proto.bonus.
|
|
14908
|
-
return jspb.Message.setField(this,
|
|
15679
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCurrency = function(value) {
|
|
15680
|
+
return jspb.Message.setField(this, 4, value);
|
|
14909
15681
|
};
|
|
14910
15682
|
|
|
14911
15683
|
|
|
14912
15684
|
/**
|
|
14913
15685
|
* Clears the field making it undefined.
|
|
14914
|
-
* @return {!proto.bonus.
|
|
15686
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14915
15687
|
*/
|
|
14916
|
-
proto.bonus.
|
|
14917
|
-
return jspb.Message.setField(this,
|
|
15688
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = function() {
|
|
15689
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
14918
15690
|
};
|
|
14919
15691
|
|
|
14920
15692
|
|
|
@@ -14922,35 +15694,35 @@ proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
|
|
|
14922
15694
|
* Returns whether this field is set.
|
|
14923
15695
|
* @return {boolean}
|
|
14924
15696
|
*/
|
|
14925
|
-
proto.bonus.
|
|
14926
|
-
return jspb.Message.getField(this,
|
|
15697
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = function() {
|
|
15698
|
+
return jspb.Message.getField(this, 4) != null;
|
|
14927
15699
|
};
|
|
14928
15700
|
|
|
14929
15701
|
|
|
14930
15702
|
/**
|
|
14931
|
-
* optional
|
|
14932
|
-
* @return {
|
|
15703
|
+
* optional string country = 5;
|
|
15704
|
+
* @return {string}
|
|
14933
15705
|
*/
|
|
14934
|
-
proto.bonus.
|
|
14935
|
-
return /** @type {
|
|
15706
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCountry = function() {
|
|
15707
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
14936
15708
|
};
|
|
14937
15709
|
|
|
14938
15710
|
|
|
14939
15711
|
/**
|
|
14940
|
-
* @param {
|
|
14941
|
-
* @return {!proto.bonus.
|
|
15712
|
+
* @param {string} value
|
|
15713
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14942
15714
|
*/
|
|
14943
|
-
proto.bonus.
|
|
14944
|
-
return jspb.Message.setField(this,
|
|
15715
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCountry = function(value) {
|
|
15716
|
+
return jspb.Message.setField(this, 5, value);
|
|
14945
15717
|
};
|
|
14946
15718
|
|
|
14947
15719
|
|
|
14948
15720
|
/**
|
|
14949
15721
|
* Clears the field making it undefined.
|
|
14950
|
-
* @return {!proto.bonus.
|
|
15722
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14951
15723
|
*/
|
|
14952
|
-
proto.bonus.
|
|
14953
|
-
return jspb.Message.setField(this,
|
|
15724
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = function() {
|
|
15725
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
14954
15726
|
};
|
|
14955
15727
|
|
|
14956
15728
|
|
|
@@ -14958,35 +15730,35 @@ proto.bonus.GetUserBonusRequest.prototype.clearIsMobile = function() {
|
|
|
14958
15730
|
* Returns whether this field is set.
|
|
14959
15731
|
* @return {boolean}
|
|
14960
15732
|
*/
|
|
14961
|
-
proto.bonus.
|
|
14962
|
-
return jspb.Message.getField(this,
|
|
15733
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function() {
|
|
15734
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14963
15735
|
};
|
|
14964
15736
|
|
|
14965
15737
|
|
|
14966
15738
|
/**
|
|
14967
|
-
* optional string
|
|
15739
|
+
* optional string locale = 6;
|
|
14968
15740
|
* @return {string}
|
|
14969
15741
|
*/
|
|
14970
|
-
proto.bonus.
|
|
14971
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
15742
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getLocale = function() {
|
|
15743
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
14972
15744
|
};
|
|
14973
15745
|
|
|
14974
15746
|
|
|
14975
15747
|
/**
|
|
14976
15748
|
* @param {string} value
|
|
14977
|
-
* @return {!proto.bonus.
|
|
15749
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14978
15750
|
*/
|
|
14979
|
-
proto.bonus.
|
|
14980
|
-
return jspb.Message.setField(this,
|
|
15751
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setLocale = function(value) {
|
|
15752
|
+
return jspb.Message.setField(this, 6, value);
|
|
14981
15753
|
};
|
|
14982
15754
|
|
|
14983
15755
|
|
|
14984
15756
|
/**
|
|
14985
15757
|
* Clears the field making it undefined.
|
|
14986
|
-
* @return {!proto.bonus.
|
|
15758
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14987
15759
|
*/
|
|
14988
|
-
proto.bonus.
|
|
14989
|
-
return jspb.Message.setField(this,
|
|
15760
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = function() {
|
|
15761
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
14990
15762
|
};
|
|
14991
15763
|
|
|
14992
15764
|
|
|
@@ -14994,8 +15766,8 @@ proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
|
|
|
14994
15766
|
* Returns whether this field is set.
|
|
14995
15767
|
* @return {boolean}
|
|
14996
15768
|
*/
|
|
14997
|
-
proto.bonus.
|
|
14998
|
-
return jspb.Message.getField(this,
|
|
15769
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasLocale = function() {
|
|
15770
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14999
15771
|
};
|
|
15000
15772
|
|
|
15001
15773
|
|
|
@@ -15015,8 +15787,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15015
15787
|
* http://goto/soy-param-migration
|
|
15016
15788
|
* @return {!Object}
|
|
15017
15789
|
*/
|
|
15018
|
-
proto.bonus.
|
|
15019
|
-
return proto.bonus.
|
|
15790
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15791
|
+
return proto.bonus.ApplyUserBonusPromocodeRequest.toObject(opt_includeInstance, this);
|
|
15020
15792
|
};
|
|
15021
15793
|
|
|
15022
15794
|
|
|
@@ -15025,15 +15797,15 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(o
|
|
|
15025
15797
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15026
15798
|
* the JSPB instance for transitional soy proto support:
|
|
15027
15799
|
* http://goto/soy-param-migration
|
|
15028
|
-
* @param {!proto.bonus.
|
|
15800
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The msg instance to transform.
|
|
15029
15801
|
* @return {!Object}
|
|
15030
15802
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15031
15803
|
*/
|
|
15032
|
-
proto.bonus.
|
|
15804
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance, msg) {
|
|
15033
15805
|
var f, obj = {
|
|
15034
15806
|
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15035
|
-
|
|
15036
|
-
|
|
15807
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15808
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
15037
15809
|
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15038
15810
|
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
15039
15811
|
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
@@ -15050,23 +15822,23 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInst
|
|
|
15050
15822
|
/**
|
|
15051
15823
|
* Deserializes binary data (in protobuf wire format).
|
|
15052
15824
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15053
|
-
* @return {!proto.bonus.
|
|
15825
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
|
|
15054
15826
|
*/
|
|
15055
|
-
proto.bonus.
|
|
15827
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinary = function(bytes) {
|
|
15056
15828
|
var reader = new jspb.BinaryReader(bytes);
|
|
15057
|
-
var msg = new proto.bonus.
|
|
15058
|
-
return proto.bonus.
|
|
15829
|
+
var msg = new proto.bonus.ApplyUserBonusPromocodeRequest;
|
|
15830
|
+
return proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
15059
15831
|
};
|
|
15060
15832
|
|
|
15061
15833
|
|
|
15062
15834
|
/**
|
|
15063
15835
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15064
15836
|
* given reader into the given message object.
|
|
15065
|
-
* @param {!proto.bonus.
|
|
15837
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The message object to deserialize into.
|
|
15066
15838
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15067
|
-
* @return {!proto.bonus.
|
|
15839
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
|
|
15068
15840
|
*/
|
|
15069
|
-
proto.bonus.
|
|
15841
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15070
15842
|
while (reader.nextField()) {
|
|
15071
15843
|
if (reader.isEndGroup()) {
|
|
15072
15844
|
break;
|
|
@@ -15078,13 +15850,13 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = f
|
|
|
15078
15850
|
msg.setUserId(value);
|
|
15079
15851
|
break;
|
|
15080
15852
|
case 2:
|
|
15081
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
15082
|
-
msg.setUserBonusId(value);
|
|
15083
|
-
break;
|
|
15084
|
-
case 3:
|
|
15085
15853
|
var value = /** @type {string} */ (reader.readString());
|
|
15086
15854
|
msg.setPromoCode(value);
|
|
15087
15855
|
break;
|
|
15856
|
+
case 3:
|
|
15857
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
15858
|
+
msg.setUserBonusId(value);
|
|
15859
|
+
break;
|
|
15088
15860
|
case 4:
|
|
15089
15861
|
var value = /** @type {string} */ (reader.readString());
|
|
15090
15862
|
msg.setCurrency(value);
|
|
@@ -15110,9 +15882,9 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = f
|
|
|
15110
15882
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15111
15883
|
* @return {!Uint8Array}
|
|
15112
15884
|
*/
|
|
15113
|
-
proto.bonus.
|
|
15885
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function() {
|
|
15114
15886
|
var writer = new jspb.BinaryWriter();
|
|
15115
|
-
proto.bonus.
|
|
15887
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter(this, writer);
|
|
15116
15888
|
return writer.getResultBuffer();
|
|
15117
15889
|
};
|
|
15118
15890
|
|
|
@@ -15120,11 +15892,11 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = fun
|
|
|
15120
15892
|
/**
|
|
15121
15893
|
* Serializes the given message to binary data (in protobuf wire
|
|
15122
15894
|
* format), writing to the given BinaryWriter.
|
|
15123
|
-
* @param {!proto.bonus.
|
|
15895
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} message
|
|
15124
15896
|
* @param {!jspb.BinaryWriter} writer
|
|
15125
15897
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15126
15898
|
*/
|
|
15127
|
-
proto.bonus.
|
|
15899
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15128
15900
|
var f = undefined;
|
|
15129
15901
|
f = message.getUserId();
|
|
15130
15902
|
if (f !== 0) {
|
|
@@ -15133,16 +15905,16 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = funct
|
|
|
15133
15905
|
f
|
|
15134
15906
|
);
|
|
15135
15907
|
}
|
|
15136
|
-
f = message.
|
|
15137
|
-
if (f
|
|
15138
|
-
writer.
|
|
15908
|
+
f = message.getPromoCode();
|
|
15909
|
+
if (f.length > 0) {
|
|
15910
|
+
writer.writeString(
|
|
15139
15911
|
2,
|
|
15140
15912
|
f
|
|
15141
15913
|
);
|
|
15142
15914
|
}
|
|
15143
|
-
f =
|
|
15144
|
-
if (f
|
|
15145
|
-
writer.
|
|
15915
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
15916
|
+
if (f != null) {
|
|
15917
|
+
writer.writeInt32(
|
|
15146
15918
|
3,
|
|
15147
15919
|
f
|
|
15148
15920
|
);
|
|
@@ -15175,53 +15947,71 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = funct
|
|
|
15175
15947
|
* optional int32 user_id = 1;
|
|
15176
15948
|
* @return {number}
|
|
15177
15949
|
*/
|
|
15178
|
-
proto.bonus.
|
|
15950
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserId = function() {
|
|
15179
15951
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15180
15952
|
};
|
|
15181
15953
|
|
|
15182
15954
|
|
|
15183
15955
|
/**
|
|
15184
15956
|
* @param {number} value
|
|
15185
|
-
* @return {!proto.bonus.
|
|
15957
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15186
15958
|
*/
|
|
15187
|
-
proto.bonus.
|
|
15959
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserId = function(value) {
|
|
15188
15960
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
15189
15961
|
};
|
|
15190
15962
|
|
|
15191
15963
|
|
|
15192
15964
|
/**
|
|
15193
|
-
* optional
|
|
15965
|
+
* optional string promo_code = 2;
|
|
15966
|
+
* @return {string}
|
|
15967
|
+
*/
|
|
15968
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getPromoCode = function() {
|
|
15969
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15970
|
+
};
|
|
15971
|
+
|
|
15972
|
+
|
|
15973
|
+
/**
|
|
15974
|
+
* @param {string} value
|
|
15975
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15976
|
+
*/
|
|
15977
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setPromoCode = function(value) {
|
|
15978
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15979
|
+
};
|
|
15980
|
+
|
|
15981
|
+
|
|
15982
|
+
/**
|
|
15983
|
+
* optional int32 user_bonus_id = 3;
|
|
15194
15984
|
* @return {number}
|
|
15195
15985
|
*/
|
|
15196
|
-
proto.bonus.
|
|
15197
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
15986
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserBonusId = function() {
|
|
15987
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
15198
15988
|
};
|
|
15199
15989
|
|
|
15200
15990
|
|
|
15201
15991
|
/**
|
|
15202
15992
|
* @param {number} value
|
|
15203
|
-
* @return {!proto.bonus.
|
|
15993
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15204
15994
|
*/
|
|
15205
|
-
proto.bonus.
|
|
15206
|
-
return jspb.Message.
|
|
15995
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserBonusId = function(value) {
|
|
15996
|
+
return jspb.Message.setField(this, 3, value);
|
|
15207
15997
|
};
|
|
15208
15998
|
|
|
15209
15999
|
|
|
15210
16000
|
/**
|
|
15211
|
-
*
|
|
15212
|
-
* @return {
|
|
16001
|
+
* Clears the field making it undefined.
|
|
16002
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15213
16003
|
*/
|
|
15214
|
-
proto.bonus.
|
|
15215
|
-
return
|
|
16004
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearUserBonusId = function() {
|
|
16005
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15216
16006
|
};
|
|
15217
16007
|
|
|
15218
16008
|
|
|
15219
16009
|
/**
|
|
15220
|
-
*
|
|
15221
|
-
* @return {
|
|
16010
|
+
* Returns whether this field is set.
|
|
16011
|
+
* @return {boolean}
|
|
15222
16012
|
*/
|
|
15223
|
-
proto.bonus.
|
|
15224
|
-
return jspb.Message.
|
|
16013
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasUserBonusId = function() {
|
|
16014
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15225
16015
|
};
|
|
15226
16016
|
|
|
15227
16017
|
|
|
@@ -15229,25 +16019,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = functi
|
|
|
15229
16019
|
* optional string currency = 4;
|
|
15230
16020
|
* @return {string}
|
|
15231
16021
|
*/
|
|
15232
|
-
proto.bonus.
|
|
16022
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCurrency = function() {
|
|
15233
16023
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15234
16024
|
};
|
|
15235
16025
|
|
|
15236
16026
|
|
|
15237
16027
|
/**
|
|
15238
16028
|
* @param {string} value
|
|
15239
|
-
* @return {!proto.bonus.
|
|
16029
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15240
16030
|
*/
|
|
15241
|
-
proto.bonus.
|
|
16031
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCurrency = function(value) {
|
|
15242
16032
|
return jspb.Message.setField(this, 4, value);
|
|
15243
16033
|
};
|
|
15244
16034
|
|
|
15245
16035
|
|
|
15246
16036
|
/**
|
|
15247
16037
|
* Clears the field making it undefined.
|
|
15248
|
-
* @return {!proto.bonus.
|
|
16038
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15249
16039
|
*/
|
|
15250
|
-
proto.bonus.
|
|
16040
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCurrency = function() {
|
|
15251
16041
|
return jspb.Message.setField(this, 4, undefined);
|
|
15252
16042
|
};
|
|
15253
16043
|
|
|
@@ -15256,7 +16046,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = funct
|
|
|
15256
16046
|
* Returns whether this field is set.
|
|
15257
16047
|
* @return {boolean}
|
|
15258
16048
|
*/
|
|
15259
|
-
proto.bonus.
|
|
16049
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCurrency = function() {
|
|
15260
16050
|
return jspb.Message.getField(this, 4) != null;
|
|
15261
16051
|
};
|
|
15262
16052
|
|
|
@@ -15265,25 +16055,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = functio
|
|
|
15265
16055
|
* optional string country = 5;
|
|
15266
16056
|
* @return {string}
|
|
15267
16057
|
*/
|
|
15268
|
-
proto.bonus.
|
|
16058
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCountry = function() {
|
|
15269
16059
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15270
16060
|
};
|
|
15271
16061
|
|
|
15272
16062
|
|
|
15273
16063
|
/**
|
|
15274
16064
|
* @param {string} value
|
|
15275
|
-
* @return {!proto.bonus.
|
|
16065
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15276
16066
|
*/
|
|
15277
|
-
proto.bonus.
|
|
16067
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCountry = function(value) {
|
|
15278
16068
|
return jspb.Message.setField(this, 5, value);
|
|
15279
16069
|
};
|
|
15280
16070
|
|
|
15281
16071
|
|
|
15282
16072
|
/**
|
|
15283
16073
|
* Clears the field making it undefined.
|
|
15284
|
-
* @return {!proto.bonus.
|
|
16074
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15285
16075
|
*/
|
|
15286
|
-
proto.bonus.
|
|
16076
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCountry = function() {
|
|
15287
16077
|
return jspb.Message.setField(this, 5, undefined);
|
|
15288
16078
|
};
|
|
15289
16079
|
|
|
@@ -15292,7 +16082,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = functi
|
|
|
15292
16082
|
* Returns whether this field is set.
|
|
15293
16083
|
* @return {boolean}
|
|
15294
16084
|
*/
|
|
15295
|
-
proto.bonus.
|
|
16085
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCountry = function() {
|
|
15296
16086
|
return jspb.Message.getField(this, 5) != null;
|
|
15297
16087
|
};
|
|
15298
16088
|
|
|
@@ -15301,25 +16091,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function
|
|
|
15301
16091
|
* optional string locale = 6;
|
|
15302
16092
|
* @return {string}
|
|
15303
16093
|
*/
|
|
15304
|
-
proto.bonus.
|
|
16094
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getLocale = function() {
|
|
15305
16095
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15306
16096
|
};
|
|
15307
16097
|
|
|
15308
16098
|
|
|
15309
16099
|
/**
|
|
15310
16100
|
* @param {string} value
|
|
15311
|
-
* @return {!proto.bonus.
|
|
16101
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15312
16102
|
*/
|
|
15313
|
-
proto.bonus.
|
|
16103
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setLocale = function(value) {
|
|
15314
16104
|
return jspb.Message.setField(this, 6, value);
|
|
15315
16105
|
};
|
|
15316
16106
|
|
|
15317
16107
|
|
|
15318
16108
|
/**
|
|
15319
16109
|
* Clears the field making it undefined.
|
|
15320
|
-
* @return {!proto.bonus.
|
|
16110
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15321
16111
|
*/
|
|
15322
|
-
proto.bonus.
|
|
16112
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearLocale = function() {
|
|
15323
16113
|
return jspb.Message.setField(this, 6, undefined);
|
|
15324
16114
|
};
|
|
15325
16115
|
|
|
@@ -15328,7 +16118,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = functio
|
|
|
15328
16118
|
* Returns whether this field is set.
|
|
15329
16119
|
* @return {boolean}
|
|
15330
16120
|
*/
|
|
15331
|
-
proto.bonus.
|
|
16121
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
|
|
15332
16122
|
return jspb.Message.getField(this, 6) != null;
|
|
15333
16123
|
};
|
|
15334
16124
|
|
|
@@ -15349,8 +16139,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15349
16139
|
* http://goto/soy-param-migration
|
|
15350
16140
|
* @return {!Object}
|
|
15351
16141
|
*/
|
|
15352
|
-
proto.bonus.
|
|
15353
|
-
return proto.bonus.
|
|
16142
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
16143
|
+
return proto.bonus.GrantDynamicUserBonusRequest.toObject(opt_includeInstance, this);
|
|
15354
16144
|
};
|
|
15355
16145
|
|
|
15356
16146
|
|
|
@@ -15359,18 +16149,18 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_inc
|
|
|
15359
16149
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15360
16150
|
* the JSPB instance for transitional soy proto support:
|
|
15361
16151
|
* http://goto/soy-param-migration
|
|
15362
|
-
* @param {!proto.bonus.
|
|
16152
|
+
* @param {!proto.bonus.GrantDynamicUserBonusRequest} msg The msg instance to transform.
|
|
15363
16153
|
* @return {!Object}
|
|
15364
16154
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15365
16155
|
*/
|
|
15366
|
-
proto.bonus.
|
|
16156
|
+
proto.bonus.GrantDynamicUserBonusRequest.toObject = function(includeInstance, msg) {
|
|
15367
16157
|
var f, obj = {
|
|
15368
16158
|
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
16159
|
+
bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
16160
|
+
grantSource: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
16161
|
+
grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
16162
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
16163
|
+
amount: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
15374
16164
|
};
|
|
15375
16165
|
|
|
15376
16166
|
if (includeInstance) {
|
|
@@ -15384,23 +16174,23 @@ proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance,
|
|
|
15384
16174
|
/**
|
|
15385
16175
|
* Deserializes binary data (in protobuf wire format).
|
|
15386
16176
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15387
|
-
* @return {!proto.bonus.
|
|
16177
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest}
|
|
15388
16178
|
*/
|
|
15389
|
-
proto.bonus.
|
|
16179
|
+
proto.bonus.GrantDynamicUserBonusRequest.deserializeBinary = function(bytes) {
|
|
15390
16180
|
var reader = new jspb.BinaryReader(bytes);
|
|
15391
|
-
var msg = new proto.bonus.
|
|
15392
|
-
return proto.bonus.
|
|
16181
|
+
var msg = new proto.bonus.GrantDynamicUserBonusRequest;
|
|
16182
|
+
return proto.bonus.GrantDynamicUserBonusRequest.deserializeBinaryFromReader(msg, reader);
|
|
15393
16183
|
};
|
|
15394
16184
|
|
|
15395
16185
|
|
|
15396
16186
|
/**
|
|
15397
16187
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15398
16188
|
* given reader into the given message object.
|
|
15399
|
-
* @param {!proto.bonus.
|
|
16189
|
+
* @param {!proto.bonus.GrantDynamicUserBonusRequest} msg The message object to deserialize into.
|
|
15400
16190
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15401
|
-
* @return {!proto.bonus.
|
|
16191
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest}
|
|
15402
16192
|
*/
|
|
15403
|
-
proto.bonus.
|
|
16193
|
+
proto.bonus.GrantDynamicUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15404
16194
|
while (reader.nextField()) {
|
|
15405
16195
|
if (reader.isEndGroup()) {
|
|
15406
16196
|
break;
|
|
@@ -15412,24 +16202,24 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
|
|
|
15412
16202
|
msg.setUserId(value);
|
|
15413
16203
|
break;
|
|
15414
16204
|
case 2:
|
|
15415
|
-
var value = /** @type {
|
|
15416
|
-
msg.
|
|
16205
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
16206
|
+
msg.setBonusTemplateId(value);
|
|
15417
16207
|
break;
|
|
15418
16208
|
case 3:
|
|
15419
|
-
var value = /** @type {
|
|
15420
|
-
msg.
|
|
16209
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16210
|
+
msg.setGrantSource(value);
|
|
15421
16211
|
break;
|
|
15422
16212
|
case 4:
|
|
15423
16213
|
var value = /** @type {string} */ (reader.readString());
|
|
15424
|
-
msg.
|
|
16214
|
+
msg.setGrantId(value);
|
|
15425
16215
|
break;
|
|
15426
16216
|
case 5:
|
|
15427
16217
|
var value = /** @type {string} */ (reader.readString());
|
|
15428
|
-
msg.
|
|
16218
|
+
msg.setCurrency(value);
|
|
15429
16219
|
break;
|
|
15430
16220
|
case 6:
|
|
15431
16221
|
var value = /** @type {string} */ (reader.readString());
|
|
15432
|
-
msg.
|
|
16222
|
+
msg.setAmount(value);
|
|
15433
16223
|
break;
|
|
15434
16224
|
default:
|
|
15435
16225
|
reader.skipField();
|
|
@@ -15444,9 +16234,9 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
|
|
|
15444
16234
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15445
16235
|
* @return {!Uint8Array}
|
|
15446
16236
|
*/
|
|
15447
|
-
proto.bonus.
|
|
16237
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.serializeBinary = function() {
|
|
15448
16238
|
var writer = new jspb.BinaryWriter();
|
|
15449
|
-
proto.bonus.
|
|
16239
|
+
proto.bonus.GrantDynamicUserBonusRequest.serializeBinaryToWriter(this, writer);
|
|
15450
16240
|
return writer.getResultBuffer();
|
|
15451
16241
|
};
|
|
15452
16242
|
|
|
@@ -15454,11 +16244,11 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function(
|
|
|
15454
16244
|
/**
|
|
15455
16245
|
* Serializes the given message to binary data (in protobuf wire
|
|
15456
16246
|
* format), writing to the given BinaryWriter.
|
|
15457
|
-
* @param {!proto.bonus.
|
|
16247
|
+
* @param {!proto.bonus.GrantDynamicUserBonusRequest} message
|
|
15458
16248
|
* @param {!jspb.BinaryWriter} writer
|
|
15459
16249
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15460
16250
|
*/
|
|
15461
|
-
proto.bonus.
|
|
16251
|
+
proto.bonus.GrantDynamicUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15462
16252
|
var f = undefined;
|
|
15463
16253
|
f = message.getUserId();
|
|
15464
16254
|
if (f !== 0) {
|
|
@@ -15467,36 +16257,36 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
|
|
|
15467
16257
|
f
|
|
15468
16258
|
);
|
|
15469
16259
|
}
|
|
15470
|
-
f = message.
|
|
15471
|
-
if (f
|
|
15472
|
-
writer.
|
|
16260
|
+
f = message.getBonusTemplateId();
|
|
16261
|
+
if (f !== 0) {
|
|
16262
|
+
writer.writeInt32(
|
|
15473
16263
|
2,
|
|
15474
16264
|
f
|
|
15475
16265
|
);
|
|
15476
16266
|
}
|
|
15477
|
-
f =
|
|
15478
|
-
if (f
|
|
15479
|
-
writer.
|
|
16267
|
+
f = message.getGrantSource();
|
|
16268
|
+
if (f.length > 0) {
|
|
16269
|
+
writer.writeString(
|
|
15480
16270
|
3,
|
|
15481
16271
|
f
|
|
15482
16272
|
);
|
|
15483
16273
|
}
|
|
15484
|
-
f =
|
|
15485
|
-
if (f
|
|
16274
|
+
f = message.getGrantId();
|
|
16275
|
+
if (f.length > 0) {
|
|
15486
16276
|
writer.writeString(
|
|
15487
16277
|
4,
|
|
15488
16278
|
f
|
|
15489
16279
|
);
|
|
15490
16280
|
}
|
|
15491
|
-
f =
|
|
15492
|
-
if (f
|
|
16281
|
+
f = message.getCurrency();
|
|
16282
|
+
if (f.length > 0) {
|
|
15493
16283
|
writer.writeString(
|
|
15494
16284
|
5,
|
|
15495
16285
|
f
|
|
15496
16286
|
);
|
|
15497
16287
|
}
|
|
15498
|
-
f =
|
|
15499
|
-
if (f
|
|
16288
|
+
f = message.getAmount();
|
|
16289
|
+
if (f.length > 0) {
|
|
15500
16290
|
writer.writeString(
|
|
15501
16291
|
6,
|
|
15502
16292
|
f
|
|
@@ -15509,179 +16299,267 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
|
|
|
15509
16299
|
* optional int32 user_id = 1;
|
|
15510
16300
|
* @return {number}
|
|
15511
16301
|
*/
|
|
15512
|
-
proto.bonus.
|
|
16302
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getUserId = function() {
|
|
15513
16303
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15514
16304
|
};
|
|
15515
16305
|
|
|
15516
16306
|
|
|
15517
16307
|
/**
|
|
15518
16308
|
* @param {number} value
|
|
15519
|
-
* @return {!proto.bonus.
|
|
16309
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
15520
16310
|
*/
|
|
15521
|
-
proto.bonus.
|
|
16311
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setUserId = function(value) {
|
|
15522
16312
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
15523
16313
|
};
|
|
15524
16314
|
|
|
15525
16315
|
|
|
15526
16316
|
/**
|
|
15527
|
-
* optional
|
|
16317
|
+
* optional int32 bonus_template_id = 2;
|
|
16318
|
+
* @return {number}
|
|
16319
|
+
*/
|
|
16320
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getBonusTemplateId = function() {
|
|
16321
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
16322
|
+
};
|
|
16323
|
+
|
|
16324
|
+
|
|
16325
|
+
/**
|
|
16326
|
+
* @param {number} value
|
|
16327
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
16328
|
+
*/
|
|
16329
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setBonusTemplateId = function(value) {
|
|
16330
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
16331
|
+
};
|
|
16332
|
+
|
|
16333
|
+
|
|
16334
|
+
/**
|
|
16335
|
+
* optional string grant_source = 3;
|
|
15528
16336
|
* @return {string}
|
|
15529
16337
|
*/
|
|
15530
|
-
proto.bonus.
|
|
15531
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
16338
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getGrantSource = function() {
|
|
16339
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15532
16340
|
};
|
|
15533
16341
|
|
|
15534
16342
|
|
|
15535
16343
|
/**
|
|
15536
16344
|
* @param {string} value
|
|
15537
|
-
* @return {!proto.bonus.
|
|
16345
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
15538
16346
|
*/
|
|
15539
|
-
proto.bonus.
|
|
15540
|
-
return jspb.Message.setProto3StringField(this,
|
|
16347
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setGrantSource = function(value) {
|
|
16348
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
15541
16349
|
};
|
|
15542
16350
|
|
|
15543
16351
|
|
|
15544
16352
|
/**
|
|
15545
|
-
* optional
|
|
15546
|
-
* @return {
|
|
16353
|
+
* optional string grant_id = 4;
|
|
16354
|
+
* @return {string}
|
|
15547
16355
|
*/
|
|
15548
|
-
proto.bonus.
|
|
15549
|
-
return /** @type {
|
|
16356
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getGrantId = function() {
|
|
16357
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15550
16358
|
};
|
|
15551
16359
|
|
|
15552
16360
|
|
|
15553
16361
|
/**
|
|
15554
|
-
* @param {
|
|
15555
|
-
* @return {!proto.bonus.
|
|
16362
|
+
* @param {string} value
|
|
16363
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
15556
16364
|
*/
|
|
15557
|
-
proto.bonus.
|
|
15558
|
-
return jspb.Message.
|
|
16365
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setGrantId = function(value) {
|
|
16366
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
15559
16367
|
};
|
|
15560
16368
|
|
|
15561
16369
|
|
|
15562
16370
|
/**
|
|
15563
|
-
*
|
|
15564
|
-
* @return {
|
|
16371
|
+
* optional string currency = 5;
|
|
16372
|
+
* @return {string}
|
|
15565
16373
|
*/
|
|
15566
|
-
proto.bonus.
|
|
15567
|
-
return jspb.Message.
|
|
16374
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getCurrency = function() {
|
|
16375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15568
16376
|
};
|
|
15569
16377
|
|
|
15570
16378
|
|
|
15571
16379
|
/**
|
|
15572
|
-
*
|
|
15573
|
-
* @return {
|
|
16380
|
+
* @param {string} value
|
|
16381
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
15574
16382
|
*/
|
|
15575
|
-
proto.bonus.
|
|
15576
|
-
return jspb.Message.
|
|
16383
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setCurrency = function(value) {
|
|
16384
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
15577
16385
|
};
|
|
15578
16386
|
|
|
15579
16387
|
|
|
15580
16388
|
/**
|
|
15581
|
-
* optional string
|
|
16389
|
+
* optional string amount = 6;
|
|
15582
16390
|
* @return {string}
|
|
15583
16391
|
*/
|
|
15584
|
-
proto.bonus.
|
|
15585
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
16392
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.getAmount = function() {
|
|
16393
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15586
16394
|
};
|
|
15587
16395
|
|
|
15588
16396
|
|
|
15589
16397
|
/**
|
|
15590
16398
|
* @param {string} value
|
|
15591
|
-
* @return {!proto.bonus.
|
|
16399
|
+
* @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
|
|
15592
16400
|
*/
|
|
15593
|
-
proto.bonus.
|
|
15594
|
-
return jspb.Message.
|
|
16401
|
+
proto.bonus.GrantDynamicUserBonusRequest.prototype.setAmount = function(value) {
|
|
16402
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
15595
16403
|
};
|
|
15596
16404
|
|
|
15597
16405
|
|
|
16406
|
+
|
|
16407
|
+
|
|
16408
|
+
|
|
16409
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15598
16410
|
/**
|
|
15599
|
-
*
|
|
15600
|
-
*
|
|
16411
|
+
* Creates an object representation of this proto.
|
|
16412
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16413
|
+
* Optional fields that are not set will be set to undefined.
|
|
16414
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16415
|
+
* For the list of reserved names please see:
|
|
16416
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16417
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16418
|
+
* JSPB instance for transitional soy proto support:
|
|
16419
|
+
* http://goto/soy-param-migration
|
|
16420
|
+
* @return {!Object}
|
|
15601
16421
|
*/
|
|
15602
|
-
proto.bonus.
|
|
15603
|
-
return
|
|
16422
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
16423
|
+
return proto.bonus.GrantDynamicUserBonusResponse.toObject(opt_includeInstance, this);
|
|
15604
16424
|
};
|
|
15605
16425
|
|
|
15606
16426
|
|
|
15607
16427
|
/**
|
|
15608
|
-
*
|
|
15609
|
-
* @
|
|
16428
|
+
* Static version of the {@see toObject} method.
|
|
16429
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16430
|
+
* the JSPB instance for transitional soy proto support:
|
|
16431
|
+
* http://goto/soy-param-migration
|
|
16432
|
+
* @param {!proto.bonus.GrantDynamicUserBonusResponse} msg The msg instance to transform.
|
|
16433
|
+
* @return {!Object}
|
|
16434
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15610
16435
|
*/
|
|
15611
|
-
proto.bonus.
|
|
15612
|
-
|
|
16436
|
+
proto.bonus.GrantDynamicUserBonusResponse.toObject = function(includeInstance, msg) {
|
|
16437
|
+
var f, obj = {
|
|
16438
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
16439
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
16440
|
+
};
|
|
16441
|
+
|
|
16442
|
+
if (includeInstance) {
|
|
16443
|
+
obj.$jspbMessageInstance = msg;
|
|
16444
|
+
}
|
|
16445
|
+
return obj;
|
|
15613
16446
|
};
|
|
16447
|
+
}
|
|
15614
16448
|
|
|
15615
16449
|
|
|
15616
16450
|
/**
|
|
15617
|
-
*
|
|
15618
|
-
* @
|
|
16451
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16452
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16453
|
+
* @return {!proto.bonus.GrantDynamicUserBonusResponse}
|
|
15619
16454
|
*/
|
|
15620
|
-
proto.bonus.
|
|
15621
|
-
|
|
16455
|
+
proto.bonus.GrantDynamicUserBonusResponse.deserializeBinary = function(bytes) {
|
|
16456
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16457
|
+
var msg = new proto.bonus.GrantDynamicUserBonusResponse;
|
|
16458
|
+
return proto.bonus.GrantDynamicUserBonusResponse.deserializeBinaryFromReader(msg, reader);
|
|
15622
16459
|
};
|
|
15623
16460
|
|
|
15624
16461
|
|
|
15625
16462
|
/**
|
|
15626
|
-
*
|
|
15627
|
-
*
|
|
16463
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16464
|
+
* given reader into the given message object.
|
|
16465
|
+
* @param {!proto.bonus.GrantDynamicUserBonusResponse} msg The message object to deserialize into.
|
|
16466
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16467
|
+
* @return {!proto.bonus.GrantDynamicUserBonusResponse}
|
|
15628
16468
|
*/
|
|
15629
|
-
proto.bonus.
|
|
15630
|
-
|
|
16469
|
+
proto.bonus.GrantDynamicUserBonusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
16470
|
+
while (reader.nextField()) {
|
|
16471
|
+
if (reader.isEndGroup()) {
|
|
16472
|
+
break;
|
|
16473
|
+
}
|
|
16474
|
+
var field = reader.getFieldNumber();
|
|
16475
|
+
switch (field) {
|
|
16476
|
+
case 1:
|
|
16477
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
16478
|
+
msg.setUserBonusId(value);
|
|
16479
|
+
break;
|
|
16480
|
+
case 2:
|
|
16481
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16482
|
+
msg.setStatus(value);
|
|
16483
|
+
break;
|
|
16484
|
+
default:
|
|
16485
|
+
reader.skipField();
|
|
16486
|
+
break;
|
|
16487
|
+
}
|
|
16488
|
+
}
|
|
16489
|
+
return msg;
|
|
15631
16490
|
};
|
|
15632
16491
|
|
|
15633
16492
|
|
|
15634
16493
|
/**
|
|
15635
|
-
*
|
|
15636
|
-
* @return {!
|
|
16494
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16495
|
+
* @return {!Uint8Array}
|
|
15637
16496
|
*/
|
|
15638
|
-
proto.bonus.
|
|
15639
|
-
|
|
16497
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.serializeBinary = function() {
|
|
16498
|
+
var writer = new jspb.BinaryWriter();
|
|
16499
|
+
proto.bonus.GrantDynamicUserBonusResponse.serializeBinaryToWriter(this, writer);
|
|
16500
|
+
return writer.getResultBuffer();
|
|
15640
16501
|
};
|
|
15641
16502
|
|
|
15642
16503
|
|
|
15643
16504
|
/**
|
|
15644
|
-
*
|
|
15645
|
-
*
|
|
16505
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16506
|
+
* format), writing to the given BinaryWriter.
|
|
16507
|
+
* @param {!proto.bonus.GrantDynamicUserBonusResponse} message
|
|
16508
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16509
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15646
16510
|
*/
|
|
15647
|
-
proto.bonus.
|
|
15648
|
-
|
|
16511
|
+
proto.bonus.GrantDynamicUserBonusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
16512
|
+
var f = undefined;
|
|
16513
|
+
f = message.getUserBonusId();
|
|
16514
|
+
if (f !== 0) {
|
|
16515
|
+
writer.writeInt32(
|
|
16516
|
+
1,
|
|
16517
|
+
f
|
|
16518
|
+
);
|
|
16519
|
+
}
|
|
16520
|
+
f = message.getStatus();
|
|
16521
|
+
if (f.length > 0) {
|
|
16522
|
+
writer.writeString(
|
|
16523
|
+
2,
|
|
16524
|
+
f
|
|
16525
|
+
);
|
|
16526
|
+
}
|
|
15649
16527
|
};
|
|
15650
16528
|
|
|
15651
16529
|
|
|
15652
16530
|
/**
|
|
15653
|
-
* optional
|
|
15654
|
-
* @return {
|
|
16531
|
+
* optional int32 user_bonus_id = 1;
|
|
16532
|
+
* @return {number}
|
|
15655
16533
|
*/
|
|
15656
|
-
proto.bonus.
|
|
15657
|
-
return /** @type {
|
|
16534
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.getUserBonusId = function() {
|
|
16535
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15658
16536
|
};
|
|
15659
16537
|
|
|
15660
16538
|
|
|
15661
16539
|
/**
|
|
15662
|
-
* @param {
|
|
15663
|
-
* @return {!proto.bonus.
|
|
16540
|
+
* @param {number} value
|
|
16541
|
+
* @return {!proto.bonus.GrantDynamicUserBonusResponse} returns this
|
|
15664
16542
|
*/
|
|
15665
|
-
proto.bonus.
|
|
15666
|
-
return jspb.Message.
|
|
16543
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.setUserBonusId = function(value) {
|
|
16544
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
15667
16545
|
};
|
|
15668
16546
|
|
|
15669
16547
|
|
|
15670
16548
|
/**
|
|
15671
|
-
*
|
|
15672
|
-
* @return {
|
|
16549
|
+
* optional string status = 2;
|
|
16550
|
+
* @return {string}
|
|
15673
16551
|
*/
|
|
15674
|
-
proto.bonus.
|
|
15675
|
-
return jspb.Message.
|
|
16552
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.getStatus = function() {
|
|
16553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15676
16554
|
};
|
|
15677
16555
|
|
|
15678
16556
|
|
|
15679
16557
|
/**
|
|
15680
|
-
*
|
|
15681
|
-
* @return {
|
|
16558
|
+
* @param {string} value
|
|
16559
|
+
* @return {!proto.bonus.GrantDynamicUserBonusResponse} returns this
|
|
15682
16560
|
*/
|
|
15683
|
-
proto.bonus.
|
|
15684
|
-
return jspb.Message.
|
|
16561
|
+
proto.bonus.GrantDynamicUserBonusResponse.prototype.setStatus = function(value) {
|
|
16562
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15685
16563
|
};
|
|
15686
16564
|
|
|
15687
16565
|
|