protobuf-platform 1.2.367 → 1.2.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bonus/bonus.proto CHANGED
@@ -264,6 +264,7 @@ message UserBonusItem {
264
264
  optional float reward_free_bet = 28;
265
265
  optional string closed_at = 29;
266
266
  optional string history_type = 30;
267
+ optional bool can_activate = 31;
267
268
  }
268
269
  message FreeSpinItem {
269
270
  int32 game_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -10063,7 +10063,8 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
10063
10063
  statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
10064
10064
  rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
10065
10065
  closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
10066
- historyType: jspb.Message.getFieldWithDefault(msg, 30, "")
10066
+ historyType: jspb.Message.getFieldWithDefault(msg, 30, ""),
10067
+ canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false)
10067
10068
  };
10068
10069
 
10069
10070
  if (includeInstance) {
@@ -10222,6 +10223,10 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
10222
10223
  var value = /** @type {string} */ (reader.readString());
10223
10224
  msg.setHistoryType(value);
10224
10225
  break;
10226
+ case 31:
10227
+ var value = /** @type {boolean} */ (reader.readBool());
10228
+ msg.setCanActivate(value);
10229
+ break;
10225
10230
  default:
10226
10231
  reader.skipField();
10227
10232
  break;
@@ -10463,6 +10468,13 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
10463
10468
  f
10464
10469
  );
10465
10470
  }
10471
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
10472
+ if (f != null) {
10473
+ writer.writeBool(
10474
+ 31,
10475
+ f
10476
+ );
10477
+ }
10466
10478
  };
10467
10479
 
10468
10480
 
@@ -11549,6 +11561,42 @@ proto.bonus.UserBonusItem.prototype.hasHistoryType = function() {
11549
11561
  };
11550
11562
 
11551
11563
 
11564
+ /**
11565
+ * optional bool can_activate = 31;
11566
+ * @return {boolean}
11567
+ */
11568
+ proto.bonus.UserBonusItem.prototype.getCanActivate = function() {
11569
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, false));
11570
+ };
11571
+
11572
+
11573
+ /**
11574
+ * @param {boolean} value
11575
+ * @return {!proto.bonus.UserBonusItem} returns this
11576
+ */
11577
+ proto.bonus.UserBonusItem.prototype.setCanActivate = function(value) {
11578
+ return jspb.Message.setField(this, 31, value);
11579
+ };
11580
+
11581
+
11582
+ /**
11583
+ * Clears the field making it undefined.
11584
+ * @return {!proto.bonus.UserBonusItem} returns this
11585
+ */
11586
+ proto.bonus.UserBonusItem.prototype.clearCanActivate = function() {
11587
+ return jspb.Message.setField(this, 31, undefined);
11588
+ };
11589
+
11590
+
11591
+ /**
11592
+ * Returns whether this field is set.
11593
+ * @return {boolean}
11594
+ */
11595
+ proto.bonus.UserBonusItem.prototype.hasCanActivate = function() {
11596
+ return jspb.Message.getField(this, 31) != null;
11597
+ };
11598
+
11599
+
11552
11600
 
11553
11601
 
11554
11602
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.367",
3
+ "version": "1.2.368",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,6 +46,7 @@ service Payment {
46
46
  rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
47
47
  rpc userWithdrawalHistory(GetUserPaymentsInfoRequest) returns (UserWithdrawalItemsResponse);
48
48
  rpc userPaymentHistory(GetUserPaymentsInfoRequest) returns (UserPaymentHistoryItemsResponse);
49
+ rpc getUserDepositCount(GetUserDepositCountRequest) returns (UserDepositCountResponse);
49
50
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
50
51
  //Segmentation
51
52
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
@@ -475,6 +476,14 @@ message UserPaymentsInfoResponse {
475
476
  int32 deposit_attempt = 11;
476
477
  int32 withdrawal_attempt = 12;
477
478
  }
479
+ message GetUserDepositCountRequest {
480
+ int32 user_id = 1;
481
+ optional string status = 2;
482
+ }
483
+ message UserDepositCountResponse {
484
+ int32 user_id = 1;
485
+ int32 deposit_count = 2;
486
+ }
478
487
  message UserDepositItem {
479
488
  int32 deposit_id = 1;
480
489
  float amount_attempt = 2;
@@ -246,6 +246,17 @@ function deserialize_payment_GetProviderTranslationRequest(buffer_arg) {
246
246
  return payment_pb.GetProviderTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
247
247
  }
248
248
 
249
+ function serialize_payment_GetUserDepositCountRequest(arg) {
250
+ if (!(arg instanceof payment_pb.GetUserDepositCountRequest)) {
251
+ throw new Error('Expected argument of type payment.GetUserDepositCountRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_payment_GetUserDepositCountRequest(buffer_arg) {
257
+ return payment_pb.GetUserDepositCountRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
249
260
  function serialize_payment_GetUserPaymentsInfoRequest(arg) {
250
261
  if (!(arg instanceof payment_pb.GetUserPaymentsInfoRequest)) {
251
262
  throw new Error('Expected argument of type payment.GetUserPaymentsInfoRequest');
@@ -532,6 +543,17 @@ function deserialize_payment_UpdateCurrencyRequest(buffer_arg) {
532
543
  return payment_pb.UpdateCurrencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
533
544
  }
534
545
 
546
+ function serialize_payment_UserDepositCountResponse(arg) {
547
+ if (!(arg instanceof payment_pb.UserDepositCountResponse)) {
548
+ throw new Error('Expected argument of type payment.UserDepositCountResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_payment_UserDepositCountResponse(buffer_arg) {
554
+ return payment_pb.UserDepositCountResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
535
557
  function serialize_payment_UserDepositItemsResponse(arg) {
536
558
  if (!(arg instanceof payment_pb.UserDepositItemsResponse)) {
537
559
  throw new Error('Expected argument of type payment.UserDepositItemsResponse');
@@ -1025,6 +1047,17 @@ userPaymentsInfo: {
1025
1047
  responseSerialize: serialize_payment_UserPaymentHistoryItemsResponse,
1026
1048
  responseDeserialize: deserialize_payment_UserPaymentHistoryItemsResponse,
1027
1049
  },
1050
+ getUserDepositCount: {
1051
+ path: '/payment.Payment/getUserDepositCount',
1052
+ requestStream: false,
1053
+ responseStream: false,
1054
+ requestType: payment_pb.GetUserDepositCountRequest,
1055
+ responseType: payment_pb.UserDepositCountResponse,
1056
+ requestSerialize: serialize_payment_GetUserDepositCountRequest,
1057
+ requestDeserialize: deserialize_payment_GetUserDepositCountRequest,
1058
+ responseSerialize: serialize_payment_UserDepositCountResponse,
1059
+ responseDeserialize: deserialize_payment_UserDepositCountResponse,
1060
+ },
1028
1061
  getPaymentMethodsForUser: {
1029
1062
  path: '/payment.Payment/getPaymentMethodsForUser',
1030
1063
  requestStream: false,
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
47
47
  goog.exportSymbol('proto.payment.GetOperationDetailsRequest', null, global);
48
48
  goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
49
49
  goog.exportSymbol('proto.payment.GetProviderTranslationRequest', null, global);
50
+ goog.exportSymbol('proto.payment.GetUserDepositCountRequest', null, global);
50
51
  goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
51
52
  goog.exportSymbol('proto.payment.GetWithdrawalRequest', null, global);
52
53
  goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
@@ -84,6 +85,7 @@ goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
84
85
  goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
85
86
  goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
86
87
  goog.exportSymbol('proto.payment.UpdateCurrencyRequest', null, global);
88
+ goog.exportSymbol('proto.payment.UserDepositCountResponse', null, global);
87
89
  goog.exportSymbol('proto.payment.UserDepositItem', null, global);
88
90
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
89
91
  goog.exportSymbol('proto.payment.UserPaymentHistoryItem', null, global);
@@ -1210,6 +1212,48 @@ if (goog.DEBUG && !COMPILED) {
1210
1212
  */
1211
1213
  proto.payment.UserPaymentsInfoResponse.displayName = 'proto.payment.UserPaymentsInfoResponse';
1212
1214
  }
1215
+ /**
1216
+ * Generated by JsPbCodeGenerator.
1217
+ * @param {Array=} opt_data Optional initial data array, typically from a
1218
+ * server response, or constructed directly in Javascript. The array is used
1219
+ * in place and becomes part of the constructed object. It is not cloned.
1220
+ * If no data is provided, the constructed object will be empty, but still
1221
+ * valid.
1222
+ * @extends {jspb.Message}
1223
+ * @constructor
1224
+ */
1225
+ proto.payment.GetUserDepositCountRequest = function(opt_data) {
1226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1227
+ };
1228
+ goog.inherits(proto.payment.GetUserDepositCountRequest, jspb.Message);
1229
+ if (goog.DEBUG && !COMPILED) {
1230
+ /**
1231
+ * @public
1232
+ * @override
1233
+ */
1234
+ proto.payment.GetUserDepositCountRequest.displayName = 'proto.payment.GetUserDepositCountRequest';
1235
+ }
1236
+ /**
1237
+ * Generated by JsPbCodeGenerator.
1238
+ * @param {Array=} opt_data Optional initial data array, typically from a
1239
+ * server response, or constructed directly in Javascript. The array is used
1240
+ * in place and becomes part of the constructed object. It is not cloned.
1241
+ * If no data is provided, the constructed object will be empty, but still
1242
+ * valid.
1243
+ * @extends {jspb.Message}
1244
+ * @constructor
1245
+ */
1246
+ proto.payment.UserDepositCountResponse = function(opt_data) {
1247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1248
+ };
1249
+ goog.inherits(proto.payment.UserDepositCountResponse, jspb.Message);
1250
+ if (goog.DEBUG && !COMPILED) {
1251
+ /**
1252
+ * @public
1253
+ * @override
1254
+ */
1255
+ proto.payment.UserDepositCountResponse.displayName = 'proto.payment.UserDepositCountResponse';
1256
+ }
1213
1257
  /**
1214
1258
  * Generated by JsPbCodeGenerator.
1215
1259
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -20088,6 +20132,344 @@ proto.payment.UserPaymentsInfoResponse.prototype.setWithdrawalAttempt = function
20088
20132
 
20089
20133
 
20090
20134
 
20135
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20136
+ /**
20137
+ * Creates an object representation of this proto.
20138
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20139
+ * Optional fields that are not set will be set to undefined.
20140
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20141
+ * For the list of reserved names please see:
20142
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20143
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20144
+ * JSPB instance for transitional soy proto support:
20145
+ * http://goto/soy-param-migration
20146
+ * @return {!Object}
20147
+ */
20148
+ proto.payment.GetUserDepositCountRequest.prototype.toObject = function(opt_includeInstance) {
20149
+ return proto.payment.GetUserDepositCountRequest.toObject(opt_includeInstance, this);
20150
+ };
20151
+
20152
+
20153
+ /**
20154
+ * Static version of the {@see toObject} method.
20155
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20156
+ * the JSPB instance for transitional soy proto support:
20157
+ * http://goto/soy-param-migration
20158
+ * @param {!proto.payment.GetUserDepositCountRequest} msg The msg instance to transform.
20159
+ * @return {!Object}
20160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20161
+ */
20162
+ proto.payment.GetUserDepositCountRequest.toObject = function(includeInstance, msg) {
20163
+ var f, obj = {
20164
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
20165
+ status: jspb.Message.getFieldWithDefault(msg, 2, "")
20166
+ };
20167
+
20168
+ if (includeInstance) {
20169
+ obj.$jspbMessageInstance = msg;
20170
+ }
20171
+ return obj;
20172
+ };
20173
+ }
20174
+
20175
+
20176
+ /**
20177
+ * Deserializes binary data (in protobuf wire format).
20178
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20179
+ * @return {!proto.payment.GetUserDepositCountRequest}
20180
+ */
20181
+ proto.payment.GetUserDepositCountRequest.deserializeBinary = function(bytes) {
20182
+ var reader = new jspb.BinaryReader(bytes);
20183
+ var msg = new proto.payment.GetUserDepositCountRequest;
20184
+ return proto.payment.GetUserDepositCountRequest.deserializeBinaryFromReader(msg, reader);
20185
+ };
20186
+
20187
+
20188
+ /**
20189
+ * Deserializes binary data (in protobuf wire format) from the
20190
+ * given reader into the given message object.
20191
+ * @param {!proto.payment.GetUserDepositCountRequest} msg The message object to deserialize into.
20192
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20193
+ * @return {!proto.payment.GetUserDepositCountRequest}
20194
+ */
20195
+ proto.payment.GetUserDepositCountRequest.deserializeBinaryFromReader = function(msg, reader) {
20196
+ while (reader.nextField()) {
20197
+ if (reader.isEndGroup()) {
20198
+ break;
20199
+ }
20200
+ var field = reader.getFieldNumber();
20201
+ switch (field) {
20202
+ case 1:
20203
+ var value = /** @type {number} */ (reader.readInt32());
20204
+ msg.setUserId(value);
20205
+ break;
20206
+ case 2:
20207
+ var value = /** @type {string} */ (reader.readString());
20208
+ msg.setStatus(value);
20209
+ break;
20210
+ default:
20211
+ reader.skipField();
20212
+ break;
20213
+ }
20214
+ }
20215
+ return msg;
20216
+ };
20217
+
20218
+
20219
+ /**
20220
+ * Serializes the message to binary data (in protobuf wire format).
20221
+ * @return {!Uint8Array}
20222
+ */
20223
+ proto.payment.GetUserDepositCountRequest.prototype.serializeBinary = function() {
20224
+ var writer = new jspb.BinaryWriter();
20225
+ proto.payment.GetUserDepositCountRequest.serializeBinaryToWriter(this, writer);
20226
+ return writer.getResultBuffer();
20227
+ };
20228
+
20229
+
20230
+ /**
20231
+ * Serializes the given message to binary data (in protobuf wire
20232
+ * format), writing to the given BinaryWriter.
20233
+ * @param {!proto.payment.GetUserDepositCountRequest} message
20234
+ * @param {!jspb.BinaryWriter} writer
20235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20236
+ */
20237
+ proto.payment.GetUserDepositCountRequest.serializeBinaryToWriter = function(message, writer) {
20238
+ var f = undefined;
20239
+ f = message.getUserId();
20240
+ if (f !== 0) {
20241
+ writer.writeInt32(
20242
+ 1,
20243
+ f
20244
+ );
20245
+ }
20246
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
20247
+ if (f != null) {
20248
+ writer.writeString(
20249
+ 2,
20250
+ f
20251
+ );
20252
+ }
20253
+ };
20254
+
20255
+
20256
+ /**
20257
+ * optional int32 user_id = 1;
20258
+ * @return {number}
20259
+ */
20260
+ proto.payment.GetUserDepositCountRequest.prototype.getUserId = function() {
20261
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20262
+ };
20263
+
20264
+
20265
+ /**
20266
+ * @param {number} value
20267
+ * @return {!proto.payment.GetUserDepositCountRequest} returns this
20268
+ */
20269
+ proto.payment.GetUserDepositCountRequest.prototype.setUserId = function(value) {
20270
+ return jspb.Message.setProto3IntField(this, 1, value);
20271
+ };
20272
+
20273
+
20274
+ /**
20275
+ * optional string status = 2;
20276
+ * @return {string}
20277
+ */
20278
+ proto.payment.GetUserDepositCountRequest.prototype.getStatus = function() {
20279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20280
+ };
20281
+
20282
+
20283
+ /**
20284
+ * @param {string} value
20285
+ * @return {!proto.payment.GetUserDepositCountRequest} returns this
20286
+ */
20287
+ proto.payment.GetUserDepositCountRequest.prototype.setStatus = function(value) {
20288
+ return jspb.Message.setField(this, 2, value);
20289
+ };
20290
+
20291
+
20292
+ /**
20293
+ * Clears the field making it undefined.
20294
+ * @return {!proto.payment.GetUserDepositCountRequest} returns this
20295
+ */
20296
+ proto.payment.GetUserDepositCountRequest.prototype.clearStatus = function() {
20297
+ return jspb.Message.setField(this, 2, undefined);
20298
+ };
20299
+
20300
+
20301
+ /**
20302
+ * Returns whether this field is set.
20303
+ * @return {boolean}
20304
+ */
20305
+ proto.payment.GetUserDepositCountRequest.prototype.hasStatus = function() {
20306
+ return jspb.Message.getField(this, 2) != null;
20307
+ };
20308
+
20309
+
20310
+
20311
+
20312
+
20313
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20314
+ /**
20315
+ * Creates an object representation of this proto.
20316
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20317
+ * Optional fields that are not set will be set to undefined.
20318
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20319
+ * For the list of reserved names please see:
20320
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20321
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20322
+ * JSPB instance for transitional soy proto support:
20323
+ * http://goto/soy-param-migration
20324
+ * @return {!Object}
20325
+ */
20326
+ proto.payment.UserDepositCountResponse.prototype.toObject = function(opt_includeInstance) {
20327
+ return proto.payment.UserDepositCountResponse.toObject(opt_includeInstance, this);
20328
+ };
20329
+
20330
+
20331
+ /**
20332
+ * Static version of the {@see toObject} method.
20333
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20334
+ * the JSPB instance for transitional soy proto support:
20335
+ * http://goto/soy-param-migration
20336
+ * @param {!proto.payment.UserDepositCountResponse} msg The msg instance to transform.
20337
+ * @return {!Object}
20338
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20339
+ */
20340
+ proto.payment.UserDepositCountResponse.toObject = function(includeInstance, msg) {
20341
+ var f, obj = {
20342
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
20343
+ depositCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
20344
+ };
20345
+
20346
+ if (includeInstance) {
20347
+ obj.$jspbMessageInstance = msg;
20348
+ }
20349
+ return obj;
20350
+ };
20351
+ }
20352
+
20353
+
20354
+ /**
20355
+ * Deserializes binary data (in protobuf wire format).
20356
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20357
+ * @return {!proto.payment.UserDepositCountResponse}
20358
+ */
20359
+ proto.payment.UserDepositCountResponse.deserializeBinary = function(bytes) {
20360
+ var reader = new jspb.BinaryReader(bytes);
20361
+ var msg = new proto.payment.UserDepositCountResponse;
20362
+ return proto.payment.UserDepositCountResponse.deserializeBinaryFromReader(msg, reader);
20363
+ };
20364
+
20365
+
20366
+ /**
20367
+ * Deserializes binary data (in protobuf wire format) from the
20368
+ * given reader into the given message object.
20369
+ * @param {!proto.payment.UserDepositCountResponse} msg The message object to deserialize into.
20370
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20371
+ * @return {!proto.payment.UserDepositCountResponse}
20372
+ */
20373
+ proto.payment.UserDepositCountResponse.deserializeBinaryFromReader = function(msg, reader) {
20374
+ while (reader.nextField()) {
20375
+ if (reader.isEndGroup()) {
20376
+ break;
20377
+ }
20378
+ var field = reader.getFieldNumber();
20379
+ switch (field) {
20380
+ case 1:
20381
+ var value = /** @type {number} */ (reader.readInt32());
20382
+ msg.setUserId(value);
20383
+ break;
20384
+ case 2:
20385
+ var value = /** @type {number} */ (reader.readInt32());
20386
+ msg.setDepositCount(value);
20387
+ break;
20388
+ default:
20389
+ reader.skipField();
20390
+ break;
20391
+ }
20392
+ }
20393
+ return msg;
20394
+ };
20395
+
20396
+
20397
+ /**
20398
+ * Serializes the message to binary data (in protobuf wire format).
20399
+ * @return {!Uint8Array}
20400
+ */
20401
+ proto.payment.UserDepositCountResponse.prototype.serializeBinary = function() {
20402
+ var writer = new jspb.BinaryWriter();
20403
+ proto.payment.UserDepositCountResponse.serializeBinaryToWriter(this, writer);
20404
+ return writer.getResultBuffer();
20405
+ };
20406
+
20407
+
20408
+ /**
20409
+ * Serializes the given message to binary data (in protobuf wire
20410
+ * format), writing to the given BinaryWriter.
20411
+ * @param {!proto.payment.UserDepositCountResponse} message
20412
+ * @param {!jspb.BinaryWriter} writer
20413
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20414
+ */
20415
+ proto.payment.UserDepositCountResponse.serializeBinaryToWriter = function(message, writer) {
20416
+ var f = undefined;
20417
+ f = message.getUserId();
20418
+ if (f !== 0) {
20419
+ writer.writeInt32(
20420
+ 1,
20421
+ f
20422
+ );
20423
+ }
20424
+ f = message.getDepositCount();
20425
+ if (f !== 0) {
20426
+ writer.writeInt32(
20427
+ 2,
20428
+ f
20429
+ );
20430
+ }
20431
+ };
20432
+
20433
+
20434
+ /**
20435
+ * optional int32 user_id = 1;
20436
+ * @return {number}
20437
+ */
20438
+ proto.payment.UserDepositCountResponse.prototype.getUserId = function() {
20439
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20440
+ };
20441
+
20442
+
20443
+ /**
20444
+ * @param {number} value
20445
+ * @return {!proto.payment.UserDepositCountResponse} returns this
20446
+ */
20447
+ proto.payment.UserDepositCountResponse.prototype.setUserId = function(value) {
20448
+ return jspb.Message.setProto3IntField(this, 1, value);
20449
+ };
20450
+
20451
+
20452
+ /**
20453
+ * optional int32 deposit_count = 2;
20454
+ * @return {number}
20455
+ */
20456
+ proto.payment.UserDepositCountResponse.prototype.getDepositCount = function() {
20457
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20458
+ };
20459
+
20460
+
20461
+ /**
20462
+ * @param {number} value
20463
+ * @return {!proto.payment.UserDepositCountResponse} returns this
20464
+ */
20465
+ proto.payment.UserDepositCountResponse.prototype.setDepositCount = function(value) {
20466
+ return jspb.Message.setProto3IntField(this, 2, value);
20467
+ };
20468
+
20469
+
20470
+
20471
+
20472
+
20091
20473
  if (jspb.Message.GENERATE_TO_OBJECT) {
20092
20474
  /**
20093
20475
  * Creates an object representation of this proto.