@sniipwebmaster/loyalty-program-client-grpcweb 22.17.443 → 22.17.451
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.
|
@@ -394,6 +394,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
|
|
397
|
+
/**
|
|
398
|
+
* @const
|
|
399
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
400
|
+
* !proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest,
|
|
401
|
+
* !proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse>}
|
|
402
|
+
*/
|
|
403
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTransactionsByMembershipId = new grpc.web.MethodDescriptor(
|
|
404
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTransactionsByMembershipId',
|
|
405
|
+
grpc.web.MethodType.UNARY,
|
|
406
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest,
|
|
407
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse,
|
|
408
|
+
/**
|
|
409
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} request
|
|
410
|
+
* @return {!Uint8Array}
|
|
411
|
+
*/
|
|
412
|
+
function(request) {
|
|
413
|
+
return request.serializeBinary();
|
|
414
|
+
},
|
|
415
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinary
|
|
416
|
+
);
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @const
|
|
421
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
422
|
+
* !proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest,
|
|
423
|
+
* !proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse>}
|
|
424
|
+
*/
|
|
425
|
+
const methodInfo_LoyaltyProgramServiceAPIService_GetLoyaltyTransactionsByMembershipId = new grpc.web.AbstractClientBase.MethodInfo(
|
|
426
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse,
|
|
427
|
+
/**
|
|
428
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} request
|
|
429
|
+
* @return {!Uint8Array}
|
|
430
|
+
*/
|
|
431
|
+
function(request) {
|
|
432
|
+
return request.serializeBinary();
|
|
433
|
+
},
|
|
434
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinary
|
|
435
|
+
);
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} request The
|
|
440
|
+
* request proto
|
|
441
|
+
* @param {?Object<string, string>} metadata User defined
|
|
442
|
+
* call metadata
|
|
443
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse)}
|
|
444
|
+
* callback The callback function(error, response)
|
|
445
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse>|undefined}
|
|
446
|
+
* The XHR Node Readable Stream
|
|
447
|
+
*/
|
|
448
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getLoyaltyTransactionsByMembershipId =
|
|
449
|
+
function(request, metadata, callback) {
|
|
450
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
451
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTransactionsByMembershipId',
|
|
452
|
+
request,
|
|
453
|
+
metadata || {},
|
|
454
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTransactionsByMembershipId,
|
|
455
|
+
callback);
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} request The
|
|
461
|
+
* request proto
|
|
462
|
+
* @param {?Object<string, string>} metadata User defined
|
|
463
|
+
* call metadata
|
|
464
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse>}
|
|
465
|
+
* Promise that resolves to the response
|
|
466
|
+
*/
|
|
467
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getLoyaltyTransactionsByMembershipId =
|
|
468
|
+
function(request, metadata) {
|
|
469
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
470
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTransactionsByMembershipId',
|
|
471
|
+
request,
|
|
472
|
+
metadata || {},
|
|
473
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTransactionsByMembershipId);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
|
|
397
477
|
/**
|
|
398
478
|
* @const
|
|
399
479
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -18,8 +18,11 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTra
|
|
|
18
18
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, global);
|
|
20
20
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
|
|
21
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest', null, global);
|
|
21
22
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetMembershipByIdRequest', null, global);
|
|
22
23
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null, global);
|
|
24
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransaction', null, global);
|
|
25
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse', null, global);
|
|
23
26
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
24
27
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
|
|
25
28
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailsResponse', null, global);
|
|
@@ -905,7 +908,9 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject = functi
|
|
|
905
908
|
userid: msg.getUserid(),
|
|
906
909
|
source: msg.getSource(),
|
|
907
910
|
sourceid: msg.getSourceid(),
|
|
908
|
-
paymentamount: msg.getPaymentamount()
|
|
911
|
+
paymentamount: msg.getPaymentamount(),
|
|
912
|
+
description: msg.getDescription(),
|
|
913
|
+
paymentmethodid: msg.getPaymentmethodid()
|
|
909
914
|
};
|
|
910
915
|
|
|
911
916
|
if (includeInstance) {
|
|
@@ -962,6 +967,14 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary
|
|
|
962
967
|
var value = /** @type {number} */ (reader.readFloat());
|
|
963
968
|
msg.setPaymentamount(value);
|
|
964
969
|
break;
|
|
970
|
+
case 6:
|
|
971
|
+
var value = /** @type {string} */ (reader.readString());
|
|
972
|
+
msg.setDescription(value);
|
|
973
|
+
break;
|
|
974
|
+
case 7:
|
|
975
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
976
|
+
msg.setPaymentmethodid(value);
|
|
977
|
+
break;
|
|
965
978
|
default:
|
|
966
979
|
reader.skipField();
|
|
967
980
|
break;
|
|
@@ -1035,6 +1048,20 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.seriali
|
|
|
1035
1048
|
f
|
|
1036
1049
|
);
|
|
1037
1050
|
}
|
|
1051
|
+
f = this.getDescription();
|
|
1052
|
+
if (f.length > 0) {
|
|
1053
|
+
writer.writeString(
|
|
1054
|
+
6,
|
|
1055
|
+
f
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
f = this.getPaymentmethodid();
|
|
1059
|
+
if (f !== 0) {
|
|
1060
|
+
writer.writeInt64(
|
|
1061
|
+
7,
|
|
1062
|
+
f
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1038
1065
|
};
|
|
1039
1066
|
|
|
1040
1067
|
|
|
@@ -1122,6 +1149,36 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaym
|
|
|
1122
1149
|
};
|
|
1123
1150
|
|
|
1124
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* optional string description = 6;
|
|
1154
|
+
* @return {string}
|
|
1155
|
+
*/
|
|
1156
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getDescription = function() {
|
|
1157
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/** @param {string} value */
|
|
1162
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setDescription = function(value) {
|
|
1163
|
+
jspb.Message.setField(this, 6, value);
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* optional int64 paymentMethodId = 7;
|
|
1169
|
+
* @return {number}
|
|
1170
|
+
*/
|
|
1171
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getPaymentmethodid = function() {
|
|
1172
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
/** @param {number} value */
|
|
1177
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaymentmethodid = function(value) {
|
|
1178
|
+
jspb.Message.setField(this, 7, value);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
|
|
1125
1182
|
|
|
1126
1183
|
/**
|
|
1127
1184
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1507,6 +1564,219 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembersh
|
|
|
1507
1564
|
};
|
|
1508
1565
|
|
|
1509
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* Generated by JsPbCodeGenerator.
|
|
1569
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1570
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1571
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1572
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1573
|
+
* valid.
|
|
1574
|
+
* @extends {jspb.Message}
|
|
1575
|
+
* @constructor
|
|
1576
|
+
*/
|
|
1577
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest = function(opt_data) {
|
|
1578
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1579
|
+
};
|
|
1580
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest, jspb.Message);
|
|
1581
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1582
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.displayName = 'proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest';
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1587
|
+
/**
|
|
1588
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1589
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1590
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1591
|
+
* For the list of reserved names please see:
|
|
1592
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1593
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1594
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1595
|
+
* @return {!Object}
|
|
1596
|
+
*/
|
|
1597
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1598
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.toObject(opt_includeInstance, this);
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Static version of the {@see toObject} method.
|
|
1604
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1605
|
+
* instance for transitional soy proto support:
|
|
1606
|
+
* http://goto/soy-param-migration
|
|
1607
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} msg The msg instance to transform.
|
|
1608
|
+
* @return {!Object}
|
|
1609
|
+
*/
|
|
1610
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.toObject = function(includeInstance, msg) {
|
|
1611
|
+
var f, obj = {
|
|
1612
|
+
membershipid: msg.getMembershipid(),
|
|
1613
|
+
page: msg.getPage(),
|
|
1614
|
+
limit: msg.getLimit()
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
if (includeInstance) {
|
|
1618
|
+
obj.$jspbMessageInstance = msg;
|
|
1619
|
+
}
|
|
1620
|
+
return obj;
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1627
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1628
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest}
|
|
1629
|
+
*/
|
|
1630
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinary = function(bytes) {
|
|
1631
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1632
|
+
var msg = new proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest;
|
|
1633
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinaryFromReader(msg, reader);
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1639
|
+
* given reader into the given message object.
|
|
1640
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} msg The message object to deserialize into.
|
|
1641
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1642
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest}
|
|
1643
|
+
*/
|
|
1644
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1645
|
+
while (reader.nextField()) {
|
|
1646
|
+
if (reader.isEndGroup()) {
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
var field = reader.getFieldNumber();
|
|
1650
|
+
switch (field) {
|
|
1651
|
+
case 1:
|
|
1652
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1653
|
+
msg.setMembershipid(value);
|
|
1654
|
+
break;
|
|
1655
|
+
case 2:
|
|
1656
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1657
|
+
msg.setPage(value);
|
|
1658
|
+
break;
|
|
1659
|
+
case 3:
|
|
1660
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1661
|
+
msg.setLimit(value);
|
|
1662
|
+
break;
|
|
1663
|
+
default:
|
|
1664
|
+
reader.skipField();
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
return msg;
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Class method variant: serializes the given message to binary data
|
|
1674
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1675
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} message
|
|
1676
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1677
|
+
*/
|
|
1678
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1679
|
+
message.serializeBinaryToWriter(writer);
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1685
|
+
* @return {!Uint8Array}
|
|
1686
|
+
*/
|
|
1687
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.serializeBinary = function() {
|
|
1688
|
+
var writer = new jspb.BinaryWriter();
|
|
1689
|
+
this.serializeBinaryToWriter(writer);
|
|
1690
|
+
return writer.getResultBuffer();
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1696
|
+
* writing to the given BinaryWriter.
|
|
1697
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1698
|
+
*/
|
|
1699
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1700
|
+
var f = undefined;
|
|
1701
|
+
f = this.getMembershipid();
|
|
1702
|
+
if (f !== 0) {
|
|
1703
|
+
writer.writeInt64(
|
|
1704
|
+
1,
|
|
1705
|
+
f
|
|
1706
|
+
);
|
|
1707
|
+
}
|
|
1708
|
+
f = this.getPage();
|
|
1709
|
+
if (f !== 0) {
|
|
1710
|
+
writer.writeInt32(
|
|
1711
|
+
2,
|
|
1712
|
+
f
|
|
1713
|
+
);
|
|
1714
|
+
}
|
|
1715
|
+
f = this.getLimit();
|
|
1716
|
+
if (f !== 0) {
|
|
1717
|
+
writer.writeInt32(
|
|
1718
|
+
3,
|
|
1719
|
+
f
|
|
1720
|
+
);
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1727
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} The clone.
|
|
1728
|
+
*/
|
|
1729
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.cloneMessage = function() {
|
|
1730
|
+
return /** @type {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} */ (jspb.Message.cloneMessage(this));
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* optional int64 membershipId = 1;
|
|
1736
|
+
* @return {number}
|
|
1737
|
+
*/
|
|
1738
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getMembershipid = function() {
|
|
1739
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
/** @param {number} value */
|
|
1744
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setMembershipid = function(value) {
|
|
1745
|
+
jspb.Message.setField(this, 1, value);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* optional int32 page = 2;
|
|
1751
|
+
* @return {number}
|
|
1752
|
+
*/
|
|
1753
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getPage = function() {
|
|
1754
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
/** @param {number} value */
|
|
1759
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setPage = function(value) {
|
|
1760
|
+
jspb.Message.setField(this, 2, value);
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* optional int32 limit = 3;
|
|
1766
|
+
* @return {number}
|
|
1767
|
+
*/
|
|
1768
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getLimit = function() {
|
|
1769
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
/** @param {number} value */
|
|
1774
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setLimit = function(value) {
|
|
1775
|
+
jspb.Message.setField(this, 3, value);
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1510
1780
|
/**
|
|
1511
1781
|
* Generated by JsPbCodeGenerator.
|
|
1512
1782
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1852,6 +2122,630 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setMembershipnumb
|
|
|
1852
2122
|
|
|
1853
2123
|
|
|
1854
2124
|
|
|
2125
|
+
/**
|
|
2126
|
+
* Generated by JsPbCodeGenerator.
|
|
2127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2131
|
+
* valid.
|
|
2132
|
+
* @extends {jspb.Message}
|
|
2133
|
+
* @constructor
|
|
2134
|
+
*/
|
|
2135
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction = function(opt_data) {
|
|
2136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2137
|
+
};
|
|
2138
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyTransaction, jspb.Message);
|
|
2139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2140
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyTransaction';
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2145
|
+
/**
|
|
2146
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2147
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2148
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2149
|
+
* For the list of reserved names please see:
|
|
2150
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2151
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2152
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2153
|
+
* @return {!Object}
|
|
2154
|
+
*/
|
|
2155
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.toObject = function(opt_includeInstance) {
|
|
2156
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject(opt_includeInstance, this);
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Static version of the {@see toObject} method.
|
|
2162
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2163
|
+
* instance for transitional soy proto support:
|
|
2164
|
+
* http://goto/soy-param-migration
|
|
2165
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} msg The msg instance to transform.
|
|
2166
|
+
* @return {!Object}
|
|
2167
|
+
*/
|
|
2168
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject = function(includeInstance, msg) {
|
|
2169
|
+
var f, obj = {
|
|
2170
|
+
loyaltytransactionid: msg.getLoyaltytransactionid(),
|
|
2171
|
+
description: msg.getDescription(),
|
|
2172
|
+
timestamp: msg.getTimestamp(),
|
|
2173
|
+
points: msg.getPoints(),
|
|
2174
|
+
status: msg.getStatus(),
|
|
2175
|
+
membershipid: msg.getMembershipid()
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
if (includeInstance) {
|
|
2179
|
+
obj.$jspbMessageInstance = msg;
|
|
2180
|
+
}
|
|
2181
|
+
return obj;
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2188
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2189
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction}
|
|
2190
|
+
*/
|
|
2191
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinary = function(bytes) {
|
|
2192
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2193
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyTransaction;
|
|
2194
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader(msg, reader);
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2200
|
+
* given reader into the given message object.
|
|
2201
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} msg The message object to deserialize into.
|
|
2202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2203
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction}
|
|
2204
|
+
*/
|
|
2205
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
2206
|
+
while (reader.nextField()) {
|
|
2207
|
+
if (reader.isEndGroup()) {
|
|
2208
|
+
break;
|
|
2209
|
+
}
|
|
2210
|
+
var field = reader.getFieldNumber();
|
|
2211
|
+
switch (field) {
|
|
2212
|
+
case 1:
|
|
2213
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2214
|
+
msg.setLoyaltytransactionid(value);
|
|
2215
|
+
break;
|
|
2216
|
+
case 2:
|
|
2217
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2218
|
+
msg.setDescription(value);
|
|
2219
|
+
break;
|
|
2220
|
+
case 3:
|
|
2221
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2222
|
+
msg.setTimestamp(value);
|
|
2223
|
+
break;
|
|
2224
|
+
case 4:
|
|
2225
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2226
|
+
msg.setPoints(value);
|
|
2227
|
+
break;
|
|
2228
|
+
case 5:
|
|
2229
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2230
|
+
msg.setStatus(value);
|
|
2231
|
+
break;
|
|
2232
|
+
case 6:
|
|
2233
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2234
|
+
msg.setMembershipid(value);
|
|
2235
|
+
break;
|
|
2236
|
+
default:
|
|
2237
|
+
reader.skipField();
|
|
2238
|
+
break;
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
return msg;
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* Class method variant: serializes the given message to binary data
|
|
2247
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2248
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} message
|
|
2249
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2250
|
+
*/
|
|
2251
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
2252
|
+
message.serializeBinaryToWriter(writer);
|
|
2253
|
+
};
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2258
|
+
* @return {!Uint8Array}
|
|
2259
|
+
*/
|
|
2260
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.serializeBinary = function() {
|
|
2261
|
+
var writer = new jspb.BinaryWriter();
|
|
2262
|
+
this.serializeBinaryToWriter(writer);
|
|
2263
|
+
return writer.getResultBuffer();
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2269
|
+
* writing to the given BinaryWriter.
|
|
2270
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2271
|
+
*/
|
|
2272
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.serializeBinaryToWriter = function (writer) {
|
|
2273
|
+
var f = undefined;
|
|
2274
|
+
f = this.getLoyaltytransactionid();
|
|
2275
|
+
if (f !== 0) {
|
|
2276
|
+
writer.writeInt64(
|
|
2277
|
+
1,
|
|
2278
|
+
f
|
|
2279
|
+
);
|
|
2280
|
+
}
|
|
2281
|
+
f = this.getDescription();
|
|
2282
|
+
if (f.length > 0) {
|
|
2283
|
+
writer.writeString(
|
|
2284
|
+
2,
|
|
2285
|
+
f
|
|
2286
|
+
);
|
|
2287
|
+
}
|
|
2288
|
+
f = this.getTimestamp();
|
|
2289
|
+
if (f.length > 0) {
|
|
2290
|
+
writer.writeString(
|
|
2291
|
+
3,
|
|
2292
|
+
f
|
|
2293
|
+
);
|
|
2294
|
+
}
|
|
2295
|
+
f = this.getPoints();
|
|
2296
|
+
if (f !== 0) {
|
|
2297
|
+
writer.writeInt32(
|
|
2298
|
+
4,
|
|
2299
|
+
f
|
|
2300
|
+
);
|
|
2301
|
+
}
|
|
2302
|
+
f = this.getStatus();
|
|
2303
|
+
if (f.length > 0) {
|
|
2304
|
+
writer.writeString(
|
|
2305
|
+
5,
|
|
2306
|
+
f
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
f = this.getMembershipid();
|
|
2310
|
+
if (f !== 0) {
|
|
2311
|
+
writer.writeInt64(
|
|
2312
|
+
6,
|
|
2313
|
+
f
|
|
2314
|
+
);
|
|
2315
|
+
}
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2321
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} The clone.
|
|
2322
|
+
*/
|
|
2323
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.cloneMessage = function() {
|
|
2324
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} */ (jspb.Message.cloneMessage(this));
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* optional int64 loyaltyTransactionId = 1;
|
|
2330
|
+
* @return {number}
|
|
2331
|
+
*/
|
|
2332
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getLoyaltytransactionid = function() {
|
|
2333
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
/** @param {number} value */
|
|
2338
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setLoyaltytransactionid = function(value) {
|
|
2339
|
+
jspb.Message.setField(this, 1, value);
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* optional string description = 2;
|
|
2345
|
+
* @return {string}
|
|
2346
|
+
*/
|
|
2347
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getDescription = function() {
|
|
2348
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
/** @param {string} value */
|
|
2353
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setDescription = function(value) {
|
|
2354
|
+
jspb.Message.setField(this, 2, value);
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* optional string timestamp = 3;
|
|
2360
|
+
* @return {string}
|
|
2361
|
+
*/
|
|
2362
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getTimestamp = function() {
|
|
2363
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
/** @param {string} value */
|
|
2368
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setTimestamp = function(value) {
|
|
2369
|
+
jspb.Message.setField(this, 3, value);
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* optional int32 points = 4;
|
|
2375
|
+
* @return {number}
|
|
2376
|
+
*/
|
|
2377
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getPoints = function() {
|
|
2378
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
/** @param {number} value */
|
|
2383
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setPoints = function(value) {
|
|
2384
|
+
jspb.Message.setField(this, 4, value);
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* optional string status = 5;
|
|
2390
|
+
* @return {string}
|
|
2391
|
+
*/
|
|
2392
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getStatus = function() {
|
|
2393
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
/** @param {string} value */
|
|
2398
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setStatus = function(value) {
|
|
2399
|
+
jspb.Message.setField(this, 5, value);
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* optional int64 membershipId = 6;
|
|
2405
|
+
* @return {number}
|
|
2406
|
+
*/
|
|
2407
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getMembershipid = function() {
|
|
2408
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
/** @param {number} value */
|
|
2413
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setMembershipid = function(value) {
|
|
2414
|
+
jspb.Message.setField(this, 6, value);
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* Generated by JsPbCodeGenerator.
|
|
2421
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2422
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2423
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2424
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2425
|
+
* valid.
|
|
2426
|
+
* @extends {jspb.Message}
|
|
2427
|
+
* @constructor
|
|
2428
|
+
*/
|
|
2429
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse = function(opt_data) {
|
|
2430
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.repeatedFields_, null);
|
|
2431
|
+
};
|
|
2432
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse, jspb.Message);
|
|
2433
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2434
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse';
|
|
2435
|
+
}
|
|
2436
|
+
/**
|
|
2437
|
+
* List of repeated fields within this message type.
|
|
2438
|
+
* @private {!Array<number>}
|
|
2439
|
+
* @const
|
|
2440
|
+
*/
|
|
2441
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.repeatedFields_ = [2];
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2446
|
+
/**
|
|
2447
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2448
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2449
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2450
|
+
* For the list of reserved names please see:
|
|
2451
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2452
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2453
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2454
|
+
* @return {!Object}
|
|
2455
|
+
*/
|
|
2456
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2457
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.toObject(opt_includeInstance, this);
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* Static version of the {@see toObject} method.
|
|
2463
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2464
|
+
* instance for transitional soy proto support:
|
|
2465
|
+
* http://goto/soy-param-migration
|
|
2466
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} msg The msg instance to transform.
|
|
2467
|
+
* @return {!Object}
|
|
2468
|
+
*/
|
|
2469
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.toObject = function(includeInstance, msg) {
|
|
2470
|
+
var f, obj = {
|
|
2471
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
2472
|
+
loyaltytransactionsList: jspb.Message.toObjectList(msg.getLoyaltytransactionsList(),
|
|
2473
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject, includeInstance),
|
|
2474
|
+
page: msg.getPage(),
|
|
2475
|
+
limit: msg.getLimit(),
|
|
2476
|
+
total: msg.getTotal(),
|
|
2477
|
+
totalpages: msg.getTotalpages()
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
if (includeInstance) {
|
|
2481
|
+
obj.$jspbMessageInstance = msg;
|
|
2482
|
+
}
|
|
2483
|
+
return obj;
|
|
2484
|
+
};
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2491
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse}
|
|
2492
|
+
*/
|
|
2493
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinary = function(bytes) {
|
|
2494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2495
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse;
|
|
2496
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2502
|
+
* given reader into the given message object.
|
|
2503
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} msg The message object to deserialize into.
|
|
2504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2505
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse}
|
|
2506
|
+
*/
|
|
2507
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2508
|
+
while (reader.nextField()) {
|
|
2509
|
+
if (reader.isEndGroup()) {
|
|
2510
|
+
break;
|
|
2511
|
+
}
|
|
2512
|
+
var field = reader.getFieldNumber();
|
|
2513
|
+
switch (field) {
|
|
2514
|
+
case 1:
|
|
2515
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
2516
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
2517
|
+
msg.setResponsecode(value);
|
|
2518
|
+
break;
|
|
2519
|
+
case 2:
|
|
2520
|
+
var value = new proto.loyaltyprogramserviceapi.LoyaltyTransaction;
|
|
2521
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader);
|
|
2522
|
+
msg.getLoyaltytransactionsList().push(value);
|
|
2523
|
+
msg.setLoyaltytransactionsList(msg.getLoyaltytransactionsList());
|
|
2524
|
+
break;
|
|
2525
|
+
case 3:
|
|
2526
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2527
|
+
msg.setPage(value);
|
|
2528
|
+
break;
|
|
2529
|
+
case 4:
|
|
2530
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2531
|
+
msg.setLimit(value);
|
|
2532
|
+
break;
|
|
2533
|
+
case 5:
|
|
2534
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2535
|
+
msg.setTotal(value);
|
|
2536
|
+
break;
|
|
2537
|
+
case 6:
|
|
2538
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2539
|
+
msg.setTotalpages(value);
|
|
2540
|
+
break;
|
|
2541
|
+
default:
|
|
2542
|
+
reader.skipField();
|
|
2543
|
+
break;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
return msg;
|
|
2547
|
+
};
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* Class method variant: serializes the given message to binary data
|
|
2552
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2553
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} message
|
|
2554
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2555
|
+
*/
|
|
2556
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2557
|
+
message.serializeBinaryToWriter(writer);
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2563
|
+
* @return {!Uint8Array}
|
|
2564
|
+
*/
|
|
2565
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.serializeBinary = function() {
|
|
2566
|
+
var writer = new jspb.BinaryWriter();
|
|
2567
|
+
this.serializeBinaryToWriter(writer);
|
|
2568
|
+
return writer.getResultBuffer();
|
|
2569
|
+
};
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2574
|
+
* writing to the given BinaryWriter.
|
|
2575
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2576
|
+
*/
|
|
2577
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
2578
|
+
var f = undefined;
|
|
2579
|
+
f = this.getResponsecode();
|
|
2580
|
+
if (f != null) {
|
|
2581
|
+
writer.writeMessage(
|
|
2582
|
+
1,
|
|
2583
|
+
f,
|
|
2584
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
2585
|
+
);
|
|
2586
|
+
}
|
|
2587
|
+
f = this.getLoyaltytransactionsList();
|
|
2588
|
+
if (f.length > 0) {
|
|
2589
|
+
writer.writeRepeatedMessage(
|
|
2590
|
+
2,
|
|
2591
|
+
f,
|
|
2592
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter
|
|
2593
|
+
);
|
|
2594
|
+
}
|
|
2595
|
+
f = this.getPage();
|
|
2596
|
+
if (f !== 0) {
|
|
2597
|
+
writer.writeInt32(
|
|
2598
|
+
3,
|
|
2599
|
+
f
|
|
2600
|
+
);
|
|
2601
|
+
}
|
|
2602
|
+
f = this.getLimit();
|
|
2603
|
+
if (f !== 0) {
|
|
2604
|
+
writer.writeInt32(
|
|
2605
|
+
4,
|
|
2606
|
+
f
|
|
2607
|
+
);
|
|
2608
|
+
}
|
|
2609
|
+
f = this.getTotal();
|
|
2610
|
+
if (f !== 0) {
|
|
2611
|
+
writer.writeInt64(
|
|
2612
|
+
5,
|
|
2613
|
+
f
|
|
2614
|
+
);
|
|
2615
|
+
}
|
|
2616
|
+
f = this.getTotalpages();
|
|
2617
|
+
if (f !== 0) {
|
|
2618
|
+
writer.writeInt32(
|
|
2619
|
+
6,
|
|
2620
|
+
f
|
|
2621
|
+
);
|
|
2622
|
+
}
|
|
2623
|
+
};
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2628
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} The clone.
|
|
2629
|
+
*/
|
|
2630
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.cloneMessage = function() {
|
|
2631
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} */ (jspb.Message.cloneMessage(this));
|
|
2632
|
+
};
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* optional ResponseCode responseCode = 1;
|
|
2637
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
2638
|
+
*/
|
|
2639
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getResponsecode = function() {
|
|
2640
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
2641
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
2646
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setResponsecode = function(value) {
|
|
2647
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.clearResponsecode = function() {
|
|
2652
|
+
this.setResponsecode(undefined);
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Returns whether this field is set.
|
|
2658
|
+
* @return{!boolean}
|
|
2659
|
+
*/
|
|
2660
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.hasResponsecode = function() {
|
|
2661
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* repeated LoyaltyTransaction loyaltyTransactions = 2;
|
|
2667
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
2668
|
+
* replace the array itself, then you must call the setter to update it.
|
|
2669
|
+
* @return {!Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>}
|
|
2670
|
+
*/
|
|
2671
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getLoyaltytransactionsList = function() {
|
|
2672
|
+
return /** @type{!Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>} */ (
|
|
2673
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.LoyaltyTransaction, 2));
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
/** @param {Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>} value */
|
|
2678
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setLoyaltytransactionsList = function(value) {
|
|
2679
|
+
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.clearLoyaltytransactionsList = function() {
|
|
2684
|
+
this.setLoyaltytransactionsList([]);
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* optional int32 page = 3;
|
|
2690
|
+
* @return {number}
|
|
2691
|
+
*/
|
|
2692
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getPage = function() {
|
|
2693
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
/** @param {number} value */
|
|
2698
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setPage = function(value) {
|
|
2699
|
+
jspb.Message.setField(this, 3, value);
|
|
2700
|
+
};
|
|
2701
|
+
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* optional int32 limit = 4;
|
|
2705
|
+
* @return {number}
|
|
2706
|
+
*/
|
|
2707
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getLimit = function() {
|
|
2708
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
2709
|
+
};
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
/** @param {number} value */
|
|
2713
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setLimit = function(value) {
|
|
2714
|
+
jspb.Message.setField(this, 4, value);
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
/**
|
|
2719
|
+
* optional int64 total = 5;
|
|
2720
|
+
* @return {number}
|
|
2721
|
+
*/
|
|
2722
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getTotal = function() {
|
|
2723
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
/** @param {number} value */
|
|
2728
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setTotal = function(value) {
|
|
2729
|
+
jspb.Message.setField(this, 5, value);
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* optional int32 totalPages = 6;
|
|
2735
|
+
* @return {number}
|
|
2736
|
+
*/
|
|
2737
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getTotalpages = function() {
|
|
2738
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
2739
|
+
};
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
/** @param {number} value */
|
|
2743
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setTotalpages = function(value) {
|
|
2744
|
+
jspb.Message.setField(this, 6, value);
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
|
|
1855
2749
|
/**
|
|
1856
2750
|
* Generated by JsPbCodeGenerator.
|
|
1857
2751
|
* @param {Array=} opt_data Optional initial data array, typically from a
|