protobuf-platform 1.0.282 → 1.0.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/loyalty/loyalty.proto +12 -0
- package/loyalty/loyalty_grpc_pb.js +22 -0
- package/loyalty/loyalty_pb.js +538 -0
- package/package.json +1 -1
package/loyalty/loyalty.proto
CHANGED
@@ -19,6 +19,7 @@ service Loyalty {
|
|
19
19
|
rpc readListPoints(PaginationRequest) returns (PointItemsResponse);
|
20
20
|
//Users
|
21
21
|
rpc getUserLoyalty(GetUserLoyaltyRequest) returns (UserLoyaltyResponse);
|
22
|
+
rpc getUserLoyaltyPoints(GetUserLoyaltyRequest) returns (UserLoyaltyPointsResponse);
|
22
23
|
}
|
23
24
|
|
24
25
|
message PingRequest { string ping = 1; }
|
@@ -140,4 +141,15 @@ message UserLoyaltyResponse {
|
|
140
141
|
optional int32 points_to_complete = 5;
|
141
142
|
optional string image = 6;
|
142
143
|
optional int32 current_points = 7;
|
144
|
+
}
|
145
|
+
message UserLoyaltyPoint {
|
146
|
+
int32 user_point_id = 1;
|
147
|
+
string type = 2;
|
148
|
+
int32 points = 3;
|
149
|
+
optional string created = 4;
|
150
|
+
}
|
151
|
+
message UserLoyaltyPointsResponse {
|
152
|
+
repeated UserLoyaltyPoint items = 1;
|
153
|
+
optional int32 total_pages = 2;
|
154
|
+
optional int32 total_items = 3;
|
143
155
|
}
|
@@ -180,6 +180,17 @@ function deserialize_loyalty_PongResponse(buffer_arg) {
|
|
180
180
|
return loyalty_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
181
181
|
}
|
182
182
|
|
183
|
+
function serialize_loyalty_UserLoyaltyPointsResponse(arg) {
|
184
|
+
if (!(arg instanceof loyalty_pb.UserLoyaltyPointsResponse)) {
|
185
|
+
throw new Error('Expected argument of type loyalty.UserLoyaltyPointsResponse');
|
186
|
+
}
|
187
|
+
return Buffer.from(arg.serializeBinary());
|
188
|
+
}
|
189
|
+
|
190
|
+
function deserialize_loyalty_UserLoyaltyPointsResponse(buffer_arg) {
|
191
|
+
return loyalty_pb.UserLoyaltyPointsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
192
|
+
}
|
193
|
+
|
183
194
|
function serialize_loyalty_UserLoyaltyResponse(arg) {
|
184
195
|
if (!(arg instanceof loyalty_pb.UserLoyaltyResponse)) {
|
185
196
|
throw new Error('Expected argument of type loyalty.UserLoyaltyResponse');
|
@@ -339,6 +350,17 @@ getUserLoyalty: {
|
|
339
350
|
responseSerialize: serialize_loyalty_UserLoyaltyResponse,
|
340
351
|
responseDeserialize: deserialize_loyalty_UserLoyaltyResponse,
|
341
352
|
},
|
353
|
+
getUserLoyaltyPoints: {
|
354
|
+
path: '/loyalty.Loyalty/getUserLoyaltyPoints',
|
355
|
+
requestStream: false,
|
356
|
+
responseStream: false,
|
357
|
+
requestType: loyalty_pb.GetUserLoyaltyRequest,
|
358
|
+
responseType: loyalty_pb.UserLoyaltyPointsResponse,
|
359
|
+
requestSerialize: serialize_loyalty_GetUserLoyaltyRequest,
|
360
|
+
requestDeserialize: deserialize_loyalty_GetUserLoyaltyRequest,
|
361
|
+
responseSerialize: serialize_loyalty_UserLoyaltyPointsResponse,
|
362
|
+
responseDeserialize: deserialize_loyalty_UserLoyaltyPointsResponse,
|
363
|
+
},
|
342
364
|
};
|
343
365
|
|
344
366
|
exports.LoyaltyClient = grpc.makeGenericClientConstructor(LoyaltyService);
|
package/loyalty/loyalty_pb.js
CHANGED
@@ -45,6 +45,8 @@ goog.exportSymbol('proto.loyalty.PointResponse', null, global);
|
|
45
45
|
goog.exportSymbol('proto.loyalty.PointStatusResponse', null, global);
|
46
46
|
goog.exportSymbol('proto.loyalty.PongResponse', null, global);
|
47
47
|
goog.exportSymbol('proto.loyalty.SignUpPoint', null, global);
|
48
|
+
goog.exportSymbol('proto.loyalty.UserLoyaltyPoint', null, global);
|
49
|
+
goog.exportSymbol('proto.loyalty.UserLoyaltyPointsResponse', null, global);
|
48
50
|
goog.exportSymbol('proto.loyalty.UserLoyaltyResponse', null, global);
|
49
51
|
/**
|
50
52
|
* Generated by JsPbCodeGenerator.
|
@@ -550,6 +552,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
550
552
|
*/
|
551
553
|
proto.loyalty.UserLoyaltyResponse.displayName = 'proto.loyalty.UserLoyaltyResponse';
|
552
554
|
}
|
555
|
+
/**
|
556
|
+
* Generated by JsPbCodeGenerator.
|
557
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
558
|
+
* server response, or constructed directly in Javascript. The array is used
|
559
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
560
|
+
* If no data is provided, the constructed object will be empty, but still
|
561
|
+
* valid.
|
562
|
+
* @extends {jspb.Message}
|
563
|
+
* @constructor
|
564
|
+
*/
|
565
|
+
proto.loyalty.UserLoyaltyPoint = function(opt_data) {
|
566
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
567
|
+
};
|
568
|
+
goog.inherits(proto.loyalty.UserLoyaltyPoint, jspb.Message);
|
569
|
+
if (goog.DEBUG && !COMPILED) {
|
570
|
+
/**
|
571
|
+
* @public
|
572
|
+
* @override
|
573
|
+
*/
|
574
|
+
proto.loyalty.UserLoyaltyPoint.displayName = 'proto.loyalty.UserLoyaltyPoint';
|
575
|
+
}
|
576
|
+
/**
|
577
|
+
* Generated by JsPbCodeGenerator.
|
578
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
579
|
+
* server response, or constructed directly in Javascript. The array is used
|
580
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
581
|
+
* If no data is provided, the constructed object will be empty, but still
|
582
|
+
* valid.
|
583
|
+
* @extends {jspb.Message}
|
584
|
+
* @constructor
|
585
|
+
*/
|
586
|
+
proto.loyalty.UserLoyaltyPointsResponse = function(opt_data) {
|
587
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.UserLoyaltyPointsResponse.repeatedFields_, null);
|
588
|
+
};
|
589
|
+
goog.inherits(proto.loyalty.UserLoyaltyPointsResponse, jspb.Message);
|
590
|
+
if (goog.DEBUG && !COMPILED) {
|
591
|
+
/**
|
592
|
+
* @public
|
593
|
+
* @override
|
594
|
+
*/
|
595
|
+
proto.loyalty.UserLoyaltyPointsResponse.displayName = 'proto.loyalty.UserLoyaltyPointsResponse';
|
596
|
+
}
|
553
597
|
|
554
598
|
|
555
599
|
|
@@ -6243,4 +6287,498 @@ proto.loyalty.UserLoyaltyResponse.prototype.hasCurrentPoints = function() {
|
|
6243
6287
|
};
|
6244
6288
|
|
6245
6289
|
|
6290
|
+
|
6291
|
+
|
6292
|
+
|
6293
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6294
|
+
/**
|
6295
|
+
* Creates an object representation of this proto.
|
6296
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6297
|
+
* Optional fields that are not set will be set to undefined.
|
6298
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6299
|
+
* For the list of reserved names please see:
|
6300
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6301
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6302
|
+
* JSPB instance for transitional soy proto support:
|
6303
|
+
* http://goto/soy-param-migration
|
6304
|
+
* @return {!Object}
|
6305
|
+
*/
|
6306
|
+
proto.loyalty.UserLoyaltyPoint.prototype.toObject = function(opt_includeInstance) {
|
6307
|
+
return proto.loyalty.UserLoyaltyPoint.toObject(opt_includeInstance, this);
|
6308
|
+
};
|
6309
|
+
|
6310
|
+
|
6311
|
+
/**
|
6312
|
+
* Static version of the {@see toObject} method.
|
6313
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6314
|
+
* the JSPB instance for transitional soy proto support:
|
6315
|
+
* http://goto/soy-param-migration
|
6316
|
+
* @param {!proto.loyalty.UserLoyaltyPoint} msg The msg instance to transform.
|
6317
|
+
* @return {!Object}
|
6318
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6319
|
+
*/
|
6320
|
+
proto.loyalty.UserLoyaltyPoint.toObject = function(includeInstance, msg) {
|
6321
|
+
var f, obj = {
|
6322
|
+
userPointId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6323
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
6324
|
+
points: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
6325
|
+
created: jspb.Message.getFieldWithDefault(msg, 4, "")
|
6326
|
+
};
|
6327
|
+
|
6328
|
+
if (includeInstance) {
|
6329
|
+
obj.$jspbMessageInstance = msg;
|
6330
|
+
}
|
6331
|
+
return obj;
|
6332
|
+
};
|
6333
|
+
}
|
6334
|
+
|
6335
|
+
|
6336
|
+
/**
|
6337
|
+
* Deserializes binary data (in protobuf wire format).
|
6338
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6339
|
+
* @return {!proto.loyalty.UserLoyaltyPoint}
|
6340
|
+
*/
|
6341
|
+
proto.loyalty.UserLoyaltyPoint.deserializeBinary = function(bytes) {
|
6342
|
+
var reader = new jspb.BinaryReader(bytes);
|
6343
|
+
var msg = new proto.loyalty.UserLoyaltyPoint;
|
6344
|
+
return proto.loyalty.UserLoyaltyPoint.deserializeBinaryFromReader(msg, reader);
|
6345
|
+
};
|
6346
|
+
|
6347
|
+
|
6348
|
+
/**
|
6349
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6350
|
+
* given reader into the given message object.
|
6351
|
+
* @param {!proto.loyalty.UserLoyaltyPoint} msg The message object to deserialize into.
|
6352
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6353
|
+
* @return {!proto.loyalty.UserLoyaltyPoint}
|
6354
|
+
*/
|
6355
|
+
proto.loyalty.UserLoyaltyPoint.deserializeBinaryFromReader = function(msg, reader) {
|
6356
|
+
while (reader.nextField()) {
|
6357
|
+
if (reader.isEndGroup()) {
|
6358
|
+
break;
|
6359
|
+
}
|
6360
|
+
var field = reader.getFieldNumber();
|
6361
|
+
switch (field) {
|
6362
|
+
case 1:
|
6363
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6364
|
+
msg.setUserPointId(value);
|
6365
|
+
break;
|
6366
|
+
case 2:
|
6367
|
+
var value = /** @type {string} */ (reader.readString());
|
6368
|
+
msg.setType(value);
|
6369
|
+
break;
|
6370
|
+
case 3:
|
6371
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6372
|
+
msg.setPoints(value);
|
6373
|
+
break;
|
6374
|
+
case 4:
|
6375
|
+
var value = /** @type {string} */ (reader.readString());
|
6376
|
+
msg.setCreated(value);
|
6377
|
+
break;
|
6378
|
+
default:
|
6379
|
+
reader.skipField();
|
6380
|
+
break;
|
6381
|
+
}
|
6382
|
+
}
|
6383
|
+
return msg;
|
6384
|
+
};
|
6385
|
+
|
6386
|
+
|
6387
|
+
/**
|
6388
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6389
|
+
* @return {!Uint8Array}
|
6390
|
+
*/
|
6391
|
+
proto.loyalty.UserLoyaltyPoint.prototype.serializeBinary = function() {
|
6392
|
+
var writer = new jspb.BinaryWriter();
|
6393
|
+
proto.loyalty.UserLoyaltyPoint.serializeBinaryToWriter(this, writer);
|
6394
|
+
return writer.getResultBuffer();
|
6395
|
+
};
|
6396
|
+
|
6397
|
+
|
6398
|
+
/**
|
6399
|
+
* Serializes the given message to binary data (in protobuf wire
|
6400
|
+
* format), writing to the given BinaryWriter.
|
6401
|
+
* @param {!proto.loyalty.UserLoyaltyPoint} message
|
6402
|
+
* @param {!jspb.BinaryWriter} writer
|
6403
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6404
|
+
*/
|
6405
|
+
proto.loyalty.UserLoyaltyPoint.serializeBinaryToWriter = function(message, writer) {
|
6406
|
+
var f = undefined;
|
6407
|
+
f = message.getUserPointId();
|
6408
|
+
if (f !== 0) {
|
6409
|
+
writer.writeInt32(
|
6410
|
+
1,
|
6411
|
+
f
|
6412
|
+
);
|
6413
|
+
}
|
6414
|
+
f = message.getType();
|
6415
|
+
if (f.length > 0) {
|
6416
|
+
writer.writeString(
|
6417
|
+
2,
|
6418
|
+
f
|
6419
|
+
);
|
6420
|
+
}
|
6421
|
+
f = message.getPoints();
|
6422
|
+
if (f !== 0) {
|
6423
|
+
writer.writeInt32(
|
6424
|
+
3,
|
6425
|
+
f
|
6426
|
+
);
|
6427
|
+
}
|
6428
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
6429
|
+
if (f != null) {
|
6430
|
+
writer.writeString(
|
6431
|
+
4,
|
6432
|
+
f
|
6433
|
+
);
|
6434
|
+
}
|
6435
|
+
};
|
6436
|
+
|
6437
|
+
|
6438
|
+
/**
|
6439
|
+
* optional int32 user_point_id = 1;
|
6440
|
+
* @return {number}
|
6441
|
+
*/
|
6442
|
+
proto.loyalty.UserLoyaltyPoint.prototype.getUserPointId = function() {
|
6443
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6444
|
+
};
|
6445
|
+
|
6446
|
+
|
6447
|
+
/**
|
6448
|
+
* @param {number} value
|
6449
|
+
* @return {!proto.loyalty.UserLoyaltyPoint} returns this
|
6450
|
+
*/
|
6451
|
+
proto.loyalty.UserLoyaltyPoint.prototype.setUserPointId = function(value) {
|
6452
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6453
|
+
};
|
6454
|
+
|
6455
|
+
|
6456
|
+
/**
|
6457
|
+
* optional string type = 2;
|
6458
|
+
* @return {string}
|
6459
|
+
*/
|
6460
|
+
proto.loyalty.UserLoyaltyPoint.prototype.getType = function() {
|
6461
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6462
|
+
};
|
6463
|
+
|
6464
|
+
|
6465
|
+
/**
|
6466
|
+
* @param {string} value
|
6467
|
+
* @return {!proto.loyalty.UserLoyaltyPoint} returns this
|
6468
|
+
*/
|
6469
|
+
proto.loyalty.UserLoyaltyPoint.prototype.setType = function(value) {
|
6470
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
6471
|
+
};
|
6472
|
+
|
6473
|
+
|
6474
|
+
/**
|
6475
|
+
* optional int32 points = 3;
|
6476
|
+
* @return {number}
|
6477
|
+
*/
|
6478
|
+
proto.loyalty.UserLoyaltyPoint.prototype.getPoints = function() {
|
6479
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6480
|
+
};
|
6481
|
+
|
6482
|
+
|
6483
|
+
/**
|
6484
|
+
* @param {number} value
|
6485
|
+
* @return {!proto.loyalty.UserLoyaltyPoint} returns this
|
6486
|
+
*/
|
6487
|
+
proto.loyalty.UserLoyaltyPoint.prototype.setPoints = function(value) {
|
6488
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
6489
|
+
};
|
6490
|
+
|
6491
|
+
|
6492
|
+
/**
|
6493
|
+
* optional string created = 4;
|
6494
|
+
* @return {string}
|
6495
|
+
*/
|
6496
|
+
proto.loyalty.UserLoyaltyPoint.prototype.getCreated = function() {
|
6497
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
6498
|
+
};
|
6499
|
+
|
6500
|
+
|
6501
|
+
/**
|
6502
|
+
* @param {string} value
|
6503
|
+
* @return {!proto.loyalty.UserLoyaltyPoint} returns this
|
6504
|
+
*/
|
6505
|
+
proto.loyalty.UserLoyaltyPoint.prototype.setCreated = function(value) {
|
6506
|
+
return jspb.Message.setField(this, 4, value);
|
6507
|
+
};
|
6508
|
+
|
6509
|
+
|
6510
|
+
/**
|
6511
|
+
* Clears the field making it undefined.
|
6512
|
+
* @return {!proto.loyalty.UserLoyaltyPoint} returns this
|
6513
|
+
*/
|
6514
|
+
proto.loyalty.UserLoyaltyPoint.prototype.clearCreated = function() {
|
6515
|
+
return jspb.Message.setField(this, 4, undefined);
|
6516
|
+
};
|
6517
|
+
|
6518
|
+
|
6519
|
+
/**
|
6520
|
+
* Returns whether this field is set.
|
6521
|
+
* @return {boolean}
|
6522
|
+
*/
|
6523
|
+
proto.loyalty.UserLoyaltyPoint.prototype.hasCreated = function() {
|
6524
|
+
return jspb.Message.getField(this, 4) != null;
|
6525
|
+
};
|
6526
|
+
|
6527
|
+
|
6528
|
+
|
6529
|
+
/**
|
6530
|
+
* List of repeated fields within this message type.
|
6531
|
+
* @private {!Array<number>}
|
6532
|
+
* @const
|
6533
|
+
*/
|
6534
|
+
proto.loyalty.UserLoyaltyPointsResponse.repeatedFields_ = [1];
|
6535
|
+
|
6536
|
+
|
6537
|
+
|
6538
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6539
|
+
/**
|
6540
|
+
* Creates an object representation of this proto.
|
6541
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6542
|
+
* Optional fields that are not set will be set to undefined.
|
6543
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6544
|
+
* For the list of reserved names please see:
|
6545
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6546
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6547
|
+
* JSPB instance for transitional soy proto support:
|
6548
|
+
* http://goto/soy-param-migration
|
6549
|
+
* @return {!Object}
|
6550
|
+
*/
|
6551
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.toObject = function(opt_includeInstance) {
|
6552
|
+
return proto.loyalty.UserLoyaltyPointsResponse.toObject(opt_includeInstance, this);
|
6553
|
+
};
|
6554
|
+
|
6555
|
+
|
6556
|
+
/**
|
6557
|
+
* Static version of the {@see toObject} method.
|
6558
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6559
|
+
* the JSPB instance for transitional soy proto support:
|
6560
|
+
* http://goto/soy-param-migration
|
6561
|
+
* @param {!proto.loyalty.UserLoyaltyPointsResponse} msg The msg instance to transform.
|
6562
|
+
* @return {!Object}
|
6563
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6564
|
+
*/
|
6565
|
+
proto.loyalty.UserLoyaltyPointsResponse.toObject = function(includeInstance, msg) {
|
6566
|
+
var f, obj = {
|
6567
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6568
|
+
proto.loyalty.UserLoyaltyPoint.toObject, includeInstance),
|
6569
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6570
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
6571
|
+
};
|
6572
|
+
|
6573
|
+
if (includeInstance) {
|
6574
|
+
obj.$jspbMessageInstance = msg;
|
6575
|
+
}
|
6576
|
+
return obj;
|
6577
|
+
};
|
6578
|
+
}
|
6579
|
+
|
6580
|
+
|
6581
|
+
/**
|
6582
|
+
* Deserializes binary data (in protobuf wire format).
|
6583
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6584
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse}
|
6585
|
+
*/
|
6586
|
+
proto.loyalty.UserLoyaltyPointsResponse.deserializeBinary = function(bytes) {
|
6587
|
+
var reader = new jspb.BinaryReader(bytes);
|
6588
|
+
var msg = new proto.loyalty.UserLoyaltyPointsResponse;
|
6589
|
+
return proto.loyalty.UserLoyaltyPointsResponse.deserializeBinaryFromReader(msg, reader);
|
6590
|
+
};
|
6591
|
+
|
6592
|
+
|
6593
|
+
/**
|
6594
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6595
|
+
* given reader into the given message object.
|
6596
|
+
* @param {!proto.loyalty.UserLoyaltyPointsResponse} msg The message object to deserialize into.
|
6597
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6598
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse}
|
6599
|
+
*/
|
6600
|
+
proto.loyalty.UserLoyaltyPointsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6601
|
+
while (reader.nextField()) {
|
6602
|
+
if (reader.isEndGroup()) {
|
6603
|
+
break;
|
6604
|
+
}
|
6605
|
+
var field = reader.getFieldNumber();
|
6606
|
+
switch (field) {
|
6607
|
+
case 1:
|
6608
|
+
var value = new proto.loyalty.UserLoyaltyPoint;
|
6609
|
+
reader.readMessage(value,proto.loyalty.UserLoyaltyPoint.deserializeBinaryFromReader);
|
6610
|
+
msg.addItems(value);
|
6611
|
+
break;
|
6612
|
+
case 2:
|
6613
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6614
|
+
msg.setTotalPages(value);
|
6615
|
+
break;
|
6616
|
+
case 3:
|
6617
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6618
|
+
msg.setTotalItems(value);
|
6619
|
+
break;
|
6620
|
+
default:
|
6621
|
+
reader.skipField();
|
6622
|
+
break;
|
6623
|
+
}
|
6624
|
+
}
|
6625
|
+
return msg;
|
6626
|
+
};
|
6627
|
+
|
6628
|
+
|
6629
|
+
/**
|
6630
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6631
|
+
* @return {!Uint8Array}
|
6632
|
+
*/
|
6633
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.serializeBinary = function() {
|
6634
|
+
var writer = new jspb.BinaryWriter();
|
6635
|
+
proto.loyalty.UserLoyaltyPointsResponse.serializeBinaryToWriter(this, writer);
|
6636
|
+
return writer.getResultBuffer();
|
6637
|
+
};
|
6638
|
+
|
6639
|
+
|
6640
|
+
/**
|
6641
|
+
* Serializes the given message to binary data (in protobuf wire
|
6642
|
+
* format), writing to the given BinaryWriter.
|
6643
|
+
* @param {!proto.loyalty.UserLoyaltyPointsResponse} message
|
6644
|
+
* @param {!jspb.BinaryWriter} writer
|
6645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6646
|
+
*/
|
6647
|
+
proto.loyalty.UserLoyaltyPointsResponse.serializeBinaryToWriter = function(message, writer) {
|
6648
|
+
var f = undefined;
|
6649
|
+
f = message.getItemsList();
|
6650
|
+
if (f.length > 0) {
|
6651
|
+
writer.writeRepeatedMessage(
|
6652
|
+
1,
|
6653
|
+
f,
|
6654
|
+
proto.loyalty.UserLoyaltyPoint.serializeBinaryToWriter
|
6655
|
+
);
|
6656
|
+
}
|
6657
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6658
|
+
if (f != null) {
|
6659
|
+
writer.writeInt32(
|
6660
|
+
2,
|
6661
|
+
f
|
6662
|
+
);
|
6663
|
+
}
|
6664
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
6665
|
+
if (f != null) {
|
6666
|
+
writer.writeInt32(
|
6667
|
+
3,
|
6668
|
+
f
|
6669
|
+
);
|
6670
|
+
}
|
6671
|
+
};
|
6672
|
+
|
6673
|
+
|
6674
|
+
/**
|
6675
|
+
* repeated UserLoyaltyPoint items = 1;
|
6676
|
+
* @return {!Array<!proto.loyalty.UserLoyaltyPoint>}
|
6677
|
+
*/
|
6678
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.getItemsList = function() {
|
6679
|
+
return /** @type{!Array<!proto.loyalty.UserLoyaltyPoint>} */ (
|
6680
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.UserLoyaltyPoint, 1));
|
6681
|
+
};
|
6682
|
+
|
6683
|
+
|
6684
|
+
/**
|
6685
|
+
* @param {!Array<!proto.loyalty.UserLoyaltyPoint>} value
|
6686
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6687
|
+
*/
|
6688
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.setItemsList = function(value) {
|
6689
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6690
|
+
};
|
6691
|
+
|
6692
|
+
|
6693
|
+
/**
|
6694
|
+
* @param {!proto.loyalty.UserLoyaltyPoint=} opt_value
|
6695
|
+
* @param {number=} opt_index
|
6696
|
+
* @return {!proto.loyalty.UserLoyaltyPoint}
|
6697
|
+
*/
|
6698
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.addItems = function(opt_value, opt_index) {
|
6699
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.loyalty.UserLoyaltyPoint, opt_index);
|
6700
|
+
};
|
6701
|
+
|
6702
|
+
|
6703
|
+
/**
|
6704
|
+
* Clears the list making it empty but non-null.
|
6705
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6706
|
+
*/
|
6707
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.clearItemsList = function() {
|
6708
|
+
return this.setItemsList([]);
|
6709
|
+
};
|
6710
|
+
|
6711
|
+
|
6712
|
+
/**
|
6713
|
+
* optional int32 total_pages = 2;
|
6714
|
+
* @return {number}
|
6715
|
+
*/
|
6716
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.getTotalPages = function() {
|
6717
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6718
|
+
};
|
6719
|
+
|
6720
|
+
|
6721
|
+
/**
|
6722
|
+
* @param {number} value
|
6723
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6724
|
+
*/
|
6725
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.setTotalPages = function(value) {
|
6726
|
+
return jspb.Message.setField(this, 2, value);
|
6727
|
+
};
|
6728
|
+
|
6729
|
+
|
6730
|
+
/**
|
6731
|
+
* Clears the field making it undefined.
|
6732
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6733
|
+
*/
|
6734
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.clearTotalPages = function() {
|
6735
|
+
return jspb.Message.setField(this, 2, undefined);
|
6736
|
+
};
|
6737
|
+
|
6738
|
+
|
6739
|
+
/**
|
6740
|
+
* Returns whether this field is set.
|
6741
|
+
* @return {boolean}
|
6742
|
+
*/
|
6743
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.hasTotalPages = function() {
|
6744
|
+
return jspb.Message.getField(this, 2) != null;
|
6745
|
+
};
|
6746
|
+
|
6747
|
+
|
6748
|
+
/**
|
6749
|
+
* optional int32 total_items = 3;
|
6750
|
+
* @return {number}
|
6751
|
+
*/
|
6752
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.getTotalItems = function() {
|
6753
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6754
|
+
};
|
6755
|
+
|
6756
|
+
|
6757
|
+
/**
|
6758
|
+
* @param {number} value
|
6759
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6760
|
+
*/
|
6761
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.setTotalItems = function(value) {
|
6762
|
+
return jspb.Message.setField(this, 3, value);
|
6763
|
+
};
|
6764
|
+
|
6765
|
+
|
6766
|
+
/**
|
6767
|
+
* Clears the field making it undefined.
|
6768
|
+
* @return {!proto.loyalty.UserLoyaltyPointsResponse} returns this
|
6769
|
+
*/
|
6770
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.clearTotalItems = function() {
|
6771
|
+
return jspb.Message.setField(this, 3, undefined);
|
6772
|
+
};
|
6773
|
+
|
6774
|
+
|
6775
|
+
/**
|
6776
|
+
* Returns whether this field is set.
|
6777
|
+
* @return {boolean}
|
6778
|
+
*/
|
6779
|
+
proto.loyalty.UserLoyaltyPointsResponse.prototype.hasTotalItems = function() {
|
6780
|
+
return jspb.Message.getField(this, 3) != null;
|
6781
|
+
};
|
6782
|
+
|
6783
|
+
|
6246
6784
|
goog.object.extend(exports, proto.loyalty);
|