protobuf-platform 1.0.176 → 1.0.177

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.
@@ -97,17 +97,17 @@ message BetPoint {
97
97
  message PointItem {
98
98
  optional int32 id = 1;
99
99
  optional string type = 2;
100
- repeated SignUpPoint sign_up_points = 3;
101
- repeated DepositPoint deposit_points = 4;
102
- repeated BetPoint bet_points = 5;
100
+ optional SignUpPoint sign_up_point = 3;
101
+ optional DepositPoint deposit_point = 4;
102
+ optional BetPoint bet_point = 5;
103
103
  }
104
104
  //Point CRUD | Requests
105
105
  message PointRequest {
106
106
  optional int32 id = 1;
107
107
  optional string type = 2;
108
- repeated SignUpPoint sign_up_points = 3;
109
- repeated DepositPoint deposit_points = 4;
110
- repeated BetPoint bet_points = 5;
108
+ optional SignUpPoint sign_up_point = 3;
109
+ optional DepositPoint deposit_point = 4;
110
+ optional BetPoint bet_point = 5;
111
111
  }
112
112
  message GetPointRequest {
113
113
  int32 id = 1;
@@ -391,7 +391,7 @@ if (goog.DEBUG && !COMPILED) {
391
391
  * @constructor
392
392
  */
393
393
  proto.loyalty.PointItem = function(opt_data) {
394
- jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.PointItem.repeatedFields_, null);
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
395
  };
396
396
  goog.inherits(proto.loyalty.PointItem, jspb.Message);
397
397
  if (goog.DEBUG && !COMPILED) {
@@ -412,7 +412,7 @@ if (goog.DEBUG && !COMPILED) {
412
412
  * @constructor
413
413
  */
414
414
  proto.loyalty.PointRequest = function(opt_data) {
415
- jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.PointRequest.repeatedFields_, null);
415
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
416
416
  };
417
417
  goog.inherits(proto.loyalty.PointRequest, jspb.Message);
418
418
  if (goog.DEBUG && !COMPILED) {
@@ -4095,13 +4095,6 @@ proto.loyalty.BetPoint.prototype.hasWagerGameListId = function() {
4095
4095
 
4096
4096
 
4097
4097
 
4098
- /**
4099
- * List of repeated fields within this message type.
4100
- * @private {!Array<number>}
4101
- * @const
4102
- */
4103
- proto.loyalty.PointItem.repeatedFields_ = [3,4,5];
4104
-
4105
4098
 
4106
4099
 
4107
4100
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4135,12 +4128,9 @@ proto.loyalty.PointItem.toObject = function(includeInstance, msg) {
4135
4128
  var f, obj = {
4136
4129
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
4137
4130
  type: jspb.Message.getFieldWithDefault(msg, 2, ""),
4138
- signUpPointsList: jspb.Message.toObjectList(msg.getSignUpPointsList(),
4139
- proto.loyalty.SignUpPoint.toObject, includeInstance),
4140
- depositPointsList: jspb.Message.toObjectList(msg.getDepositPointsList(),
4141
- proto.loyalty.DepositPoint.toObject, includeInstance),
4142
- betPointsList: jspb.Message.toObjectList(msg.getBetPointsList(),
4143
- proto.loyalty.BetPoint.toObject, includeInstance)
4131
+ signUpPoint: (f = msg.getSignUpPoint()) && proto.loyalty.SignUpPoint.toObject(includeInstance, f),
4132
+ depositPoint: (f = msg.getDepositPoint()) && proto.loyalty.DepositPoint.toObject(includeInstance, f),
4133
+ betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f)
4144
4134
  };
4145
4135
 
4146
4136
  if (includeInstance) {
@@ -4188,17 +4178,17 @@ proto.loyalty.PointItem.deserializeBinaryFromReader = function(msg, reader) {
4188
4178
  case 3:
4189
4179
  var value = new proto.loyalty.SignUpPoint;
4190
4180
  reader.readMessage(value,proto.loyalty.SignUpPoint.deserializeBinaryFromReader);
4191
- msg.addSignUpPoints(value);
4181
+ msg.setSignUpPoint(value);
4192
4182
  break;
4193
4183
  case 4:
4194
4184
  var value = new proto.loyalty.DepositPoint;
4195
4185
  reader.readMessage(value,proto.loyalty.DepositPoint.deserializeBinaryFromReader);
4196
- msg.addDepositPoints(value);
4186
+ msg.setDepositPoint(value);
4197
4187
  break;
4198
4188
  case 5:
4199
4189
  var value = new proto.loyalty.BetPoint;
4200
4190
  reader.readMessage(value,proto.loyalty.BetPoint.deserializeBinaryFromReader);
4201
- msg.addBetPoints(value);
4191
+ msg.setBetPoint(value);
4202
4192
  break;
4203
4193
  default:
4204
4194
  reader.skipField();
@@ -4243,25 +4233,25 @@ proto.loyalty.PointItem.serializeBinaryToWriter = function(message, writer) {
4243
4233
  f
4244
4234
  );
4245
4235
  }
4246
- f = message.getSignUpPointsList();
4247
- if (f.length > 0) {
4248
- writer.writeRepeatedMessage(
4236
+ f = message.getSignUpPoint();
4237
+ if (f != null) {
4238
+ writer.writeMessage(
4249
4239
  3,
4250
4240
  f,
4251
4241
  proto.loyalty.SignUpPoint.serializeBinaryToWriter
4252
4242
  );
4253
4243
  }
4254
- f = message.getDepositPointsList();
4255
- if (f.length > 0) {
4256
- writer.writeRepeatedMessage(
4244
+ f = message.getDepositPoint();
4245
+ if (f != null) {
4246
+ writer.writeMessage(
4257
4247
  4,
4258
4248
  f,
4259
4249
  proto.loyalty.DepositPoint.serializeBinaryToWriter
4260
4250
  );
4261
4251
  }
4262
- f = message.getBetPointsList();
4263
- if (f.length > 0) {
4264
- writer.writeRepeatedMessage(
4252
+ f = message.getBetPoint();
4253
+ if (f != null) {
4254
+ writer.writeMessage(
4265
4255
  5,
4266
4256
  f,
4267
4257
  proto.loyalty.BetPoint.serializeBinaryToWriter
@@ -4343,127 +4333,117 @@ proto.loyalty.PointItem.prototype.hasType = function() {
4343
4333
 
4344
4334
 
4345
4335
  /**
4346
- * repeated SignUpPoint sign_up_points = 3;
4347
- * @return {!Array<!proto.loyalty.SignUpPoint>}
4336
+ * optional SignUpPoint sign_up_point = 3;
4337
+ * @return {?proto.loyalty.SignUpPoint}
4348
4338
  */
4349
- proto.loyalty.PointItem.prototype.getSignUpPointsList = function() {
4350
- return /** @type{!Array<!proto.loyalty.SignUpPoint>} */ (
4351
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.SignUpPoint, 3));
4339
+ proto.loyalty.PointItem.prototype.getSignUpPoint = function() {
4340
+ return /** @type{?proto.loyalty.SignUpPoint} */ (
4341
+ jspb.Message.getWrapperField(this, proto.loyalty.SignUpPoint, 3));
4352
4342
  };
4353
4343
 
4354
4344
 
4355
4345
  /**
4356
- * @param {!Array<!proto.loyalty.SignUpPoint>} value
4346
+ * @param {?proto.loyalty.SignUpPoint|undefined} value
4357
4347
  * @return {!proto.loyalty.PointItem} returns this
4358
4348
  */
4359
- proto.loyalty.PointItem.prototype.setSignUpPointsList = function(value) {
4360
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
4349
+ proto.loyalty.PointItem.prototype.setSignUpPoint = function(value) {
4350
+ return jspb.Message.setWrapperField(this, 3, value);
4361
4351
  };
4362
4352
 
4363
4353
 
4364
4354
  /**
4365
- * @param {!proto.loyalty.SignUpPoint=} opt_value
4366
- * @param {number=} opt_index
4367
- * @return {!proto.loyalty.SignUpPoint}
4355
+ * Clears the message field making it undefined.
4356
+ * @return {!proto.loyalty.PointItem} returns this
4368
4357
  */
4369
- proto.loyalty.PointItem.prototype.addSignUpPoints = function(opt_value, opt_index) {
4370
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.loyalty.SignUpPoint, opt_index);
4358
+ proto.loyalty.PointItem.prototype.clearSignUpPoint = function() {
4359
+ return this.setSignUpPoint(undefined);
4371
4360
  };
4372
4361
 
4373
4362
 
4374
4363
  /**
4375
- * Clears the list making it empty but non-null.
4376
- * @return {!proto.loyalty.PointItem} returns this
4364
+ * Returns whether this field is set.
4365
+ * @return {boolean}
4377
4366
  */
4378
- proto.loyalty.PointItem.prototype.clearSignUpPointsList = function() {
4379
- return this.setSignUpPointsList([]);
4367
+ proto.loyalty.PointItem.prototype.hasSignUpPoint = function() {
4368
+ return jspb.Message.getField(this, 3) != null;
4380
4369
  };
4381
4370
 
4382
4371
 
4383
4372
  /**
4384
- * repeated DepositPoint deposit_points = 4;
4385
- * @return {!Array<!proto.loyalty.DepositPoint>}
4373
+ * optional DepositPoint deposit_point = 4;
4374
+ * @return {?proto.loyalty.DepositPoint}
4386
4375
  */
4387
- proto.loyalty.PointItem.prototype.getDepositPointsList = function() {
4388
- return /** @type{!Array<!proto.loyalty.DepositPoint>} */ (
4389
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.DepositPoint, 4));
4376
+ proto.loyalty.PointItem.prototype.getDepositPoint = function() {
4377
+ return /** @type{?proto.loyalty.DepositPoint} */ (
4378
+ jspb.Message.getWrapperField(this, proto.loyalty.DepositPoint, 4));
4390
4379
  };
4391
4380
 
4392
4381
 
4393
4382
  /**
4394
- * @param {!Array<!proto.loyalty.DepositPoint>} value
4383
+ * @param {?proto.loyalty.DepositPoint|undefined} value
4395
4384
  * @return {!proto.loyalty.PointItem} returns this
4396
4385
  */
4397
- proto.loyalty.PointItem.prototype.setDepositPointsList = function(value) {
4398
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
4386
+ proto.loyalty.PointItem.prototype.setDepositPoint = function(value) {
4387
+ return jspb.Message.setWrapperField(this, 4, value);
4399
4388
  };
4400
4389
 
4401
4390
 
4402
4391
  /**
4403
- * @param {!proto.loyalty.DepositPoint=} opt_value
4404
- * @param {number=} opt_index
4405
- * @return {!proto.loyalty.DepositPoint}
4392
+ * Clears the message field making it undefined.
4393
+ * @return {!proto.loyalty.PointItem} returns this
4406
4394
  */
4407
- proto.loyalty.PointItem.prototype.addDepositPoints = function(opt_value, opt_index) {
4408
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.loyalty.DepositPoint, opt_index);
4395
+ proto.loyalty.PointItem.prototype.clearDepositPoint = function() {
4396
+ return this.setDepositPoint(undefined);
4409
4397
  };
4410
4398
 
4411
4399
 
4412
4400
  /**
4413
- * Clears the list making it empty but non-null.
4414
- * @return {!proto.loyalty.PointItem} returns this
4401
+ * Returns whether this field is set.
4402
+ * @return {boolean}
4415
4403
  */
4416
- proto.loyalty.PointItem.prototype.clearDepositPointsList = function() {
4417
- return this.setDepositPointsList([]);
4404
+ proto.loyalty.PointItem.prototype.hasDepositPoint = function() {
4405
+ return jspb.Message.getField(this, 4) != null;
4418
4406
  };
4419
4407
 
4420
4408
 
4421
4409
  /**
4422
- * repeated BetPoint bet_points = 5;
4423
- * @return {!Array<!proto.loyalty.BetPoint>}
4410
+ * optional BetPoint bet_point = 5;
4411
+ * @return {?proto.loyalty.BetPoint}
4424
4412
  */
4425
- proto.loyalty.PointItem.prototype.getBetPointsList = function() {
4426
- return /** @type{!Array<!proto.loyalty.BetPoint>} */ (
4427
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.BetPoint, 5));
4413
+ proto.loyalty.PointItem.prototype.getBetPoint = function() {
4414
+ return /** @type{?proto.loyalty.BetPoint} */ (
4415
+ jspb.Message.getWrapperField(this, proto.loyalty.BetPoint, 5));
4428
4416
  };
4429
4417
 
4430
4418
 
4431
4419
  /**
4432
- * @param {!Array<!proto.loyalty.BetPoint>} value
4420
+ * @param {?proto.loyalty.BetPoint|undefined} value
4433
4421
  * @return {!proto.loyalty.PointItem} returns this
4434
4422
  */
4435
- proto.loyalty.PointItem.prototype.setBetPointsList = function(value) {
4436
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
4423
+ proto.loyalty.PointItem.prototype.setBetPoint = function(value) {
4424
+ return jspb.Message.setWrapperField(this, 5, value);
4437
4425
  };
4438
4426
 
4439
4427
 
4440
4428
  /**
4441
- * @param {!proto.loyalty.BetPoint=} opt_value
4442
- * @param {number=} opt_index
4443
- * @return {!proto.loyalty.BetPoint}
4429
+ * Clears the message field making it undefined.
4430
+ * @return {!proto.loyalty.PointItem} returns this
4444
4431
  */
4445
- proto.loyalty.PointItem.prototype.addBetPoints = function(opt_value, opt_index) {
4446
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.loyalty.BetPoint, opt_index);
4432
+ proto.loyalty.PointItem.prototype.clearBetPoint = function() {
4433
+ return this.setBetPoint(undefined);
4447
4434
  };
4448
4435
 
4449
4436
 
4450
4437
  /**
4451
- * Clears the list making it empty but non-null.
4452
- * @return {!proto.loyalty.PointItem} returns this
4438
+ * Returns whether this field is set.
4439
+ * @return {boolean}
4453
4440
  */
4454
- proto.loyalty.PointItem.prototype.clearBetPointsList = function() {
4455
- return this.setBetPointsList([]);
4441
+ proto.loyalty.PointItem.prototype.hasBetPoint = function() {
4442
+ return jspb.Message.getField(this, 5) != null;
4456
4443
  };
4457
4444
 
4458
4445
 
4459
4446
 
4460
- /**
4461
- * List of repeated fields within this message type.
4462
- * @private {!Array<number>}
4463
- * @const
4464
- */
4465
- proto.loyalty.PointRequest.repeatedFields_ = [3,4,5];
4466
-
4467
4447
 
4468
4448
 
4469
4449
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4497,12 +4477,9 @@ proto.loyalty.PointRequest.toObject = function(includeInstance, msg) {
4497
4477
  var f, obj = {
4498
4478
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
4499
4479
  type: jspb.Message.getFieldWithDefault(msg, 2, ""),
4500
- signUpPointsList: jspb.Message.toObjectList(msg.getSignUpPointsList(),
4501
- proto.loyalty.SignUpPoint.toObject, includeInstance),
4502
- depositPointsList: jspb.Message.toObjectList(msg.getDepositPointsList(),
4503
- proto.loyalty.DepositPoint.toObject, includeInstance),
4504
- betPointsList: jspb.Message.toObjectList(msg.getBetPointsList(),
4505
- proto.loyalty.BetPoint.toObject, includeInstance)
4480
+ signUpPoint: (f = msg.getSignUpPoint()) && proto.loyalty.SignUpPoint.toObject(includeInstance, f),
4481
+ depositPoint: (f = msg.getDepositPoint()) && proto.loyalty.DepositPoint.toObject(includeInstance, f),
4482
+ betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f)
4506
4483
  };
4507
4484
 
4508
4485
  if (includeInstance) {
@@ -4550,17 +4527,17 @@ proto.loyalty.PointRequest.deserializeBinaryFromReader = function(msg, reader) {
4550
4527
  case 3:
4551
4528
  var value = new proto.loyalty.SignUpPoint;
4552
4529
  reader.readMessage(value,proto.loyalty.SignUpPoint.deserializeBinaryFromReader);
4553
- msg.addSignUpPoints(value);
4530
+ msg.setSignUpPoint(value);
4554
4531
  break;
4555
4532
  case 4:
4556
4533
  var value = new proto.loyalty.DepositPoint;
4557
4534
  reader.readMessage(value,proto.loyalty.DepositPoint.deserializeBinaryFromReader);
4558
- msg.addDepositPoints(value);
4535
+ msg.setDepositPoint(value);
4559
4536
  break;
4560
4537
  case 5:
4561
4538
  var value = new proto.loyalty.BetPoint;
4562
4539
  reader.readMessage(value,proto.loyalty.BetPoint.deserializeBinaryFromReader);
4563
- msg.addBetPoints(value);
4540
+ msg.setBetPoint(value);
4564
4541
  break;
4565
4542
  default:
4566
4543
  reader.skipField();
@@ -4605,25 +4582,25 @@ proto.loyalty.PointRequest.serializeBinaryToWriter = function(message, writer) {
4605
4582
  f
4606
4583
  );
4607
4584
  }
4608
- f = message.getSignUpPointsList();
4609
- if (f.length > 0) {
4610
- writer.writeRepeatedMessage(
4585
+ f = message.getSignUpPoint();
4586
+ if (f != null) {
4587
+ writer.writeMessage(
4611
4588
  3,
4612
4589
  f,
4613
4590
  proto.loyalty.SignUpPoint.serializeBinaryToWriter
4614
4591
  );
4615
4592
  }
4616
- f = message.getDepositPointsList();
4617
- if (f.length > 0) {
4618
- writer.writeRepeatedMessage(
4593
+ f = message.getDepositPoint();
4594
+ if (f != null) {
4595
+ writer.writeMessage(
4619
4596
  4,
4620
4597
  f,
4621
4598
  proto.loyalty.DepositPoint.serializeBinaryToWriter
4622
4599
  );
4623
4600
  }
4624
- f = message.getBetPointsList();
4625
- if (f.length > 0) {
4626
- writer.writeRepeatedMessage(
4601
+ f = message.getBetPoint();
4602
+ if (f != null) {
4603
+ writer.writeMessage(
4627
4604
  5,
4628
4605
  f,
4629
4606
  proto.loyalty.BetPoint.serializeBinaryToWriter
@@ -4705,116 +4682,113 @@ proto.loyalty.PointRequest.prototype.hasType = function() {
4705
4682
 
4706
4683
 
4707
4684
  /**
4708
- * repeated SignUpPoint sign_up_points = 3;
4709
- * @return {!Array<!proto.loyalty.SignUpPoint>}
4685
+ * optional SignUpPoint sign_up_point = 3;
4686
+ * @return {?proto.loyalty.SignUpPoint}
4710
4687
  */
4711
- proto.loyalty.PointRequest.prototype.getSignUpPointsList = function() {
4712
- return /** @type{!Array<!proto.loyalty.SignUpPoint>} */ (
4713
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.SignUpPoint, 3));
4688
+ proto.loyalty.PointRequest.prototype.getSignUpPoint = function() {
4689
+ return /** @type{?proto.loyalty.SignUpPoint} */ (
4690
+ jspb.Message.getWrapperField(this, proto.loyalty.SignUpPoint, 3));
4714
4691
  };
4715
4692
 
4716
4693
 
4717
4694
  /**
4718
- * @param {!Array<!proto.loyalty.SignUpPoint>} value
4695
+ * @param {?proto.loyalty.SignUpPoint|undefined} value
4719
4696
  * @return {!proto.loyalty.PointRequest} returns this
4720
4697
  */
4721
- proto.loyalty.PointRequest.prototype.setSignUpPointsList = function(value) {
4722
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
4698
+ proto.loyalty.PointRequest.prototype.setSignUpPoint = function(value) {
4699
+ return jspb.Message.setWrapperField(this, 3, value);
4723
4700
  };
4724
4701
 
4725
4702
 
4726
4703
  /**
4727
- * @param {!proto.loyalty.SignUpPoint=} opt_value
4728
- * @param {number=} opt_index
4729
- * @return {!proto.loyalty.SignUpPoint}
4704
+ * Clears the message field making it undefined.
4705
+ * @return {!proto.loyalty.PointRequest} returns this
4730
4706
  */
4731
- proto.loyalty.PointRequest.prototype.addSignUpPoints = function(opt_value, opt_index) {
4732
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.loyalty.SignUpPoint, opt_index);
4707
+ proto.loyalty.PointRequest.prototype.clearSignUpPoint = function() {
4708
+ return this.setSignUpPoint(undefined);
4733
4709
  };
4734
4710
 
4735
4711
 
4736
4712
  /**
4737
- * Clears the list making it empty but non-null.
4738
- * @return {!proto.loyalty.PointRequest} returns this
4713
+ * Returns whether this field is set.
4714
+ * @return {boolean}
4739
4715
  */
4740
- proto.loyalty.PointRequest.prototype.clearSignUpPointsList = function() {
4741
- return this.setSignUpPointsList([]);
4716
+ proto.loyalty.PointRequest.prototype.hasSignUpPoint = function() {
4717
+ return jspb.Message.getField(this, 3) != null;
4742
4718
  };
4743
4719
 
4744
4720
 
4745
4721
  /**
4746
- * repeated DepositPoint deposit_points = 4;
4747
- * @return {!Array<!proto.loyalty.DepositPoint>}
4722
+ * optional DepositPoint deposit_point = 4;
4723
+ * @return {?proto.loyalty.DepositPoint}
4748
4724
  */
4749
- proto.loyalty.PointRequest.prototype.getDepositPointsList = function() {
4750
- return /** @type{!Array<!proto.loyalty.DepositPoint>} */ (
4751
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.DepositPoint, 4));
4725
+ proto.loyalty.PointRequest.prototype.getDepositPoint = function() {
4726
+ return /** @type{?proto.loyalty.DepositPoint} */ (
4727
+ jspb.Message.getWrapperField(this, proto.loyalty.DepositPoint, 4));
4752
4728
  };
4753
4729
 
4754
4730
 
4755
4731
  /**
4756
- * @param {!Array<!proto.loyalty.DepositPoint>} value
4732
+ * @param {?proto.loyalty.DepositPoint|undefined} value
4757
4733
  * @return {!proto.loyalty.PointRequest} returns this
4758
4734
  */
4759
- proto.loyalty.PointRequest.prototype.setDepositPointsList = function(value) {
4760
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
4735
+ proto.loyalty.PointRequest.prototype.setDepositPoint = function(value) {
4736
+ return jspb.Message.setWrapperField(this, 4, value);
4761
4737
  };
4762
4738
 
4763
4739
 
4764
4740
  /**
4765
- * @param {!proto.loyalty.DepositPoint=} opt_value
4766
- * @param {number=} opt_index
4767
- * @return {!proto.loyalty.DepositPoint}
4741
+ * Clears the message field making it undefined.
4742
+ * @return {!proto.loyalty.PointRequest} returns this
4768
4743
  */
4769
- proto.loyalty.PointRequest.prototype.addDepositPoints = function(opt_value, opt_index) {
4770
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.loyalty.DepositPoint, opt_index);
4744
+ proto.loyalty.PointRequest.prototype.clearDepositPoint = function() {
4745
+ return this.setDepositPoint(undefined);
4771
4746
  };
4772
4747
 
4773
4748
 
4774
4749
  /**
4775
- * Clears the list making it empty but non-null.
4776
- * @return {!proto.loyalty.PointRequest} returns this
4750
+ * Returns whether this field is set.
4751
+ * @return {boolean}
4777
4752
  */
4778
- proto.loyalty.PointRequest.prototype.clearDepositPointsList = function() {
4779
- return this.setDepositPointsList([]);
4753
+ proto.loyalty.PointRequest.prototype.hasDepositPoint = function() {
4754
+ return jspb.Message.getField(this, 4) != null;
4780
4755
  };
4781
4756
 
4782
4757
 
4783
4758
  /**
4784
- * repeated BetPoint bet_points = 5;
4785
- * @return {!Array<!proto.loyalty.BetPoint>}
4759
+ * optional BetPoint bet_point = 5;
4760
+ * @return {?proto.loyalty.BetPoint}
4786
4761
  */
4787
- proto.loyalty.PointRequest.prototype.getBetPointsList = function() {
4788
- return /** @type{!Array<!proto.loyalty.BetPoint>} */ (
4789
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.BetPoint, 5));
4762
+ proto.loyalty.PointRequest.prototype.getBetPoint = function() {
4763
+ return /** @type{?proto.loyalty.BetPoint} */ (
4764
+ jspb.Message.getWrapperField(this, proto.loyalty.BetPoint, 5));
4790
4765
  };
4791
4766
 
4792
4767
 
4793
4768
  /**
4794
- * @param {!Array<!proto.loyalty.BetPoint>} value
4769
+ * @param {?proto.loyalty.BetPoint|undefined} value
4795
4770
  * @return {!proto.loyalty.PointRequest} returns this
4796
4771
  */
4797
- proto.loyalty.PointRequest.prototype.setBetPointsList = function(value) {
4798
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
4772
+ proto.loyalty.PointRequest.prototype.setBetPoint = function(value) {
4773
+ return jspb.Message.setWrapperField(this, 5, value);
4799
4774
  };
4800
4775
 
4801
4776
 
4802
4777
  /**
4803
- * @param {!proto.loyalty.BetPoint=} opt_value
4804
- * @param {number=} opt_index
4805
- * @return {!proto.loyalty.BetPoint}
4778
+ * Clears the message field making it undefined.
4779
+ * @return {!proto.loyalty.PointRequest} returns this
4806
4780
  */
4807
- proto.loyalty.PointRequest.prototype.addBetPoints = function(opt_value, opt_index) {
4808
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.loyalty.BetPoint, opt_index);
4781
+ proto.loyalty.PointRequest.prototype.clearBetPoint = function() {
4782
+ return this.setBetPoint(undefined);
4809
4783
  };
4810
4784
 
4811
4785
 
4812
4786
  /**
4813
- * Clears the list making it empty but non-null.
4814
- * @return {!proto.loyalty.PointRequest} returns this
4787
+ * Returns whether this field is set.
4788
+ * @return {boolean}
4815
4789
  */
4816
- proto.loyalty.PointRequest.prototype.clearBetPointsList = function() {
4817
- return this.setBetPointsList([]);
4790
+ proto.loyalty.PointRequest.prototype.hasBetPoint = function() {
4791
+ return jspb.Message.getField(this, 5) != null;
4818
4792
  };
4819
4793
 
4820
4794
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {