protobuf-platform 1.0.296 → 1.0.298

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.
@@ -14,6 +14,7 @@ service Cashback {
14
14
  rpc setCashbackConfig(CashbackConfigRequest) returns (CashbackConfigItem);
15
15
  //User
16
16
  rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
17
+ rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
17
18
  }
18
19
  //Technical
19
20
  message PingRequest { string ping = 1; }
@@ -87,9 +88,28 @@ message CashbackConfigItem {
87
88
  optional float percentage = 5;
88
89
  }
89
90
  //User
91
+ message UserCashbackItem {
92
+ int32 cashback_id = 1;
93
+ string title = 2;
94
+ string type = 3;
95
+ int32 level = 4;
96
+ string currency = 5;
97
+ float net_losses = 6;
98
+ optional float min = 7;
99
+ optional float max = 8;
100
+ optional float percentage = 9;
101
+ optional string calculated_date = 10;
102
+ optional string image = 11;
103
+ optional string status = 12;
104
+ }
90
105
  message CashbackUserRequest {
91
106
  int32 user_id = 1;
92
107
  optional string cashback_type = 2;
93
108
  optional string currency = 3;
94
109
  }
110
+ message UserCashbackItemsResponse {
111
+ repeated UserCashbackItem items = 1;
112
+ optional int32 total_pages = 2;
113
+ optional int32 total_items = 3;
114
+ }
95
115
 
@@ -147,6 +147,17 @@ function deserialize_cashback_PongResponse(buffer_arg) {
147
147
  return cashback_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
148
148
  }
149
149
 
150
+ function serialize_cashback_UserCashbackItemsResponse(arg) {
151
+ if (!(arg instanceof cashback_pb.UserCashbackItemsResponse)) {
152
+ throw new Error('Expected argument of type cashback.UserCashbackItemsResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_cashback_UserCashbackItemsResponse(buffer_arg) {
158
+ return cashback_pb.UserCashbackItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
150
161
 
151
162
  var CashbackService = exports.CashbackService = {
152
163
  checkConnection: {
@@ -250,6 +261,17 @@ getCashbackForUserByType: {
250
261
  responseSerialize: serialize_cashback_CashbackResponse,
251
262
  responseDeserialize: deserialize_cashback_CashbackResponse,
252
263
  },
264
+ getCashbacksListForUser: {
265
+ path: '/cashback.Cashback/getCashbacksListForUser',
266
+ requestStream: false,
267
+ responseStream: false,
268
+ requestType: cashback_pb.CashbackUserRequest,
269
+ responseType: cashback_pb.UserCashbackItemsResponse,
270
+ requestSerialize: serialize_cashback_CashbackUserRequest,
271
+ requestDeserialize: deserialize_cashback_CashbackUserRequest,
272
+ responseSerialize: serialize_cashback_UserCashbackItemsResponse,
273
+ responseDeserialize: deserialize_cashback_UserCashbackItemsResponse,
274
+ },
253
275
  };
254
276
 
255
277
  exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService);
@@ -37,6 +37,8 @@ goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
37
37
  goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
38
38
  goog.exportSymbol('proto.cashback.PingRequest', null, global);
39
39
  goog.exportSymbol('proto.cashback.PongResponse', null, global);
40
+ goog.exportSymbol('proto.cashback.UserCashbackItem', null, global);
41
+ goog.exportSymbol('proto.cashback.UserCashbackItemsResponse', null, global);
40
42
  goog.exportSymbol('proto.cashback.UserSearchRequest', null, global);
41
43
  /**
42
44
  * Generated by JsPbCodeGenerator.
@@ -353,6 +355,27 @@ if (goog.DEBUG && !COMPILED) {
353
355
  */
354
356
  proto.cashback.CashbackConfigItem.displayName = 'proto.cashback.CashbackConfigItem';
355
357
  }
358
+ /**
359
+ * Generated by JsPbCodeGenerator.
360
+ * @param {Array=} opt_data Optional initial data array, typically from a
361
+ * server response, or constructed directly in Javascript. The array is used
362
+ * in place and becomes part of the constructed object. It is not cloned.
363
+ * If no data is provided, the constructed object will be empty, but still
364
+ * valid.
365
+ * @extends {jspb.Message}
366
+ * @constructor
367
+ */
368
+ proto.cashback.UserCashbackItem = function(opt_data) {
369
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
370
+ };
371
+ goog.inherits(proto.cashback.UserCashbackItem, jspb.Message);
372
+ if (goog.DEBUG && !COMPILED) {
373
+ /**
374
+ * @public
375
+ * @override
376
+ */
377
+ proto.cashback.UserCashbackItem.displayName = 'proto.cashback.UserCashbackItem';
378
+ }
356
379
  /**
357
380
  * Generated by JsPbCodeGenerator.
358
381
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -374,6 +397,27 @@ if (goog.DEBUG && !COMPILED) {
374
397
  */
375
398
  proto.cashback.CashbackUserRequest.displayName = 'proto.cashback.CashbackUserRequest';
376
399
  }
400
+ /**
401
+ * Generated by JsPbCodeGenerator.
402
+ * @param {Array=} opt_data Optional initial data array, typically from a
403
+ * server response, or constructed directly in Javascript. The array is used
404
+ * in place and becomes part of the constructed object. It is not cloned.
405
+ * If no data is provided, the constructed object will be empty, but still
406
+ * valid.
407
+ * @extends {jspb.Message}
408
+ * @constructor
409
+ */
410
+ proto.cashback.UserCashbackItemsResponse = function(opt_data) {
411
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.UserCashbackItemsResponse.repeatedFields_, null);
412
+ };
413
+ goog.inherits(proto.cashback.UserCashbackItemsResponse, jspb.Message);
414
+ if (goog.DEBUG && !COMPILED) {
415
+ /**
416
+ * @public
417
+ * @override
418
+ */
419
+ proto.cashback.UserCashbackItemsResponse.displayName = 'proto.cashback.UserCashbackItemsResponse';
420
+ }
377
421
 
378
422
 
379
423
 
@@ -4082,8 +4126,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4082
4126
  * http://goto/soy-param-migration
4083
4127
  * @return {!Object}
4084
4128
  */
4085
- proto.cashback.CashbackUserRequest.prototype.toObject = function(opt_includeInstance) {
4086
- return proto.cashback.CashbackUserRequest.toObject(opt_includeInstance, this);
4129
+ proto.cashback.UserCashbackItem.prototype.toObject = function(opt_includeInstance) {
4130
+ return proto.cashback.UserCashbackItem.toObject(opt_includeInstance, this);
4087
4131
  };
4088
4132
 
4089
4133
 
@@ -4092,15 +4136,24 @@ proto.cashback.CashbackUserRequest.prototype.toObject = function(opt_includeInst
4092
4136
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4093
4137
  * the JSPB instance for transitional soy proto support:
4094
4138
  * http://goto/soy-param-migration
4095
- * @param {!proto.cashback.CashbackUserRequest} msg The msg instance to transform.
4139
+ * @param {!proto.cashback.UserCashbackItem} msg The msg instance to transform.
4096
4140
  * @return {!Object}
4097
4141
  * @suppress {unusedLocalVariables} f is only used for nested messages
4098
4142
  */
4099
- proto.cashback.CashbackUserRequest.toObject = function(includeInstance, msg) {
4143
+ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
4100
4144
  var f, obj = {
4101
- userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4102
- cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
4103
- currency: jspb.Message.getFieldWithDefault(msg, 3, "")
4145
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4146
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
4147
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
4148
+ level: jspb.Message.getFieldWithDefault(msg, 4, 0),
4149
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
4150
+ netLosses: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
4151
+ min: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
4152
+ max: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
4153
+ percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
4154
+ calculatedDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
4155
+ image: jspb.Message.getFieldWithDefault(msg, 11, ""),
4156
+ status: jspb.Message.getFieldWithDefault(msg, 12, "")
4104
4157
  };
4105
4158
 
4106
4159
  if (includeInstance) {
@@ -4114,23 +4167,23 @@ proto.cashback.CashbackUserRequest.toObject = function(includeInstance, msg) {
4114
4167
  /**
4115
4168
  * Deserializes binary data (in protobuf wire format).
4116
4169
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4117
- * @return {!proto.cashback.CashbackUserRequest}
4170
+ * @return {!proto.cashback.UserCashbackItem}
4118
4171
  */
4119
- proto.cashback.CashbackUserRequest.deserializeBinary = function(bytes) {
4172
+ proto.cashback.UserCashbackItem.deserializeBinary = function(bytes) {
4120
4173
  var reader = new jspb.BinaryReader(bytes);
4121
- var msg = new proto.cashback.CashbackUserRequest;
4122
- return proto.cashback.CashbackUserRequest.deserializeBinaryFromReader(msg, reader);
4174
+ var msg = new proto.cashback.UserCashbackItem;
4175
+ return proto.cashback.UserCashbackItem.deserializeBinaryFromReader(msg, reader);
4123
4176
  };
4124
4177
 
4125
4178
 
4126
4179
  /**
4127
4180
  * Deserializes binary data (in protobuf wire format) from the
4128
4181
  * given reader into the given message object.
4129
- * @param {!proto.cashback.CashbackUserRequest} msg The message object to deserialize into.
4182
+ * @param {!proto.cashback.UserCashbackItem} msg The message object to deserialize into.
4130
4183
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4131
- * @return {!proto.cashback.CashbackUserRequest}
4184
+ * @return {!proto.cashback.UserCashbackItem}
4132
4185
  */
4133
- proto.cashback.CashbackUserRequest.deserializeBinaryFromReader = function(msg, reader) {
4186
+ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, reader) {
4134
4187
  while (reader.nextField()) {
4135
4188
  if (reader.isEndGroup()) {
4136
4189
  break;
@@ -4139,16 +4192,52 @@ proto.cashback.CashbackUserRequest.deserializeBinaryFromReader = function(msg, r
4139
4192
  switch (field) {
4140
4193
  case 1:
4141
4194
  var value = /** @type {number} */ (reader.readInt32());
4142
- msg.setUserId(value);
4195
+ msg.setCashbackId(value);
4143
4196
  break;
4144
4197
  case 2:
4145
4198
  var value = /** @type {string} */ (reader.readString());
4146
- msg.setCashbackType(value);
4199
+ msg.setTitle(value);
4147
4200
  break;
4148
4201
  case 3:
4202
+ var value = /** @type {string} */ (reader.readString());
4203
+ msg.setType(value);
4204
+ break;
4205
+ case 4:
4206
+ var value = /** @type {number} */ (reader.readInt32());
4207
+ msg.setLevel(value);
4208
+ break;
4209
+ case 5:
4149
4210
  var value = /** @type {string} */ (reader.readString());
4150
4211
  msg.setCurrency(value);
4151
4212
  break;
4213
+ case 6:
4214
+ var value = /** @type {number} */ (reader.readFloat());
4215
+ msg.setNetLosses(value);
4216
+ break;
4217
+ case 7:
4218
+ var value = /** @type {number} */ (reader.readFloat());
4219
+ msg.setMin(value);
4220
+ break;
4221
+ case 8:
4222
+ var value = /** @type {number} */ (reader.readFloat());
4223
+ msg.setMax(value);
4224
+ break;
4225
+ case 9:
4226
+ var value = /** @type {number} */ (reader.readFloat());
4227
+ msg.setPercentage(value);
4228
+ break;
4229
+ case 10:
4230
+ var value = /** @type {string} */ (reader.readString());
4231
+ msg.setCalculatedDate(value);
4232
+ break;
4233
+ case 11:
4234
+ var value = /** @type {string} */ (reader.readString());
4235
+ msg.setImage(value);
4236
+ break;
4237
+ case 12:
4238
+ var value = /** @type {string} */ (reader.readString());
4239
+ msg.setStatus(value);
4240
+ break;
4152
4241
  default:
4153
4242
  reader.skipField();
4154
4243
  break;
@@ -4162,9 +4251,9 @@ proto.cashback.CashbackUserRequest.deserializeBinaryFromReader = function(msg, r
4162
4251
  * Serializes the message to binary data (in protobuf wire format).
4163
4252
  * @return {!Uint8Array}
4164
4253
  */
4165
- proto.cashback.CashbackUserRequest.prototype.serializeBinary = function() {
4254
+ proto.cashback.UserCashbackItem.prototype.serializeBinary = function() {
4166
4255
  var writer = new jspb.BinaryWriter();
4167
- proto.cashback.CashbackUserRequest.serializeBinaryToWriter(this, writer);
4256
+ proto.cashback.UserCashbackItem.serializeBinaryToWriter(this, writer);
4168
4257
  return writer.getResultBuffer();
4169
4258
  };
4170
4259
 
@@ -4172,78 +4261,231 @@ proto.cashback.CashbackUserRequest.prototype.serializeBinary = function() {
4172
4261
  /**
4173
4262
  * Serializes the given message to binary data (in protobuf wire
4174
4263
  * format), writing to the given BinaryWriter.
4175
- * @param {!proto.cashback.CashbackUserRequest} message
4264
+ * @param {!proto.cashback.UserCashbackItem} message
4176
4265
  * @param {!jspb.BinaryWriter} writer
4177
4266
  * @suppress {unusedLocalVariables} f is only used for nested messages
4178
4267
  */
4179
- proto.cashback.CashbackUserRequest.serializeBinaryToWriter = function(message, writer) {
4268
+ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writer) {
4180
4269
  var f = undefined;
4181
- f = message.getUserId();
4270
+ f = message.getCashbackId();
4182
4271
  if (f !== 0) {
4183
4272
  writer.writeInt32(
4184
4273
  1,
4185
4274
  f
4186
4275
  );
4187
4276
  }
4188
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
4189
- if (f != null) {
4277
+ f = message.getTitle();
4278
+ if (f.length > 0) {
4190
4279
  writer.writeString(
4191
4280
  2,
4192
4281
  f
4193
4282
  );
4194
4283
  }
4195
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
4196
- if (f != null) {
4284
+ f = message.getType();
4285
+ if (f.length > 0) {
4197
4286
  writer.writeString(
4198
4287
  3,
4199
4288
  f
4200
4289
  );
4201
4290
  }
4291
+ f = message.getLevel();
4292
+ if (f !== 0) {
4293
+ writer.writeInt32(
4294
+ 4,
4295
+ f
4296
+ );
4297
+ }
4298
+ f = message.getCurrency();
4299
+ if (f.length > 0) {
4300
+ writer.writeString(
4301
+ 5,
4302
+ f
4303
+ );
4304
+ }
4305
+ f = message.getNetLosses();
4306
+ if (f !== 0.0) {
4307
+ writer.writeFloat(
4308
+ 6,
4309
+ f
4310
+ );
4311
+ }
4312
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
4313
+ if (f != null) {
4314
+ writer.writeFloat(
4315
+ 7,
4316
+ f
4317
+ );
4318
+ }
4319
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
4320
+ if (f != null) {
4321
+ writer.writeFloat(
4322
+ 8,
4323
+ f
4324
+ );
4325
+ }
4326
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
4327
+ if (f != null) {
4328
+ writer.writeFloat(
4329
+ 9,
4330
+ f
4331
+ );
4332
+ }
4333
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
4334
+ if (f != null) {
4335
+ writer.writeString(
4336
+ 10,
4337
+ f
4338
+ );
4339
+ }
4340
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4341
+ if (f != null) {
4342
+ writer.writeString(
4343
+ 11,
4344
+ f
4345
+ );
4346
+ }
4347
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
4348
+ if (f != null) {
4349
+ writer.writeString(
4350
+ 12,
4351
+ f
4352
+ );
4353
+ }
4202
4354
  };
4203
4355
 
4204
4356
 
4205
4357
  /**
4206
- * optional int32 user_id = 1;
4358
+ * optional int32 cashback_id = 1;
4207
4359
  * @return {number}
4208
4360
  */
4209
- proto.cashback.CashbackUserRequest.prototype.getUserId = function() {
4361
+ proto.cashback.UserCashbackItem.prototype.getCashbackId = function() {
4210
4362
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4211
4363
  };
4212
4364
 
4213
4365
 
4214
4366
  /**
4215
4367
  * @param {number} value
4216
- * @return {!proto.cashback.CashbackUserRequest} returns this
4368
+ * @return {!proto.cashback.UserCashbackItem} returns this
4217
4369
  */
4218
- proto.cashback.CashbackUserRequest.prototype.setUserId = function(value) {
4370
+ proto.cashback.UserCashbackItem.prototype.setCashbackId = function(value) {
4219
4371
  return jspb.Message.setProto3IntField(this, 1, value);
4220
4372
  };
4221
4373
 
4222
4374
 
4223
4375
  /**
4224
- * optional string cashback_type = 2;
4376
+ * optional string title = 2;
4225
4377
  * @return {string}
4226
4378
  */
4227
- proto.cashback.CashbackUserRequest.prototype.getCashbackType = function() {
4379
+ proto.cashback.UserCashbackItem.prototype.getTitle = function() {
4228
4380
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4229
4381
  };
4230
4382
 
4231
4383
 
4232
4384
  /**
4233
4385
  * @param {string} value
4234
- * @return {!proto.cashback.CashbackUserRequest} returns this
4386
+ * @return {!proto.cashback.UserCashbackItem} returns this
4235
4387
  */
4236
- proto.cashback.CashbackUserRequest.prototype.setCashbackType = function(value) {
4237
- return jspb.Message.setField(this, 2, value);
4388
+ proto.cashback.UserCashbackItem.prototype.setTitle = function(value) {
4389
+ return jspb.Message.setProto3StringField(this, 2, value);
4390
+ };
4391
+
4392
+
4393
+ /**
4394
+ * optional string type = 3;
4395
+ * @return {string}
4396
+ */
4397
+ proto.cashback.UserCashbackItem.prototype.getType = function() {
4398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4399
+ };
4400
+
4401
+
4402
+ /**
4403
+ * @param {string} value
4404
+ * @return {!proto.cashback.UserCashbackItem} returns this
4405
+ */
4406
+ proto.cashback.UserCashbackItem.prototype.setType = function(value) {
4407
+ return jspb.Message.setProto3StringField(this, 3, value);
4408
+ };
4409
+
4410
+
4411
+ /**
4412
+ * optional int32 level = 4;
4413
+ * @return {number}
4414
+ */
4415
+ proto.cashback.UserCashbackItem.prototype.getLevel = function() {
4416
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4417
+ };
4418
+
4419
+
4420
+ /**
4421
+ * @param {number} value
4422
+ * @return {!proto.cashback.UserCashbackItem} returns this
4423
+ */
4424
+ proto.cashback.UserCashbackItem.prototype.setLevel = function(value) {
4425
+ return jspb.Message.setProto3IntField(this, 4, value);
4426
+ };
4427
+
4428
+
4429
+ /**
4430
+ * optional string currency = 5;
4431
+ * @return {string}
4432
+ */
4433
+ proto.cashback.UserCashbackItem.prototype.getCurrency = function() {
4434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4435
+ };
4436
+
4437
+
4438
+ /**
4439
+ * @param {string} value
4440
+ * @return {!proto.cashback.UserCashbackItem} returns this
4441
+ */
4442
+ proto.cashback.UserCashbackItem.prototype.setCurrency = function(value) {
4443
+ return jspb.Message.setProto3StringField(this, 5, value);
4444
+ };
4445
+
4446
+
4447
+ /**
4448
+ * optional float net_losses = 6;
4449
+ * @return {number}
4450
+ */
4451
+ proto.cashback.UserCashbackItem.prototype.getNetLosses = function() {
4452
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
4453
+ };
4454
+
4455
+
4456
+ /**
4457
+ * @param {number} value
4458
+ * @return {!proto.cashback.UserCashbackItem} returns this
4459
+ */
4460
+ proto.cashback.UserCashbackItem.prototype.setNetLosses = function(value) {
4461
+ return jspb.Message.setProto3FloatField(this, 6, value);
4462
+ };
4463
+
4464
+
4465
+ /**
4466
+ * optional float min = 7;
4467
+ * @return {number}
4468
+ */
4469
+ proto.cashback.UserCashbackItem.prototype.getMin = function() {
4470
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
4471
+ };
4472
+
4473
+
4474
+ /**
4475
+ * @param {number} value
4476
+ * @return {!proto.cashback.UserCashbackItem} returns this
4477
+ */
4478
+ proto.cashback.UserCashbackItem.prototype.setMin = function(value) {
4479
+ return jspb.Message.setField(this, 7, value);
4238
4480
  };
4239
4481
 
4240
4482
 
4241
4483
  /**
4242
4484
  * Clears the field making it undefined.
4243
- * @return {!proto.cashback.CashbackUserRequest} returns this
4485
+ * @return {!proto.cashback.UserCashbackItem} returns this
4244
4486
  */
4245
- proto.cashback.CashbackUserRequest.prototype.clearCashbackType = function() {
4246
- return jspb.Message.setField(this, 2, undefined);
4487
+ proto.cashback.UserCashbackItem.prototype.clearMin = function() {
4488
+ return jspb.Message.setField(this, 7, undefined);
4247
4489
  };
4248
4490
 
4249
4491
 
@@ -4251,35 +4493,35 @@ proto.cashback.CashbackUserRequest.prototype.clearCashbackType = function() {
4251
4493
  * Returns whether this field is set.
4252
4494
  * @return {boolean}
4253
4495
  */
4254
- proto.cashback.CashbackUserRequest.prototype.hasCashbackType = function() {
4255
- return jspb.Message.getField(this, 2) != null;
4496
+ proto.cashback.UserCashbackItem.prototype.hasMin = function() {
4497
+ return jspb.Message.getField(this, 7) != null;
4256
4498
  };
4257
4499
 
4258
4500
 
4259
4501
  /**
4260
- * optional string currency = 3;
4261
- * @return {string}
4502
+ * optional float max = 8;
4503
+ * @return {number}
4262
4504
  */
4263
- proto.cashback.CashbackUserRequest.prototype.getCurrency = function() {
4264
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4505
+ proto.cashback.UserCashbackItem.prototype.getMax = function() {
4506
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
4265
4507
  };
4266
4508
 
4267
4509
 
4268
4510
  /**
4269
- * @param {string} value
4270
- * @return {!proto.cashback.CashbackUserRequest} returns this
4511
+ * @param {number} value
4512
+ * @return {!proto.cashback.UserCashbackItem} returns this
4271
4513
  */
4272
- proto.cashback.CashbackUserRequest.prototype.setCurrency = function(value) {
4273
- return jspb.Message.setField(this, 3, value);
4514
+ proto.cashback.UserCashbackItem.prototype.setMax = function(value) {
4515
+ return jspb.Message.setField(this, 8, value);
4274
4516
  };
4275
4517
 
4276
4518
 
4277
4519
  /**
4278
4520
  * Clears the field making it undefined.
4279
- * @return {!proto.cashback.CashbackUserRequest} returns this
4521
+ * @return {!proto.cashback.UserCashbackItem} returns this
4280
4522
  */
4281
- proto.cashback.CashbackUserRequest.prototype.clearCurrency = function() {
4282
- return jspb.Message.setField(this, 3, undefined);
4523
+ proto.cashback.UserCashbackItem.prototype.clearMax = function() {
4524
+ return jspb.Message.setField(this, 8, undefined);
4283
4525
  };
4284
4526
 
4285
4527
 
@@ -4287,7 +4529,633 @@ proto.cashback.CashbackUserRequest.prototype.clearCurrency = function() {
4287
4529
  * Returns whether this field is set.
4288
4530
  * @return {boolean}
4289
4531
  */
4290
- proto.cashback.CashbackUserRequest.prototype.hasCurrency = function() {
4532
+ proto.cashback.UserCashbackItem.prototype.hasMax = function() {
4533
+ return jspb.Message.getField(this, 8) != null;
4534
+ };
4535
+
4536
+
4537
+ /**
4538
+ * optional float percentage = 9;
4539
+ * @return {number}
4540
+ */
4541
+ proto.cashback.UserCashbackItem.prototype.getPercentage = function() {
4542
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
4543
+ };
4544
+
4545
+
4546
+ /**
4547
+ * @param {number} value
4548
+ * @return {!proto.cashback.UserCashbackItem} returns this
4549
+ */
4550
+ proto.cashback.UserCashbackItem.prototype.setPercentage = function(value) {
4551
+ return jspb.Message.setField(this, 9, value);
4552
+ };
4553
+
4554
+
4555
+ /**
4556
+ * Clears the field making it undefined.
4557
+ * @return {!proto.cashback.UserCashbackItem} returns this
4558
+ */
4559
+ proto.cashback.UserCashbackItem.prototype.clearPercentage = function() {
4560
+ return jspb.Message.setField(this, 9, undefined);
4561
+ };
4562
+
4563
+
4564
+ /**
4565
+ * Returns whether this field is set.
4566
+ * @return {boolean}
4567
+ */
4568
+ proto.cashback.UserCashbackItem.prototype.hasPercentage = function() {
4569
+ return jspb.Message.getField(this, 9) != null;
4570
+ };
4571
+
4572
+
4573
+ /**
4574
+ * optional string calculated_date = 10;
4575
+ * @return {string}
4576
+ */
4577
+ proto.cashback.UserCashbackItem.prototype.getCalculatedDate = function() {
4578
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4579
+ };
4580
+
4581
+
4582
+ /**
4583
+ * @param {string} value
4584
+ * @return {!proto.cashback.UserCashbackItem} returns this
4585
+ */
4586
+ proto.cashback.UserCashbackItem.prototype.setCalculatedDate = function(value) {
4587
+ return jspb.Message.setField(this, 10, value);
4588
+ };
4589
+
4590
+
4591
+ /**
4592
+ * Clears the field making it undefined.
4593
+ * @return {!proto.cashback.UserCashbackItem} returns this
4594
+ */
4595
+ proto.cashback.UserCashbackItem.prototype.clearCalculatedDate = function() {
4596
+ return jspb.Message.setField(this, 10, undefined);
4597
+ };
4598
+
4599
+
4600
+ /**
4601
+ * Returns whether this field is set.
4602
+ * @return {boolean}
4603
+ */
4604
+ proto.cashback.UserCashbackItem.prototype.hasCalculatedDate = function() {
4605
+ return jspb.Message.getField(this, 10) != null;
4606
+ };
4607
+
4608
+
4609
+ /**
4610
+ * optional string image = 11;
4611
+ * @return {string}
4612
+ */
4613
+ proto.cashback.UserCashbackItem.prototype.getImage = function() {
4614
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
4615
+ };
4616
+
4617
+
4618
+ /**
4619
+ * @param {string} value
4620
+ * @return {!proto.cashback.UserCashbackItem} returns this
4621
+ */
4622
+ proto.cashback.UserCashbackItem.prototype.setImage = function(value) {
4623
+ return jspb.Message.setField(this, 11, value);
4624
+ };
4625
+
4626
+
4627
+ /**
4628
+ * Clears the field making it undefined.
4629
+ * @return {!proto.cashback.UserCashbackItem} returns this
4630
+ */
4631
+ proto.cashback.UserCashbackItem.prototype.clearImage = function() {
4632
+ return jspb.Message.setField(this, 11, undefined);
4633
+ };
4634
+
4635
+
4636
+ /**
4637
+ * Returns whether this field is set.
4638
+ * @return {boolean}
4639
+ */
4640
+ proto.cashback.UserCashbackItem.prototype.hasImage = function() {
4641
+ return jspb.Message.getField(this, 11) != null;
4642
+ };
4643
+
4644
+
4645
+ /**
4646
+ * optional string status = 12;
4647
+ * @return {string}
4648
+ */
4649
+ proto.cashback.UserCashbackItem.prototype.getStatus = function() {
4650
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
4651
+ };
4652
+
4653
+
4654
+ /**
4655
+ * @param {string} value
4656
+ * @return {!proto.cashback.UserCashbackItem} returns this
4657
+ */
4658
+ proto.cashback.UserCashbackItem.prototype.setStatus = function(value) {
4659
+ return jspb.Message.setField(this, 12, value);
4660
+ };
4661
+
4662
+
4663
+ /**
4664
+ * Clears the field making it undefined.
4665
+ * @return {!proto.cashback.UserCashbackItem} returns this
4666
+ */
4667
+ proto.cashback.UserCashbackItem.prototype.clearStatus = function() {
4668
+ return jspb.Message.setField(this, 12, undefined);
4669
+ };
4670
+
4671
+
4672
+ /**
4673
+ * Returns whether this field is set.
4674
+ * @return {boolean}
4675
+ */
4676
+ proto.cashback.UserCashbackItem.prototype.hasStatus = function() {
4677
+ return jspb.Message.getField(this, 12) != null;
4678
+ };
4679
+
4680
+
4681
+
4682
+
4683
+
4684
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4685
+ /**
4686
+ * Creates an object representation of this proto.
4687
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4688
+ * Optional fields that are not set will be set to undefined.
4689
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4690
+ * For the list of reserved names please see:
4691
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4692
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4693
+ * JSPB instance for transitional soy proto support:
4694
+ * http://goto/soy-param-migration
4695
+ * @return {!Object}
4696
+ */
4697
+ proto.cashback.CashbackUserRequest.prototype.toObject = function(opt_includeInstance) {
4698
+ return proto.cashback.CashbackUserRequest.toObject(opt_includeInstance, this);
4699
+ };
4700
+
4701
+
4702
+ /**
4703
+ * Static version of the {@see toObject} method.
4704
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4705
+ * the JSPB instance for transitional soy proto support:
4706
+ * http://goto/soy-param-migration
4707
+ * @param {!proto.cashback.CashbackUserRequest} msg The msg instance to transform.
4708
+ * @return {!Object}
4709
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4710
+ */
4711
+ proto.cashback.CashbackUserRequest.toObject = function(includeInstance, msg) {
4712
+ var f, obj = {
4713
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4714
+ cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
4715
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
4716
+ };
4717
+
4718
+ if (includeInstance) {
4719
+ obj.$jspbMessageInstance = msg;
4720
+ }
4721
+ return obj;
4722
+ };
4723
+ }
4724
+
4725
+
4726
+ /**
4727
+ * Deserializes binary data (in protobuf wire format).
4728
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4729
+ * @return {!proto.cashback.CashbackUserRequest}
4730
+ */
4731
+ proto.cashback.CashbackUserRequest.deserializeBinary = function(bytes) {
4732
+ var reader = new jspb.BinaryReader(bytes);
4733
+ var msg = new proto.cashback.CashbackUserRequest;
4734
+ return proto.cashback.CashbackUserRequest.deserializeBinaryFromReader(msg, reader);
4735
+ };
4736
+
4737
+
4738
+ /**
4739
+ * Deserializes binary data (in protobuf wire format) from the
4740
+ * given reader into the given message object.
4741
+ * @param {!proto.cashback.CashbackUserRequest} msg The message object to deserialize into.
4742
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4743
+ * @return {!proto.cashback.CashbackUserRequest}
4744
+ */
4745
+ proto.cashback.CashbackUserRequest.deserializeBinaryFromReader = function(msg, reader) {
4746
+ while (reader.nextField()) {
4747
+ if (reader.isEndGroup()) {
4748
+ break;
4749
+ }
4750
+ var field = reader.getFieldNumber();
4751
+ switch (field) {
4752
+ case 1:
4753
+ var value = /** @type {number} */ (reader.readInt32());
4754
+ msg.setUserId(value);
4755
+ break;
4756
+ case 2:
4757
+ var value = /** @type {string} */ (reader.readString());
4758
+ msg.setCashbackType(value);
4759
+ break;
4760
+ case 3:
4761
+ var value = /** @type {string} */ (reader.readString());
4762
+ msg.setCurrency(value);
4763
+ break;
4764
+ default:
4765
+ reader.skipField();
4766
+ break;
4767
+ }
4768
+ }
4769
+ return msg;
4770
+ };
4771
+
4772
+
4773
+ /**
4774
+ * Serializes the message to binary data (in protobuf wire format).
4775
+ * @return {!Uint8Array}
4776
+ */
4777
+ proto.cashback.CashbackUserRequest.prototype.serializeBinary = function() {
4778
+ var writer = new jspb.BinaryWriter();
4779
+ proto.cashback.CashbackUserRequest.serializeBinaryToWriter(this, writer);
4780
+ return writer.getResultBuffer();
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * Serializes the given message to binary data (in protobuf wire
4786
+ * format), writing to the given BinaryWriter.
4787
+ * @param {!proto.cashback.CashbackUserRequest} message
4788
+ * @param {!jspb.BinaryWriter} writer
4789
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4790
+ */
4791
+ proto.cashback.CashbackUserRequest.serializeBinaryToWriter = function(message, writer) {
4792
+ var f = undefined;
4793
+ f = message.getUserId();
4794
+ if (f !== 0) {
4795
+ writer.writeInt32(
4796
+ 1,
4797
+ f
4798
+ );
4799
+ }
4800
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
4801
+ if (f != null) {
4802
+ writer.writeString(
4803
+ 2,
4804
+ f
4805
+ );
4806
+ }
4807
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
4808
+ if (f != null) {
4809
+ writer.writeString(
4810
+ 3,
4811
+ f
4812
+ );
4813
+ }
4814
+ };
4815
+
4816
+
4817
+ /**
4818
+ * optional int32 user_id = 1;
4819
+ * @return {number}
4820
+ */
4821
+ proto.cashback.CashbackUserRequest.prototype.getUserId = function() {
4822
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4823
+ };
4824
+
4825
+
4826
+ /**
4827
+ * @param {number} value
4828
+ * @return {!proto.cashback.CashbackUserRequest} returns this
4829
+ */
4830
+ proto.cashback.CashbackUserRequest.prototype.setUserId = function(value) {
4831
+ return jspb.Message.setProto3IntField(this, 1, value);
4832
+ };
4833
+
4834
+
4835
+ /**
4836
+ * optional string cashback_type = 2;
4837
+ * @return {string}
4838
+ */
4839
+ proto.cashback.CashbackUserRequest.prototype.getCashbackType = function() {
4840
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4841
+ };
4842
+
4843
+
4844
+ /**
4845
+ * @param {string} value
4846
+ * @return {!proto.cashback.CashbackUserRequest} returns this
4847
+ */
4848
+ proto.cashback.CashbackUserRequest.prototype.setCashbackType = function(value) {
4849
+ return jspb.Message.setField(this, 2, value);
4850
+ };
4851
+
4852
+
4853
+ /**
4854
+ * Clears the field making it undefined.
4855
+ * @return {!proto.cashback.CashbackUserRequest} returns this
4856
+ */
4857
+ proto.cashback.CashbackUserRequest.prototype.clearCashbackType = function() {
4858
+ return jspb.Message.setField(this, 2, undefined);
4859
+ };
4860
+
4861
+
4862
+ /**
4863
+ * Returns whether this field is set.
4864
+ * @return {boolean}
4865
+ */
4866
+ proto.cashback.CashbackUserRequest.prototype.hasCashbackType = function() {
4867
+ return jspb.Message.getField(this, 2) != null;
4868
+ };
4869
+
4870
+
4871
+ /**
4872
+ * optional string currency = 3;
4873
+ * @return {string}
4874
+ */
4875
+ proto.cashback.CashbackUserRequest.prototype.getCurrency = function() {
4876
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4877
+ };
4878
+
4879
+
4880
+ /**
4881
+ * @param {string} value
4882
+ * @return {!proto.cashback.CashbackUserRequest} returns this
4883
+ */
4884
+ proto.cashback.CashbackUserRequest.prototype.setCurrency = function(value) {
4885
+ return jspb.Message.setField(this, 3, value);
4886
+ };
4887
+
4888
+
4889
+ /**
4890
+ * Clears the field making it undefined.
4891
+ * @return {!proto.cashback.CashbackUserRequest} returns this
4892
+ */
4893
+ proto.cashback.CashbackUserRequest.prototype.clearCurrency = function() {
4894
+ return jspb.Message.setField(this, 3, undefined);
4895
+ };
4896
+
4897
+
4898
+ /**
4899
+ * Returns whether this field is set.
4900
+ * @return {boolean}
4901
+ */
4902
+ proto.cashback.CashbackUserRequest.prototype.hasCurrency = function() {
4903
+ return jspb.Message.getField(this, 3) != null;
4904
+ };
4905
+
4906
+
4907
+
4908
+ /**
4909
+ * List of repeated fields within this message type.
4910
+ * @private {!Array<number>}
4911
+ * @const
4912
+ */
4913
+ proto.cashback.UserCashbackItemsResponse.repeatedFields_ = [1];
4914
+
4915
+
4916
+
4917
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4918
+ /**
4919
+ * Creates an object representation of this proto.
4920
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4921
+ * Optional fields that are not set will be set to undefined.
4922
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4923
+ * For the list of reserved names please see:
4924
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4925
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4926
+ * JSPB instance for transitional soy proto support:
4927
+ * http://goto/soy-param-migration
4928
+ * @return {!Object}
4929
+ */
4930
+ proto.cashback.UserCashbackItemsResponse.prototype.toObject = function(opt_includeInstance) {
4931
+ return proto.cashback.UserCashbackItemsResponse.toObject(opt_includeInstance, this);
4932
+ };
4933
+
4934
+
4935
+ /**
4936
+ * Static version of the {@see toObject} method.
4937
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4938
+ * the JSPB instance for transitional soy proto support:
4939
+ * http://goto/soy-param-migration
4940
+ * @param {!proto.cashback.UserCashbackItemsResponse} msg The msg instance to transform.
4941
+ * @return {!Object}
4942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4943
+ */
4944
+ proto.cashback.UserCashbackItemsResponse.toObject = function(includeInstance, msg) {
4945
+ var f, obj = {
4946
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
4947
+ proto.cashback.UserCashbackItem.toObject, includeInstance),
4948
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
4949
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
4950
+ };
4951
+
4952
+ if (includeInstance) {
4953
+ obj.$jspbMessageInstance = msg;
4954
+ }
4955
+ return obj;
4956
+ };
4957
+ }
4958
+
4959
+
4960
+ /**
4961
+ * Deserializes binary data (in protobuf wire format).
4962
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4963
+ * @return {!proto.cashback.UserCashbackItemsResponse}
4964
+ */
4965
+ proto.cashback.UserCashbackItemsResponse.deserializeBinary = function(bytes) {
4966
+ var reader = new jspb.BinaryReader(bytes);
4967
+ var msg = new proto.cashback.UserCashbackItemsResponse;
4968
+ return proto.cashback.UserCashbackItemsResponse.deserializeBinaryFromReader(msg, reader);
4969
+ };
4970
+
4971
+
4972
+ /**
4973
+ * Deserializes binary data (in protobuf wire format) from the
4974
+ * given reader into the given message object.
4975
+ * @param {!proto.cashback.UserCashbackItemsResponse} msg The message object to deserialize into.
4976
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4977
+ * @return {!proto.cashback.UserCashbackItemsResponse}
4978
+ */
4979
+ proto.cashback.UserCashbackItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
4980
+ while (reader.nextField()) {
4981
+ if (reader.isEndGroup()) {
4982
+ break;
4983
+ }
4984
+ var field = reader.getFieldNumber();
4985
+ switch (field) {
4986
+ case 1:
4987
+ var value = new proto.cashback.UserCashbackItem;
4988
+ reader.readMessage(value,proto.cashback.UserCashbackItem.deserializeBinaryFromReader);
4989
+ msg.addItems(value);
4990
+ break;
4991
+ case 2:
4992
+ var value = /** @type {number} */ (reader.readInt32());
4993
+ msg.setTotalPages(value);
4994
+ break;
4995
+ case 3:
4996
+ var value = /** @type {number} */ (reader.readInt32());
4997
+ msg.setTotalItems(value);
4998
+ break;
4999
+ default:
5000
+ reader.skipField();
5001
+ break;
5002
+ }
5003
+ }
5004
+ return msg;
5005
+ };
5006
+
5007
+
5008
+ /**
5009
+ * Serializes the message to binary data (in protobuf wire format).
5010
+ * @return {!Uint8Array}
5011
+ */
5012
+ proto.cashback.UserCashbackItemsResponse.prototype.serializeBinary = function() {
5013
+ var writer = new jspb.BinaryWriter();
5014
+ proto.cashback.UserCashbackItemsResponse.serializeBinaryToWriter(this, writer);
5015
+ return writer.getResultBuffer();
5016
+ };
5017
+
5018
+
5019
+ /**
5020
+ * Serializes the given message to binary data (in protobuf wire
5021
+ * format), writing to the given BinaryWriter.
5022
+ * @param {!proto.cashback.UserCashbackItemsResponse} message
5023
+ * @param {!jspb.BinaryWriter} writer
5024
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5025
+ */
5026
+ proto.cashback.UserCashbackItemsResponse.serializeBinaryToWriter = function(message, writer) {
5027
+ var f = undefined;
5028
+ f = message.getItemsList();
5029
+ if (f.length > 0) {
5030
+ writer.writeRepeatedMessage(
5031
+ 1,
5032
+ f,
5033
+ proto.cashback.UserCashbackItem.serializeBinaryToWriter
5034
+ );
5035
+ }
5036
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
5037
+ if (f != null) {
5038
+ writer.writeInt32(
5039
+ 2,
5040
+ f
5041
+ );
5042
+ }
5043
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
5044
+ if (f != null) {
5045
+ writer.writeInt32(
5046
+ 3,
5047
+ f
5048
+ );
5049
+ }
5050
+ };
5051
+
5052
+
5053
+ /**
5054
+ * repeated UserCashbackItem items = 1;
5055
+ * @return {!Array<!proto.cashback.UserCashbackItem>}
5056
+ */
5057
+ proto.cashback.UserCashbackItemsResponse.prototype.getItemsList = function() {
5058
+ return /** @type{!Array<!proto.cashback.UserCashbackItem>} */ (
5059
+ jspb.Message.getRepeatedWrapperField(this, proto.cashback.UserCashbackItem, 1));
5060
+ };
5061
+
5062
+
5063
+ /**
5064
+ * @param {!Array<!proto.cashback.UserCashbackItem>} value
5065
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5066
+ */
5067
+ proto.cashback.UserCashbackItemsResponse.prototype.setItemsList = function(value) {
5068
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
5069
+ };
5070
+
5071
+
5072
+ /**
5073
+ * @param {!proto.cashback.UserCashbackItem=} opt_value
5074
+ * @param {number=} opt_index
5075
+ * @return {!proto.cashback.UserCashbackItem}
5076
+ */
5077
+ proto.cashback.UserCashbackItemsResponse.prototype.addItems = function(opt_value, opt_index) {
5078
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cashback.UserCashbackItem, opt_index);
5079
+ };
5080
+
5081
+
5082
+ /**
5083
+ * Clears the list making it empty but non-null.
5084
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5085
+ */
5086
+ proto.cashback.UserCashbackItemsResponse.prototype.clearItemsList = function() {
5087
+ return this.setItemsList([]);
5088
+ };
5089
+
5090
+
5091
+ /**
5092
+ * optional int32 total_pages = 2;
5093
+ * @return {number}
5094
+ */
5095
+ proto.cashback.UserCashbackItemsResponse.prototype.getTotalPages = function() {
5096
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5097
+ };
5098
+
5099
+
5100
+ /**
5101
+ * @param {number} value
5102
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5103
+ */
5104
+ proto.cashback.UserCashbackItemsResponse.prototype.setTotalPages = function(value) {
5105
+ return jspb.Message.setField(this, 2, value);
5106
+ };
5107
+
5108
+
5109
+ /**
5110
+ * Clears the field making it undefined.
5111
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5112
+ */
5113
+ proto.cashback.UserCashbackItemsResponse.prototype.clearTotalPages = function() {
5114
+ return jspb.Message.setField(this, 2, undefined);
5115
+ };
5116
+
5117
+
5118
+ /**
5119
+ * Returns whether this field is set.
5120
+ * @return {boolean}
5121
+ */
5122
+ proto.cashback.UserCashbackItemsResponse.prototype.hasTotalPages = function() {
5123
+ return jspb.Message.getField(this, 2) != null;
5124
+ };
5125
+
5126
+
5127
+ /**
5128
+ * optional int32 total_items = 3;
5129
+ * @return {number}
5130
+ */
5131
+ proto.cashback.UserCashbackItemsResponse.prototype.getTotalItems = function() {
5132
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5133
+ };
5134
+
5135
+
5136
+ /**
5137
+ * @param {number} value
5138
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5139
+ */
5140
+ proto.cashback.UserCashbackItemsResponse.prototype.setTotalItems = function(value) {
5141
+ return jspb.Message.setField(this, 3, value);
5142
+ };
5143
+
5144
+
5145
+ /**
5146
+ * Clears the field making it undefined.
5147
+ * @return {!proto.cashback.UserCashbackItemsResponse} returns this
5148
+ */
5149
+ proto.cashback.UserCashbackItemsResponse.prototype.clearTotalItems = function() {
5150
+ return jspb.Message.setField(this, 3, undefined);
5151
+ };
5152
+
5153
+
5154
+ /**
5155
+ * Returns whether this field is set.
5156
+ * @return {boolean}
5157
+ */
5158
+ proto.cashback.UserCashbackItemsResponse.prototype.hasTotalItems = function() {
4291
5159
  return jspb.Message.getField(this, 3) != null;
4292
5160
  };
4293
5161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.296",
3
+ "version": "1.0.298",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {