protobuf-platform 1.0.296 → 1.0.297

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