protobuf-platform 1.2.630 → 1.2.633

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_pb.js CHANGED
@@ -49,6 +49,8 @@ goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
49
49
  goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
50
50
  goog.exportSymbol('proto.bonus.BonusTranslationItem', null, global);
51
51
  goog.exportSymbol('proto.bonus.BonusTranslationRequest', null, global);
52
+ goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest', null, global);
53
+ goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest.RequestCase', null, global);
52
54
  goog.exportSymbol('proto.bonus.BonusType', null, global);
53
55
  goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
54
56
  goog.exportSymbol('proto.bonus.CommonUserBonusItems', null, global);
@@ -76,6 +78,8 @@ goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
76
78
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
77
79
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
78
80
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
81
+ goog.exportSymbol('proto.bonus.GrantSystemUserBonusRequest', null, global);
82
+ goog.exportSymbol('proto.bonus.GrantSystemUserBonusResponse', null, global);
79
83
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
80
84
  goog.exportSymbol('proto.bonus.ListSignUpBonusesRequest', null, global);
81
85
  goog.exportSymbol('proto.bonus.ListSignUpBonusesResponse', null, global);
@@ -805,6 +809,27 @@ if (goog.DEBUG && !COMPILED) {
805
809
  */
806
810
  proto.bonus.BonusTranslationRequest.displayName = 'proto.bonus.BonusTranslationRequest';
807
811
  }
812
+ /**
813
+ * Generated by JsPbCodeGenerator.
814
+ * @param {Array=} opt_data Optional initial data array, typically from a
815
+ * server response, or constructed directly in Javascript. The array is used
816
+ * in place and becomes part of the constructed object. It is not cloned.
817
+ * If no data is provided, the constructed object will be empty, but still
818
+ * valid.
819
+ * @extends {jspb.Message}
820
+ * @constructor
821
+ */
822
+ proto.bonus.BonusTranslationUpsertRequest = function(opt_data) {
823
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bonus.BonusTranslationUpsertRequest.oneofGroups_);
824
+ };
825
+ goog.inherits(proto.bonus.BonusTranslationUpsertRequest, jspb.Message);
826
+ if (goog.DEBUG && !COMPILED) {
827
+ /**
828
+ * @public
829
+ * @override
830
+ */
831
+ proto.bonus.BonusTranslationUpsertRequest.displayName = 'proto.bonus.BonusTranslationUpsertRequest';
832
+ }
808
833
  /**
809
834
  * Generated by JsPbCodeGenerator.
810
835
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -973,6 +998,48 @@ if (goog.DEBUG && !COMPILED) {
973
998
  */
974
999
  proto.bonus.ApplyUserBonusPromocodeRequest.displayName = 'proto.bonus.ApplyUserBonusPromocodeRequest';
975
1000
  }
1001
+ /**
1002
+ * Generated by JsPbCodeGenerator.
1003
+ * @param {Array=} opt_data Optional initial data array, typically from a
1004
+ * server response, or constructed directly in Javascript. The array is used
1005
+ * in place and becomes part of the constructed object. It is not cloned.
1006
+ * If no data is provided, the constructed object will be empty, but still
1007
+ * valid.
1008
+ * @extends {jspb.Message}
1009
+ * @constructor
1010
+ */
1011
+ proto.bonus.GrantSystemUserBonusRequest = function(opt_data) {
1012
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1013
+ };
1014
+ goog.inherits(proto.bonus.GrantSystemUserBonusRequest, jspb.Message);
1015
+ if (goog.DEBUG && !COMPILED) {
1016
+ /**
1017
+ * @public
1018
+ * @override
1019
+ */
1020
+ proto.bonus.GrantSystemUserBonusRequest.displayName = 'proto.bonus.GrantSystemUserBonusRequest';
1021
+ }
1022
+ /**
1023
+ * Generated by JsPbCodeGenerator.
1024
+ * @param {Array=} opt_data Optional initial data array, typically from a
1025
+ * server response, or constructed directly in Javascript. The array is used
1026
+ * in place and becomes part of the constructed object. It is not cloned.
1027
+ * If no data is provided, the constructed object will be empty, but still
1028
+ * valid.
1029
+ * @extends {jspb.Message}
1030
+ * @constructor
1031
+ */
1032
+ proto.bonus.GrantSystemUserBonusResponse = function(opt_data) {
1033
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1034
+ };
1035
+ goog.inherits(proto.bonus.GrantSystemUserBonusResponse, jspb.Message);
1036
+ if (goog.DEBUG && !COMPILED) {
1037
+ /**
1038
+ * @public
1039
+ * @override
1040
+ */
1041
+ proto.bonus.GrantSystemUserBonusResponse.displayName = 'proto.bonus.GrantSystemUserBonusResponse';
1042
+ }
976
1043
  /**
977
1044
  * Generated by JsPbCodeGenerator.
978
1045
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13565,7 +13632,9 @@ proto.bonus.BonusSnapshotItem.toObject = function(includeInstance, msg) {
13565
13632
  statusId: jspb.Message.getFieldWithDefault(msg, 9, 0),
13566
13633
  description: jspb.Message.getFieldWithDefault(msg, 10, ""),
13567
13634
  startedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
13568
- finishedAt: jspb.Message.getFieldWithDefault(msg, 12, "")
13635
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
13636
+ portraitImage: jspb.Message.getFieldWithDefault(msg, 13, ""),
13637
+ portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 14, "")
13569
13638
  };
13570
13639
 
13571
13640
  if (includeInstance) {
@@ -13650,6 +13719,14 @@ proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader = function(msg, reader
13650
13719
  var value = /** @type {string} */ (reader.readString());
13651
13720
  msg.setFinishedAt(value);
13652
13721
  break;
13722
+ case 13:
13723
+ var value = /** @type {string} */ (reader.readString());
13724
+ msg.setPortraitImage(value);
13725
+ break;
13726
+ case 14:
13727
+ var value = /** @type {string} */ (reader.readString());
13728
+ msg.setPortraitImageCdn(value);
13729
+ break;
13653
13730
  default:
13654
13731
  reader.skipField();
13655
13732
  break;
@@ -13763,6 +13840,20 @@ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter = function(message, writer
13763
13840
  f
13764
13841
  );
13765
13842
  }
13843
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
13844
+ if (f != null) {
13845
+ writer.writeString(
13846
+ 13,
13847
+ f
13848
+ );
13849
+ }
13850
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
13851
+ if (f != null) {
13852
+ writer.writeString(
13853
+ 14,
13854
+ f
13855
+ );
13856
+ }
13766
13857
  };
13767
13858
 
13768
13859
 
@@ -14180,6 +14271,78 @@ proto.bonus.BonusSnapshotItem.prototype.hasFinishedAt = function() {
14180
14271
  };
14181
14272
 
14182
14273
 
14274
+ /**
14275
+ * optional string portrait_image = 13;
14276
+ * @return {string}
14277
+ */
14278
+ proto.bonus.BonusSnapshotItem.prototype.getPortraitImage = function() {
14279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
14280
+ };
14281
+
14282
+
14283
+ /**
14284
+ * @param {string} value
14285
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
14286
+ */
14287
+ proto.bonus.BonusSnapshotItem.prototype.setPortraitImage = function(value) {
14288
+ return jspb.Message.setField(this, 13, value);
14289
+ };
14290
+
14291
+
14292
+ /**
14293
+ * Clears the field making it undefined.
14294
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
14295
+ */
14296
+ proto.bonus.BonusSnapshotItem.prototype.clearPortraitImage = function() {
14297
+ return jspb.Message.setField(this, 13, undefined);
14298
+ };
14299
+
14300
+
14301
+ /**
14302
+ * Returns whether this field is set.
14303
+ * @return {boolean}
14304
+ */
14305
+ proto.bonus.BonusSnapshotItem.prototype.hasPortraitImage = function() {
14306
+ return jspb.Message.getField(this, 13) != null;
14307
+ };
14308
+
14309
+
14310
+ /**
14311
+ * optional string portrait_image_cdn = 14;
14312
+ * @return {string}
14313
+ */
14314
+ proto.bonus.BonusSnapshotItem.prototype.getPortraitImageCdn = function() {
14315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
14316
+ };
14317
+
14318
+
14319
+ /**
14320
+ * @param {string} value
14321
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
14322
+ */
14323
+ proto.bonus.BonusSnapshotItem.prototype.setPortraitImageCdn = function(value) {
14324
+ return jspb.Message.setField(this, 14, value);
14325
+ };
14326
+
14327
+
14328
+ /**
14329
+ * Clears the field making it undefined.
14330
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
14331
+ */
14332
+ proto.bonus.BonusSnapshotItem.prototype.clearPortraitImageCdn = function() {
14333
+ return jspb.Message.setField(this, 14, undefined);
14334
+ };
14335
+
14336
+
14337
+ /**
14338
+ * Returns whether this field is set.
14339
+ * @return {boolean}
14340
+ */
14341
+ proto.bonus.BonusSnapshotItem.prototype.hasPortraitImageCdn = function() {
14342
+ return jspb.Message.getField(this, 14) != null;
14343
+ };
14344
+
14345
+
14183
14346
 
14184
14347
  /**
14185
14348
  * List of repeated fields within this message type.
@@ -14507,7 +14670,13 @@ proto.bonus.BonusTranslationRequest.toObject = function(includeInstance, msg) {
14507
14670
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
14508
14671
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
14509
14672
  content: jspb.Message.getFieldWithDefault(msg, 5, ""),
14510
- isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
14673
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
14674
+ desktopFileType: jspb.Message.getFieldWithDefault(msg, 7, ""),
14675
+ mobileFileType: jspb.Message.getFieldWithDefault(msg, 8, ""),
14676
+ portraitFileType: jspb.Message.getFieldWithDefault(msg, 9, ""),
14677
+ removeDesktopImage: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
14678
+ removeMobileImage: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
14679
+ removePortraitImage: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
14511
14680
  };
14512
14681
 
14513
14682
  if (includeInstance) {
@@ -14568,6 +14737,30 @@ proto.bonus.BonusTranslationRequest.deserializeBinaryFromReader = function(msg,
14568
14737
  var value = /** @type {number} */ (reader.readInt32());
14569
14738
  msg.setIsActive(value);
14570
14739
  break;
14740
+ case 7:
14741
+ var value = /** @type {string} */ (reader.readString());
14742
+ msg.setDesktopFileType(value);
14743
+ break;
14744
+ case 8:
14745
+ var value = /** @type {string} */ (reader.readString());
14746
+ msg.setMobileFileType(value);
14747
+ break;
14748
+ case 9:
14749
+ var value = /** @type {string} */ (reader.readString());
14750
+ msg.setPortraitFileType(value);
14751
+ break;
14752
+ case 10:
14753
+ var value = /** @type {boolean} */ (reader.readBool());
14754
+ msg.setRemoveDesktopImage(value);
14755
+ break;
14756
+ case 11:
14757
+ var value = /** @type {boolean} */ (reader.readBool());
14758
+ msg.setRemoveMobileImage(value);
14759
+ break;
14760
+ case 12:
14761
+ var value = /** @type {boolean} */ (reader.readBool());
14762
+ msg.setRemovePortraitImage(value);
14763
+ break;
14571
14764
  default:
14572
14765
  reader.skipField();
14573
14766
  break;
@@ -14639,6 +14832,48 @@ proto.bonus.BonusTranslationRequest.serializeBinaryToWriter = function(message,
14639
14832
  f
14640
14833
  );
14641
14834
  }
14835
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
14836
+ if (f != null) {
14837
+ writer.writeString(
14838
+ 7,
14839
+ f
14840
+ );
14841
+ }
14842
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
14843
+ if (f != null) {
14844
+ writer.writeString(
14845
+ 8,
14846
+ f
14847
+ );
14848
+ }
14849
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
14850
+ if (f != null) {
14851
+ writer.writeString(
14852
+ 9,
14853
+ f
14854
+ );
14855
+ }
14856
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
14857
+ if (f != null) {
14858
+ writer.writeBool(
14859
+ 10,
14860
+ f
14861
+ );
14862
+ }
14863
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
14864
+ if (f != null) {
14865
+ writer.writeBool(
14866
+ 11,
14867
+ f
14868
+ );
14869
+ }
14870
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
14871
+ if (f != null) {
14872
+ writer.writeBool(
14873
+ 12,
14874
+ f
14875
+ );
14876
+ }
14642
14877
  };
14643
14878
 
14644
14879
 
@@ -14858,167 +15093,249 @@ proto.bonus.BonusTranslationRequest.prototype.hasIsActive = function() {
14858
15093
  };
14859
15094
 
14860
15095
 
15096
+ /**
15097
+ * optional string desktop_file_type = 7;
15098
+ * @return {string}
15099
+ */
15100
+ proto.bonus.BonusTranslationRequest.prototype.getDesktopFileType = function() {
15101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
15102
+ };
14861
15103
 
14862
15104
 
14863
-
14864
- if (jspb.Message.GENERATE_TO_OBJECT) {
14865
15105
  /**
14866
- * Creates an object representation of this proto.
14867
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
14868
- * Optional fields that are not set will be set to undefined.
14869
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14870
- * For the list of reserved names please see:
14871
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14872
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14873
- * JSPB instance for transitional soy proto support:
14874
- * http://goto/soy-param-migration
14875
- * @return {!Object}
15106
+ * @param {string} value
15107
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
14876
15108
  */
14877
- proto.bonus.GetBonusTranslationRequest.prototype.toObject = function(opt_includeInstance) {
14878
- return proto.bonus.GetBonusTranslationRequest.toObject(opt_includeInstance, this);
15109
+ proto.bonus.BonusTranslationRequest.prototype.setDesktopFileType = function(value) {
15110
+ return jspb.Message.setField(this, 7, value);
14879
15111
  };
14880
15112
 
14881
15113
 
14882
15114
  /**
14883
- * Static version of the {@see toObject} method.
14884
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14885
- * the JSPB instance for transitional soy proto support:
14886
- * http://goto/soy-param-migration
14887
- * @param {!proto.bonus.GetBonusTranslationRequest} msg The msg instance to transform.
14888
- * @return {!Object}
14889
- * @suppress {unusedLocalVariables} f is only used for nested messages
15115
+ * Clears the field making it undefined.
15116
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
14890
15117
  */
14891
- proto.bonus.GetBonusTranslationRequest.toObject = function(includeInstance, msg) {
14892
- var f, obj = {
14893
- bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
14894
- locale: jspb.Message.getFieldWithDefault(msg, 2, "")
14895
- };
15118
+ proto.bonus.BonusTranslationRequest.prototype.clearDesktopFileType = function() {
15119
+ return jspb.Message.setField(this, 7, undefined);
15120
+ };
14896
15121
 
14897
- if (includeInstance) {
14898
- obj.$jspbMessageInstance = msg;
14899
- }
14900
- return obj;
15122
+
15123
+ /**
15124
+ * Returns whether this field is set.
15125
+ * @return {boolean}
15126
+ */
15127
+ proto.bonus.BonusTranslationRequest.prototype.hasDesktopFileType = function() {
15128
+ return jspb.Message.getField(this, 7) != null;
14901
15129
  };
14902
- }
14903
15130
 
14904
15131
 
14905
15132
  /**
14906
- * Deserializes binary data (in protobuf wire format).
14907
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
14908
- * @return {!proto.bonus.GetBonusTranslationRequest}
15133
+ * optional string mobile_file_type = 8;
15134
+ * @return {string}
14909
15135
  */
14910
- proto.bonus.GetBonusTranslationRequest.deserializeBinary = function(bytes) {
14911
- var reader = new jspb.BinaryReader(bytes);
14912
- var msg = new proto.bonus.GetBonusTranslationRequest;
14913
- return proto.bonus.GetBonusTranslationRequest.deserializeBinaryFromReader(msg, reader);
15136
+ proto.bonus.BonusTranslationRequest.prototype.getMobileFileType = function() {
15137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
14914
15138
  };
14915
15139
 
14916
15140
 
14917
15141
  /**
14918
- * Deserializes binary data (in protobuf wire format) from the
14919
- * given reader into the given message object.
14920
- * @param {!proto.bonus.GetBonusTranslationRequest} msg The message object to deserialize into.
14921
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14922
- * @return {!proto.bonus.GetBonusTranslationRequest}
15142
+ * @param {string} value
15143
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
14923
15144
  */
14924
- proto.bonus.GetBonusTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
14925
- while (reader.nextField()) {
14926
- if (reader.isEndGroup()) {
14927
- break;
14928
- }
14929
- var field = reader.getFieldNumber();
14930
- switch (field) {
14931
- case 1:
14932
- var value = /** @type {number} */ (reader.readInt32());
14933
- msg.setBonusId(value);
14934
- break;
14935
- case 2:
14936
- var value = /** @type {string} */ (reader.readString());
14937
- msg.setLocale(value);
14938
- break;
14939
- default:
14940
- reader.skipField();
14941
- break;
14942
- }
14943
- }
14944
- return msg;
15145
+ proto.bonus.BonusTranslationRequest.prototype.setMobileFileType = function(value) {
15146
+ return jspb.Message.setField(this, 8, value);
14945
15147
  };
14946
15148
 
14947
15149
 
14948
15150
  /**
14949
- * Serializes the message to binary data (in protobuf wire format).
14950
- * @return {!Uint8Array}
15151
+ * Clears the field making it undefined.
15152
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
14951
15153
  */
14952
- proto.bonus.GetBonusTranslationRequest.prototype.serializeBinary = function() {
14953
- var writer = new jspb.BinaryWriter();
14954
- proto.bonus.GetBonusTranslationRequest.serializeBinaryToWriter(this, writer);
14955
- return writer.getResultBuffer();
15154
+ proto.bonus.BonusTranslationRequest.prototype.clearMobileFileType = function() {
15155
+ return jspb.Message.setField(this, 8, undefined);
14956
15156
  };
14957
15157
 
14958
15158
 
14959
15159
  /**
14960
- * Serializes the given message to binary data (in protobuf wire
14961
- * format), writing to the given BinaryWriter.
14962
- * @param {!proto.bonus.GetBonusTranslationRequest} message
14963
- * @param {!jspb.BinaryWriter} writer
14964
- * @suppress {unusedLocalVariables} f is only used for nested messages
15160
+ * Returns whether this field is set.
15161
+ * @return {boolean}
14965
15162
  */
14966
- proto.bonus.GetBonusTranslationRequest.serializeBinaryToWriter = function(message, writer) {
14967
- var f = undefined;
14968
- f = message.getBonusId();
14969
- if (f !== 0) {
14970
- writer.writeInt32(
14971
- 1,
14972
- f
14973
- );
14974
- }
14975
- f = message.getLocale();
14976
- if (f.length > 0) {
14977
- writer.writeString(
14978
- 2,
14979
- f
14980
- );
14981
- }
15163
+ proto.bonus.BonusTranslationRequest.prototype.hasMobileFileType = function() {
15164
+ return jspb.Message.getField(this, 8) != null;
14982
15165
  };
14983
15166
 
14984
15167
 
14985
15168
  /**
14986
- * optional int32 bonus_id = 1;
14987
- * @return {number}
15169
+ * optional string portrait_file_type = 9;
15170
+ * @return {string}
14988
15171
  */
14989
- proto.bonus.GetBonusTranslationRequest.prototype.getBonusId = function() {
14990
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15172
+ proto.bonus.BonusTranslationRequest.prototype.getPortraitFileType = function() {
15173
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
14991
15174
  };
14992
15175
 
14993
15176
 
14994
15177
  /**
14995
- * @param {number} value
14996
- * @return {!proto.bonus.GetBonusTranslationRequest} returns this
15178
+ * @param {string} value
15179
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
14997
15180
  */
14998
- proto.bonus.GetBonusTranslationRequest.prototype.setBonusId = function(value) {
14999
- return jspb.Message.setProto3IntField(this, 1, value);
15181
+ proto.bonus.BonusTranslationRequest.prototype.setPortraitFileType = function(value) {
15182
+ return jspb.Message.setField(this, 9, value);
15000
15183
  };
15001
15184
 
15002
15185
 
15003
15186
  /**
15004
- * optional string locale = 2;
15005
- * @return {string}
15187
+ * Clears the field making it undefined.
15188
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15006
15189
  */
15007
- proto.bonus.GetBonusTranslationRequest.prototype.getLocale = function() {
15008
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15190
+ proto.bonus.BonusTranslationRequest.prototype.clearPortraitFileType = function() {
15191
+ return jspb.Message.setField(this, 9, undefined);
15009
15192
  };
15010
15193
 
15011
15194
 
15012
15195
  /**
15013
- * @param {string} value
15014
- * @return {!proto.bonus.GetBonusTranslationRequest} returns this
15196
+ * Returns whether this field is set.
15197
+ * @return {boolean}
15015
15198
  */
15016
- proto.bonus.GetBonusTranslationRequest.prototype.setLocale = function(value) {
15017
- return jspb.Message.setProto3StringField(this, 2, value);
15199
+ proto.bonus.BonusTranslationRequest.prototype.hasPortraitFileType = function() {
15200
+ return jspb.Message.getField(this, 9) != null;
15201
+ };
15202
+
15203
+
15204
+ /**
15205
+ * optional bool remove_desktop_image = 10;
15206
+ * @return {boolean}
15207
+ */
15208
+ proto.bonus.BonusTranslationRequest.prototype.getRemoveDesktopImage = function() {
15209
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
15210
+ };
15211
+
15212
+
15213
+ /**
15214
+ * @param {boolean} value
15215
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15216
+ */
15217
+ proto.bonus.BonusTranslationRequest.prototype.setRemoveDesktopImage = function(value) {
15218
+ return jspb.Message.setField(this, 10, value);
15219
+ };
15220
+
15221
+
15222
+ /**
15223
+ * Clears the field making it undefined.
15224
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15225
+ */
15226
+ proto.bonus.BonusTranslationRequest.prototype.clearRemoveDesktopImage = function() {
15227
+ return jspb.Message.setField(this, 10, undefined);
15228
+ };
15229
+
15230
+
15231
+ /**
15232
+ * Returns whether this field is set.
15233
+ * @return {boolean}
15234
+ */
15235
+ proto.bonus.BonusTranslationRequest.prototype.hasRemoveDesktopImage = function() {
15236
+ return jspb.Message.getField(this, 10) != null;
15237
+ };
15238
+
15239
+
15240
+ /**
15241
+ * optional bool remove_mobile_image = 11;
15242
+ * @return {boolean}
15243
+ */
15244
+ proto.bonus.BonusTranslationRequest.prototype.getRemoveMobileImage = function() {
15245
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
15246
+ };
15247
+
15248
+
15249
+ /**
15250
+ * @param {boolean} value
15251
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15252
+ */
15253
+ proto.bonus.BonusTranslationRequest.prototype.setRemoveMobileImage = function(value) {
15254
+ return jspb.Message.setField(this, 11, value);
15255
+ };
15256
+
15257
+
15258
+ /**
15259
+ * Clears the field making it undefined.
15260
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15261
+ */
15262
+ proto.bonus.BonusTranslationRequest.prototype.clearRemoveMobileImage = function() {
15263
+ return jspb.Message.setField(this, 11, undefined);
15264
+ };
15265
+
15266
+
15267
+ /**
15268
+ * Returns whether this field is set.
15269
+ * @return {boolean}
15270
+ */
15271
+ proto.bonus.BonusTranslationRequest.prototype.hasRemoveMobileImage = function() {
15272
+ return jspb.Message.getField(this, 11) != null;
15273
+ };
15274
+
15275
+
15276
+ /**
15277
+ * optional bool remove_portrait_image = 12;
15278
+ * @return {boolean}
15279
+ */
15280
+ proto.bonus.BonusTranslationRequest.prototype.getRemovePortraitImage = function() {
15281
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
15282
+ };
15283
+
15284
+
15285
+ /**
15286
+ * @param {boolean} value
15287
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15288
+ */
15289
+ proto.bonus.BonusTranslationRequest.prototype.setRemovePortraitImage = function(value) {
15290
+ return jspb.Message.setField(this, 12, value);
15291
+ };
15292
+
15293
+
15294
+ /**
15295
+ * Clears the field making it undefined.
15296
+ * @return {!proto.bonus.BonusTranslationRequest} returns this
15297
+ */
15298
+ proto.bonus.BonusTranslationRequest.prototype.clearRemovePortraitImage = function() {
15299
+ return jspb.Message.setField(this, 12, undefined);
15300
+ };
15301
+
15302
+
15303
+ /**
15304
+ * Returns whether this field is set.
15305
+ * @return {boolean}
15306
+ */
15307
+ proto.bonus.BonusTranslationRequest.prototype.hasRemovePortraitImage = function() {
15308
+ return jspb.Message.getField(this, 12) != null;
15018
15309
  };
15019
15310
 
15020
15311
 
15021
15312
 
15313
+ /**
15314
+ * Oneof group definitions for this message. Each group defines the field
15315
+ * numbers belonging to that group. When of these fields' value is set, all
15316
+ * other fields in the group are cleared. During deserialization, if multiple
15317
+ * fields are encountered for a group, only the last value seen will be kept.
15318
+ * @private {!Array<!Array<number>>}
15319
+ * @const
15320
+ */
15321
+ proto.bonus.BonusTranslationUpsertRequest.oneofGroups_ = [[1,2]];
15322
+
15323
+ /**
15324
+ * @enum {number}
15325
+ */
15326
+ proto.bonus.BonusTranslationUpsertRequest.RequestCase = {
15327
+ REQUEST_NOT_SET: 0,
15328
+ TRANSLATION_DATA: 1,
15329
+ FILE: 2
15330
+ };
15331
+
15332
+ /**
15333
+ * @return {proto.bonus.BonusTranslationUpsertRequest.RequestCase}
15334
+ */
15335
+ proto.bonus.BonusTranslationUpsertRequest.prototype.getRequestCase = function() {
15336
+ return /** @type {proto.bonus.BonusTranslationUpsertRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.bonus.BonusTranslationUpsertRequest.oneofGroups_[0]));
15337
+ };
15338
+
15022
15339
 
15023
15340
 
15024
15341
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -15034,8 +15351,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15034
15351
  * http://goto/soy-param-migration
15035
15352
  * @return {!Object}
15036
15353
  */
15037
- proto.bonus.BonusTranslationItem.prototype.toObject = function(opt_includeInstance) {
15038
- return proto.bonus.BonusTranslationItem.toObject(opt_includeInstance, this);
15354
+ proto.bonus.BonusTranslationUpsertRequest.prototype.toObject = function(opt_includeInstance) {
15355
+ return proto.bonus.BonusTranslationUpsertRequest.toObject(opt_includeInstance, this);
15039
15356
  };
15040
15357
 
15041
15358
 
@@ -15044,17 +15361,14 @@ proto.bonus.BonusTranslationItem.prototype.toObject = function(opt_includeInstan
15044
15361
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15045
15362
  * the JSPB instance for transitional soy proto support:
15046
15363
  * http://goto/soy-param-migration
15047
- * @param {!proto.bonus.BonusTranslationItem} msg The msg instance to transform.
15364
+ * @param {!proto.bonus.BonusTranslationUpsertRequest} msg The msg instance to transform.
15048
15365
  * @return {!Object}
15049
15366
  * @suppress {unusedLocalVariables} f is only used for nested messages
15050
15367
  */
15051
- proto.bonus.BonusTranslationItem.toObject = function(includeInstance, msg) {
15368
+ proto.bonus.BonusTranslationUpsertRequest.toObject = function(includeInstance, msg) {
15052
15369
  var f, obj = {
15053
- title: jspb.Message.getFieldWithDefault(msg, 1, ""),
15054
- locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
15055
- description: jspb.Message.getFieldWithDefault(msg, 3, ""),
15056
- content: jspb.Message.getFieldWithDefault(msg, 4, ""),
15057
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
15370
+ translationData: (f = msg.getTranslationData()) && proto.bonus.BonusTranslationRequest.toObject(includeInstance, f),
15371
+ file: (f = msg.getFile()) && proto.bonus.File.toObject(includeInstance, f)
15058
15372
  };
15059
15373
 
15060
15374
  if (includeInstance) {
@@ -15068,23 +15382,23 @@ proto.bonus.BonusTranslationItem.toObject = function(includeInstance, msg) {
15068
15382
  /**
15069
15383
  * Deserializes binary data (in protobuf wire format).
15070
15384
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
15071
- * @return {!proto.bonus.BonusTranslationItem}
15385
+ * @return {!proto.bonus.BonusTranslationUpsertRequest}
15072
15386
  */
15073
- proto.bonus.BonusTranslationItem.deserializeBinary = function(bytes) {
15387
+ proto.bonus.BonusTranslationUpsertRequest.deserializeBinary = function(bytes) {
15074
15388
  var reader = new jspb.BinaryReader(bytes);
15075
- var msg = new proto.bonus.BonusTranslationItem;
15076
- return proto.bonus.BonusTranslationItem.deserializeBinaryFromReader(msg, reader);
15389
+ var msg = new proto.bonus.BonusTranslationUpsertRequest;
15390
+ return proto.bonus.BonusTranslationUpsertRequest.deserializeBinaryFromReader(msg, reader);
15077
15391
  };
15078
15392
 
15079
15393
 
15080
15394
  /**
15081
15395
  * Deserializes binary data (in protobuf wire format) from the
15082
15396
  * given reader into the given message object.
15083
- * @param {!proto.bonus.BonusTranslationItem} msg The message object to deserialize into.
15397
+ * @param {!proto.bonus.BonusTranslationUpsertRequest} msg The message object to deserialize into.
15084
15398
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15085
- * @return {!proto.bonus.BonusTranslationItem}
15399
+ * @return {!proto.bonus.BonusTranslationUpsertRequest}
15086
15400
  */
15087
- proto.bonus.BonusTranslationItem.deserializeBinaryFromReader = function(msg, reader) {
15401
+ proto.bonus.BonusTranslationUpsertRequest.deserializeBinaryFromReader = function(msg, reader) {
15088
15402
  while (reader.nextField()) {
15089
15403
  if (reader.isEndGroup()) {
15090
15404
  break;
@@ -15092,24 +15406,14 @@ proto.bonus.BonusTranslationItem.deserializeBinaryFromReader = function(msg, rea
15092
15406
  var field = reader.getFieldNumber();
15093
15407
  switch (field) {
15094
15408
  case 1:
15095
- var value = /** @type {string} */ (reader.readString());
15096
- msg.setTitle(value);
15409
+ var value = new proto.bonus.BonusTranslationRequest;
15410
+ reader.readMessage(value,proto.bonus.BonusTranslationRequest.deserializeBinaryFromReader);
15411
+ msg.setTranslationData(value);
15097
15412
  break;
15098
15413
  case 2:
15099
- var value = /** @type {string} */ (reader.readString());
15100
- msg.setLocale(value);
15101
- break;
15102
- case 3:
15103
- var value = /** @type {string} */ (reader.readString());
15104
- msg.setDescription(value);
15105
- break;
15106
- case 4:
15107
- var value = /** @type {string} */ (reader.readString());
15108
- msg.setContent(value);
15109
- break;
15110
- case 5:
15111
- var value = /** @type {number} */ (reader.readInt32());
15112
- msg.setIsActive(value);
15414
+ var value = new proto.bonus.File;
15415
+ reader.readMessage(value,proto.bonus.File.deserializeBinaryFromReader);
15416
+ msg.setFile(value);
15113
15417
  break;
15114
15418
  default:
15115
15419
  reader.skipField();
@@ -15124,9 +15428,9 @@ proto.bonus.BonusTranslationItem.deserializeBinaryFromReader = function(msg, rea
15124
15428
  * Serializes the message to binary data (in protobuf wire format).
15125
15429
  * @return {!Uint8Array}
15126
15430
  */
15127
- proto.bonus.BonusTranslationItem.prototype.serializeBinary = function() {
15431
+ proto.bonus.BonusTranslationUpsertRequest.prototype.serializeBinary = function() {
15128
15432
  var writer = new jspb.BinaryWriter();
15129
- proto.bonus.BonusTranslationItem.serializeBinaryToWriter(this, writer);
15433
+ proto.bonus.BonusTranslationUpsertRequest.serializeBinaryToWriter(this, writer);
15130
15434
  return writer.getResultBuffer();
15131
15435
  };
15132
15436
 
@@ -15134,74 +15438,56 @@ proto.bonus.BonusTranslationItem.prototype.serializeBinary = function() {
15134
15438
  /**
15135
15439
  * Serializes the given message to binary data (in protobuf wire
15136
15440
  * format), writing to the given BinaryWriter.
15137
- * @param {!proto.bonus.BonusTranslationItem} message
15441
+ * @param {!proto.bonus.BonusTranslationUpsertRequest} message
15138
15442
  * @param {!jspb.BinaryWriter} writer
15139
15443
  * @suppress {unusedLocalVariables} f is only used for nested messages
15140
15444
  */
15141
- proto.bonus.BonusTranslationItem.serializeBinaryToWriter = function(message, writer) {
15445
+ proto.bonus.BonusTranslationUpsertRequest.serializeBinaryToWriter = function(message, writer) {
15142
15446
  var f = undefined;
15143
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
15447
+ f = message.getTranslationData();
15144
15448
  if (f != null) {
15145
- writer.writeString(
15449
+ writer.writeMessage(
15146
15450
  1,
15147
- f
15451
+ f,
15452
+ proto.bonus.BonusTranslationRequest.serializeBinaryToWriter
15148
15453
  );
15149
15454
  }
15150
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
15455
+ f = message.getFile();
15151
15456
  if (f != null) {
15152
- writer.writeString(
15457
+ writer.writeMessage(
15153
15458
  2,
15154
- f
15155
- );
15156
- }
15157
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
15158
- if (f != null) {
15159
- writer.writeString(
15160
- 3,
15161
- f
15162
- );
15163
- }
15164
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
15165
- if (f != null) {
15166
- writer.writeString(
15167
- 4,
15168
- f
15169
- );
15170
- }
15171
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
15172
- if (f != null) {
15173
- writer.writeInt32(
15174
- 5,
15175
- f
15459
+ f,
15460
+ proto.bonus.File.serializeBinaryToWriter
15176
15461
  );
15177
15462
  }
15178
15463
  };
15179
15464
 
15180
15465
 
15181
15466
  /**
15182
- * optional string title = 1;
15183
- * @return {string}
15467
+ * optional BonusTranslationRequest translation_data = 1;
15468
+ * @return {?proto.bonus.BonusTranslationRequest}
15184
15469
  */
15185
- proto.bonus.BonusTranslationItem.prototype.getTitle = function() {
15186
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15470
+ proto.bonus.BonusTranslationUpsertRequest.prototype.getTranslationData = function() {
15471
+ return /** @type{?proto.bonus.BonusTranslationRequest} */ (
15472
+ jspb.Message.getWrapperField(this, proto.bonus.BonusTranslationRequest, 1));
15187
15473
  };
15188
15474
 
15189
15475
 
15190
15476
  /**
15191
- * @param {string} value
15192
- * @return {!proto.bonus.BonusTranslationItem} returns this
15193
- */
15194
- proto.bonus.BonusTranslationItem.prototype.setTitle = function(value) {
15195
- return jspb.Message.setField(this, 1, value);
15477
+ * @param {?proto.bonus.BonusTranslationRequest|undefined} value
15478
+ * @return {!proto.bonus.BonusTranslationUpsertRequest} returns this
15479
+ */
15480
+ proto.bonus.BonusTranslationUpsertRequest.prototype.setTranslationData = function(value) {
15481
+ return jspb.Message.setOneofWrapperField(this, 1, proto.bonus.BonusTranslationUpsertRequest.oneofGroups_[0], value);
15196
15482
  };
15197
15483
 
15198
15484
 
15199
15485
  /**
15200
- * Clears the field making it undefined.
15201
- * @return {!proto.bonus.BonusTranslationItem} returns this
15486
+ * Clears the message field making it undefined.
15487
+ * @return {!proto.bonus.BonusTranslationUpsertRequest} returns this
15202
15488
  */
15203
- proto.bonus.BonusTranslationItem.prototype.clearTitle = function() {
15204
- return jspb.Message.setField(this, 1, undefined);
15489
+ proto.bonus.BonusTranslationUpsertRequest.prototype.clearTranslationData = function() {
15490
+ return this.setTranslationData(undefined);
15205
15491
  };
15206
15492
 
15207
15493
 
@@ -15209,35 +15495,36 @@ proto.bonus.BonusTranslationItem.prototype.clearTitle = function() {
15209
15495
  * Returns whether this field is set.
15210
15496
  * @return {boolean}
15211
15497
  */
15212
- proto.bonus.BonusTranslationItem.prototype.hasTitle = function() {
15498
+ proto.bonus.BonusTranslationUpsertRequest.prototype.hasTranslationData = function() {
15213
15499
  return jspb.Message.getField(this, 1) != null;
15214
15500
  };
15215
15501
 
15216
15502
 
15217
15503
  /**
15218
- * optional string locale = 2;
15219
- * @return {string}
15504
+ * optional File file = 2;
15505
+ * @return {?proto.bonus.File}
15220
15506
  */
15221
- proto.bonus.BonusTranslationItem.prototype.getLocale = function() {
15222
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15507
+ proto.bonus.BonusTranslationUpsertRequest.prototype.getFile = function() {
15508
+ return /** @type{?proto.bonus.File} */ (
15509
+ jspb.Message.getWrapperField(this, proto.bonus.File, 2));
15223
15510
  };
15224
15511
 
15225
15512
 
15226
15513
  /**
15227
- * @param {string} value
15228
- * @return {!proto.bonus.BonusTranslationItem} returns this
15229
- */
15230
- proto.bonus.BonusTranslationItem.prototype.setLocale = function(value) {
15231
- return jspb.Message.setField(this, 2, value);
15514
+ * @param {?proto.bonus.File|undefined} value
15515
+ * @return {!proto.bonus.BonusTranslationUpsertRequest} returns this
15516
+ */
15517
+ proto.bonus.BonusTranslationUpsertRequest.prototype.setFile = function(value) {
15518
+ return jspb.Message.setOneofWrapperField(this, 2, proto.bonus.BonusTranslationUpsertRequest.oneofGroups_[0], value);
15232
15519
  };
15233
15520
 
15234
15521
 
15235
15522
  /**
15236
- * Clears the field making it undefined.
15237
- * @return {!proto.bonus.BonusTranslationItem} returns this
15523
+ * Clears the message field making it undefined.
15524
+ * @return {!proto.bonus.BonusTranslationUpsertRequest} returns this
15238
15525
  */
15239
- proto.bonus.BonusTranslationItem.prototype.clearLocale = function() {
15240
- return jspb.Message.setField(this, 2, undefined);
15526
+ proto.bonus.BonusTranslationUpsertRequest.prototype.clearFile = function() {
15527
+ return this.setFile(undefined);
15241
15528
  };
15242
15529
 
15243
15530
 
@@ -15245,127 +15532,172 @@ proto.bonus.BonusTranslationItem.prototype.clearLocale = function() {
15245
15532
  * Returns whether this field is set.
15246
15533
  * @return {boolean}
15247
15534
  */
15248
- proto.bonus.BonusTranslationItem.prototype.hasLocale = function() {
15535
+ proto.bonus.BonusTranslationUpsertRequest.prototype.hasFile = function() {
15249
15536
  return jspb.Message.getField(this, 2) != null;
15250
15537
  };
15251
15538
 
15252
15539
 
15253
- /**
15254
- * optional string description = 3;
15255
- * @return {string}
15256
- */
15257
- proto.bonus.BonusTranslationItem.prototype.getDescription = function() {
15258
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15259
- };
15260
-
15261
15540
 
15262
- /**
15263
- * @param {string} value
15264
- * @return {!proto.bonus.BonusTranslationItem} returns this
15265
- */
15266
- proto.bonus.BonusTranslationItem.prototype.setDescription = function(value) {
15267
- return jspb.Message.setField(this, 3, value);
15268
- };
15269
15541
 
15270
15542
 
15543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15271
15544
  /**
15272
- * Clears the field making it undefined.
15273
- * @return {!proto.bonus.BonusTranslationItem} returns this
15545
+ * Creates an object representation of this proto.
15546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15547
+ * Optional fields that are not set will be set to undefined.
15548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15549
+ * For the list of reserved names please see:
15550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15552
+ * JSPB instance for transitional soy proto support:
15553
+ * http://goto/soy-param-migration
15554
+ * @return {!Object}
15274
15555
  */
15275
- proto.bonus.BonusTranslationItem.prototype.clearDescription = function() {
15276
- return jspb.Message.setField(this, 3, undefined);
15556
+ proto.bonus.GetBonusTranslationRequest.prototype.toObject = function(opt_includeInstance) {
15557
+ return proto.bonus.GetBonusTranslationRequest.toObject(opt_includeInstance, this);
15277
15558
  };
15278
15559
 
15279
15560
 
15280
15561
  /**
15281
- * Returns whether this field is set.
15282
- * @return {boolean}
15562
+ * Static version of the {@see toObject} method.
15563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15564
+ * the JSPB instance for transitional soy proto support:
15565
+ * http://goto/soy-param-migration
15566
+ * @param {!proto.bonus.GetBonusTranslationRequest} msg The msg instance to transform.
15567
+ * @return {!Object}
15568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15283
15569
  */
15284
- proto.bonus.BonusTranslationItem.prototype.hasDescription = function() {
15285
- return jspb.Message.getField(this, 3) != null;
15570
+ proto.bonus.GetBonusTranslationRequest.toObject = function(includeInstance, msg) {
15571
+ var f, obj = {
15572
+ bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
15573
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
15574
+ };
15575
+
15576
+ if (includeInstance) {
15577
+ obj.$jspbMessageInstance = msg;
15578
+ }
15579
+ return obj;
15286
15580
  };
15581
+ }
15287
15582
 
15288
15583
 
15289
15584
  /**
15290
- * optional string content = 4;
15291
- * @return {string}
15585
+ * Deserializes binary data (in protobuf wire format).
15586
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15587
+ * @return {!proto.bonus.GetBonusTranslationRequest}
15292
15588
  */
15293
- proto.bonus.BonusTranslationItem.prototype.getContent = function() {
15294
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15589
+ proto.bonus.GetBonusTranslationRequest.deserializeBinary = function(bytes) {
15590
+ var reader = new jspb.BinaryReader(bytes);
15591
+ var msg = new proto.bonus.GetBonusTranslationRequest;
15592
+ return proto.bonus.GetBonusTranslationRequest.deserializeBinaryFromReader(msg, reader);
15295
15593
  };
15296
15594
 
15297
15595
 
15298
15596
  /**
15299
- * @param {string} value
15300
- * @return {!proto.bonus.BonusTranslationItem} returns this
15597
+ * Deserializes binary data (in protobuf wire format) from the
15598
+ * given reader into the given message object.
15599
+ * @param {!proto.bonus.GetBonusTranslationRequest} msg The message object to deserialize into.
15600
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15601
+ * @return {!proto.bonus.GetBonusTranslationRequest}
15301
15602
  */
15302
- proto.bonus.BonusTranslationItem.prototype.setContent = function(value) {
15303
- return jspb.Message.setField(this, 4, value);
15603
+ proto.bonus.GetBonusTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
15604
+ while (reader.nextField()) {
15605
+ if (reader.isEndGroup()) {
15606
+ break;
15607
+ }
15608
+ var field = reader.getFieldNumber();
15609
+ switch (field) {
15610
+ case 1:
15611
+ var value = /** @type {number} */ (reader.readInt32());
15612
+ msg.setBonusId(value);
15613
+ break;
15614
+ case 2:
15615
+ var value = /** @type {string} */ (reader.readString());
15616
+ msg.setLocale(value);
15617
+ break;
15618
+ default:
15619
+ reader.skipField();
15620
+ break;
15621
+ }
15622
+ }
15623
+ return msg;
15304
15624
  };
15305
15625
 
15306
15626
 
15307
15627
  /**
15308
- * Clears the field making it undefined.
15309
- * @return {!proto.bonus.BonusTranslationItem} returns this
15628
+ * Serializes the message to binary data (in protobuf wire format).
15629
+ * @return {!Uint8Array}
15310
15630
  */
15311
- proto.bonus.BonusTranslationItem.prototype.clearContent = function() {
15312
- return jspb.Message.setField(this, 4, undefined);
15631
+ proto.bonus.GetBonusTranslationRequest.prototype.serializeBinary = function() {
15632
+ var writer = new jspb.BinaryWriter();
15633
+ proto.bonus.GetBonusTranslationRequest.serializeBinaryToWriter(this, writer);
15634
+ return writer.getResultBuffer();
15313
15635
  };
15314
15636
 
15315
15637
 
15316
15638
  /**
15317
- * Returns whether this field is set.
15318
- * @return {boolean}
15639
+ * Serializes the given message to binary data (in protobuf wire
15640
+ * format), writing to the given BinaryWriter.
15641
+ * @param {!proto.bonus.GetBonusTranslationRequest} message
15642
+ * @param {!jspb.BinaryWriter} writer
15643
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15319
15644
  */
15320
- proto.bonus.BonusTranslationItem.prototype.hasContent = function() {
15321
- return jspb.Message.getField(this, 4) != null;
15645
+ proto.bonus.GetBonusTranslationRequest.serializeBinaryToWriter = function(message, writer) {
15646
+ var f = undefined;
15647
+ f = message.getBonusId();
15648
+ if (f !== 0) {
15649
+ writer.writeInt32(
15650
+ 1,
15651
+ f
15652
+ );
15653
+ }
15654
+ f = message.getLocale();
15655
+ if (f.length > 0) {
15656
+ writer.writeString(
15657
+ 2,
15658
+ f
15659
+ );
15660
+ }
15322
15661
  };
15323
15662
 
15324
15663
 
15325
15664
  /**
15326
- * optional int32 is_active = 5;
15665
+ * optional int32 bonus_id = 1;
15327
15666
  * @return {number}
15328
15667
  */
15329
- proto.bonus.BonusTranslationItem.prototype.getIsActive = function() {
15330
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
15668
+ proto.bonus.GetBonusTranslationRequest.prototype.getBonusId = function() {
15669
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15331
15670
  };
15332
15671
 
15333
15672
 
15334
15673
  /**
15335
15674
  * @param {number} value
15336
- * @return {!proto.bonus.BonusTranslationItem} returns this
15675
+ * @return {!proto.bonus.GetBonusTranslationRequest} returns this
15337
15676
  */
15338
- proto.bonus.BonusTranslationItem.prototype.setIsActive = function(value) {
15339
- return jspb.Message.setField(this, 5, value);
15677
+ proto.bonus.GetBonusTranslationRequest.prototype.setBonusId = function(value) {
15678
+ return jspb.Message.setProto3IntField(this, 1, value);
15340
15679
  };
15341
15680
 
15342
15681
 
15343
15682
  /**
15344
- * Clears the field making it undefined.
15345
- * @return {!proto.bonus.BonusTranslationItem} returns this
15683
+ * optional string locale = 2;
15684
+ * @return {string}
15346
15685
  */
15347
- proto.bonus.BonusTranslationItem.prototype.clearIsActive = function() {
15348
- return jspb.Message.setField(this, 5, undefined);
15686
+ proto.bonus.GetBonusTranslationRequest.prototype.getLocale = function() {
15687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15349
15688
  };
15350
15689
 
15351
15690
 
15352
15691
  /**
15353
- * Returns whether this field is set.
15354
- * @return {boolean}
15692
+ * @param {string} value
15693
+ * @return {!proto.bonus.GetBonusTranslationRequest} returns this
15355
15694
  */
15356
- proto.bonus.BonusTranslationItem.prototype.hasIsActive = function() {
15357
- return jspb.Message.getField(this, 5) != null;
15695
+ proto.bonus.GetBonusTranslationRequest.prototype.setLocale = function(value) {
15696
+ return jspb.Message.setProto3StringField(this, 2, value);
15358
15697
  };
15359
15698
 
15360
15699
 
15361
15700
 
15362
- /**
15363
- * List of repeated fields within this message type.
15364
- * @private {!Array<number>}
15365
- * @const
15366
- */
15367
- proto.bonus.UserBonusItem.repeatedFields_ = [4,34];
15368
-
15369
15701
 
15370
15702
 
15371
15703
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -15381,8 +15713,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15381
15713
  * http://goto/soy-param-migration
15382
15714
  * @return {!Object}
15383
15715
  */
15384
- proto.bonus.UserBonusItem.prototype.toObject = function(opt_includeInstance) {
15385
- return proto.bonus.UserBonusItem.toObject(opt_includeInstance, this);
15716
+ proto.bonus.BonusTranslationItem.prototype.toObject = function(opt_includeInstance) {
15717
+ return proto.bonus.BonusTranslationItem.toObject(opt_includeInstance, this);
15386
15718
  };
15387
15719
 
15388
15720
 
@@ -15391,47 +15723,23 @@ proto.bonus.UserBonusItem.prototype.toObject = function(opt_includeInstance) {
15391
15723
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15392
15724
  * the JSPB instance for transitional soy proto support:
15393
15725
  * http://goto/soy-param-migration
15394
- * @param {!proto.bonus.UserBonusItem} msg The msg instance to transform.
15726
+ * @param {!proto.bonus.BonusTranslationItem} msg The msg instance to transform.
15395
15727
  * @return {!Object}
15396
15728
  * @suppress {unusedLocalVariables} f is only used for nested messages
15397
15729
  */
15398
- proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
15730
+ proto.bonus.BonusTranslationItem.toObject = function(includeInstance, msg) {
15399
15731
  var f, obj = {
15400
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
15401
- userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
15402
- bonus: (f = msg.getBonus()) && proto.bonus.BonusItem.toObject(includeInstance, f),
15403
- freeSpinList: jspb.Message.toObjectList(msg.getFreeSpinList(),
15404
- proto.bonus.FreeSpinItem.toObject, includeInstance),
15405
- depositId: jspb.Message.getFieldWithDefault(msg, 5, 0),
15406
- realBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
15407
- bonusBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
15408
- coinsReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
15409
- loyaltyReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
15410
- rankingReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
15411
- totalWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
15412
- currentWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
15413
- status: jspb.Message.getFieldWithDefault(msg, 13, ""),
15414
- expiredAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
15415
- claimedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
15416
- activatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
15417
- completedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
15418
- canceledAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
15419
- claimingEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 19, 0),
15420
- activationEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20, 0),
15421
- wageringEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 21, 0),
15422
- hasFreeSpins: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
15423
- statusFreeSpins: jspb.Message.getFieldWithDefault(msg, 23, ""),
15424
- rewardFreeSpins: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0),
15425
- cancellationAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
15426
- hasFreeBet: jspb.Message.getBooleanFieldWithDefault(msg, 26, false),
15427
- statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
15428
- rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
15429
- closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
15430
- historyType: jspb.Message.getFieldWithDefault(msg, 30, ""),
15431
- canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false),
15432
- userPromocodeId: jspb.Message.getFieldWithDefault(msg, 32, 0),
15433
- promoCode: jspb.Message.getFieldWithDefault(msg, 33, ""),
15434
- availableActionsList: (f = jspb.Message.getRepeatedField(msg, 34)) == null ? undefined : f
15732
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
15733
+ locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
15734
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
15735
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
15736
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
15737
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
15738
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
15739
+ mobileImage: jspb.Message.getFieldWithDefault(msg, 8, ""),
15740
+ mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 9, ""),
15741
+ portraitImage: jspb.Message.getFieldWithDefault(msg, 10, ""),
15742
+ portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 11, "")
15435
15743
  };
15436
15744
 
15437
15745
  if (includeInstance) {
@@ -15445,23 +15753,23 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
15445
15753
  /**
15446
15754
  * Deserializes binary data (in protobuf wire format).
15447
15755
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
15448
- * @return {!proto.bonus.UserBonusItem}
15756
+ * @return {!proto.bonus.BonusTranslationItem}
15449
15757
  */
15450
- proto.bonus.UserBonusItem.deserializeBinary = function(bytes) {
15758
+ proto.bonus.BonusTranslationItem.deserializeBinary = function(bytes) {
15451
15759
  var reader = new jspb.BinaryReader(bytes);
15452
- var msg = new proto.bonus.UserBonusItem;
15453
- return proto.bonus.UserBonusItem.deserializeBinaryFromReader(msg, reader);
15760
+ var msg = new proto.bonus.BonusTranslationItem;
15761
+ return proto.bonus.BonusTranslationItem.deserializeBinaryFromReader(msg, reader);
15454
15762
  };
15455
15763
 
15456
15764
 
15457
15765
  /**
15458
15766
  * Deserializes binary data (in protobuf wire format) from the
15459
15767
  * given reader into the given message object.
15460
- * @param {!proto.bonus.UserBonusItem} msg The message object to deserialize into.
15768
+ * @param {!proto.bonus.BonusTranslationItem} msg The message object to deserialize into.
15461
15769
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15462
- * @return {!proto.bonus.UserBonusItem}
15770
+ * @return {!proto.bonus.BonusTranslationItem}
15463
15771
  */
15464
- proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
15772
+ proto.bonus.BonusTranslationItem.deserializeBinaryFromReader = function(msg, reader) {
15465
15773
  while (reader.nextField()) {
15466
15774
  if (reader.isEndGroup()) {
15467
15775
  break;
@@ -15469,142 +15777,48 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
15469
15777
  var field = reader.getFieldNumber();
15470
15778
  switch (field) {
15471
15779
  case 1:
15472
- var value = /** @type {number} */ (reader.readInt32());
15473
- msg.setId(value);
15780
+ var value = /** @type {string} */ (reader.readString());
15781
+ msg.setTitle(value);
15474
15782
  break;
15475
15783
  case 2:
15476
- var value = /** @type {number} */ (reader.readInt32());
15477
- msg.setUserId(value);
15784
+ var value = /** @type {string} */ (reader.readString());
15785
+ msg.setLocale(value);
15478
15786
  break;
15479
15787
  case 3:
15480
- var value = new proto.bonus.BonusItem;
15481
- reader.readMessage(value,proto.bonus.BonusItem.deserializeBinaryFromReader);
15482
- msg.setBonus(value);
15788
+ var value = /** @type {string} */ (reader.readString());
15789
+ msg.setDescription(value);
15483
15790
  break;
15484
15791
  case 4:
15485
- var value = new proto.bonus.FreeSpinItem;
15486
- reader.readMessage(value,proto.bonus.FreeSpinItem.deserializeBinaryFromReader);
15487
- msg.addFreeSpin(value);
15792
+ var value = /** @type {string} */ (reader.readString());
15793
+ msg.setContent(value);
15488
15794
  break;
15489
15795
  case 5:
15490
15796
  var value = /** @type {number} */ (reader.readInt32());
15491
- msg.setDepositId(value);
15797
+ msg.setIsActive(value);
15492
15798
  break;
15493
15799
  case 6:
15494
- var value = /** @type {number} */ (reader.readFloat());
15495
- msg.setRealBalanceReward(value);
15496
- break;
15497
- case 7:
15498
- var value = /** @type {number} */ (reader.readFloat());
15499
- msg.setBonusBalanceReward(value);
15500
- break;
15501
- case 8:
15502
- var value = /** @type {number} */ (reader.readFloat());
15503
- msg.setCoinsReward(value);
15504
- break;
15505
- case 9:
15506
- var value = /** @type {number} */ (reader.readFloat());
15507
- msg.setLoyaltyReward(value);
15508
- break;
15509
- case 10:
15510
- var value = /** @type {number} */ (reader.readFloat());
15511
- msg.setRankingReward(value);
15512
- break;
15513
- case 11:
15514
- var value = /** @type {number} */ (reader.readFloat());
15515
- msg.setTotalWagerAmount(value);
15516
- break;
15517
- case 12:
15518
- var value = /** @type {number} */ (reader.readFloat());
15519
- msg.setCurrentWagerAmount(value);
15520
- break;
15521
- case 13:
15522
- var value = /** @type {string} */ (reader.readString());
15523
- msg.setStatus(value);
15524
- break;
15525
- case 14:
15526
- var value = /** @type {string} */ (reader.readString());
15527
- msg.setExpiredAt(value);
15528
- break;
15529
- case 15:
15530
- var value = /** @type {string} */ (reader.readString());
15531
- msg.setClaimedAt(value);
15532
- break;
15533
- case 16:
15534
- var value = /** @type {string} */ (reader.readString());
15535
- msg.setActivatedAt(value);
15536
- break;
15537
- case 17:
15538
- var value = /** @type {string} */ (reader.readString());
15539
- msg.setCompletedAt(value);
15540
- break;
15541
- case 18:
15542
- var value = /** @type {string} */ (reader.readString());
15543
- msg.setCanceledAt(value);
15544
- break;
15545
- case 19:
15546
- var value = /** @type {number} */ (reader.readInt64());
15547
- msg.setClaimingEndInMilliseconds(value);
15548
- break;
15549
- case 20:
15550
- var value = /** @type {number} */ (reader.readInt64());
15551
- msg.setActivationEndInMilliseconds(value);
15552
- break;
15553
- case 21:
15554
- var value = /** @type {number} */ (reader.readInt64());
15555
- msg.setWageringEndInMilliseconds(value);
15556
- break;
15557
- case 22:
15558
- var value = /** @type {boolean} */ (reader.readBool());
15559
- msg.setHasFreeSpins(value);
15560
- break;
15561
- case 23:
15562
15800
  var value = /** @type {string} */ (reader.readString());
15563
- msg.setStatusFreeSpins(value);
15564
- break;
15565
- case 24:
15566
- var value = /** @type {number} */ (reader.readFloat());
15567
- msg.setRewardFreeSpins(value);
15568
- break;
15569
- case 25:
15570
- var value = /** @type {number} */ (reader.readFloat());
15571
- msg.setCancellationAmount(value);
15572
- break;
15573
- case 26:
15574
- var value = /** @type {boolean} */ (reader.readBool());
15575
- msg.setHasFreeBet(value);
15801
+ msg.setImage(value);
15576
15802
  break;
15577
- case 27:
15803
+ case 7:
15578
15804
  var value = /** @type {string} */ (reader.readString());
15579
- msg.setStatusFreeBet(value);
15580
- break;
15581
- case 28:
15582
- var value = /** @type {number} */ (reader.readFloat());
15583
- msg.setRewardFreeBet(value);
15805
+ msg.setImageCdn(value);
15584
15806
  break;
15585
- case 29:
15807
+ case 8:
15586
15808
  var value = /** @type {string} */ (reader.readString());
15587
- msg.setClosedAt(value);
15809
+ msg.setMobileImage(value);
15588
15810
  break;
15589
- case 30:
15811
+ case 9:
15590
15812
  var value = /** @type {string} */ (reader.readString());
15591
- msg.setHistoryType(value);
15592
- break;
15593
- case 31:
15594
- var value = /** @type {boolean} */ (reader.readBool());
15595
- msg.setCanActivate(value);
15596
- break;
15597
- case 32:
15598
- var value = /** @type {number} */ (reader.readInt32());
15599
- msg.setUserPromocodeId(value);
15813
+ msg.setMobileImageCdn(value);
15600
15814
  break;
15601
- case 33:
15815
+ case 10:
15602
15816
  var value = /** @type {string} */ (reader.readString());
15603
- msg.setPromoCode(value);
15817
+ msg.setPortraitImage(value);
15604
15818
  break;
15605
- case 34:
15819
+ case 11:
15606
15820
  var value = /** @type {string} */ (reader.readString());
15607
- msg.addAvailableActions(value);
15821
+ msg.setPortraitImageCdn(value);
15608
15822
  break;
15609
15823
  default:
15610
15824
  reader.skipField();
@@ -15619,9 +15833,9 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
15619
15833
  * Serializes the message to binary data (in protobuf wire format).
15620
15834
  * @return {!Uint8Array}
15621
15835
  */
15622
- proto.bonus.UserBonusItem.prototype.serializeBinary = function() {
15836
+ proto.bonus.BonusTranslationItem.prototype.serializeBinary = function() {
15623
15837
  var writer = new jspb.BinaryWriter();
15624
- proto.bonus.UserBonusItem.serializeBinaryToWriter(this, writer);
15838
+ proto.bonus.BonusTranslationItem.serializeBinaryToWriter(this, writer);
15625
15839
  return writer.getResultBuffer();
15626
15840
  };
15627
15841
 
@@ -15629,40 +15843,38 @@ proto.bonus.UserBonusItem.prototype.serializeBinary = function() {
15629
15843
  /**
15630
15844
  * Serializes the given message to binary data (in protobuf wire
15631
15845
  * format), writing to the given BinaryWriter.
15632
- * @param {!proto.bonus.UserBonusItem} message
15846
+ * @param {!proto.bonus.BonusTranslationItem} message
15633
15847
  * @param {!jspb.BinaryWriter} writer
15634
15848
  * @suppress {unusedLocalVariables} f is only used for nested messages
15635
15849
  */
15636
- proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
15850
+ proto.bonus.BonusTranslationItem.serializeBinaryToWriter = function(message, writer) {
15637
15851
  var f = undefined;
15638
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
15852
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
15639
15853
  if (f != null) {
15640
- writer.writeInt32(
15854
+ writer.writeString(
15641
15855
  1,
15642
15856
  f
15643
15857
  );
15644
15858
  }
15645
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
15859
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
15646
15860
  if (f != null) {
15647
- writer.writeInt32(
15861
+ writer.writeString(
15648
15862
  2,
15649
15863
  f
15650
15864
  );
15651
15865
  }
15652
- f = message.getBonus();
15866
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
15653
15867
  if (f != null) {
15654
- writer.writeMessage(
15868
+ writer.writeString(
15655
15869
  3,
15656
- f,
15657
- proto.bonus.BonusItem.serializeBinaryToWriter
15870
+ f
15658
15871
  );
15659
15872
  }
15660
- f = message.getFreeSpinList();
15661
- if (f.length > 0) {
15662
- writer.writeRepeatedMessage(
15873
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
15874
+ if (f != null) {
15875
+ writer.writeString(
15663
15876
  4,
15664
- f,
15665
- proto.bonus.FreeSpinItem.serializeBinaryToWriter
15877
+ f
15666
15878
  );
15667
15879
  }
15668
15880
  f = /** @type {number} */ (jspb.Message.getField(message, 5));
@@ -15672,206 +15884,45 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
15672
15884
  f
15673
15885
  );
15674
15886
  }
15675
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
15887
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
15676
15888
  if (f != null) {
15677
- writer.writeFloat(
15889
+ writer.writeString(
15678
15890
  6,
15679
15891
  f
15680
15892
  );
15681
15893
  }
15682
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
15894
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
15683
15895
  if (f != null) {
15684
- writer.writeFloat(
15896
+ writer.writeString(
15685
15897
  7,
15686
15898
  f
15687
15899
  );
15688
15900
  }
15689
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
15690
- if (f != null) {
15691
- writer.writeFloat(
15692
- 8,
15693
- f
15694
- );
15695
- }
15696
- f = /** @type {number} */ (jspb.Message.getField(message, 9));
15697
- if (f != null) {
15698
- writer.writeFloat(
15699
- 9,
15700
- f
15701
- );
15702
- }
15703
- f = /** @type {number} */ (jspb.Message.getField(message, 10));
15704
- if (f != null) {
15705
- writer.writeFloat(
15706
- 10,
15707
- f
15708
- );
15709
- }
15710
- f = /** @type {number} */ (jspb.Message.getField(message, 11));
15711
- if (f != null) {
15712
- writer.writeFloat(
15713
- 11,
15714
- f
15715
- );
15716
- }
15717
- f = /** @type {number} */ (jspb.Message.getField(message, 12));
15718
- if (f != null) {
15719
- writer.writeFloat(
15720
- 12,
15721
- f
15722
- );
15723
- }
15724
- f = /** @type {string} */ (jspb.Message.getField(message, 13));
15901
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
15725
15902
  if (f != null) {
15726
15903
  writer.writeString(
15727
- 13,
15904
+ 8,
15728
15905
  f
15729
15906
  );
15730
15907
  }
15731
- f = /** @type {string} */ (jspb.Message.getField(message, 14));
15908
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
15732
15909
  if (f != null) {
15733
15910
  writer.writeString(
15734
- 14,
15911
+ 9,
15735
15912
  f
15736
15913
  );
15737
15914
  }
15738
- f = /** @type {string} */ (jspb.Message.getField(message, 15));
15915
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
15739
15916
  if (f != null) {
15740
15917
  writer.writeString(
15741
- 15,
15918
+ 10,
15742
15919
  f
15743
15920
  );
15744
15921
  }
15745
- f = /** @type {string} */ (jspb.Message.getField(message, 16));
15922
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
15746
15923
  if (f != null) {
15747
15924
  writer.writeString(
15748
- 16,
15749
- f
15750
- );
15751
- }
15752
- f = /** @type {string} */ (jspb.Message.getField(message, 17));
15753
- if (f != null) {
15754
- writer.writeString(
15755
- 17,
15756
- f
15757
- );
15758
- }
15759
- f = /** @type {string} */ (jspb.Message.getField(message, 18));
15760
- if (f != null) {
15761
- writer.writeString(
15762
- 18,
15763
- f
15764
- );
15765
- }
15766
- f = /** @type {number} */ (jspb.Message.getField(message, 19));
15767
- if (f != null) {
15768
- writer.writeInt64(
15769
- 19,
15770
- f
15771
- );
15772
- }
15773
- f = /** @type {number} */ (jspb.Message.getField(message, 20));
15774
- if (f != null) {
15775
- writer.writeInt64(
15776
- 20,
15777
- f
15778
- );
15779
- }
15780
- f = /** @type {number} */ (jspb.Message.getField(message, 21));
15781
- if (f != null) {
15782
- writer.writeInt64(
15783
- 21,
15784
- f
15785
- );
15786
- }
15787
- f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
15788
- if (f != null) {
15789
- writer.writeBool(
15790
- 22,
15791
- f
15792
- );
15793
- }
15794
- f = /** @type {string} */ (jspb.Message.getField(message, 23));
15795
- if (f != null) {
15796
- writer.writeString(
15797
- 23,
15798
- f
15799
- );
15800
- }
15801
- f = /** @type {number} */ (jspb.Message.getField(message, 24));
15802
- if (f != null) {
15803
- writer.writeFloat(
15804
- 24,
15805
- f
15806
- );
15807
- }
15808
- f = /** @type {number} */ (jspb.Message.getField(message, 25));
15809
- if (f != null) {
15810
- writer.writeFloat(
15811
- 25,
15812
- f
15813
- );
15814
- }
15815
- f = /** @type {boolean} */ (jspb.Message.getField(message, 26));
15816
- if (f != null) {
15817
- writer.writeBool(
15818
- 26,
15819
- f
15820
- );
15821
- }
15822
- f = /** @type {string} */ (jspb.Message.getField(message, 27));
15823
- if (f != null) {
15824
- writer.writeString(
15825
- 27,
15826
- f
15827
- );
15828
- }
15829
- f = /** @type {number} */ (jspb.Message.getField(message, 28));
15830
- if (f != null) {
15831
- writer.writeFloat(
15832
- 28,
15833
- f
15834
- );
15835
- }
15836
- f = /** @type {string} */ (jspb.Message.getField(message, 29));
15837
- if (f != null) {
15838
- writer.writeString(
15839
- 29,
15840
- f
15841
- );
15842
- }
15843
- f = /** @type {string} */ (jspb.Message.getField(message, 30));
15844
- if (f != null) {
15845
- writer.writeString(
15846
- 30,
15847
- f
15848
- );
15849
- }
15850
- f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
15851
- if (f != null) {
15852
- writer.writeBool(
15853
- 31,
15854
- f
15855
- );
15856
- }
15857
- f = /** @type {number} */ (jspb.Message.getField(message, 32));
15858
- if (f != null) {
15859
- writer.writeInt32(
15860
- 32,
15861
- f
15862
- );
15863
- }
15864
- f = /** @type {string} */ (jspb.Message.getField(message, 33));
15865
- if (f != null) {
15866
- writer.writeString(
15867
- 33,
15868
- f
15869
- );
15870
- }
15871
- f = message.getAvailableActionsList();
15872
- if (f.length > 0) {
15873
- writer.writeRepeatedString(
15874
- 34,
15925
+ 11,
15875
15926
  f
15876
15927
  );
15877
15928
  }
@@ -15879,28 +15930,28 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
15879
15930
 
15880
15931
 
15881
15932
  /**
15882
- * optional int32 id = 1;
15883
- * @return {number}
15933
+ * optional string title = 1;
15934
+ * @return {string}
15884
15935
  */
15885
- proto.bonus.UserBonusItem.prototype.getId = function() {
15886
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15936
+ proto.bonus.BonusTranslationItem.prototype.getTitle = function() {
15937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15887
15938
  };
15888
15939
 
15889
15940
 
15890
15941
  /**
15891
- * @param {number} value
15892
- * @return {!proto.bonus.UserBonusItem} returns this
15942
+ * @param {string} value
15943
+ * @return {!proto.bonus.BonusTranslationItem} returns this
15893
15944
  */
15894
- proto.bonus.UserBonusItem.prototype.setId = function(value) {
15945
+ proto.bonus.BonusTranslationItem.prototype.setTitle = function(value) {
15895
15946
  return jspb.Message.setField(this, 1, value);
15896
15947
  };
15897
15948
 
15898
15949
 
15899
15950
  /**
15900
15951
  * Clears the field making it undefined.
15901
- * @return {!proto.bonus.UserBonusItem} returns this
15952
+ * @return {!proto.bonus.BonusTranslationItem} returns this
15902
15953
  */
15903
- proto.bonus.UserBonusItem.prototype.clearId = function() {
15954
+ proto.bonus.BonusTranslationItem.prototype.clearTitle = function() {
15904
15955
  return jspb.Message.setField(this, 1, undefined);
15905
15956
  };
15906
15957
 
@@ -15909,34 +15960,34 @@ proto.bonus.UserBonusItem.prototype.clearId = function() {
15909
15960
  * Returns whether this field is set.
15910
15961
  * @return {boolean}
15911
15962
  */
15912
- proto.bonus.UserBonusItem.prototype.hasId = function() {
15963
+ proto.bonus.BonusTranslationItem.prototype.hasTitle = function() {
15913
15964
  return jspb.Message.getField(this, 1) != null;
15914
15965
  };
15915
15966
 
15916
15967
 
15917
15968
  /**
15918
- * optional int32 user_id = 2;
15919
- * @return {number}
15969
+ * optional string locale = 2;
15970
+ * @return {string}
15920
15971
  */
15921
- proto.bonus.UserBonusItem.prototype.getUserId = function() {
15922
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15972
+ proto.bonus.BonusTranslationItem.prototype.getLocale = function() {
15973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15923
15974
  };
15924
15975
 
15925
15976
 
15926
15977
  /**
15927
- * @param {number} value
15928
- * @return {!proto.bonus.UserBonusItem} returns this
15978
+ * @param {string} value
15979
+ * @return {!proto.bonus.BonusTranslationItem} returns this
15929
15980
  */
15930
- proto.bonus.UserBonusItem.prototype.setUserId = function(value) {
15981
+ proto.bonus.BonusTranslationItem.prototype.setLocale = function(value) {
15931
15982
  return jspb.Message.setField(this, 2, value);
15932
15983
  };
15933
15984
 
15934
15985
 
15935
15986
  /**
15936
15987
  * Clears the field making it undefined.
15937
- * @return {!proto.bonus.UserBonusItem} returns this
15988
+ * @return {!proto.bonus.BonusTranslationItem} returns this
15938
15989
  */
15939
- proto.bonus.UserBonusItem.prototype.clearUserId = function() {
15990
+ proto.bonus.BonusTranslationItem.prototype.clearLocale = function() {
15940
15991
  return jspb.Message.setField(this, 2, undefined);
15941
15992
  };
15942
15993
 
@@ -15945,36 +15996,35 @@ proto.bonus.UserBonusItem.prototype.clearUserId = function() {
15945
15996
  * Returns whether this field is set.
15946
15997
  * @return {boolean}
15947
15998
  */
15948
- proto.bonus.UserBonusItem.prototype.hasUserId = function() {
15999
+ proto.bonus.BonusTranslationItem.prototype.hasLocale = function() {
15949
16000
  return jspb.Message.getField(this, 2) != null;
15950
16001
  };
15951
16002
 
15952
16003
 
15953
16004
  /**
15954
- * optional BonusItem bonus = 3;
15955
- * @return {?proto.bonus.BonusItem}
16005
+ * optional string description = 3;
16006
+ * @return {string}
15956
16007
  */
15957
- proto.bonus.UserBonusItem.prototype.getBonus = function() {
15958
- return /** @type{?proto.bonus.BonusItem} */ (
15959
- jspb.Message.getWrapperField(this, proto.bonus.BonusItem, 3));
16008
+ proto.bonus.BonusTranslationItem.prototype.getDescription = function() {
16009
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15960
16010
  };
15961
16011
 
15962
16012
 
15963
16013
  /**
15964
- * @param {?proto.bonus.BonusItem|undefined} value
15965
- * @return {!proto.bonus.UserBonusItem} returns this
15966
- */
15967
- proto.bonus.UserBonusItem.prototype.setBonus = function(value) {
15968
- return jspb.Message.setWrapperField(this, 3, value);
16014
+ * @param {string} value
16015
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16016
+ */
16017
+ proto.bonus.BonusTranslationItem.prototype.setDescription = function(value) {
16018
+ return jspb.Message.setField(this, 3, value);
15969
16019
  };
15970
16020
 
15971
16021
 
15972
16022
  /**
15973
- * Clears the message field making it undefined.
15974
- * @return {!proto.bonus.UserBonusItem} returns this
16023
+ * Clears the field making it undefined.
16024
+ * @return {!proto.bonus.BonusTranslationItem} returns this
15975
16025
  */
15976
- proto.bonus.UserBonusItem.prototype.clearBonus = function() {
15977
- return this.setBonus(undefined);
16026
+ proto.bonus.BonusTranslationItem.prototype.clearDescription = function() {
16027
+ return jspb.Message.setField(this, 3, undefined);
15978
16028
  };
15979
16029
 
15980
16030
 
@@ -15982,72 +16032,70 @@ proto.bonus.UserBonusItem.prototype.clearBonus = function() {
15982
16032
  * Returns whether this field is set.
15983
16033
  * @return {boolean}
15984
16034
  */
15985
- proto.bonus.UserBonusItem.prototype.hasBonus = function() {
16035
+ proto.bonus.BonusTranslationItem.prototype.hasDescription = function() {
15986
16036
  return jspb.Message.getField(this, 3) != null;
15987
16037
  };
15988
16038
 
15989
16039
 
15990
16040
  /**
15991
- * repeated FreeSpinItem free_spin = 4;
15992
- * @return {!Array<!proto.bonus.FreeSpinItem>}
16041
+ * optional string content = 4;
16042
+ * @return {string}
15993
16043
  */
15994
- proto.bonus.UserBonusItem.prototype.getFreeSpinList = function() {
15995
- return /** @type{!Array<!proto.bonus.FreeSpinItem>} */ (
15996
- jspb.Message.getRepeatedWrapperField(this, proto.bonus.FreeSpinItem, 4));
16044
+ proto.bonus.BonusTranslationItem.prototype.getContent = function() {
16045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15997
16046
  };
15998
16047
 
15999
16048
 
16000
16049
  /**
16001
- * @param {!Array<!proto.bonus.FreeSpinItem>} value
16002
- * @return {!proto.bonus.UserBonusItem} returns this
16003
- */
16004
- proto.bonus.UserBonusItem.prototype.setFreeSpinList = function(value) {
16005
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
16050
+ * @param {string} value
16051
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16052
+ */
16053
+ proto.bonus.BonusTranslationItem.prototype.setContent = function(value) {
16054
+ return jspb.Message.setField(this, 4, value);
16006
16055
  };
16007
16056
 
16008
16057
 
16009
16058
  /**
16010
- * @param {!proto.bonus.FreeSpinItem=} opt_value
16011
- * @param {number=} opt_index
16012
- * @return {!proto.bonus.FreeSpinItem}
16059
+ * Clears the field making it undefined.
16060
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16013
16061
  */
16014
- proto.bonus.UserBonusItem.prototype.addFreeSpin = function(opt_value, opt_index) {
16015
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bonus.FreeSpinItem, opt_index);
16062
+ proto.bonus.BonusTranslationItem.prototype.clearContent = function() {
16063
+ return jspb.Message.setField(this, 4, undefined);
16016
16064
  };
16017
16065
 
16018
16066
 
16019
16067
  /**
16020
- * Clears the list making it empty but non-null.
16021
- * @return {!proto.bonus.UserBonusItem} returns this
16068
+ * Returns whether this field is set.
16069
+ * @return {boolean}
16022
16070
  */
16023
- proto.bonus.UserBonusItem.prototype.clearFreeSpinList = function() {
16024
- return this.setFreeSpinList([]);
16071
+ proto.bonus.BonusTranslationItem.prototype.hasContent = function() {
16072
+ return jspb.Message.getField(this, 4) != null;
16025
16073
  };
16026
16074
 
16027
16075
 
16028
16076
  /**
16029
- * optional int32 deposit_id = 5;
16077
+ * optional int32 is_active = 5;
16030
16078
  * @return {number}
16031
16079
  */
16032
- proto.bonus.UserBonusItem.prototype.getDepositId = function() {
16080
+ proto.bonus.BonusTranslationItem.prototype.getIsActive = function() {
16033
16081
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
16034
16082
  };
16035
16083
 
16036
16084
 
16037
16085
  /**
16038
16086
  * @param {number} value
16039
- * @return {!proto.bonus.UserBonusItem} returns this
16087
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16040
16088
  */
16041
- proto.bonus.UserBonusItem.prototype.setDepositId = function(value) {
16089
+ proto.bonus.BonusTranslationItem.prototype.setIsActive = function(value) {
16042
16090
  return jspb.Message.setField(this, 5, value);
16043
16091
  };
16044
16092
 
16045
16093
 
16046
16094
  /**
16047
16095
  * Clears the field making it undefined.
16048
- * @return {!proto.bonus.UserBonusItem} returns this
16096
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16049
16097
  */
16050
- proto.bonus.UserBonusItem.prototype.clearDepositId = function() {
16098
+ proto.bonus.BonusTranslationItem.prototype.clearIsActive = function() {
16051
16099
  return jspb.Message.setField(this, 5, undefined);
16052
16100
  };
16053
16101
 
@@ -16056,34 +16104,34 @@ proto.bonus.UserBonusItem.prototype.clearDepositId = function() {
16056
16104
  * Returns whether this field is set.
16057
16105
  * @return {boolean}
16058
16106
  */
16059
- proto.bonus.UserBonusItem.prototype.hasDepositId = function() {
16107
+ proto.bonus.BonusTranslationItem.prototype.hasIsActive = function() {
16060
16108
  return jspb.Message.getField(this, 5) != null;
16061
16109
  };
16062
16110
 
16063
16111
 
16064
16112
  /**
16065
- * optional float real_balance_reward = 6;
16066
- * @return {number}
16113
+ * optional string image = 6;
16114
+ * @return {string}
16067
16115
  */
16068
- proto.bonus.UserBonusItem.prototype.getRealBalanceReward = function() {
16069
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
16116
+ proto.bonus.BonusTranslationItem.prototype.getImage = function() {
16117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
16070
16118
  };
16071
16119
 
16072
16120
 
16073
16121
  /**
16074
- * @param {number} value
16075
- * @return {!proto.bonus.UserBonusItem} returns this
16122
+ * @param {string} value
16123
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16076
16124
  */
16077
- proto.bonus.UserBonusItem.prototype.setRealBalanceReward = function(value) {
16125
+ proto.bonus.BonusTranslationItem.prototype.setImage = function(value) {
16078
16126
  return jspb.Message.setField(this, 6, value);
16079
16127
  };
16080
16128
 
16081
16129
 
16082
16130
  /**
16083
16131
  * Clears the field making it undefined.
16084
- * @return {!proto.bonus.UserBonusItem} returns this
16132
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16085
16133
  */
16086
- proto.bonus.UserBonusItem.prototype.clearRealBalanceReward = function() {
16134
+ proto.bonus.BonusTranslationItem.prototype.clearImage = function() {
16087
16135
  return jspb.Message.setField(this, 6, undefined);
16088
16136
  };
16089
16137
 
@@ -16092,34 +16140,34 @@ proto.bonus.UserBonusItem.prototype.clearRealBalanceReward = function() {
16092
16140
  * Returns whether this field is set.
16093
16141
  * @return {boolean}
16094
16142
  */
16095
- proto.bonus.UserBonusItem.prototype.hasRealBalanceReward = function() {
16143
+ proto.bonus.BonusTranslationItem.prototype.hasImage = function() {
16096
16144
  return jspb.Message.getField(this, 6) != null;
16097
16145
  };
16098
16146
 
16099
16147
 
16100
16148
  /**
16101
- * optional float bonus_balance_reward = 7;
16102
- * @return {number}
16149
+ * optional string image_cdn = 7;
16150
+ * @return {string}
16103
16151
  */
16104
- proto.bonus.UserBonusItem.prototype.getBonusBalanceReward = function() {
16105
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
16152
+ proto.bonus.BonusTranslationItem.prototype.getImageCdn = function() {
16153
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
16106
16154
  };
16107
16155
 
16108
16156
 
16109
16157
  /**
16110
- * @param {number} value
16111
- * @return {!proto.bonus.UserBonusItem} returns this
16158
+ * @param {string} value
16159
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16112
16160
  */
16113
- proto.bonus.UserBonusItem.prototype.setBonusBalanceReward = function(value) {
16161
+ proto.bonus.BonusTranslationItem.prototype.setImageCdn = function(value) {
16114
16162
  return jspb.Message.setField(this, 7, value);
16115
16163
  };
16116
16164
 
16117
16165
 
16118
16166
  /**
16119
16167
  * Clears the field making it undefined.
16120
- * @return {!proto.bonus.UserBonusItem} returns this
16168
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16121
16169
  */
16122
- proto.bonus.UserBonusItem.prototype.clearBonusBalanceReward = function() {
16170
+ proto.bonus.BonusTranslationItem.prototype.clearImageCdn = function() {
16123
16171
  return jspb.Message.setField(this, 7, undefined);
16124
16172
  };
16125
16173
 
@@ -16128,34 +16176,34 @@ proto.bonus.UserBonusItem.prototype.clearBonusBalanceReward = function() {
16128
16176
  * Returns whether this field is set.
16129
16177
  * @return {boolean}
16130
16178
  */
16131
- proto.bonus.UserBonusItem.prototype.hasBonusBalanceReward = function() {
16179
+ proto.bonus.BonusTranslationItem.prototype.hasImageCdn = function() {
16132
16180
  return jspb.Message.getField(this, 7) != null;
16133
16181
  };
16134
16182
 
16135
16183
 
16136
16184
  /**
16137
- * optional float coins_reward = 8;
16138
- * @return {number}
16185
+ * optional string mobile_image = 8;
16186
+ * @return {string}
16139
16187
  */
16140
- proto.bonus.UserBonusItem.prototype.getCoinsReward = function() {
16141
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
16188
+ proto.bonus.BonusTranslationItem.prototype.getMobileImage = function() {
16189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
16142
16190
  };
16143
16191
 
16144
16192
 
16145
16193
  /**
16146
- * @param {number} value
16147
- * @return {!proto.bonus.UserBonusItem} returns this
16194
+ * @param {string} value
16195
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16148
16196
  */
16149
- proto.bonus.UserBonusItem.prototype.setCoinsReward = function(value) {
16197
+ proto.bonus.BonusTranslationItem.prototype.setMobileImage = function(value) {
16150
16198
  return jspb.Message.setField(this, 8, value);
16151
16199
  };
16152
16200
 
16153
16201
 
16154
16202
  /**
16155
16203
  * Clears the field making it undefined.
16156
- * @return {!proto.bonus.UserBonusItem} returns this
16204
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16157
16205
  */
16158
- proto.bonus.UserBonusItem.prototype.clearCoinsReward = function() {
16206
+ proto.bonus.BonusTranslationItem.prototype.clearMobileImage = function() {
16159
16207
  return jspb.Message.setField(this, 8, undefined);
16160
16208
  };
16161
16209
 
@@ -16164,34 +16212,34 @@ proto.bonus.UserBonusItem.prototype.clearCoinsReward = function() {
16164
16212
  * Returns whether this field is set.
16165
16213
  * @return {boolean}
16166
16214
  */
16167
- proto.bonus.UserBonusItem.prototype.hasCoinsReward = function() {
16215
+ proto.bonus.BonusTranslationItem.prototype.hasMobileImage = function() {
16168
16216
  return jspb.Message.getField(this, 8) != null;
16169
16217
  };
16170
16218
 
16171
16219
 
16172
16220
  /**
16173
- * optional float loyalty_reward = 9;
16174
- * @return {number}
16221
+ * optional string mobile_image_cdn = 9;
16222
+ * @return {string}
16175
16223
  */
16176
- proto.bonus.UserBonusItem.prototype.getLoyaltyReward = function() {
16177
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
16224
+ proto.bonus.BonusTranslationItem.prototype.getMobileImageCdn = function() {
16225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
16178
16226
  };
16179
16227
 
16180
16228
 
16181
16229
  /**
16182
- * @param {number} value
16183
- * @return {!proto.bonus.UserBonusItem} returns this
16230
+ * @param {string} value
16231
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16184
16232
  */
16185
- proto.bonus.UserBonusItem.prototype.setLoyaltyReward = function(value) {
16233
+ proto.bonus.BonusTranslationItem.prototype.setMobileImageCdn = function(value) {
16186
16234
  return jspb.Message.setField(this, 9, value);
16187
16235
  };
16188
16236
 
16189
16237
 
16190
16238
  /**
16191
16239
  * Clears the field making it undefined.
16192
- * @return {!proto.bonus.UserBonusItem} returns this
16240
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16193
16241
  */
16194
- proto.bonus.UserBonusItem.prototype.clearLoyaltyReward = function() {
16242
+ proto.bonus.BonusTranslationItem.prototype.clearMobileImageCdn = function() {
16195
16243
  return jspb.Message.setField(this, 9, undefined);
16196
16244
  };
16197
16245
 
@@ -16200,34 +16248,34 @@ proto.bonus.UserBonusItem.prototype.clearLoyaltyReward = function() {
16200
16248
  * Returns whether this field is set.
16201
16249
  * @return {boolean}
16202
16250
  */
16203
- proto.bonus.UserBonusItem.prototype.hasLoyaltyReward = function() {
16251
+ proto.bonus.BonusTranslationItem.prototype.hasMobileImageCdn = function() {
16204
16252
  return jspb.Message.getField(this, 9) != null;
16205
16253
  };
16206
16254
 
16207
16255
 
16208
16256
  /**
16209
- * optional float ranking_reward = 10;
16210
- * @return {number}
16257
+ * optional string portrait_image = 10;
16258
+ * @return {string}
16211
16259
  */
16212
- proto.bonus.UserBonusItem.prototype.getRankingReward = function() {
16213
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
16260
+ proto.bonus.BonusTranslationItem.prototype.getPortraitImage = function() {
16261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
16214
16262
  };
16215
16263
 
16216
16264
 
16217
16265
  /**
16218
- * @param {number} value
16219
- * @return {!proto.bonus.UserBonusItem} returns this
16266
+ * @param {string} value
16267
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16220
16268
  */
16221
- proto.bonus.UserBonusItem.prototype.setRankingReward = function(value) {
16269
+ proto.bonus.BonusTranslationItem.prototype.setPortraitImage = function(value) {
16222
16270
  return jspb.Message.setField(this, 10, value);
16223
16271
  };
16224
16272
 
16225
16273
 
16226
16274
  /**
16227
16275
  * Clears the field making it undefined.
16228
- * @return {!proto.bonus.UserBonusItem} returns this
16276
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16229
16277
  */
16230
- proto.bonus.UserBonusItem.prototype.clearRankingReward = function() {
16278
+ proto.bonus.BonusTranslationItem.prototype.clearPortraitImage = function() {
16231
16279
  return jspb.Message.setField(this, 10, undefined);
16232
16280
  };
16233
16281
 
@@ -16236,34 +16284,34 @@ proto.bonus.UserBonusItem.prototype.clearRankingReward = function() {
16236
16284
  * Returns whether this field is set.
16237
16285
  * @return {boolean}
16238
16286
  */
16239
- proto.bonus.UserBonusItem.prototype.hasRankingReward = function() {
16287
+ proto.bonus.BonusTranslationItem.prototype.hasPortraitImage = function() {
16240
16288
  return jspb.Message.getField(this, 10) != null;
16241
16289
  };
16242
16290
 
16243
16291
 
16244
16292
  /**
16245
- * optional float total_wager_amount = 11;
16246
- * @return {number}
16293
+ * optional string portrait_image_cdn = 11;
16294
+ * @return {string}
16247
16295
  */
16248
- proto.bonus.UserBonusItem.prototype.getTotalWagerAmount = function() {
16249
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
16296
+ proto.bonus.BonusTranslationItem.prototype.getPortraitImageCdn = function() {
16297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
16250
16298
  };
16251
16299
 
16252
16300
 
16253
16301
  /**
16254
- * @param {number} value
16255
- * @return {!proto.bonus.UserBonusItem} returns this
16302
+ * @param {string} value
16303
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16256
16304
  */
16257
- proto.bonus.UserBonusItem.prototype.setTotalWagerAmount = function(value) {
16305
+ proto.bonus.BonusTranslationItem.prototype.setPortraitImageCdn = function(value) {
16258
16306
  return jspb.Message.setField(this, 11, value);
16259
16307
  };
16260
16308
 
16261
16309
 
16262
16310
  /**
16263
16311
  * Clears the field making it undefined.
16264
- * @return {!proto.bonus.UserBonusItem} returns this
16312
+ * @return {!proto.bonus.BonusTranslationItem} returns this
16265
16313
  */
16266
- proto.bonus.UserBonusItem.prototype.clearTotalWagerAmount = function() {
16314
+ proto.bonus.BonusTranslationItem.prototype.clearPortraitImageCdn = function() {
16267
16315
  return jspb.Message.setField(this, 11, undefined);
16268
16316
  };
16269
16317
 
@@ -16272,137 +16320,1056 @@ proto.bonus.UserBonusItem.prototype.clearTotalWagerAmount = function() {
16272
16320
  * Returns whether this field is set.
16273
16321
  * @return {boolean}
16274
16322
  */
16275
- proto.bonus.UserBonusItem.prototype.hasTotalWagerAmount = function() {
16323
+ proto.bonus.BonusTranslationItem.prototype.hasPortraitImageCdn = function() {
16276
16324
  return jspb.Message.getField(this, 11) != null;
16277
16325
  };
16278
16326
 
16279
16327
 
16280
- /**
16281
- * optional float current_wager_amount = 12;
16282
- * @return {number}
16283
- */
16284
- proto.bonus.UserBonusItem.prototype.getCurrentWagerAmount = function() {
16285
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
16286
- };
16287
-
16288
-
16289
- /**
16290
- * @param {number} value
16291
- * @return {!proto.bonus.UserBonusItem} returns this
16292
- */
16293
- proto.bonus.UserBonusItem.prototype.setCurrentWagerAmount = function(value) {
16294
- return jspb.Message.setField(this, 12, value);
16295
- };
16296
-
16297
-
16298
- /**
16299
- * Clears the field making it undefined.
16300
- * @return {!proto.bonus.UserBonusItem} returns this
16301
- */
16302
- proto.bonus.UserBonusItem.prototype.clearCurrentWagerAmount = function() {
16303
- return jspb.Message.setField(this, 12, undefined);
16304
- };
16305
-
16306
-
16307
- /**
16308
- * Returns whether this field is set.
16309
- * @return {boolean}
16310
- */
16311
- proto.bonus.UserBonusItem.prototype.hasCurrentWagerAmount = function() {
16312
- return jspb.Message.getField(this, 12) != null;
16313
- };
16314
-
16315
-
16316
- /**
16317
- * optional string status = 13;
16318
- * @return {string}
16319
- */
16320
- proto.bonus.UserBonusItem.prototype.getStatus = function() {
16321
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
16322
- };
16323
-
16324
-
16325
- /**
16326
- * @param {string} value
16327
- * @return {!proto.bonus.UserBonusItem} returns this
16328
- */
16329
- proto.bonus.UserBonusItem.prototype.setStatus = function(value) {
16330
- return jspb.Message.setField(this, 13, value);
16331
- };
16332
-
16333
-
16334
- /**
16335
- * Clears the field making it undefined.
16336
- * @return {!proto.bonus.UserBonusItem} returns this
16337
- */
16338
- proto.bonus.UserBonusItem.prototype.clearStatus = function() {
16339
- return jspb.Message.setField(this, 13, undefined);
16340
- };
16341
-
16342
16328
 
16343
16329
  /**
16344
- * Returns whether this field is set.
16345
- * @return {boolean}
16330
+ * List of repeated fields within this message type.
16331
+ * @private {!Array<number>}
16332
+ * @const
16346
16333
  */
16347
- proto.bonus.UserBonusItem.prototype.hasStatus = function() {
16348
- return jspb.Message.getField(this, 13) != null;
16349
- };
16350
-
16334
+ proto.bonus.UserBonusItem.repeatedFields_ = [4,34];
16351
16335
 
16352
- /**
16353
- * optional string expired_at = 14;
16354
- * @return {string}
16355
- */
16356
- proto.bonus.UserBonusItem.prototype.getExpiredAt = function() {
16357
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
16358
- };
16359
16336
 
16360
16337
 
16338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16361
16339
  /**
16362
- * @param {string} value
16363
- * @return {!proto.bonus.UserBonusItem} returns this
16340
+ * Creates an object representation of this proto.
16341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16342
+ * Optional fields that are not set will be set to undefined.
16343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16344
+ * For the list of reserved names please see:
16345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16347
+ * JSPB instance for transitional soy proto support:
16348
+ * http://goto/soy-param-migration
16349
+ * @return {!Object}
16364
16350
  */
16365
- proto.bonus.UserBonusItem.prototype.setExpiredAt = function(value) {
16366
- return jspb.Message.setField(this, 14, value);
16351
+ proto.bonus.UserBonusItem.prototype.toObject = function(opt_includeInstance) {
16352
+ return proto.bonus.UserBonusItem.toObject(opt_includeInstance, this);
16367
16353
  };
16368
16354
 
16369
16355
 
16370
16356
  /**
16371
- * Clears the field making it undefined.
16372
- * @return {!proto.bonus.UserBonusItem} returns this
16357
+ * Static version of the {@see toObject} method.
16358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16359
+ * the JSPB instance for transitional soy proto support:
16360
+ * http://goto/soy-param-migration
16361
+ * @param {!proto.bonus.UserBonusItem} msg The msg instance to transform.
16362
+ * @return {!Object}
16363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16373
16364
  */
16374
- proto.bonus.UserBonusItem.prototype.clearExpiredAt = function() {
16375
- return jspb.Message.setField(this, 14, undefined);
16376
- };
16377
-
16365
+ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
16366
+ var f, obj = {
16367
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
16368
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
16369
+ bonus: (f = msg.getBonus()) && proto.bonus.BonusItem.toObject(includeInstance, f),
16370
+ freeSpinList: jspb.Message.toObjectList(msg.getFreeSpinList(),
16371
+ proto.bonus.FreeSpinItem.toObject, includeInstance),
16372
+ depositId: jspb.Message.getFieldWithDefault(msg, 5, 0),
16373
+ realBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
16374
+ bonusBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
16375
+ coinsReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
16376
+ loyaltyReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
16377
+ rankingReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
16378
+ totalWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
16379
+ currentWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
16380
+ status: jspb.Message.getFieldWithDefault(msg, 13, ""),
16381
+ expiredAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
16382
+ claimedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
16383
+ activatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
16384
+ completedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
16385
+ canceledAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
16386
+ claimingEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 19, 0),
16387
+ activationEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20, 0),
16388
+ wageringEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 21, 0),
16389
+ hasFreeSpins: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
16390
+ statusFreeSpins: jspb.Message.getFieldWithDefault(msg, 23, ""),
16391
+ rewardFreeSpins: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0),
16392
+ cancellationAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
16393
+ hasFreeBet: jspb.Message.getBooleanFieldWithDefault(msg, 26, false),
16394
+ statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
16395
+ rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
16396
+ closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
16397
+ historyType: jspb.Message.getFieldWithDefault(msg, 30, ""),
16398
+ canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false),
16399
+ userPromocodeId: jspb.Message.getFieldWithDefault(msg, 32, 0),
16400
+ promoCode: jspb.Message.getFieldWithDefault(msg, 33, ""),
16401
+ availableActionsList: (f = jspb.Message.getRepeatedField(msg, 34)) == null ? undefined : f
16402
+ };
16378
16403
 
16379
- /**
16380
- * Returns whether this field is set.
16381
- * @return {boolean}
16382
- */
16383
- proto.bonus.UserBonusItem.prototype.hasExpiredAt = function() {
16384
- return jspb.Message.getField(this, 14) != null;
16404
+ if (includeInstance) {
16405
+ obj.$jspbMessageInstance = msg;
16406
+ }
16407
+ return obj;
16385
16408
  };
16409
+ }
16386
16410
 
16387
16411
 
16388
16412
  /**
16389
- * optional string claimed_at = 15;
16390
- * @return {string}
16413
+ * Deserializes binary data (in protobuf wire format).
16414
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16415
+ * @return {!proto.bonus.UserBonusItem}
16391
16416
  */
16392
- proto.bonus.UserBonusItem.prototype.getClaimedAt = function() {
16393
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
16417
+ proto.bonus.UserBonusItem.deserializeBinary = function(bytes) {
16418
+ var reader = new jspb.BinaryReader(bytes);
16419
+ var msg = new proto.bonus.UserBonusItem;
16420
+ return proto.bonus.UserBonusItem.deserializeBinaryFromReader(msg, reader);
16394
16421
  };
16395
16422
 
16396
16423
 
16397
16424
  /**
16398
- * @param {string} value
16399
- * @return {!proto.bonus.UserBonusItem} returns this
16425
+ * Deserializes binary data (in protobuf wire format) from the
16426
+ * given reader into the given message object.
16427
+ * @param {!proto.bonus.UserBonusItem} msg The message object to deserialize into.
16428
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16429
+ * @return {!proto.bonus.UserBonusItem}
16400
16430
  */
16401
- proto.bonus.UserBonusItem.prototype.setClaimedAt = function(value) {
16402
- return jspb.Message.setField(this, 15, value);
16403
- };
16404
-
16405
-
16431
+ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
16432
+ while (reader.nextField()) {
16433
+ if (reader.isEndGroup()) {
16434
+ break;
16435
+ }
16436
+ var field = reader.getFieldNumber();
16437
+ switch (field) {
16438
+ case 1:
16439
+ var value = /** @type {number} */ (reader.readInt32());
16440
+ msg.setId(value);
16441
+ break;
16442
+ case 2:
16443
+ var value = /** @type {number} */ (reader.readInt32());
16444
+ msg.setUserId(value);
16445
+ break;
16446
+ case 3:
16447
+ var value = new proto.bonus.BonusItem;
16448
+ reader.readMessage(value,proto.bonus.BonusItem.deserializeBinaryFromReader);
16449
+ msg.setBonus(value);
16450
+ break;
16451
+ case 4:
16452
+ var value = new proto.bonus.FreeSpinItem;
16453
+ reader.readMessage(value,proto.bonus.FreeSpinItem.deserializeBinaryFromReader);
16454
+ msg.addFreeSpin(value);
16455
+ break;
16456
+ case 5:
16457
+ var value = /** @type {number} */ (reader.readInt32());
16458
+ msg.setDepositId(value);
16459
+ break;
16460
+ case 6:
16461
+ var value = /** @type {number} */ (reader.readFloat());
16462
+ msg.setRealBalanceReward(value);
16463
+ break;
16464
+ case 7:
16465
+ var value = /** @type {number} */ (reader.readFloat());
16466
+ msg.setBonusBalanceReward(value);
16467
+ break;
16468
+ case 8:
16469
+ var value = /** @type {number} */ (reader.readFloat());
16470
+ msg.setCoinsReward(value);
16471
+ break;
16472
+ case 9:
16473
+ var value = /** @type {number} */ (reader.readFloat());
16474
+ msg.setLoyaltyReward(value);
16475
+ break;
16476
+ case 10:
16477
+ var value = /** @type {number} */ (reader.readFloat());
16478
+ msg.setRankingReward(value);
16479
+ break;
16480
+ case 11:
16481
+ var value = /** @type {number} */ (reader.readFloat());
16482
+ msg.setTotalWagerAmount(value);
16483
+ break;
16484
+ case 12:
16485
+ var value = /** @type {number} */ (reader.readFloat());
16486
+ msg.setCurrentWagerAmount(value);
16487
+ break;
16488
+ case 13:
16489
+ var value = /** @type {string} */ (reader.readString());
16490
+ msg.setStatus(value);
16491
+ break;
16492
+ case 14:
16493
+ var value = /** @type {string} */ (reader.readString());
16494
+ msg.setExpiredAt(value);
16495
+ break;
16496
+ case 15:
16497
+ var value = /** @type {string} */ (reader.readString());
16498
+ msg.setClaimedAt(value);
16499
+ break;
16500
+ case 16:
16501
+ var value = /** @type {string} */ (reader.readString());
16502
+ msg.setActivatedAt(value);
16503
+ break;
16504
+ case 17:
16505
+ var value = /** @type {string} */ (reader.readString());
16506
+ msg.setCompletedAt(value);
16507
+ break;
16508
+ case 18:
16509
+ var value = /** @type {string} */ (reader.readString());
16510
+ msg.setCanceledAt(value);
16511
+ break;
16512
+ case 19:
16513
+ var value = /** @type {number} */ (reader.readInt64());
16514
+ msg.setClaimingEndInMilliseconds(value);
16515
+ break;
16516
+ case 20:
16517
+ var value = /** @type {number} */ (reader.readInt64());
16518
+ msg.setActivationEndInMilliseconds(value);
16519
+ break;
16520
+ case 21:
16521
+ var value = /** @type {number} */ (reader.readInt64());
16522
+ msg.setWageringEndInMilliseconds(value);
16523
+ break;
16524
+ case 22:
16525
+ var value = /** @type {boolean} */ (reader.readBool());
16526
+ msg.setHasFreeSpins(value);
16527
+ break;
16528
+ case 23:
16529
+ var value = /** @type {string} */ (reader.readString());
16530
+ msg.setStatusFreeSpins(value);
16531
+ break;
16532
+ case 24:
16533
+ var value = /** @type {number} */ (reader.readFloat());
16534
+ msg.setRewardFreeSpins(value);
16535
+ break;
16536
+ case 25:
16537
+ var value = /** @type {number} */ (reader.readFloat());
16538
+ msg.setCancellationAmount(value);
16539
+ break;
16540
+ case 26:
16541
+ var value = /** @type {boolean} */ (reader.readBool());
16542
+ msg.setHasFreeBet(value);
16543
+ break;
16544
+ case 27:
16545
+ var value = /** @type {string} */ (reader.readString());
16546
+ msg.setStatusFreeBet(value);
16547
+ break;
16548
+ case 28:
16549
+ var value = /** @type {number} */ (reader.readFloat());
16550
+ msg.setRewardFreeBet(value);
16551
+ break;
16552
+ case 29:
16553
+ var value = /** @type {string} */ (reader.readString());
16554
+ msg.setClosedAt(value);
16555
+ break;
16556
+ case 30:
16557
+ var value = /** @type {string} */ (reader.readString());
16558
+ msg.setHistoryType(value);
16559
+ break;
16560
+ case 31:
16561
+ var value = /** @type {boolean} */ (reader.readBool());
16562
+ msg.setCanActivate(value);
16563
+ break;
16564
+ case 32:
16565
+ var value = /** @type {number} */ (reader.readInt32());
16566
+ msg.setUserPromocodeId(value);
16567
+ break;
16568
+ case 33:
16569
+ var value = /** @type {string} */ (reader.readString());
16570
+ msg.setPromoCode(value);
16571
+ break;
16572
+ case 34:
16573
+ var value = /** @type {string} */ (reader.readString());
16574
+ msg.addAvailableActions(value);
16575
+ break;
16576
+ default:
16577
+ reader.skipField();
16578
+ break;
16579
+ }
16580
+ }
16581
+ return msg;
16582
+ };
16583
+
16584
+
16585
+ /**
16586
+ * Serializes the message to binary data (in protobuf wire format).
16587
+ * @return {!Uint8Array}
16588
+ */
16589
+ proto.bonus.UserBonusItem.prototype.serializeBinary = function() {
16590
+ var writer = new jspb.BinaryWriter();
16591
+ proto.bonus.UserBonusItem.serializeBinaryToWriter(this, writer);
16592
+ return writer.getResultBuffer();
16593
+ };
16594
+
16595
+
16596
+ /**
16597
+ * Serializes the given message to binary data (in protobuf wire
16598
+ * format), writing to the given BinaryWriter.
16599
+ * @param {!proto.bonus.UserBonusItem} message
16600
+ * @param {!jspb.BinaryWriter} writer
16601
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16602
+ */
16603
+ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
16604
+ var f = undefined;
16605
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
16606
+ if (f != null) {
16607
+ writer.writeInt32(
16608
+ 1,
16609
+ f
16610
+ );
16611
+ }
16612
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
16613
+ if (f != null) {
16614
+ writer.writeInt32(
16615
+ 2,
16616
+ f
16617
+ );
16618
+ }
16619
+ f = message.getBonus();
16620
+ if (f != null) {
16621
+ writer.writeMessage(
16622
+ 3,
16623
+ f,
16624
+ proto.bonus.BonusItem.serializeBinaryToWriter
16625
+ );
16626
+ }
16627
+ f = message.getFreeSpinList();
16628
+ if (f.length > 0) {
16629
+ writer.writeRepeatedMessage(
16630
+ 4,
16631
+ f,
16632
+ proto.bonus.FreeSpinItem.serializeBinaryToWriter
16633
+ );
16634
+ }
16635
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
16636
+ if (f != null) {
16637
+ writer.writeInt32(
16638
+ 5,
16639
+ f
16640
+ );
16641
+ }
16642
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
16643
+ if (f != null) {
16644
+ writer.writeFloat(
16645
+ 6,
16646
+ f
16647
+ );
16648
+ }
16649
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
16650
+ if (f != null) {
16651
+ writer.writeFloat(
16652
+ 7,
16653
+ f
16654
+ );
16655
+ }
16656
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
16657
+ if (f != null) {
16658
+ writer.writeFloat(
16659
+ 8,
16660
+ f
16661
+ );
16662
+ }
16663
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
16664
+ if (f != null) {
16665
+ writer.writeFloat(
16666
+ 9,
16667
+ f
16668
+ );
16669
+ }
16670
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
16671
+ if (f != null) {
16672
+ writer.writeFloat(
16673
+ 10,
16674
+ f
16675
+ );
16676
+ }
16677
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
16678
+ if (f != null) {
16679
+ writer.writeFloat(
16680
+ 11,
16681
+ f
16682
+ );
16683
+ }
16684
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
16685
+ if (f != null) {
16686
+ writer.writeFloat(
16687
+ 12,
16688
+ f
16689
+ );
16690
+ }
16691
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
16692
+ if (f != null) {
16693
+ writer.writeString(
16694
+ 13,
16695
+ f
16696
+ );
16697
+ }
16698
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
16699
+ if (f != null) {
16700
+ writer.writeString(
16701
+ 14,
16702
+ f
16703
+ );
16704
+ }
16705
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
16706
+ if (f != null) {
16707
+ writer.writeString(
16708
+ 15,
16709
+ f
16710
+ );
16711
+ }
16712
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
16713
+ if (f != null) {
16714
+ writer.writeString(
16715
+ 16,
16716
+ f
16717
+ );
16718
+ }
16719
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
16720
+ if (f != null) {
16721
+ writer.writeString(
16722
+ 17,
16723
+ f
16724
+ );
16725
+ }
16726
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
16727
+ if (f != null) {
16728
+ writer.writeString(
16729
+ 18,
16730
+ f
16731
+ );
16732
+ }
16733
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
16734
+ if (f != null) {
16735
+ writer.writeInt64(
16736
+ 19,
16737
+ f
16738
+ );
16739
+ }
16740
+ f = /** @type {number} */ (jspb.Message.getField(message, 20));
16741
+ if (f != null) {
16742
+ writer.writeInt64(
16743
+ 20,
16744
+ f
16745
+ );
16746
+ }
16747
+ f = /** @type {number} */ (jspb.Message.getField(message, 21));
16748
+ if (f != null) {
16749
+ writer.writeInt64(
16750
+ 21,
16751
+ f
16752
+ );
16753
+ }
16754
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
16755
+ if (f != null) {
16756
+ writer.writeBool(
16757
+ 22,
16758
+ f
16759
+ );
16760
+ }
16761
+ f = /** @type {string} */ (jspb.Message.getField(message, 23));
16762
+ if (f != null) {
16763
+ writer.writeString(
16764
+ 23,
16765
+ f
16766
+ );
16767
+ }
16768
+ f = /** @type {number} */ (jspb.Message.getField(message, 24));
16769
+ if (f != null) {
16770
+ writer.writeFloat(
16771
+ 24,
16772
+ f
16773
+ );
16774
+ }
16775
+ f = /** @type {number} */ (jspb.Message.getField(message, 25));
16776
+ if (f != null) {
16777
+ writer.writeFloat(
16778
+ 25,
16779
+ f
16780
+ );
16781
+ }
16782
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 26));
16783
+ if (f != null) {
16784
+ writer.writeBool(
16785
+ 26,
16786
+ f
16787
+ );
16788
+ }
16789
+ f = /** @type {string} */ (jspb.Message.getField(message, 27));
16790
+ if (f != null) {
16791
+ writer.writeString(
16792
+ 27,
16793
+ f
16794
+ );
16795
+ }
16796
+ f = /** @type {number} */ (jspb.Message.getField(message, 28));
16797
+ if (f != null) {
16798
+ writer.writeFloat(
16799
+ 28,
16800
+ f
16801
+ );
16802
+ }
16803
+ f = /** @type {string} */ (jspb.Message.getField(message, 29));
16804
+ if (f != null) {
16805
+ writer.writeString(
16806
+ 29,
16807
+ f
16808
+ );
16809
+ }
16810
+ f = /** @type {string} */ (jspb.Message.getField(message, 30));
16811
+ if (f != null) {
16812
+ writer.writeString(
16813
+ 30,
16814
+ f
16815
+ );
16816
+ }
16817
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
16818
+ if (f != null) {
16819
+ writer.writeBool(
16820
+ 31,
16821
+ f
16822
+ );
16823
+ }
16824
+ f = /** @type {number} */ (jspb.Message.getField(message, 32));
16825
+ if (f != null) {
16826
+ writer.writeInt32(
16827
+ 32,
16828
+ f
16829
+ );
16830
+ }
16831
+ f = /** @type {string} */ (jspb.Message.getField(message, 33));
16832
+ if (f != null) {
16833
+ writer.writeString(
16834
+ 33,
16835
+ f
16836
+ );
16837
+ }
16838
+ f = message.getAvailableActionsList();
16839
+ if (f.length > 0) {
16840
+ writer.writeRepeatedString(
16841
+ 34,
16842
+ f
16843
+ );
16844
+ }
16845
+ };
16846
+
16847
+
16848
+ /**
16849
+ * optional int32 id = 1;
16850
+ * @return {number}
16851
+ */
16852
+ proto.bonus.UserBonusItem.prototype.getId = function() {
16853
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
16854
+ };
16855
+
16856
+
16857
+ /**
16858
+ * @param {number} value
16859
+ * @return {!proto.bonus.UserBonusItem} returns this
16860
+ */
16861
+ proto.bonus.UserBonusItem.prototype.setId = function(value) {
16862
+ return jspb.Message.setField(this, 1, value);
16863
+ };
16864
+
16865
+
16866
+ /**
16867
+ * Clears the field making it undefined.
16868
+ * @return {!proto.bonus.UserBonusItem} returns this
16869
+ */
16870
+ proto.bonus.UserBonusItem.prototype.clearId = function() {
16871
+ return jspb.Message.setField(this, 1, undefined);
16872
+ };
16873
+
16874
+
16875
+ /**
16876
+ * Returns whether this field is set.
16877
+ * @return {boolean}
16878
+ */
16879
+ proto.bonus.UserBonusItem.prototype.hasId = function() {
16880
+ return jspb.Message.getField(this, 1) != null;
16881
+ };
16882
+
16883
+
16884
+ /**
16885
+ * optional int32 user_id = 2;
16886
+ * @return {number}
16887
+ */
16888
+ proto.bonus.UserBonusItem.prototype.getUserId = function() {
16889
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
16890
+ };
16891
+
16892
+
16893
+ /**
16894
+ * @param {number} value
16895
+ * @return {!proto.bonus.UserBonusItem} returns this
16896
+ */
16897
+ proto.bonus.UserBonusItem.prototype.setUserId = function(value) {
16898
+ return jspb.Message.setField(this, 2, value);
16899
+ };
16900
+
16901
+
16902
+ /**
16903
+ * Clears the field making it undefined.
16904
+ * @return {!proto.bonus.UserBonusItem} returns this
16905
+ */
16906
+ proto.bonus.UserBonusItem.prototype.clearUserId = function() {
16907
+ return jspb.Message.setField(this, 2, undefined);
16908
+ };
16909
+
16910
+
16911
+ /**
16912
+ * Returns whether this field is set.
16913
+ * @return {boolean}
16914
+ */
16915
+ proto.bonus.UserBonusItem.prototype.hasUserId = function() {
16916
+ return jspb.Message.getField(this, 2) != null;
16917
+ };
16918
+
16919
+
16920
+ /**
16921
+ * optional BonusItem bonus = 3;
16922
+ * @return {?proto.bonus.BonusItem}
16923
+ */
16924
+ proto.bonus.UserBonusItem.prototype.getBonus = function() {
16925
+ return /** @type{?proto.bonus.BonusItem} */ (
16926
+ jspb.Message.getWrapperField(this, proto.bonus.BonusItem, 3));
16927
+ };
16928
+
16929
+
16930
+ /**
16931
+ * @param {?proto.bonus.BonusItem|undefined} value
16932
+ * @return {!proto.bonus.UserBonusItem} returns this
16933
+ */
16934
+ proto.bonus.UserBonusItem.prototype.setBonus = function(value) {
16935
+ return jspb.Message.setWrapperField(this, 3, value);
16936
+ };
16937
+
16938
+
16939
+ /**
16940
+ * Clears the message field making it undefined.
16941
+ * @return {!proto.bonus.UserBonusItem} returns this
16942
+ */
16943
+ proto.bonus.UserBonusItem.prototype.clearBonus = function() {
16944
+ return this.setBonus(undefined);
16945
+ };
16946
+
16947
+
16948
+ /**
16949
+ * Returns whether this field is set.
16950
+ * @return {boolean}
16951
+ */
16952
+ proto.bonus.UserBonusItem.prototype.hasBonus = function() {
16953
+ return jspb.Message.getField(this, 3) != null;
16954
+ };
16955
+
16956
+
16957
+ /**
16958
+ * repeated FreeSpinItem free_spin = 4;
16959
+ * @return {!Array<!proto.bonus.FreeSpinItem>}
16960
+ */
16961
+ proto.bonus.UserBonusItem.prototype.getFreeSpinList = function() {
16962
+ return /** @type{!Array<!proto.bonus.FreeSpinItem>} */ (
16963
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.FreeSpinItem, 4));
16964
+ };
16965
+
16966
+
16967
+ /**
16968
+ * @param {!Array<!proto.bonus.FreeSpinItem>} value
16969
+ * @return {!proto.bonus.UserBonusItem} returns this
16970
+ */
16971
+ proto.bonus.UserBonusItem.prototype.setFreeSpinList = function(value) {
16972
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
16973
+ };
16974
+
16975
+
16976
+ /**
16977
+ * @param {!proto.bonus.FreeSpinItem=} opt_value
16978
+ * @param {number=} opt_index
16979
+ * @return {!proto.bonus.FreeSpinItem}
16980
+ */
16981
+ proto.bonus.UserBonusItem.prototype.addFreeSpin = function(opt_value, opt_index) {
16982
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bonus.FreeSpinItem, opt_index);
16983
+ };
16984
+
16985
+
16986
+ /**
16987
+ * Clears the list making it empty but non-null.
16988
+ * @return {!proto.bonus.UserBonusItem} returns this
16989
+ */
16990
+ proto.bonus.UserBonusItem.prototype.clearFreeSpinList = function() {
16991
+ return this.setFreeSpinList([]);
16992
+ };
16993
+
16994
+
16995
+ /**
16996
+ * optional int32 deposit_id = 5;
16997
+ * @return {number}
16998
+ */
16999
+ proto.bonus.UserBonusItem.prototype.getDepositId = function() {
17000
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
17001
+ };
17002
+
17003
+
17004
+ /**
17005
+ * @param {number} value
17006
+ * @return {!proto.bonus.UserBonusItem} returns this
17007
+ */
17008
+ proto.bonus.UserBonusItem.prototype.setDepositId = function(value) {
17009
+ return jspb.Message.setField(this, 5, value);
17010
+ };
17011
+
17012
+
17013
+ /**
17014
+ * Clears the field making it undefined.
17015
+ * @return {!proto.bonus.UserBonusItem} returns this
17016
+ */
17017
+ proto.bonus.UserBonusItem.prototype.clearDepositId = function() {
17018
+ return jspb.Message.setField(this, 5, undefined);
17019
+ };
17020
+
17021
+
17022
+ /**
17023
+ * Returns whether this field is set.
17024
+ * @return {boolean}
17025
+ */
17026
+ proto.bonus.UserBonusItem.prototype.hasDepositId = function() {
17027
+ return jspb.Message.getField(this, 5) != null;
17028
+ };
17029
+
17030
+
17031
+ /**
17032
+ * optional float real_balance_reward = 6;
17033
+ * @return {number}
17034
+ */
17035
+ proto.bonus.UserBonusItem.prototype.getRealBalanceReward = function() {
17036
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
17037
+ };
17038
+
17039
+
17040
+ /**
17041
+ * @param {number} value
17042
+ * @return {!proto.bonus.UserBonusItem} returns this
17043
+ */
17044
+ proto.bonus.UserBonusItem.prototype.setRealBalanceReward = function(value) {
17045
+ return jspb.Message.setField(this, 6, value);
17046
+ };
17047
+
17048
+
17049
+ /**
17050
+ * Clears the field making it undefined.
17051
+ * @return {!proto.bonus.UserBonusItem} returns this
17052
+ */
17053
+ proto.bonus.UserBonusItem.prototype.clearRealBalanceReward = function() {
17054
+ return jspb.Message.setField(this, 6, undefined);
17055
+ };
17056
+
17057
+
17058
+ /**
17059
+ * Returns whether this field is set.
17060
+ * @return {boolean}
17061
+ */
17062
+ proto.bonus.UserBonusItem.prototype.hasRealBalanceReward = function() {
17063
+ return jspb.Message.getField(this, 6) != null;
17064
+ };
17065
+
17066
+
17067
+ /**
17068
+ * optional float bonus_balance_reward = 7;
17069
+ * @return {number}
17070
+ */
17071
+ proto.bonus.UserBonusItem.prototype.getBonusBalanceReward = function() {
17072
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
17073
+ };
17074
+
17075
+
17076
+ /**
17077
+ * @param {number} value
17078
+ * @return {!proto.bonus.UserBonusItem} returns this
17079
+ */
17080
+ proto.bonus.UserBonusItem.prototype.setBonusBalanceReward = function(value) {
17081
+ return jspb.Message.setField(this, 7, value);
17082
+ };
17083
+
17084
+
17085
+ /**
17086
+ * Clears the field making it undefined.
17087
+ * @return {!proto.bonus.UserBonusItem} returns this
17088
+ */
17089
+ proto.bonus.UserBonusItem.prototype.clearBonusBalanceReward = function() {
17090
+ return jspb.Message.setField(this, 7, undefined);
17091
+ };
17092
+
17093
+
17094
+ /**
17095
+ * Returns whether this field is set.
17096
+ * @return {boolean}
17097
+ */
17098
+ proto.bonus.UserBonusItem.prototype.hasBonusBalanceReward = function() {
17099
+ return jspb.Message.getField(this, 7) != null;
17100
+ };
17101
+
17102
+
17103
+ /**
17104
+ * optional float coins_reward = 8;
17105
+ * @return {number}
17106
+ */
17107
+ proto.bonus.UserBonusItem.prototype.getCoinsReward = function() {
17108
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
17109
+ };
17110
+
17111
+
17112
+ /**
17113
+ * @param {number} value
17114
+ * @return {!proto.bonus.UserBonusItem} returns this
17115
+ */
17116
+ proto.bonus.UserBonusItem.prototype.setCoinsReward = function(value) {
17117
+ return jspb.Message.setField(this, 8, value);
17118
+ };
17119
+
17120
+
17121
+ /**
17122
+ * Clears the field making it undefined.
17123
+ * @return {!proto.bonus.UserBonusItem} returns this
17124
+ */
17125
+ proto.bonus.UserBonusItem.prototype.clearCoinsReward = function() {
17126
+ return jspb.Message.setField(this, 8, undefined);
17127
+ };
17128
+
17129
+
17130
+ /**
17131
+ * Returns whether this field is set.
17132
+ * @return {boolean}
17133
+ */
17134
+ proto.bonus.UserBonusItem.prototype.hasCoinsReward = function() {
17135
+ return jspb.Message.getField(this, 8) != null;
17136
+ };
17137
+
17138
+
17139
+ /**
17140
+ * optional float loyalty_reward = 9;
17141
+ * @return {number}
17142
+ */
17143
+ proto.bonus.UserBonusItem.prototype.getLoyaltyReward = function() {
17144
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
17145
+ };
17146
+
17147
+
17148
+ /**
17149
+ * @param {number} value
17150
+ * @return {!proto.bonus.UserBonusItem} returns this
17151
+ */
17152
+ proto.bonus.UserBonusItem.prototype.setLoyaltyReward = function(value) {
17153
+ return jspb.Message.setField(this, 9, value);
17154
+ };
17155
+
17156
+
17157
+ /**
17158
+ * Clears the field making it undefined.
17159
+ * @return {!proto.bonus.UserBonusItem} returns this
17160
+ */
17161
+ proto.bonus.UserBonusItem.prototype.clearLoyaltyReward = function() {
17162
+ return jspb.Message.setField(this, 9, undefined);
17163
+ };
17164
+
17165
+
17166
+ /**
17167
+ * Returns whether this field is set.
17168
+ * @return {boolean}
17169
+ */
17170
+ proto.bonus.UserBonusItem.prototype.hasLoyaltyReward = function() {
17171
+ return jspb.Message.getField(this, 9) != null;
17172
+ };
17173
+
17174
+
17175
+ /**
17176
+ * optional float ranking_reward = 10;
17177
+ * @return {number}
17178
+ */
17179
+ proto.bonus.UserBonusItem.prototype.getRankingReward = function() {
17180
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
17181
+ };
17182
+
17183
+
17184
+ /**
17185
+ * @param {number} value
17186
+ * @return {!proto.bonus.UserBonusItem} returns this
17187
+ */
17188
+ proto.bonus.UserBonusItem.prototype.setRankingReward = function(value) {
17189
+ return jspb.Message.setField(this, 10, value);
17190
+ };
17191
+
17192
+
17193
+ /**
17194
+ * Clears the field making it undefined.
17195
+ * @return {!proto.bonus.UserBonusItem} returns this
17196
+ */
17197
+ proto.bonus.UserBonusItem.prototype.clearRankingReward = function() {
17198
+ return jspb.Message.setField(this, 10, undefined);
17199
+ };
17200
+
17201
+
17202
+ /**
17203
+ * Returns whether this field is set.
17204
+ * @return {boolean}
17205
+ */
17206
+ proto.bonus.UserBonusItem.prototype.hasRankingReward = function() {
17207
+ return jspb.Message.getField(this, 10) != null;
17208
+ };
17209
+
17210
+
17211
+ /**
17212
+ * optional float total_wager_amount = 11;
17213
+ * @return {number}
17214
+ */
17215
+ proto.bonus.UserBonusItem.prototype.getTotalWagerAmount = function() {
17216
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
17217
+ };
17218
+
17219
+
17220
+ /**
17221
+ * @param {number} value
17222
+ * @return {!proto.bonus.UserBonusItem} returns this
17223
+ */
17224
+ proto.bonus.UserBonusItem.prototype.setTotalWagerAmount = function(value) {
17225
+ return jspb.Message.setField(this, 11, value);
17226
+ };
17227
+
17228
+
17229
+ /**
17230
+ * Clears the field making it undefined.
17231
+ * @return {!proto.bonus.UserBonusItem} returns this
17232
+ */
17233
+ proto.bonus.UserBonusItem.prototype.clearTotalWagerAmount = function() {
17234
+ return jspb.Message.setField(this, 11, undefined);
17235
+ };
17236
+
17237
+
17238
+ /**
17239
+ * Returns whether this field is set.
17240
+ * @return {boolean}
17241
+ */
17242
+ proto.bonus.UserBonusItem.prototype.hasTotalWagerAmount = function() {
17243
+ return jspb.Message.getField(this, 11) != null;
17244
+ };
17245
+
17246
+
17247
+ /**
17248
+ * optional float current_wager_amount = 12;
17249
+ * @return {number}
17250
+ */
17251
+ proto.bonus.UserBonusItem.prototype.getCurrentWagerAmount = function() {
17252
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
17253
+ };
17254
+
17255
+
17256
+ /**
17257
+ * @param {number} value
17258
+ * @return {!proto.bonus.UserBonusItem} returns this
17259
+ */
17260
+ proto.bonus.UserBonusItem.prototype.setCurrentWagerAmount = function(value) {
17261
+ return jspb.Message.setField(this, 12, value);
17262
+ };
17263
+
17264
+
17265
+ /**
17266
+ * Clears the field making it undefined.
17267
+ * @return {!proto.bonus.UserBonusItem} returns this
17268
+ */
17269
+ proto.bonus.UserBonusItem.prototype.clearCurrentWagerAmount = function() {
17270
+ return jspb.Message.setField(this, 12, undefined);
17271
+ };
17272
+
17273
+
17274
+ /**
17275
+ * Returns whether this field is set.
17276
+ * @return {boolean}
17277
+ */
17278
+ proto.bonus.UserBonusItem.prototype.hasCurrentWagerAmount = function() {
17279
+ return jspb.Message.getField(this, 12) != null;
17280
+ };
17281
+
17282
+
17283
+ /**
17284
+ * optional string status = 13;
17285
+ * @return {string}
17286
+ */
17287
+ proto.bonus.UserBonusItem.prototype.getStatus = function() {
17288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
17289
+ };
17290
+
17291
+
17292
+ /**
17293
+ * @param {string} value
17294
+ * @return {!proto.bonus.UserBonusItem} returns this
17295
+ */
17296
+ proto.bonus.UserBonusItem.prototype.setStatus = function(value) {
17297
+ return jspb.Message.setField(this, 13, value);
17298
+ };
17299
+
17300
+
17301
+ /**
17302
+ * Clears the field making it undefined.
17303
+ * @return {!proto.bonus.UserBonusItem} returns this
17304
+ */
17305
+ proto.bonus.UserBonusItem.prototype.clearStatus = function() {
17306
+ return jspb.Message.setField(this, 13, undefined);
17307
+ };
17308
+
17309
+
17310
+ /**
17311
+ * Returns whether this field is set.
17312
+ * @return {boolean}
17313
+ */
17314
+ proto.bonus.UserBonusItem.prototype.hasStatus = function() {
17315
+ return jspb.Message.getField(this, 13) != null;
17316
+ };
17317
+
17318
+
17319
+ /**
17320
+ * optional string expired_at = 14;
17321
+ * @return {string}
17322
+ */
17323
+ proto.bonus.UserBonusItem.prototype.getExpiredAt = function() {
17324
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
17325
+ };
17326
+
17327
+
17328
+ /**
17329
+ * @param {string} value
17330
+ * @return {!proto.bonus.UserBonusItem} returns this
17331
+ */
17332
+ proto.bonus.UserBonusItem.prototype.setExpiredAt = function(value) {
17333
+ return jspb.Message.setField(this, 14, value);
17334
+ };
17335
+
17336
+
17337
+ /**
17338
+ * Clears the field making it undefined.
17339
+ * @return {!proto.bonus.UserBonusItem} returns this
17340
+ */
17341
+ proto.bonus.UserBonusItem.prototype.clearExpiredAt = function() {
17342
+ return jspb.Message.setField(this, 14, undefined);
17343
+ };
17344
+
17345
+
17346
+ /**
17347
+ * Returns whether this field is set.
17348
+ * @return {boolean}
17349
+ */
17350
+ proto.bonus.UserBonusItem.prototype.hasExpiredAt = function() {
17351
+ return jspb.Message.getField(this, 14) != null;
17352
+ };
17353
+
17354
+
17355
+ /**
17356
+ * optional string claimed_at = 15;
17357
+ * @return {string}
17358
+ */
17359
+ proto.bonus.UserBonusItem.prototype.getClaimedAt = function() {
17360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
17361
+ };
17362
+
17363
+
17364
+ /**
17365
+ * @param {string} value
17366
+ * @return {!proto.bonus.UserBonusItem} returns this
17367
+ */
17368
+ proto.bonus.UserBonusItem.prototype.setClaimedAt = function(value) {
17369
+ return jspb.Message.setField(this, 15, value);
17370
+ };
17371
+
17372
+
16406
17373
  /**
16407
17374
  * Clears the field making it undefined.
16408
17375
  * @return {!proto.bonus.UserBonusItem} returns this
@@ -18853,8 +19820,224 @@ proto.bonus.GetUserBonusRequest.prototype.getLocale = function() {
18853
19820
  * @param {string} value
18854
19821
  * @return {!proto.bonus.GetUserBonusRequest} returns this
18855
19822
  */
18856
- proto.bonus.GetUserBonusRequest.prototype.setLocale = function(value) {
18857
- return jspb.Message.setField(this, 7, value);
19823
+ proto.bonus.GetUserBonusRequest.prototype.setLocale = function(value) {
19824
+ return jspb.Message.setField(this, 7, value);
19825
+ };
19826
+
19827
+
19828
+ /**
19829
+ * Clears the field making it undefined.
19830
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19831
+ */
19832
+ proto.bonus.GetUserBonusRequest.prototype.clearLocale = function() {
19833
+ return jspb.Message.setField(this, 7, undefined);
19834
+ };
19835
+
19836
+
19837
+ /**
19838
+ * Returns whether this field is set.
19839
+ * @return {boolean}
19840
+ */
19841
+ proto.bonus.GetUserBonusRequest.prototype.hasLocale = function() {
19842
+ return jspb.Message.getField(this, 7) != null;
19843
+ };
19844
+
19845
+
19846
+ /**
19847
+ * optional string user_public_id = 8;
19848
+ * @return {string}
19849
+ */
19850
+ proto.bonus.GetUserBonusRequest.prototype.getUserPublicId = function() {
19851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
19852
+ };
19853
+
19854
+
19855
+ /**
19856
+ * @param {string} value
19857
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19858
+ */
19859
+ proto.bonus.GetUserBonusRequest.prototype.setUserPublicId = function(value) {
19860
+ return jspb.Message.setField(this, 8, value);
19861
+ };
19862
+
19863
+
19864
+ /**
19865
+ * Clears the field making it undefined.
19866
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19867
+ */
19868
+ proto.bonus.GetUserBonusRequest.prototype.clearUserPublicId = function() {
19869
+ return jspb.Message.setField(this, 8, undefined);
19870
+ };
19871
+
19872
+
19873
+ /**
19874
+ * Returns whether this field is set.
19875
+ * @return {boolean}
19876
+ */
19877
+ proto.bonus.GetUserBonusRequest.prototype.hasUserPublicId = function() {
19878
+ return jspb.Message.getField(this, 8) != null;
19879
+ };
19880
+
19881
+
19882
+ /**
19883
+ * optional string user_name = 9;
19884
+ * @return {string}
19885
+ */
19886
+ proto.bonus.GetUserBonusRequest.prototype.getUserName = function() {
19887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
19888
+ };
19889
+
19890
+
19891
+ /**
19892
+ * @param {string} value
19893
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19894
+ */
19895
+ proto.bonus.GetUserBonusRequest.prototype.setUserName = function(value) {
19896
+ return jspb.Message.setField(this, 9, value);
19897
+ };
19898
+
19899
+
19900
+ /**
19901
+ * Clears the field making it undefined.
19902
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19903
+ */
19904
+ proto.bonus.GetUserBonusRequest.prototype.clearUserName = function() {
19905
+ return jspb.Message.setField(this, 9, undefined);
19906
+ };
19907
+
19908
+
19909
+ /**
19910
+ * Returns whether this field is set.
19911
+ * @return {boolean}
19912
+ */
19913
+ proto.bonus.GetUserBonusRequest.prototype.hasUserName = function() {
19914
+ return jspb.Message.getField(this, 9) != null;
19915
+ };
19916
+
19917
+
19918
+ /**
19919
+ * optional string status = 10;
19920
+ * @return {string}
19921
+ */
19922
+ proto.bonus.GetUserBonusRequest.prototype.getStatus = function() {
19923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
19924
+ };
19925
+
19926
+
19927
+ /**
19928
+ * @param {string} value
19929
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19930
+ */
19931
+ proto.bonus.GetUserBonusRequest.prototype.setStatus = function(value) {
19932
+ return jspb.Message.setField(this, 10, value);
19933
+ };
19934
+
19935
+
19936
+ /**
19937
+ * Clears the field making it undefined.
19938
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19939
+ */
19940
+ proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
19941
+ return jspb.Message.setField(this, 10, undefined);
19942
+ };
19943
+
19944
+
19945
+ /**
19946
+ * Returns whether this field is set.
19947
+ * @return {boolean}
19948
+ */
19949
+ proto.bonus.GetUserBonusRequest.prototype.hasStatus = function() {
19950
+ return jspb.Message.getField(this, 10) != null;
19951
+ };
19952
+
19953
+
19954
+ /**
19955
+ * optional bool is_mobile = 11;
19956
+ * @return {boolean}
19957
+ */
19958
+ proto.bonus.GetUserBonusRequest.prototype.getIsMobile = function() {
19959
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
19960
+ };
19961
+
19962
+
19963
+ /**
19964
+ * @param {boolean} value
19965
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19966
+ */
19967
+ proto.bonus.GetUserBonusRequest.prototype.setIsMobile = function(value) {
19968
+ return jspb.Message.setField(this, 11, value);
19969
+ };
19970
+
19971
+
19972
+ /**
19973
+ * Clears the field making it undefined.
19974
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
19975
+ */
19976
+ proto.bonus.GetUserBonusRequest.prototype.clearIsMobile = function() {
19977
+ return jspb.Message.setField(this, 11, undefined);
19978
+ };
19979
+
19980
+
19981
+ /**
19982
+ * Returns whether this field is set.
19983
+ * @return {boolean}
19984
+ */
19985
+ proto.bonus.GetUserBonusRequest.prototype.hasIsMobile = function() {
19986
+ return jspb.Message.getField(this, 11) != null;
19987
+ };
19988
+
19989
+
19990
+ /**
19991
+ * optional string promo_code = 12;
19992
+ * @return {string}
19993
+ */
19994
+ proto.bonus.GetUserBonusRequest.prototype.getPromoCode = function() {
19995
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
19996
+ };
19997
+
19998
+
19999
+ /**
20000
+ * @param {string} value
20001
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
20002
+ */
20003
+ proto.bonus.GetUserBonusRequest.prototype.setPromoCode = function(value) {
20004
+ return jspb.Message.setField(this, 12, value);
20005
+ };
20006
+
20007
+
20008
+ /**
20009
+ * Clears the field making it undefined.
20010
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
20011
+ */
20012
+ proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
20013
+ return jspb.Message.setField(this, 12, undefined);
20014
+ };
20015
+
20016
+
20017
+ /**
20018
+ * Returns whether this field is set.
20019
+ * @return {boolean}
20020
+ */
20021
+ proto.bonus.GetUserBonusRequest.prototype.hasPromoCode = function() {
20022
+ return jspb.Message.getField(this, 12) != null;
20023
+ };
20024
+
20025
+
20026
+ /**
20027
+ * optional string cancel_reason = 13;
20028
+ * @return {string}
20029
+ */
20030
+ proto.bonus.GetUserBonusRequest.prototype.getCancelReason = function() {
20031
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
20032
+ };
20033
+
20034
+
20035
+ /**
20036
+ * @param {string} value
20037
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
20038
+ */
20039
+ proto.bonus.GetUserBonusRequest.prototype.setCancelReason = function(value) {
20040
+ return jspb.Message.setField(this, 13, value);
18858
20041
  };
18859
20042
 
18860
20043
 
@@ -18862,8 +20045,8 @@ proto.bonus.GetUserBonusRequest.prototype.setLocale = function(value) {
18862
20045
  * Clears the field making it undefined.
18863
20046
  * @return {!proto.bonus.GetUserBonusRequest} returns this
18864
20047
  */
18865
- proto.bonus.GetUserBonusRequest.prototype.clearLocale = function() {
18866
- return jspb.Message.setField(this, 7, undefined);
20048
+ proto.bonus.GetUserBonusRequest.prototype.clearCancelReason = function() {
20049
+ return jspb.Message.setField(this, 13, undefined);
18867
20050
  };
18868
20051
 
18869
20052
 
@@ -18871,143 +20054,261 @@ proto.bonus.GetUserBonusRequest.prototype.clearLocale = function() {
18871
20054
  * Returns whether this field is set.
18872
20055
  * @return {boolean}
18873
20056
  */
18874
- proto.bonus.GetUserBonusRequest.prototype.hasLocale = function() {
18875
- return jspb.Message.getField(this, 7) != null;
20057
+ proto.bonus.GetUserBonusRequest.prototype.hasCancelReason = function() {
20058
+ return jspb.Message.getField(this, 13) != null;
18876
20059
  };
18877
20060
 
18878
20061
 
20062
+
20063
+
20064
+
20065
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18879
20066
  /**
18880
- * optional string user_public_id = 8;
18881
- * @return {string}
20067
+ * Creates an object representation of this proto.
20068
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20069
+ * Optional fields that are not set will be set to undefined.
20070
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20071
+ * For the list of reserved names please see:
20072
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20073
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20074
+ * JSPB instance for transitional soy proto support:
20075
+ * http://goto/soy-param-migration
20076
+ * @return {!Object}
18882
20077
  */
18883
- proto.bonus.GetUserBonusRequest.prototype.getUserPublicId = function() {
18884
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
20078
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
20079
+ return proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject(opt_includeInstance, this);
18885
20080
  };
18886
20081
 
18887
20082
 
18888
20083
  /**
18889
- * @param {string} value
18890
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20084
+ * Static version of the {@see toObject} method.
20085
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20086
+ * the JSPB instance for transitional soy proto support:
20087
+ * http://goto/soy-param-migration
20088
+ * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The msg instance to transform.
20089
+ * @return {!Object}
20090
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18891
20091
  */
18892
- proto.bonus.GetUserBonusRequest.prototype.setUserPublicId = function(value) {
18893
- return jspb.Message.setField(this, 8, value);
20092
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInstance, msg) {
20093
+ var f, obj = {
20094
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
20095
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
20096
+ promoCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
20097
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
20098
+ country: jspb.Message.getFieldWithDefault(msg, 5, ""),
20099
+ locale: jspb.Message.getFieldWithDefault(msg, 6, "")
20100
+ };
20101
+
20102
+ if (includeInstance) {
20103
+ obj.$jspbMessageInstance = msg;
20104
+ }
20105
+ return obj;
18894
20106
  };
20107
+ }
18895
20108
 
18896
20109
 
18897
20110
  /**
18898
- * Clears the field making it undefined.
18899
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20111
+ * Deserializes binary data (in protobuf wire format).
20112
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20113
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
18900
20114
  */
18901
- proto.bonus.GetUserBonusRequest.prototype.clearUserPublicId = function() {
18902
- return jspb.Message.setField(this, 8, undefined);
20115
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinary = function(bytes) {
20116
+ var reader = new jspb.BinaryReader(bytes);
20117
+ var msg = new proto.bonus.ApplyUserPromocodeToUserBonusRequest;
20118
+ return proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader(msg, reader);
18903
20119
  };
18904
20120
 
18905
20121
 
18906
20122
  /**
18907
- * Returns whether this field is set.
18908
- * @return {boolean}
20123
+ * Deserializes binary data (in protobuf wire format) from the
20124
+ * given reader into the given message object.
20125
+ * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The message object to deserialize into.
20126
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20127
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
18909
20128
  */
18910
- proto.bonus.GetUserBonusRequest.prototype.hasUserPublicId = function() {
18911
- return jspb.Message.getField(this, 8) != null;
20129
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
20130
+ while (reader.nextField()) {
20131
+ if (reader.isEndGroup()) {
20132
+ break;
20133
+ }
20134
+ var field = reader.getFieldNumber();
20135
+ switch (field) {
20136
+ case 1:
20137
+ var value = /** @type {number} */ (reader.readInt32());
20138
+ msg.setUserId(value);
20139
+ break;
20140
+ case 2:
20141
+ var value = /** @type {number} */ (reader.readInt32());
20142
+ msg.setUserBonusId(value);
20143
+ break;
20144
+ case 3:
20145
+ var value = /** @type {string} */ (reader.readString());
20146
+ msg.setPromoCode(value);
20147
+ break;
20148
+ case 4:
20149
+ var value = /** @type {string} */ (reader.readString());
20150
+ msg.setCurrency(value);
20151
+ break;
20152
+ case 5:
20153
+ var value = /** @type {string} */ (reader.readString());
20154
+ msg.setCountry(value);
20155
+ break;
20156
+ case 6:
20157
+ var value = /** @type {string} */ (reader.readString());
20158
+ msg.setLocale(value);
20159
+ break;
20160
+ default:
20161
+ reader.skipField();
20162
+ break;
20163
+ }
20164
+ }
20165
+ return msg;
18912
20166
  };
18913
20167
 
18914
20168
 
18915
20169
  /**
18916
- * optional string user_name = 9;
18917
- * @return {string}
20170
+ * Serializes the message to binary data (in protobuf wire format).
20171
+ * @return {!Uint8Array}
18918
20172
  */
18919
- proto.bonus.GetUserBonusRequest.prototype.getUserName = function() {
18920
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
20173
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = function() {
20174
+ var writer = new jspb.BinaryWriter();
20175
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter(this, writer);
20176
+ return writer.getResultBuffer();
18921
20177
  };
18922
20178
 
18923
20179
 
18924
20180
  /**
18925
- * @param {string} value
18926
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20181
+ * Serializes the given message to binary data (in protobuf wire
20182
+ * format), writing to the given BinaryWriter.
20183
+ * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} message
20184
+ * @param {!jspb.BinaryWriter} writer
20185
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18927
20186
  */
18928
- proto.bonus.GetUserBonusRequest.prototype.setUserName = function(value) {
18929
- return jspb.Message.setField(this, 9, value);
20187
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
20188
+ var f = undefined;
20189
+ f = message.getUserId();
20190
+ if (f !== 0) {
20191
+ writer.writeInt32(
20192
+ 1,
20193
+ f
20194
+ );
20195
+ }
20196
+ f = message.getUserBonusId();
20197
+ if (f !== 0) {
20198
+ writer.writeInt32(
20199
+ 2,
20200
+ f
20201
+ );
20202
+ }
20203
+ f = message.getPromoCode();
20204
+ if (f.length > 0) {
20205
+ writer.writeString(
20206
+ 3,
20207
+ f
20208
+ );
20209
+ }
20210
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
20211
+ if (f != null) {
20212
+ writer.writeString(
20213
+ 4,
20214
+ f
20215
+ );
20216
+ }
20217
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
20218
+ if (f != null) {
20219
+ writer.writeString(
20220
+ 5,
20221
+ f
20222
+ );
20223
+ }
20224
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
20225
+ if (f != null) {
20226
+ writer.writeString(
20227
+ 6,
20228
+ f
20229
+ );
20230
+ }
18930
20231
  };
18931
20232
 
18932
20233
 
18933
20234
  /**
18934
- * Clears the field making it undefined.
18935
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20235
+ * optional int32 user_id = 1;
20236
+ * @return {number}
18936
20237
  */
18937
- proto.bonus.GetUserBonusRequest.prototype.clearUserName = function() {
18938
- return jspb.Message.setField(this, 9, undefined);
20238
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserId = function() {
20239
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18939
20240
  };
18940
20241
 
18941
20242
 
18942
20243
  /**
18943
- * Returns whether this field is set.
18944
- * @return {boolean}
20244
+ * @param {number} value
20245
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
18945
20246
  */
18946
- proto.bonus.GetUserBonusRequest.prototype.hasUserName = function() {
18947
- return jspb.Message.getField(this, 9) != null;
20247
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserId = function(value) {
20248
+ return jspb.Message.setProto3IntField(this, 1, value);
18948
20249
  };
18949
20250
 
18950
20251
 
18951
20252
  /**
18952
- * optional string status = 10;
18953
- * @return {string}
20253
+ * optional int32 user_bonus_id = 2;
20254
+ * @return {number}
18954
20255
  */
18955
- proto.bonus.GetUserBonusRequest.prototype.getStatus = function() {
18956
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
20256
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserBonusId = function() {
20257
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
18957
20258
  };
18958
20259
 
18959
20260
 
18960
20261
  /**
18961
- * @param {string} value
18962
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20262
+ * @param {number} value
20263
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
18963
20264
  */
18964
- proto.bonus.GetUserBonusRequest.prototype.setStatus = function(value) {
18965
- return jspb.Message.setField(this, 10, value);
20265
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserBonusId = function(value) {
20266
+ return jspb.Message.setProto3IntField(this, 2, value);
18966
20267
  };
18967
20268
 
18968
20269
 
18969
20270
  /**
18970
- * Clears the field making it undefined.
18971
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20271
+ * optional string promo_code = 3;
20272
+ * @return {string}
18972
20273
  */
18973
- proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
18974
- return jspb.Message.setField(this, 10, undefined);
20274
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getPromoCode = function() {
20275
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
18975
20276
  };
18976
20277
 
18977
20278
 
18978
20279
  /**
18979
- * Returns whether this field is set.
18980
- * @return {boolean}
20280
+ * @param {string} value
20281
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
18981
20282
  */
18982
- proto.bonus.GetUserBonusRequest.prototype.hasStatus = function() {
18983
- return jspb.Message.getField(this, 10) != null;
20283
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = function(value) {
20284
+ return jspb.Message.setProto3StringField(this, 3, value);
18984
20285
  };
18985
20286
 
18986
20287
 
18987
20288
  /**
18988
- * optional bool is_mobile = 11;
18989
- * @return {boolean}
20289
+ * optional string currency = 4;
20290
+ * @return {string}
18990
20291
  */
18991
- proto.bonus.GetUserBonusRequest.prototype.getIsMobile = function() {
18992
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
20292
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCurrency = function() {
20293
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
18993
20294
  };
18994
20295
 
18995
20296
 
18996
20297
  /**
18997
- * @param {boolean} value
18998
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20298
+ * @param {string} value
20299
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
18999
20300
  */
19000
- proto.bonus.GetUserBonusRequest.prototype.setIsMobile = function(value) {
19001
- return jspb.Message.setField(this, 11, value);
20301
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCurrency = function(value) {
20302
+ return jspb.Message.setField(this, 4, value);
19002
20303
  };
19003
20304
 
19004
20305
 
19005
20306
  /**
19006
20307
  * Clears the field making it undefined.
19007
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20308
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
19008
20309
  */
19009
- proto.bonus.GetUserBonusRequest.prototype.clearIsMobile = function() {
19010
- return jspb.Message.setField(this, 11, undefined);
20310
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = function() {
20311
+ return jspb.Message.setField(this, 4, undefined);
19011
20312
  };
19012
20313
 
19013
20314
 
@@ -19015,35 +20316,35 @@ proto.bonus.GetUserBonusRequest.prototype.clearIsMobile = function() {
19015
20316
  * Returns whether this field is set.
19016
20317
  * @return {boolean}
19017
20318
  */
19018
- proto.bonus.GetUserBonusRequest.prototype.hasIsMobile = function() {
19019
- return jspb.Message.getField(this, 11) != null;
20319
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = function() {
20320
+ return jspb.Message.getField(this, 4) != null;
19020
20321
  };
19021
20322
 
19022
20323
 
19023
20324
  /**
19024
- * optional string promo_code = 12;
20325
+ * optional string country = 5;
19025
20326
  * @return {string}
19026
20327
  */
19027
- proto.bonus.GetUserBonusRequest.prototype.getPromoCode = function() {
19028
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
20328
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCountry = function() {
20329
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
19029
20330
  };
19030
20331
 
19031
20332
 
19032
20333
  /**
19033
20334
  * @param {string} value
19034
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20335
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
19035
20336
  */
19036
- proto.bonus.GetUserBonusRequest.prototype.setPromoCode = function(value) {
19037
- return jspb.Message.setField(this, 12, value);
20337
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCountry = function(value) {
20338
+ return jspb.Message.setField(this, 5, value);
19038
20339
  };
19039
20340
 
19040
20341
 
19041
20342
  /**
19042
20343
  * Clears the field making it undefined.
19043
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20344
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
19044
20345
  */
19045
- proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
19046
- return jspb.Message.setField(this, 12, undefined);
20346
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = function() {
20347
+ return jspb.Message.setField(this, 5, undefined);
19047
20348
  };
19048
20349
 
19049
20350
 
@@ -19051,35 +20352,35 @@ proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
19051
20352
  * Returns whether this field is set.
19052
20353
  * @return {boolean}
19053
20354
  */
19054
- proto.bonus.GetUserBonusRequest.prototype.hasPromoCode = function() {
19055
- return jspb.Message.getField(this, 12) != null;
20355
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function() {
20356
+ return jspb.Message.getField(this, 5) != null;
19056
20357
  };
19057
20358
 
19058
20359
 
19059
20360
  /**
19060
- * optional string cancel_reason = 13;
20361
+ * optional string locale = 6;
19061
20362
  * @return {string}
19062
20363
  */
19063
- proto.bonus.GetUserBonusRequest.prototype.getCancelReason = function() {
19064
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
20364
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getLocale = function() {
20365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
19065
20366
  };
19066
20367
 
19067
20368
 
19068
20369
  /**
19069
20370
  * @param {string} value
19070
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20371
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
19071
20372
  */
19072
- proto.bonus.GetUserBonusRequest.prototype.setCancelReason = function(value) {
19073
- return jspb.Message.setField(this, 13, value);
20373
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setLocale = function(value) {
20374
+ return jspb.Message.setField(this, 6, value);
19074
20375
  };
19075
20376
 
19076
20377
 
19077
20378
  /**
19078
20379
  * Clears the field making it undefined.
19079
- * @return {!proto.bonus.GetUserBonusRequest} returns this
20380
+ * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
19080
20381
  */
19081
- proto.bonus.GetUserBonusRequest.prototype.clearCancelReason = function() {
19082
- return jspb.Message.setField(this, 13, undefined);
20382
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = function() {
20383
+ return jspb.Message.setField(this, 6, undefined);
19083
20384
  };
19084
20385
 
19085
20386
 
@@ -19087,8 +20388,8 @@ proto.bonus.GetUserBonusRequest.prototype.clearCancelReason = function() {
19087
20388
  * Returns whether this field is set.
19088
20389
  * @return {boolean}
19089
20390
  */
19090
- proto.bonus.GetUserBonusRequest.prototype.hasCancelReason = function() {
19091
- return jspb.Message.getField(this, 13) != null;
20391
+ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasLocale = function() {
20392
+ return jspb.Message.getField(this, 6) != null;
19092
20393
  };
19093
20394
 
19094
20395
 
@@ -19108,8 +20409,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
19108
20409
  * http://goto/soy-param-migration
19109
20410
  * @return {!Object}
19110
20411
  */
19111
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
19112
- return proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject(opt_includeInstance, this);
20412
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_includeInstance) {
20413
+ return proto.bonus.ApplyUserBonusPromocodeRequest.toObject(opt_includeInstance, this);
19113
20414
  };
19114
20415
 
19115
20416
 
@@ -19118,15 +20419,15 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(o
19118
20419
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19119
20420
  * the JSPB instance for transitional soy proto support:
19120
20421
  * http://goto/soy-param-migration
19121
- * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The msg instance to transform.
20422
+ * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The msg instance to transform.
19122
20423
  * @return {!Object}
19123
20424
  * @suppress {unusedLocalVariables} f is only used for nested messages
19124
20425
  */
19125
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInstance, msg) {
20426
+ proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance, msg) {
19126
20427
  var f, obj = {
19127
20428
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
19128
- userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
19129
- promoCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
20429
+ promoCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
20430
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
19130
20431
  currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
19131
20432
  country: jspb.Message.getFieldWithDefault(msg, 5, ""),
19132
20433
  locale: jspb.Message.getFieldWithDefault(msg, 6, "")
@@ -19143,23 +20444,23 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInst
19143
20444
  /**
19144
20445
  * Deserializes binary data (in protobuf wire format).
19145
20446
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
19146
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
20447
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
19147
20448
  */
19148
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinary = function(bytes) {
20449
+ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinary = function(bytes) {
19149
20450
  var reader = new jspb.BinaryReader(bytes);
19150
- var msg = new proto.bonus.ApplyUserPromocodeToUserBonusRequest;
19151
- return proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader(msg, reader);
20451
+ var msg = new proto.bonus.ApplyUserBonusPromocodeRequest;
20452
+ return proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader(msg, reader);
19152
20453
  };
19153
20454
 
19154
20455
 
19155
20456
  /**
19156
20457
  * Deserializes binary data (in protobuf wire format) from the
19157
20458
  * given reader into the given message object.
19158
- * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The message object to deserialize into.
20459
+ * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The message object to deserialize into.
19159
20460
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19160
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
20461
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
19161
20462
  */
19162
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
20463
+ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = function(msg, reader) {
19163
20464
  while (reader.nextField()) {
19164
20465
  if (reader.isEndGroup()) {
19165
20466
  break;
@@ -19171,13 +20472,13 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = f
19171
20472
  msg.setUserId(value);
19172
20473
  break;
19173
20474
  case 2:
19174
- var value = /** @type {number} */ (reader.readInt32());
19175
- msg.setUserBonusId(value);
19176
- break;
19177
- case 3:
19178
20475
  var value = /** @type {string} */ (reader.readString());
19179
20476
  msg.setPromoCode(value);
19180
20477
  break;
20478
+ case 3:
20479
+ var value = /** @type {number} */ (reader.readInt32());
20480
+ msg.setUserBonusId(value);
20481
+ break;
19181
20482
  case 4:
19182
20483
  var value = /** @type {string} */ (reader.readString());
19183
20484
  msg.setCurrency(value);
@@ -19203,9 +20504,9 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = f
19203
20504
  * Serializes the message to binary data (in protobuf wire format).
19204
20505
  * @return {!Uint8Array}
19205
20506
  */
19206
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = function() {
20507
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function() {
19207
20508
  var writer = new jspb.BinaryWriter();
19208
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter(this, writer);
20509
+ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter(this, writer);
19209
20510
  return writer.getResultBuffer();
19210
20511
  };
19211
20512
 
@@ -19213,11 +20514,11 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = fun
19213
20514
  /**
19214
20515
  * Serializes the given message to binary data (in protobuf wire
19215
20516
  * format), writing to the given BinaryWriter.
19216
- * @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} message
20517
+ * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} message
19217
20518
  * @param {!jspb.BinaryWriter} writer
19218
20519
  * @suppress {unusedLocalVariables} f is only used for nested messages
19219
20520
  */
19220
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
20521
+ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(message, writer) {
19221
20522
  var f = undefined;
19222
20523
  f = message.getUserId();
19223
20524
  if (f !== 0) {
@@ -19226,16 +20527,16 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = funct
19226
20527
  f
19227
20528
  );
19228
20529
  }
19229
- f = message.getUserBonusId();
19230
- if (f !== 0) {
19231
- writer.writeInt32(
20530
+ f = message.getPromoCode();
20531
+ if (f.length > 0) {
20532
+ writer.writeString(
19232
20533
  2,
19233
20534
  f
19234
20535
  );
19235
20536
  }
19236
- f = message.getPromoCode();
19237
- if (f.length > 0) {
19238
- writer.writeString(
20537
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
20538
+ if (f != null) {
20539
+ writer.writeInt32(
19239
20540
  3,
19240
20541
  f
19241
20542
  );
@@ -19268,53 +20569,71 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = funct
19268
20569
  * optional int32 user_id = 1;
19269
20570
  * @return {number}
19270
20571
  */
19271
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserId = function() {
20572
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserId = function() {
19272
20573
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19273
20574
  };
19274
20575
 
19275
20576
 
19276
20577
  /**
19277
20578
  * @param {number} value
19278
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20579
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19279
20580
  */
19280
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserId = function(value) {
20581
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserId = function(value) {
19281
20582
  return jspb.Message.setProto3IntField(this, 1, value);
19282
20583
  };
19283
20584
 
19284
20585
 
19285
20586
  /**
19286
- * optional int32 user_bonus_id = 2;
20587
+ * optional string promo_code = 2;
20588
+ * @return {string}
20589
+ */
20590
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getPromoCode = function() {
20591
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20592
+ };
20593
+
20594
+
20595
+ /**
20596
+ * @param {string} value
20597
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20598
+ */
20599
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setPromoCode = function(value) {
20600
+ return jspb.Message.setProto3StringField(this, 2, value);
20601
+ };
20602
+
20603
+
20604
+ /**
20605
+ * optional int32 user_bonus_id = 3;
19287
20606
  * @return {number}
19288
20607
  */
19289
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserBonusId = function() {
19290
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20608
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserBonusId = function() {
20609
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
19291
20610
  };
19292
20611
 
19293
20612
 
19294
20613
  /**
19295
20614
  * @param {number} value
19296
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20615
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19297
20616
  */
19298
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserBonusId = function(value) {
19299
- return jspb.Message.setProto3IntField(this, 2, value);
20617
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserBonusId = function(value) {
20618
+ return jspb.Message.setField(this, 3, value);
19300
20619
  };
19301
20620
 
19302
20621
 
19303
20622
  /**
19304
- * optional string promo_code = 3;
19305
- * @return {string}
20623
+ * Clears the field making it undefined.
20624
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19306
20625
  */
19307
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getPromoCode = function() {
19308
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20626
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearUserBonusId = function() {
20627
+ return jspb.Message.setField(this, 3, undefined);
19309
20628
  };
19310
20629
 
19311
20630
 
19312
20631
  /**
19313
- * @param {string} value
19314
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20632
+ * Returns whether this field is set.
20633
+ * @return {boolean}
19315
20634
  */
19316
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = function(value) {
19317
- return jspb.Message.setProto3StringField(this, 3, value);
20635
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasUserBonusId = function() {
20636
+ return jspb.Message.getField(this, 3) != null;
19318
20637
  };
19319
20638
 
19320
20639
 
@@ -19322,25 +20641,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = functi
19322
20641
  * optional string currency = 4;
19323
20642
  * @return {string}
19324
20643
  */
19325
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCurrency = function() {
20644
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCurrency = function() {
19326
20645
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19327
20646
  };
19328
20647
 
19329
20648
 
19330
20649
  /**
19331
20650
  * @param {string} value
19332
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20651
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19333
20652
  */
19334
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCurrency = function(value) {
20653
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCurrency = function(value) {
19335
20654
  return jspb.Message.setField(this, 4, value);
19336
20655
  };
19337
20656
 
19338
20657
 
19339
20658
  /**
19340
20659
  * Clears the field making it undefined.
19341
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20660
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19342
20661
  */
19343
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = function() {
20662
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCurrency = function() {
19344
20663
  return jspb.Message.setField(this, 4, undefined);
19345
20664
  };
19346
20665
 
@@ -19349,7 +20668,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = funct
19349
20668
  * Returns whether this field is set.
19350
20669
  * @return {boolean}
19351
20670
  */
19352
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = function() {
20671
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCurrency = function() {
19353
20672
  return jspb.Message.getField(this, 4) != null;
19354
20673
  };
19355
20674
 
@@ -19358,25 +20677,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = functio
19358
20677
  * optional string country = 5;
19359
20678
  * @return {string}
19360
20679
  */
19361
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCountry = function() {
20680
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCountry = function() {
19362
20681
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
19363
20682
  };
19364
20683
 
19365
20684
 
19366
20685
  /**
19367
20686
  * @param {string} value
19368
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20687
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19369
20688
  */
19370
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCountry = function(value) {
20689
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCountry = function(value) {
19371
20690
  return jspb.Message.setField(this, 5, value);
19372
20691
  };
19373
20692
 
19374
20693
 
19375
20694
  /**
19376
20695
  * Clears the field making it undefined.
19377
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20696
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19378
20697
  */
19379
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = function() {
20698
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCountry = function() {
19380
20699
  return jspb.Message.setField(this, 5, undefined);
19381
20700
  };
19382
20701
 
@@ -19385,7 +20704,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = functi
19385
20704
  * Returns whether this field is set.
19386
20705
  * @return {boolean}
19387
20706
  */
19388
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function() {
20707
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCountry = function() {
19389
20708
  return jspb.Message.getField(this, 5) != null;
19390
20709
  };
19391
20710
 
@@ -19394,25 +20713,25 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function
19394
20713
  * optional string locale = 6;
19395
20714
  * @return {string}
19396
20715
  */
19397
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getLocale = function() {
20716
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getLocale = function() {
19398
20717
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
19399
20718
  };
19400
20719
 
19401
20720
 
19402
20721
  /**
19403
20722
  * @param {string} value
19404
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20723
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19405
20724
  */
19406
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setLocale = function(value) {
20725
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setLocale = function(value) {
19407
20726
  return jspb.Message.setField(this, 6, value);
19408
20727
  };
19409
20728
 
19410
20729
 
19411
20730
  /**
19412
20731
  * Clears the field making it undefined.
19413
- * @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
20732
+ * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
19414
20733
  */
19415
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = function() {
20734
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearLocale = function() {
19416
20735
  return jspb.Message.setField(this, 6, undefined);
19417
20736
  };
19418
20737
 
@@ -19421,7 +20740,7 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = functio
19421
20740
  * Returns whether this field is set.
19422
20741
  * @return {boolean}
19423
20742
  */
19424
- proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasLocale = function() {
20743
+ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
19425
20744
  return jspb.Message.getField(this, 6) != null;
19426
20745
  };
19427
20746
 
@@ -19442,8 +20761,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
19442
20761
  * http://goto/soy-param-migration
19443
20762
  * @return {!Object}
19444
20763
  */
19445
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_includeInstance) {
19446
- return proto.bonus.ApplyUserBonusPromocodeRequest.toObject(opt_includeInstance, this);
20764
+ proto.bonus.GrantSystemUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
20765
+ return proto.bonus.GrantSystemUserBonusRequest.toObject(opt_includeInstance, this);
19447
20766
  };
19448
20767
 
19449
20768
 
@@ -19452,18 +20771,17 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_inc
19452
20771
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19453
20772
  * the JSPB instance for transitional soy proto support:
19454
20773
  * http://goto/soy-param-migration
19455
- * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The msg instance to transform.
20774
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} msg The msg instance to transform.
19456
20775
  * @return {!Object}
19457
20776
  * @suppress {unusedLocalVariables} f is only used for nested messages
19458
20777
  */
19459
- proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance, msg) {
20778
+ proto.bonus.GrantSystemUserBonusRequest.toObject = function(includeInstance, msg) {
19460
20779
  var f, obj = {
19461
20780
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
19462
- promoCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
19463
- userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
19464
- currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
19465
- country: jspb.Message.getFieldWithDefault(msg, 5, ""),
19466
- locale: jspb.Message.getFieldWithDefault(msg, 6, "")
20781
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
20782
+ grantSource: jspb.Message.getFieldWithDefault(msg, 3, ""),
20783
+ grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
20784
+ currency: jspb.Message.getFieldWithDefault(msg, 5, "")
19467
20785
  };
19468
20786
 
19469
20787
  if (includeInstance) {
@@ -19477,23 +20795,23 @@ proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance,
19477
20795
  /**
19478
20796
  * Deserializes binary data (in protobuf wire format).
19479
20797
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
19480
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
20798
+ * @return {!proto.bonus.GrantSystemUserBonusRequest}
19481
20799
  */
19482
- proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinary = function(bytes) {
20800
+ proto.bonus.GrantSystemUserBonusRequest.deserializeBinary = function(bytes) {
19483
20801
  var reader = new jspb.BinaryReader(bytes);
19484
- var msg = new proto.bonus.ApplyUserBonusPromocodeRequest;
19485
- return proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader(msg, reader);
20802
+ var msg = new proto.bonus.GrantSystemUserBonusRequest;
20803
+ return proto.bonus.GrantSystemUserBonusRequest.deserializeBinaryFromReader(msg, reader);
19486
20804
  };
19487
20805
 
19488
20806
 
19489
20807
  /**
19490
20808
  * Deserializes binary data (in protobuf wire format) from the
19491
20809
  * given reader into the given message object.
19492
- * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The message object to deserialize into.
20810
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} msg The message object to deserialize into.
19493
20811
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19494
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
20812
+ * @return {!proto.bonus.GrantSystemUserBonusRequest}
19495
20813
  */
19496
- proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = function(msg, reader) {
20814
+ proto.bonus.GrantSystemUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
19497
20815
  while (reader.nextField()) {
19498
20816
  if (reader.isEndGroup()) {
19499
20817
  break;
@@ -19505,24 +20823,20 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
19505
20823
  msg.setUserId(value);
19506
20824
  break;
19507
20825
  case 2:
19508
- var value = /** @type {string} */ (reader.readString());
19509
- msg.setPromoCode(value);
20826
+ var value = /** @type {number} */ (reader.readInt32());
20827
+ msg.setBonusTemplateId(value);
19510
20828
  break;
19511
20829
  case 3:
19512
- var value = /** @type {number} */ (reader.readInt32());
19513
- msg.setUserBonusId(value);
20830
+ var value = /** @type {string} */ (reader.readString());
20831
+ msg.setGrantSource(value);
19514
20832
  break;
19515
20833
  case 4:
19516
20834
  var value = /** @type {string} */ (reader.readString());
19517
- msg.setCurrency(value);
20835
+ msg.setGrantId(value);
19518
20836
  break;
19519
20837
  case 5:
19520
20838
  var value = /** @type {string} */ (reader.readString());
19521
- msg.setCountry(value);
19522
- break;
19523
- case 6:
19524
- var value = /** @type {string} */ (reader.readString());
19525
- msg.setLocale(value);
20839
+ msg.setCurrency(value);
19526
20840
  break;
19527
20841
  default:
19528
20842
  reader.skipField();
@@ -19537,9 +20851,9 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
19537
20851
  * Serializes the message to binary data (in protobuf wire format).
19538
20852
  * @return {!Uint8Array}
19539
20853
  */
19540
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function() {
20854
+ proto.bonus.GrantSystemUserBonusRequest.prototype.serializeBinary = function() {
19541
20855
  var writer = new jspb.BinaryWriter();
19542
- proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter(this, writer);
20856
+ proto.bonus.GrantSystemUserBonusRequest.serializeBinaryToWriter(this, writer);
19543
20857
  return writer.getResultBuffer();
19544
20858
  };
19545
20859
 
@@ -19547,11 +20861,11 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function(
19547
20861
  /**
19548
20862
  * Serializes the given message to binary data (in protobuf wire
19549
20863
  * format), writing to the given BinaryWriter.
19550
- * @param {!proto.bonus.ApplyUserBonusPromocodeRequest} message
20864
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} message
19551
20865
  * @param {!jspb.BinaryWriter} writer
19552
20866
  * @suppress {unusedLocalVariables} f is only used for nested messages
19553
20867
  */
19554
- proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(message, writer) {
20868
+ proto.bonus.GrantSystemUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
19555
20869
  var f = undefined;
19556
20870
  f = message.getUserId();
19557
20871
  if (f !== 0) {
@@ -19560,41 +20874,34 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
19560
20874
  f
19561
20875
  );
19562
20876
  }
19563
- f = message.getPromoCode();
19564
- if (f.length > 0) {
19565
- writer.writeString(
20877
+ f = message.getBonusTemplateId();
20878
+ if (f !== 0) {
20879
+ writer.writeInt32(
19566
20880
  2,
19567
20881
  f
19568
20882
  );
19569
20883
  }
19570
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
19571
- if (f != null) {
19572
- writer.writeInt32(
20884
+ f = message.getGrantSource();
20885
+ if (f.length > 0) {
20886
+ writer.writeString(
19573
20887
  3,
19574
20888
  f
19575
20889
  );
19576
20890
  }
19577
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
19578
- if (f != null) {
20891
+ f = message.getGrantId();
20892
+ if (f.length > 0) {
19579
20893
  writer.writeString(
19580
20894
  4,
19581
20895
  f
19582
20896
  );
19583
20897
  }
19584
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
19585
- if (f != null) {
20898
+ f = message.getCurrency();
20899
+ if (f.length > 0) {
19586
20900
  writer.writeString(
19587
20901
  5,
19588
20902
  f
19589
20903
  );
19590
20904
  }
19591
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
19592
- if (f != null) {
19593
- writer.writeString(
19594
- 6,
19595
- f
19596
- );
19597
- }
19598
20905
  };
19599
20906
 
19600
20907
 
@@ -19602,179 +20909,249 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
19602
20909
  * optional int32 user_id = 1;
19603
20910
  * @return {number}
19604
20911
  */
19605
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserId = function() {
20912
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getUserId = function() {
19606
20913
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19607
20914
  };
19608
20915
 
19609
20916
 
19610
20917
  /**
19611
20918
  * @param {number} value
19612
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20919
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19613
20920
  */
19614
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserId = function(value) {
20921
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setUserId = function(value) {
19615
20922
  return jspb.Message.setProto3IntField(this, 1, value);
19616
20923
  };
19617
20924
 
19618
20925
 
19619
20926
  /**
19620
- * optional string promo_code = 2;
19621
- * @return {string}
20927
+ * optional int32 bonus_template_id = 2;
20928
+ * @return {number}
19622
20929
  */
19623
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getPromoCode = function() {
19624
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20930
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getBonusTemplateId = function() {
20931
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
19625
20932
  };
19626
20933
 
19627
20934
 
19628
20935
  /**
19629
- * @param {string} value
19630
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20936
+ * @param {number} value
20937
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19631
20938
  */
19632
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setPromoCode = function(value) {
19633
- return jspb.Message.setProto3StringField(this, 2, value);
20939
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setBonusTemplateId = function(value) {
20940
+ return jspb.Message.setProto3IntField(this, 2, value);
19634
20941
  };
19635
20942
 
19636
20943
 
19637
20944
  /**
19638
- * optional int32 user_bonus_id = 3;
19639
- * @return {number}
20945
+ * optional string grant_source = 3;
20946
+ * @return {string}
19640
20947
  */
19641
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserBonusId = function() {
19642
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
20948
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getGrantSource = function() {
20949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
19643
20950
  };
19644
20951
 
19645
20952
 
19646
20953
  /**
19647
- * @param {number} value
19648
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20954
+ * @param {string} value
20955
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19649
20956
  */
19650
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserBonusId = function(value) {
19651
- return jspb.Message.setField(this, 3, value);
20957
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setGrantSource = function(value) {
20958
+ return jspb.Message.setProto3StringField(this, 3, value);
19652
20959
  };
19653
20960
 
19654
20961
 
19655
20962
  /**
19656
- * Clears the field making it undefined.
19657
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20963
+ * optional string grant_id = 4;
20964
+ * @return {string}
19658
20965
  */
19659
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearUserBonusId = function() {
19660
- return jspb.Message.setField(this, 3, undefined);
20966
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getGrantId = function() {
20967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19661
20968
  };
19662
20969
 
19663
20970
 
19664
20971
  /**
19665
- * Returns whether this field is set.
19666
- * @return {boolean}
20972
+ * @param {string} value
20973
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19667
20974
  */
19668
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasUserBonusId = function() {
19669
- return jspb.Message.getField(this, 3) != null;
20975
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setGrantId = function(value) {
20976
+ return jspb.Message.setProto3StringField(this, 4, value);
19670
20977
  };
19671
20978
 
19672
20979
 
19673
20980
  /**
19674
- * optional string currency = 4;
20981
+ * optional string currency = 5;
19675
20982
  * @return {string}
19676
20983
  */
19677
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCurrency = function() {
19678
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
20984
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getCurrency = function() {
20985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
19679
20986
  };
19680
20987
 
19681
20988
 
19682
20989
  /**
19683
20990
  * @param {string} value
19684
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
20991
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19685
20992
  */
19686
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCurrency = function(value) {
19687
- return jspb.Message.setField(this, 4, value);
20993
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setCurrency = function(value) {
20994
+ return jspb.Message.setProto3StringField(this, 5, value);
19688
20995
  };
19689
20996
 
19690
20997
 
20998
+
20999
+
21000
+
21001
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19691
21002
  /**
19692
- * Clears the field making it undefined.
19693
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
21003
+ * Creates an object representation of this proto.
21004
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21005
+ * Optional fields that are not set will be set to undefined.
21006
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21007
+ * For the list of reserved names please see:
21008
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21009
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21010
+ * JSPB instance for transitional soy proto support:
21011
+ * http://goto/soy-param-migration
21012
+ * @return {!Object}
19694
21013
  */
19695
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCurrency = function() {
19696
- return jspb.Message.setField(this, 4, undefined);
21014
+ proto.bonus.GrantSystemUserBonusResponse.prototype.toObject = function(opt_includeInstance) {
21015
+ return proto.bonus.GrantSystemUserBonusResponse.toObject(opt_includeInstance, this);
19697
21016
  };
19698
21017
 
19699
21018
 
19700
21019
  /**
19701
- * Returns whether this field is set.
19702
- * @return {boolean}
21020
+ * Static version of the {@see toObject} method.
21021
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21022
+ * the JSPB instance for transitional soy proto support:
21023
+ * http://goto/soy-param-migration
21024
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} msg The msg instance to transform.
21025
+ * @return {!Object}
21026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19703
21027
  */
19704
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCurrency = function() {
19705
- return jspb.Message.getField(this, 4) != null;
21028
+ proto.bonus.GrantSystemUserBonusResponse.toObject = function(includeInstance, msg) {
21029
+ var f, obj = {
21030
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
21031
+ status: jspb.Message.getFieldWithDefault(msg, 2, "")
21032
+ };
21033
+
21034
+ if (includeInstance) {
21035
+ obj.$jspbMessageInstance = msg;
21036
+ }
21037
+ return obj;
19706
21038
  };
21039
+ }
19707
21040
 
19708
21041
 
19709
21042
  /**
19710
- * optional string country = 5;
19711
- * @return {string}
21043
+ * Deserializes binary data (in protobuf wire format).
21044
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21045
+ * @return {!proto.bonus.GrantSystemUserBonusResponse}
19712
21046
  */
19713
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCountry = function() {
19714
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
21047
+ proto.bonus.GrantSystemUserBonusResponse.deserializeBinary = function(bytes) {
21048
+ var reader = new jspb.BinaryReader(bytes);
21049
+ var msg = new proto.bonus.GrantSystemUserBonusResponse;
21050
+ return proto.bonus.GrantSystemUserBonusResponse.deserializeBinaryFromReader(msg, reader);
19715
21051
  };
19716
21052
 
19717
21053
 
19718
21054
  /**
19719
- * @param {string} value
19720
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
21055
+ * Deserializes binary data (in protobuf wire format) from the
21056
+ * given reader into the given message object.
21057
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} msg The message object to deserialize into.
21058
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21059
+ * @return {!proto.bonus.GrantSystemUserBonusResponse}
19721
21060
  */
19722
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCountry = function(value) {
19723
- return jspb.Message.setField(this, 5, value);
21061
+ proto.bonus.GrantSystemUserBonusResponse.deserializeBinaryFromReader = function(msg, reader) {
21062
+ while (reader.nextField()) {
21063
+ if (reader.isEndGroup()) {
21064
+ break;
21065
+ }
21066
+ var field = reader.getFieldNumber();
21067
+ switch (field) {
21068
+ case 1:
21069
+ var value = /** @type {number} */ (reader.readInt32());
21070
+ msg.setUserBonusId(value);
21071
+ break;
21072
+ case 2:
21073
+ var value = /** @type {string} */ (reader.readString());
21074
+ msg.setStatus(value);
21075
+ break;
21076
+ default:
21077
+ reader.skipField();
21078
+ break;
21079
+ }
21080
+ }
21081
+ return msg;
19724
21082
  };
19725
21083
 
19726
21084
 
19727
21085
  /**
19728
- * Clears the field making it undefined.
19729
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
21086
+ * Serializes the message to binary data (in protobuf wire format).
21087
+ * @return {!Uint8Array}
19730
21088
  */
19731
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCountry = function() {
19732
- return jspb.Message.setField(this, 5, undefined);
21089
+ proto.bonus.GrantSystemUserBonusResponse.prototype.serializeBinary = function() {
21090
+ var writer = new jspb.BinaryWriter();
21091
+ proto.bonus.GrantSystemUserBonusResponse.serializeBinaryToWriter(this, writer);
21092
+ return writer.getResultBuffer();
19733
21093
  };
19734
21094
 
19735
21095
 
19736
21096
  /**
19737
- * Returns whether this field is set.
19738
- * @return {boolean}
21097
+ * Serializes the given message to binary data (in protobuf wire
21098
+ * format), writing to the given BinaryWriter.
21099
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} message
21100
+ * @param {!jspb.BinaryWriter} writer
21101
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19739
21102
  */
19740
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCountry = function() {
19741
- return jspb.Message.getField(this, 5) != null;
21103
+ proto.bonus.GrantSystemUserBonusResponse.serializeBinaryToWriter = function(message, writer) {
21104
+ var f = undefined;
21105
+ f = message.getUserBonusId();
21106
+ if (f !== 0) {
21107
+ writer.writeInt32(
21108
+ 1,
21109
+ f
21110
+ );
21111
+ }
21112
+ f = message.getStatus();
21113
+ if (f.length > 0) {
21114
+ writer.writeString(
21115
+ 2,
21116
+ f
21117
+ );
21118
+ }
19742
21119
  };
19743
21120
 
19744
21121
 
19745
21122
  /**
19746
- * optional string locale = 6;
19747
- * @return {string}
21123
+ * optional int32 user_bonus_id = 1;
21124
+ * @return {number}
19748
21125
  */
19749
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getLocale = function() {
19750
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
21126
+ proto.bonus.GrantSystemUserBonusResponse.prototype.getUserBonusId = function() {
21127
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19751
21128
  };
19752
21129
 
19753
21130
 
19754
21131
  /**
19755
- * @param {string} value
19756
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
21132
+ * @param {number} value
21133
+ * @return {!proto.bonus.GrantSystemUserBonusResponse} returns this
19757
21134
  */
19758
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setLocale = function(value) {
19759
- return jspb.Message.setField(this, 6, value);
21135
+ proto.bonus.GrantSystemUserBonusResponse.prototype.setUserBonusId = function(value) {
21136
+ return jspb.Message.setProto3IntField(this, 1, value);
19760
21137
  };
19761
21138
 
19762
21139
 
19763
21140
  /**
19764
- * Clears the field making it undefined.
19765
- * @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
21141
+ * optional string status = 2;
21142
+ * @return {string}
19766
21143
  */
19767
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearLocale = function() {
19768
- return jspb.Message.setField(this, 6, undefined);
21144
+ proto.bonus.GrantSystemUserBonusResponse.prototype.getStatus = function() {
21145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19769
21146
  };
19770
21147
 
19771
21148
 
19772
21149
  /**
19773
- * Returns whether this field is set.
19774
- * @return {boolean}
21150
+ * @param {string} value
21151
+ * @return {!proto.bonus.GrantSystemUserBonusResponse} returns this
19775
21152
  */
19776
- proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
19777
- return jspb.Message.getField(this, 6) != null;
21153
+ proto.bonus.GrantSystemUserBonusResponse.prototype.setStatus = function(value) {
21154
+ return jspb.Message.setProto3StringField(this, 2, value);
19778
21155
  };
19779
21156
 
19780
21157
 
@@ -21992,7 +23369,9 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
21992
23369
  proto.bonus.ActivationRule.toObject, includeInstance),
21993
23370
  betsRangeList: jspb.Message.toObjectList(msg.getBetsRangeList(),
21994
23371
  proto.bonus.BetsRange.toObject, includeInstance),
21995
- bonusId: jspb.Message.getFieldWithDefault(msg, 17, 0)
23372
+ bonusId: jspb.Message.getFieldWithDefault(msg, 17, 0),
23373
+ portraitImage: jspb.Message.getFieldWithDefault(msg, 18, ""),
23374
+ portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 19, "")
21996
23375
  };
21997
23376
 
21998
23377
  if (includeInstance) {
@@ -22100,6 +23479,14 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
22100
23479
  var value = /** @type {number} */ (reader.readInt32());
22101
23480
  msg.setBonusId(value);
22102
23481
  break;
23482
+ case 18:
23483
+ var value = /** @type {string} */ (reader.readString());
23484
+ msg.setPortraitImage(value);
23485
+ break;
23486
+ case 19:
23487
+ var value = /** @type {string} */ (reader.readString());
23488
+ msg.setPortraitImageCdn(value);
23489
+ break;
22103
23490
  default:
22104
23491
  reader.skipField();
22105
23492
  break;
@@ -22251,6 +23638,20 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
22251
23638
  f
22252
23639
  );
22253
23640
  }
23641
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
23642
+ if (f != null) {
23643
+ writer.writeString(
23644
+ 18,
23645
+ f
23646
+ );
23647
+ }
23648
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
23649
+ if (f != null) {
23650
+ writer.writeString(
23651
+ 19,
23652
+ f
23653
+ );
23654
+ }
22254
23655
  };
22255
23656
 
22256
23657
 
@@ -22872,6 +24273,78 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasBonusId = function() {
22872
24273
  };
22873
24274
 
22874
24275
 
24276
+ /**
24277
+ * optional string portrait_image = 18;
24278
+ * @return {string}
24279
+ */
24280
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getPortraitImage = function() {
24281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
24282
+ };
24283
+
24284
+
24285
+ /**
24286
+ * @param {string} value
24287
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
24288
+ */
24289
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setPortraitImage = function(value) {
24290
+ return jspb.Message.setField(this, 18, value);
24291
+ };
24292
+
24293
+
24294
+ /**
24295
+ * Clears the field making it undefined.
24296
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
24297
+ */
24298
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearPortraitImage = function() {
24299
+ return jspb.Message.setField(this, 18, undefined);
24300
+ };
24301
+
24302
+
24303
+ /**
24304
+ * Returns whether this field is set.
24305
+ * @return {boolean}
24306
+ */
24307
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasPortraitImage = function() {
24308
+ return jspb.Message.getField(this, 18) != null;
24309
+ };
24310
+
24311
+
24312
+ /**
24313
+ * optional string portrait_image_cdn = 19;
24314
+ * @return {string}
24315
+ */
24316
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getPortraitImageCdn = function() {
24317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
24318
+ };
24319
+
24320
+
24321
+ /**
24322
+ * @param {string} value
24323
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
24324
+ */
24325
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setPortraitImageCdn = function(value) {
24326
+ return jspb.Message.setField(this, 19, value);
24327
+ };
24328
+
24329
+
24330
+ /**
24331
+ * Clears the field making it undefined.
24332
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
24333
+ */
24334
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearPortraitImageCdn = function() {
24335
+ return jspb.Message.setField(this, 19, undefined);
24336
+ };
24337
+
24338
+
24339
+ /**
24340
+ * Returns whether this field is set.
24341
+ * @return {boolean}
24342
+ */
24343
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasPortraitImageCdn = function() {
24344
+ return jspb.Message.getField(this, 19) != null;
24345
+ };
24346
+
24347
+
22875
24348
 
22876
24349
 
22877
24350