protobuf-platform 1.2.760 → 1.2.761

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/bonus/bonus.proto CHANGED
@@ -32,6 +32,10 @@ service Bonus {
32
32
  rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
33
33
  // Idempotent dynamic grant keyed by grant_source + grant_id.
34
34
  rpc grantDynamicUserBonus(GrantDynamicUserBonusRequest) returns (GrantDynamicUserBonusResponse);
35
+ // Freeze Bonus-owned terms before Loyalty commits an earned recurring entitlement.
36
+ rpc prepareLoyaltyRecurringEntitlement(PrepareLoyaltyRecurringEntitlementRequest) returns (LoyaltyRecurringEntitlementSnapshot);
37
+ // Execute only the referenced immutable terms; never falls back to current template eligibility.
38
+ rpc grantEarnedLoyaltyRecurringBonus(GrantEarnedLoyaltyRecurringBonusRequest) returns (GrantDynamicUserBonusResponse);
35
39
  rpc grantSystemUserBonus(GrantSystemUserBonusRequest) returns (GrantSystemUserBonusResponse);
36
40
  rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
37
41
  rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
@@ -813,3 +817,31 @@ message GameplayDeliveryReadinessResult {
813
817
  bool ready = 6;
814
818
  repeated string blocked_reasons = 7;
815
819
  }
820
+
821
+ // Additive v1 capability. Old servers return UNIMPLEMENTED; callers retain pending work.
822
+ message PrepareLoyaltyRecurringEntitlementRequest {
823
+ int32 user_id = 1;
824
+ int32 bonus_template_id = 2;
825
+ string grant_id = 3;
826
+ string occurrence_at = 4;
827
+ string currency = 5;
828
+ }
829
+ message LoyaltyRecurringEntitlementSnapshot {
830
+ string snapshot_id = 1;
831
+ string snapshot_hash = 2;
832
+ // Sanitized Bonus-owned immutable configuration, never an executable caller override.
833
+ string configuration_json = 3;
834
+ string grant_id = 4;
835
+ string currency = 5;
836
+ int32 currency_scale = 6;
837
+ }
838
+ message GrantEarnedLoyaltyRecurringBonusRequest {
839
+ int32 user_id = 1;
840
+ int32 bonus_template_id = 2;
841
+ string grant_id = 3;
842
+ string snapshot_id = 4;
843
+ string snapshot_hash = 5;
844
+ string entitlement_id = 6;
845
+ string earned_at = 7;
846
+ string currency = 8;
847
+ }
@@ -434,6 +434,17 @@ function deserialize_bonus_GrantDynamicUserBonusResponse(buffer_arg) {
434
434
  return bonus_bonus_pb.GrantDynamicUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
435
435
  }
436
436
 
437
+ function serialize_bonus_GrantEarnedLoyaltyRecurringBonusRequest(arg) {
438
+ if (!(arg instanceof bonus_bonus_pb.GrantEarnedLoyaltyRecurringBonusRequest)) {
439
+ throw new Error('Expected argument of type bonus.GrantEarnedLoyaltyRecurringBonusRequest');
440
+ }
441
+ return Buffer.from(arg.serializeBinary());
442
+ }
443
+
444
+ function deserialize_bonus_GrantEarnedLoyaltyRecurringBonusRequest(buffer_arg) {
445
+ return bonus_bonus_pb.GrantEarnedLoyaltyRecurringBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
446
+ }
447
+
437
448
  function serialize_bonus_GrantSystemUserBonusRequest(arg) {
438
449
  if (!(arg instanceof bonus_bonus_pb.GrantSystemUserBonusRequest)) {
439
450
  throw new Error('Expected argument of type bonus.GrantSystemUserBonusRequest');
@@ -489,6 +500,17 @@ function deserialize_bonus_ListSignUpBonusesResponse(buffer_arg) {
489
500
  return bonus_bonus_pb.ListSignUpBonusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
490
501
  }
491
502
 
503
+ function serialize_bonus_LoyaltyRecurringEntitlementSnapshot(arg) {
504
+ if (!(arg instanceof bonus_bonus_pb.LoyaltyRecurringEntitlementSnapshot)) {
505
+ throw new Error('Expected argument of type bonus.LoyaltyRecurringEntitlementSnapshot');
506
+ }
507
+ return Buffer.from(arg.serializeBinary());
508
+ }
509
+
510
+ function deserialize_bonus_LoyaltyRecurringEntitlementSnapshot(buffer_arg) {
511
+ return bonus_bonus_pb.LoyaltyRecurringEntitlementSnapshot.deserializeBinary(new Uint8Array(buffer_arg));
512
+ }
513
+
492
514
  function serialize_bonus_PaginationRequest(arg) {
493
515
  if (!(arg instanceof bonus_bonus_pb.PaginationRequest)) {
494
516
  throw new Error('Expected argument of type bonus.PaginationRequest');
@@ -522,6 +544,17 @@ function deserialize_bonus_PongResponse(buffer_arg) {
522
544
  return bonus_bonus_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
523
545
  }
524
546
 
547
+ function serialize_bonus_PrepareLoyaltyRecurringEntitlementRequest(arg) {
548
+ if (!(arg instanceof bonus_bonus_pb.PrepareLoyaltyRecurringEntitlementRequest)) {
549
+ throw new Error('Expected argument of type bonus.PrepareLoyaltyRecurringEntitlementRequest');
550
+ }
551
+ return Buffer.from(arg.serializeBinary());
552
+ }
553
+
554
+ function deserialize_bonus_PrepareLoyaltyRecurringEntitlementRequest(buffer_arg) {
555
+ return bonus_bonus_pb.PrepareLoyaltyRecurringEntitlementRequest.deserializeBinary(new Uint8Array(buffer_arg));
556
+ }
557
+
525
558
  function serialize_bonus_ResolveProviderRewardWinningsRequest(arg) {
526
559
  if (!(arg instanceof bonus_bonus_pb.ResolveProviderRewardWinningsRequest)) {
527
560
  throw new Error('Expected argument of type bonus.ResolveProviderRewardWinningsRequest');
@@ -870,6 +903,30 @@ grantDynamicUserBonus: {
870
903
  responseSerialize: serialize_bonus_GrantDynamicUserBonusResponse,
871
904
  responseDeserialize: deserialize_bonus_GrantDynamicUserBonusResponse,
872
905
  },
906
+ // Freeze Bonus-owned terms before Loyalty commits an earned recurring entitlement.
907
+ prepareLoyaltyRecurringEntitlement: {
908
+ path: '/bonus.Bonus/prepareLoyaltyRecurringEntitlement',
909
+ requestStream: false,
910
+ responseStream: false,
911
+ requestType: bonus_bonus_pb.PrepareLoyaltyRecurringEntitlementRequest,
912
+ responseType: bonus_bonus_pb.LoyaltyRecurringEntitlementSnapshot,
913
+ requestSerialize: serialize_bonus_PrepareLoyaltyRecurringEntitlementRequest,
914
+ requestDeserialize: deserialize_bonus_PrepareLoyaltyRecurringEntitlementRequest,
915
+ responseSerialize: serialize_bonus_LoyaltyRecurringEntitlementSnapshot,
916
+ responseDeserialize: deserialize_bonus_LoyaltyRecurringEntitlementSnapshot,
917
+ },
918
+ // Execute only the referenced immutable terms; never falls back to current template eligibility.
919
+ grantEarnedLoyaltyRecurringBonus: {
920
+ path: '/bonus.Bonus/grantEarnedLoyaltyRecurringBonus',
921
+ requestStream: false,
922
+ responseStream: false,
923
+ requestType: bonus_bonus_pb.GrantEarnedLoyaltyRecurringBonusRequest,
924
+ responseType: bonus_bonus_pb.GrantDynamicUserBonusResponse,
925
+ requestSerialize: serialize_bonus_GrantEarnedLoyaltyRecurringBonusRequest,
926
+ requestDeserialize: deserialize_bonus_GrantEarnedLoyaltyRecurringBonusRequest,
927
+ responseSerialize: serialize_bonus_GrantDynamicUserBonusResponse,
928
+ responseDeserialize: deserialize_bonus_GrantDynamicUserBonusResponse,
929
+ },
873
930
  grantSystemUserBonus: {
874
931
  path: '/bonus.Bonus/grantSystemUserBonus',
875
932
  requestStream: false,
package/bonus/bonus_pb.js CHANGED
@@ -83,14 +83,17 @@ goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
83
83
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
84
84
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
85
85
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
86
+ goog.exportSymbol('proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest', null, global);
86
87
  goog.exportSymbol('proto.bonus.GrantSystemUserBonusRequest', null, global);
87
88
  goog.exportSymbol('proto.bonus.GrantSystemUserBonusResponse', null, global);
88
89
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
89
90
  goog.exportSymbol('proto.bonus.ListSignUpBonusesRequest', null, global);
90
91
  goog.exportSymbol('proto.bonus.ListSignUpBonusesResponse', null, global);
92
+ goog.exportSymbol('proto.bonus.LoyaltyRecurringEntitlementSnapshot', null, global);
91
93
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
92
94
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
93
95
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
96
+ goog.exportSymbol('proto.bonus.PrepareLoyaltyRecurringEntitlementRequest', null, global);
94
97
  goog.exportSymbol('proto.bonus.ResolveProviderRewardWinningsRequest', null, global);
95
98
  goog.exportSymbol('proto.bonus.ResolveProviderRewardWinningsResponse', null, global);
96
99
  goog.exportSymbol('proto.bonus.SearchBonusRequest', null, global);
@@ -1719,6 +1722,69 @@ if (goog.DEBUG && !COMPILED) {
1719
1722
  */
1720
1723
  proto.bonus.GameplayDeliveryReadinessResult.displayName = 'proto.bonus.GameplayDeliveryReadinessResult';
1721
1724
  }
1725
+ /**
1726
+ * Generated by JsPbCodeGenerator.
1727
+ * @param {Array=} opt_data Optional initial data array, typically from a
1728
+ * server response, or constructed directly in Javascript. The array is used
1729
+ * in place and becomes part of the constructed object. It is not cloned.
1730
+ * If no data is provided, the constructed object will be empty, but still
1731
+ * valid.
1732
+ * @extends {jspb.Message}
1733
+ * @constructor
1734
+ */
1735
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest = function(opt_data) {
1736
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1737
+ };
1738
+ goog.inherits(proto.bonus.PrepareLoyaltyRecurringEntitlementRequest, jspb.Message);
1739
+ if (goog.DEBUG && !COMPILED) {
1740
+ /**
1741
+ * @public
1742
+ * @override
1743
+ */
1744
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.displayName = 'proto.bonus.PrepareLoyaltyRecurringEntitlementRequest';
1745
+ }
1746
+ /**
1747
+ * Generated by JsPbCodeGenerator.
1748
+ * @param {Array=} opt_data Optional initial data array, typically from a
1749
+ * server response, or constructed directly in Javascript. The array is used
1750
+ * in place and becomes part of the constructed object. It is not cloned.
1751
+ * If no data is provided, the constructed object will be empty, but still
1752
+ * valid.
1753
+ * @extends {jspb.Message}
1754
+ * @constructor
1755
+ */
1756
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot = function(opt_data) {
1757
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1758
+ };
1759
+ goog.inherits(proto.bonus.LoyaltyRecurringEntitlementSnapshot, jspb.Message);
1760
+ if (goog.DEBUG && !COMPILED) {
1761
+ /**
1762
+ * @public
1763
+ * @override
1764
+ */
1765
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.displayName = 'proto.bonus.LoyaltyRecurringEntitlementSnapshot';
1766
+ }
1767
+ /**
1768
+ * Generated by JsPbCodeGenerator.
1769
+ * @param {Array=} opt_data Optional initial data array, typically from a
1770
+ * server response, or constructed directly in Javascript. The array is used
1771
+ * in place and becomes part of the constructed object. It is not cloned.
1772
+ * If no data is provided, the constructed object will be empty, but still
1773
+ * valid.
1774
+ * @extends {jspb.Message}
1775
+ * @constructor
1776
+ */
1777
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest = function(opt_data) {
1778
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1779
+ };
1780
+ goog.inherits(proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest, jspb.Message);
1781
+ if (goog.DEBUG && !COMPILED) {
1782
+ /**
1783
+ * @public
1784
+ * @override
1785
+ */
1786
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.displayName = 'proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest';
1787
+ }
1722
1788
 
1723
1789
 
1724
1790
 
@@ -32801,4 +32867,874 @@ proto.bonus.GameplayDeliveryReadinessResult.prototype.clearBlockedReasonsList =
32801
32867
  };
32802
32868
 
32803
32869
 
32870
+
32871
+
32872
+
32873
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32874
+ /**
32875
+ * Creates an object representation of this proto.
32876
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32877
+ * Optional fields that are not set will be set to undefined.
32878
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32879
+ * For the list of reserved names please see:
32880
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32881
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32882
+ * JSPB instance for transitional soy proto support:
32883
+ * http://goto/soy-param-migration
32884
+ * @return {!Object}
32885
+ */
32886
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.toObject = function(opt_includeInstance) {
32887
+ return proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.toObject(opt_includeInstance, this);
32888
+ };
32889
+
32890
+
32891
+ /**
32892
+ * Static version of the {@see toObject} method.
32893
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32894
+ * the JSPB instance for transitional soy proto support:
32895
+ * http://goto/soy-param-migration
32896
+ * @param {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} msg The msg instance to transform.
32897
+ * @return {!Object}
32898
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32899
+ */
32900
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.toObject = function(includeInstance, msg) {
32901
+ var f, obj = {
32902
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
32903
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
32904
+ grantId: jspb.Message.getFieldWithDefault(msg, 3, ""),
32905
+ occurrenceAt: jspb.Message.getFieldWithDefault(msg, 4, ""),
32906
+ currency: jspb.Message.getFieldWithDefault(msg, 5, "")
32907
+ };
32908
+
32909
+ if (includeInstance) {
32910
+ obj.$jspbMessageInstance = msg;
32911
+ }
32912
+ return obj;
32913
+ };
32914
+ }
32915
+
32916
+
32917
+ /**
32918
+ * Deserializes binary data (in protobuf wire format).
32919
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32920
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest}
32921
+ */
32922
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.deserializeBinary = function(bytes) {
32923
+ var reader = new jspb.BinaryReader(bytes);
32924
+ var msg = new proto.bonus.PrepareLoyaltyRecurringEntitlementRequest;
32925
+ return proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.deserializeBinaryFromReader(msg, reader);
32926
+ };
32927
+
32928
+
32929
+ /**
32930
+ * Deserializes binary data (in protobuf wire format) from the
32931
+ * given reader into the given message object.
32932
+ * @param {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} msg The message object to deserialize into.
32933
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32934
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest}
32935
+ */
32936
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.deserializeBinaryFromReader = function(msg, reader) {
32937
+ while (reader.nextField()) {
32938
+ if (reader.isEndGroup()) {
32939
+ break;
32940
+ }
32941
+ var field = reader.getFieldNumber();
32942
+ switch (field) {
32943
+ case 1:
32944
+ var value = /** @type {number} */ (reader.readInt32());
32945
+ msg.setUserId(value);
32946
+ break;
32947
+ case 2:
32948
+ var value = /** @type {number} */ (reader.readInt32());
32949
+ msg.setBonusTemplateId(value);
32950
+ break;
32951
+ case 3:
32952
+ var value = /** @type {string} */ (reader.readString());
32953
+ msg.setGrantId(value);
32954
+ break;
32955
+ case 4:
32956
+ var value = /** @type {string} */ (reader.readString());
32957
+ msg.setOccurrenceAt(value);
32958
+ break;
32959
+ case 5:
32960
+ var value = /** @type {string} */ (reader.readString());
32961
+ msg.setCurrency(value);
32962
+ break;
32963
+ default:
32964
+ reader.skipField();
32965
+ break;
32966
+ }
32967
+ }
32968
+ return msg;
32969
+ };
32970
+
32971
+
32972
+ /**
32973
+ * Serializes the message to binary data (in protobuf wire format).
32974
+ * @return {!Uint8Array}
32975
+ */
32976
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.serializeBinary = function() {
32977
+ var writer = new jspb.BinaryWriter();
32978
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.serializeBinaryToWriter(this, writer);
32979
+ return writer.getResultBuffer();
32980
+ };
32981
+
32982
+
32983
+ /**
32984
+ * Serializes the given message to binary data (in protobuf wire
32985
+ * format), writing to the given BinaryWriter.
32986
+ * @param {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} message
32987
+ * @param {!jspb.BinaryWriter} writer
32988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32989
+ */
32990
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.serializeBinaryToWriter = function(message, writer) {
32991
+ var f = undefined;
32992
+ f = message.getUserId();
32993
+ if (f !== 0) {
32994
+ writer.writeInt32(
32995
+ 1,
32996
+ f
32997
+ );
32998
+ }
32999
+ f = message.getBonusTemplateId();
33000
+ if (f !== 0) {
33001
+ writer.writeInt32(
33002
+ 2,
33003
+ f
33004
+ );
33005
+ }
33006
+ f = message.getGrantId();
33007
+ if (f.length > 0) {
33008
+ writer.writeString(
33009
+ 3,
33010
+ f
33011
+ );
33012
+ }
33013
+ f = message.getOccurrenceAt();
33014
+ if (f.length > 0) {
33015
+ writer.writeString(
33016
+ 4,
33017
+ f
33018
+ );
33019
+ }
33020
+ f = message.getCurrency();
33021
+ if (f.length > 0) {
33022
+ writer.writeString(
33023
+ 5,
33024
+ f
33025
+ );
33026
+ }
33027
+ };
33028
+
33029
+
33030
+ /**
33031
+ * optional int32 user_id = 1;
33032
+ * @return {number}
33033
+ */
33034
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.getUserId = function() {
33035
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33036
+ };
33037
+
33038
+
33039
+ /**
33040
+ * @param {number} value
33041
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} returns this
33042
+ */
33043
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.setUserId = function(value) {
33044
+ return jspb.Message.setProto3IntField(this, 1, value);
33045
+ };
33046
+
33047
+
33048
+ /**
33049
+ * optional int32 bonus_template_id = 2;
33050
+ * @return {number}
33051
+ */
33052
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.getBonusTemplateId = function() {
33053
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33054
+ };
33055
+
33056
+
33057
+ /**
33058
+ * @param {number} value
33059
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} returns this
33060
+ */
33061
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.setBonusTemplateId = function(value) {
33062
+ return jspb.Message.setProto3IntField(this, 2, value);
33063
+ };
33064
+
33065
+
33066
+ /**
33067
+ * optional string grant_id = 3;
33068
+ * @return {string}
33069
+ */
33070
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.getGrantId = function() {
33071
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33072
+ };
33073
+
33074
+
33075
+ /**
33076
+ * @param {string} value
33077
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} returns this
33078
+ */
33079
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.setGrantId = function(value) {
33080
+ return jspb.Message.setProto3StringField(this, 3, value);
33081
+ };
33082
+
33083
+
33084
+ /**
33085
+ * optional string occurrence_at = 4;
33086
+ * @return {string}
33087
+ */
33088
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.getOccurrenceAt = function() {
33089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
33090
+ };
33091
+
33092
+
33093
+ /**
33094
+ * @param {string} value
33095
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} returns this
33096
+ */
33097
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.setOccurrenceAt = function(value) {
33098
+ return jspb.Message.setProto3StringField(this, 4, value);
33099
+ };
33100
+
33101
+
33102
+ /**
33103
+ * optional string currency = 5;
33104
+ * @return {string}
33105
+ */
33106
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.getCurrency = function() {
33107
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
33108
+ };
33109
+
33110
+
33111
+ /**
33112
+ * @param {string} value
33113
+ * @return {!proto.bonus.PrepareLoyaltyRecurringEntitlementRequest} returns this
33114
+ */
33115
+ proto.bonus.PrepareLoyaltyRecurringEntitlementRequest.prototype.setCurrency = function(value) {
33116
+ return jspb.Message.setProto3StringField(this, 5, value);
33117
+ };
33118
+
33119
+
33120
+
33121
+
33122
+
33123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33124
+ /**
33125
+ * Creates an object representation of this proto.
33126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33127
+ * Optional fields that are not set will be set to undefined.
33128
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33129
+ * For the list of reserved names please see:
33130
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33131
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33132
+ * JSPB instance for transitional soy proto support:
33133
+ * http://goto/soy-param-migration
33134
+ * @return {!Object}
33135
+ */
33136
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.toObject = function(opt_includeInstance) {
33137
+ return proto.bonus.LoyaltyRecurringEntitlementSnapshot.toObject(opt_includeInstance, this);
33138
+ };
33139
+
33140
+
33141
+ /**
33142
+ * Static version of the {@see toObject} method.
33143
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33144
+ * the JSPB instance for transitional soy proto support:
33145
+ * http://goto/soy-param-migration
33146
+ * @param {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} msg The msg instance to transform.
33147
+ * @return {!Object}
33148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33149
+ */
33150
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.toObject = function(includeInstance, msg) {
33151
+ var f, obj = {
33152
+ snapshotId: jspb.Message.getFieldWithDefault(msg, 1, ""),
33153
+ snapshotHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
33154
+ configurationJson: jspb.Message.getFieldWithDefault(msg, 3, ""),
33155
+ grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
33156
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
33157
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 6, 0)
33158
+ };
33159
+
33160
+ if (includeInstance) {
33161
+ obj.$jspbMessageInstance = msg;
33162
+ }
33163
+ return obj;
33164
+ };
33165
+ }
33166
+
33167
+
33168
+ /**
33169
+ * Deserializes binary data (in protobuf wire format).
33170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
33171
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot}
33172
+ */
33173
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.deserializeBinary = function(bytes) {
33174
+ var reader = new jspb.BinaryReader(bytes);
33175
+ var msg = new proto.bonus.LoyaltyRecurringEntitlementSnapshot;
33176
+ return proto.bonus.LoyaltyRecurringEntitlementSnapshot.deserializeBinaryFromReader(msg, reader);
33177
+ };
33178
+
33179
+
33180
+ /**
33181
+ * Deserializes binary data (in protobuf wire format) from the
33182
+ * given reader into the given message object.
33183
+ * @param {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} msg The message object to deserialize into.
33184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33185
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot}
33186
+ */
33187
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.deserializeBinaryFromReader = function(msg, reader) {
33188
+ while (reader.nextField()) {
33189
+ if (reader.isEndGroup()) {
33190
+ break;
33191
+ }
33192
+ var field = reader.getFieldNumber();
33193
+ switch (field) {
33194
+ case 1:
33195
+ var value = /** @type {string} */ (reader.readString());
33196
+ msg.setSnapshotId(value);
33197
+ break;
33198
+ case 2:
33199
+ var value = /** @type {string} */ (reader.readString());
33200
+ msg.setSnapshotHash(value);
33201
+ break;
33202
+ case 3:
33203
+ var value = /** @type {string} */ (reader.readString());
33204
+ msg.setConfigurationJson(value);
33205
+ break;
33206
+ case 4:
33207
+ var value = /** @type {string} */ (reader.readString());
33208
+ msg.setGrantId(value);
33209
+ break;
33210
+ case 5:
33211
+ var value = /** @type {string} */ (reader.readString());
33212
+ msg.setCurrency(value);
33213
+ break;
33214
+ case 6:
33215
+ var value = /** @type {number} */ (reader.readInt32());
33216
+ msg.setCurrencyScale(value);
33217
+ break;
33218
+ default:
33219
+ reader.skipField();
33220
+ break;
33221
+ }
33222
+ }
33223
+ return msg;
33224
+ };
33225
+
33226
+
33227
+ /**
33228
+ * Serializes the message to binary data (in protobuf wire format).
33229
+ * @return {!Uint8Array}
33230
+ */
33231
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.serializeBinary = function() {
33232
+ var writer = new jspb.BinaryWriter();
33233
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.serializeBinaryToWriter(this, writer);
33234
+ return writer.getResultBuffer();
33235
+ };
33236
+
33237
+
33238
+ /**
33239
+ * Serializes the given message to binary data (in protobuf wire
33240
+ * format), writing to the given BinaryWriter.
33241
+ * @param {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} message
33242
+ * @param {!jspb.BinaryWriter} writer
33243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33244
+ */
33245
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.serializeBinaryToWriter = function(message, writer) {
33246
+ var f = undefined;
33247
+ f = message.getSnapshotId();
33248
+ if (f.length > 0) {
33249
+ writer.writeString(
33250
+ 1,
33251
+ f
33252
+ );
33253
+ }
33254
+ f = message.getSnapshotHash();
33255
+ if (f.length > 0) {
33256
+ writer.writeString(
33257
+ 2,
33258
+ f
33259
+ );
33260
+ }
33261
+ f = message.getConfigurationJson();
33262
+ if (f.length > 0) {
33263
+ writer.writeString(
33264
+ 3,
33265
+ f
33266
+ );
33267
+ }
33268
+ f = message.getGrantId();
33269
+ if (f.length > 0) {
33270
+ writer.writeString(
33271
+ 4,
33272
+ f
33273
+ );
33274
+ }
33275
+ f = message.getCurrency();
33276
+ if (f.length > 0) {
33277
+ writer.writeString(
33278
+ 5,
33279
+ f
33280
+ );
33281
+ }
33282
+ f = message.getCurrencyScale();
33283
+ if (f !== 0) {
33284
+ writer.writeInt32(
33285
+ 6,
33286
+ f
33287
+ );
33288
+ }
33289
+ };
33290
+
33291
+
33292
+ /**
33293
+ * optional string snapshot_id = 1;
33294
+ * @return {string}
33295
+ */
33296
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getSnapshotId = function() {
33297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33298
+ };
33299
+
33300
+
33301
+ /**
33302
+ * @param {string} value
33303
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33304
+ */
33305
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setSnapshotId = function(value) {
33306
+ return jspb.Message.setProto3StringField(this, 1, value);
33307
+ };
33308
+
33309
+
33310
+ /**
33311
+ * optional string snapshot_hash = 2;
33312
+ * @return {string}
33313
+ */
33314
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getSnapshotHash = function() {
33315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
33316
+ };
33317
+
33318
+
33319
+ /**
33320
+ * @param {string} value
33321
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33322
+ */
33323
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setSnapshotHash = function(value) {
33324
+ return jspb.Message.setProto3StringField(this, 2, value);
33325
+ };
33326
+
33327
+
33328
+ /**
33329
+ * optional string configuration_json = 3;
33330
+ * @return {string}
33331
+ */
33332
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getConfigurationJson = function() {
33333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33334
+ };
33335
+
33336
+
33337
+ /**
33338
+ * @param {string} value
33339
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33340
+ */
33341
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setConfigurationJson = function(value) {
33342
+ return jspb.Message.setProto3StringField(this, 3, value);
33343
+ };
33344
+
33345
+
33346
+ /**
33347
+ * optional string grant_id = 4;
33348
+ * @return {string}
33349
+ */
33350
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getGrantId = function() {
33351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
33352
+ };
33353
+
33354
+
33355
+ /**
33356
+ * @param {string} value
33357
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33358
+ */
33359
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setGrantId = function(value) {
33360
+ return jspb.Message.setProto3StringField(this, 4, value);
33361
+ };
33362
+
33363
+
33364
+ /**
33365
+ * optional string currency = 5;
33366
+ * @return {string}
33367
+ */
33368
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getCurrency = function() {
33369
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
33370
+ };
33371
+
33372
+
33373
+ /**
33374
+ * @param {string} value
33375
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33376
+ */
33377
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setCurrency = function(value) {
33378
+ return jspb.Message.setProto3StringField(this, 5, value);
33379
+ };
33380
+
33381
+
33382
+ /**
33383
+ * optional int32 currency_scale = 6;
33384
+ * @return {number}
33385
+ */
33386
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.getCurrencyScale = function() {
33387
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
33388
+ };
33389
+
33390
+
33391
+ /**
33392
+ * @param {number} value
33393
+ * @return {!proto.bonus.LoyaltyRecurringEntitlementSnapshot} returns this
33394
+ */
33395
+ proto.bonus.LoyaltyRecurringEntitlementSnapshot.prototype.setCurrencyScale = function(value) {
33396
+ return jspb.Message.setProto3IntField(this, 6, value);
33397
+ };
33398
+
33399
+
33400
+
33401
+
33402
+
33403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33404
+ /**
33405
+ * Creates an object representation of this proto.
33406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33407
+ * Optional fields that are not set will be set to undefined.
33408
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33409
+ * For the list of reserved names please see:
33410
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33411
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33412
+ * JSPB instance for transitional soy proto support:
33413
+ * http://goto/soy-param-migration
33414
+ * @return {!Object}
33415
+ */
33416
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.toObject = function(opt_includeInstance) {
33417
+ return proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.toObject(opt_includeInstance, this);
33418
+ };
33419
+
33420
+
33421
+ /**
33422
+ * Static version of the {@see toObject} method.
33423
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33424
+ * the JSPB instance for transitional soy proto support:
33425
+ * http://goto/soy-param-migration
33426
+ * @param {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} msg The msg instance to transform.
33427
+ * @return {!Object}
33428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33429
+ */
33430
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.toObject = function(includeInstance, msg) {
33431
+ var f, obj = {
33432
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
33433
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
33434
+ grantId: jspb.Message.getFieldWithDefault(msg, 3, ""),
33435
+ snapshotId: jspb.Message.getFieldWithDefault(msg, 4, ""),
33436
+ snapshotHash: jspb.Message.getFieldWithDefault(msg, 5, ""),
33437
+ entitlementId: jspb.Message.getFieldWithDefault(msg, 6, ""),
33438
+ earnedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
33439
+ currency: jspb.Message.getFieldWithDefault(msg, 8, "")
33440
+ };
33441
+
33442
+ if (includeInstance) {
33443
+ obj.$jspbMessageInstance = msg;
33444
+ }
33445
+ return obj;
33446
+ };
33447
+ }
33448
+
33449
+
33450
+ /**
33451
+ * Deserializes binary data (in protobuf wire format).
33452
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
33453
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest}
33454
+ */
33455
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.deserializeBinary = function(bytes) {
33456
+ var reader = new jspb.BinaryReader(bytes);
33457
+ var msg = new proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest;
33458
+ return proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.deserializeBinaryFromReader(msg, reader);
33459
+ };
33460
+
33461
+
33462
+ /**
33463
+ * Deserializes binary data (in protobuf wire format) from the
33464
+ * given reader into the given message object.
33465
+ * @param {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} msg The message object to deserialize into.
33466
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33467
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest}
33468
+ */
33469
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
33470
+ while (reader.nextField()) {
33471
+ if (reader.isEndGroup()) {
33472
+ break;
33473
+ }
33474
+ var field = reader.getFieldNumber();
33475
+ switch (field) {
33476
+ case 1:
33477
+ var value = /** @type {number} */ (reader.readInt32());
33478
+ msg.setUserId(value);
33479
+ break;
33480
+ case 2:
33481
+ var value = /** @type {number} */ (reader.readInt32());
33482
+ msg.setBonusTemplateId(value);
33483
+ break;
33484
+ case 3:
33485
+ var value = /** @type {string} */ (reader.readString());
33486
+ msg.setGrantId(value);
33487
+ break;
33488
+ case 4:
33489
+ var value = /** @type {string} */ (reader.readString());
33490
+ msg.setSnapshotId(value);
33491
+ break;
33492
+ case 5:
33493
+ var value = /** @type {string} */ (reader.readString());
33494
+ msg.setSnapshotHash(value);
33495
+ break;
33496
+ case 6:
33497
+ var value = /** @type {string} */ (reader.readString());
33498
+ msg.setEntitlementId(value);
33499
+ break;
33500
+ case 7:
33501
+ var value = /** @type {string} */ (reader.readString());
33502
+ msg.setEarnedAt(value);
33503
+ break;
33504
+ case 8:
33505
+ var value = /** @type {string} */ (reader.readString());
33506
+ msg.setCurrency(value);
33507
+ break;
33508
+ default:
33509
+ reader.skipField();
33510
+ break;
33511
+ }
33512
+ }
33513
+ return msg;
33514
+ };
33515
+
33516
+
33517
+ /**
33518
+ * Serializes the message to binary data (in protobuf wire format).
33519
+ * @return {!Uint8Array}
33520
+ */
33521
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.serializeBinary = function() {
33522
+ var writer = new jspb.BinaryWriter();
33523
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.serializeBinaryToWriter(this, writer);
33524
+ return writer.getResultBuffer();
33525
+ };
33526
+
33527
+
33528
+ /**
33529
+ * Serializes the given message to binary data (in protobuf wire
33530
+ * format), writing to the given BinaryWriter.
33531
+ * @param {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} message
33532
+ * @param {!jspb.BinaryWriter} writer
33533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33534
+ */
33535
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.serializeBinaryToWriter = function(message, writer) {
33536
+ var f = undefined;
33537
+ f = message.getUserId();
33538
+ if (f !== 0) {
33539
+ writer.writeInt32(
33540
+ 1,
33541
+ f
33542
+ );
33543
+ }
33544
+ f = message.getBonusTemplateId();
33545
+ if (f !== 0) {
33546
+ writer.writeInt32(
33547
+ 2,
33548
+ f
33549
+ );
33550
+ }
33551
+ f = message.getGrantId();
33552
+ if (f.length > 0) {
33553
+ writer.writeString(
33554
+ 3,
33555
+ f
33556
+ );
33557
+ }
33558
+ f = message.getSnapshotId();
33559
+ if (f.length > 0) {
33560
+ writer.writeString(
33561
+ 4,
33562
+ f
33563
+ );
33564
+ }
33565
+ f = message.getSnapshotHash();
33566
+ if (f.length > 0) {
33567
+ writer.writeString(
33568
+ 5,
33569
+ f
33570
+ );
33571
+ }
33572
+ f = message.getEntitlementId();
33573
+ if (f.length > 0) {
33574
+ writer.writeString(
33575
+ 6,
33576
+ f
33577
+ );
33578
+ }
33579
+ f = message.getEarnedAt();
33580
+ if (f.length > 0) {
33581
+ writer.writeString(
33582
+ 7,
33583
+ f
33584
+ );
33585
+ }
33586
+ f = message.getCurrency();
33587
+ if (f.length > 0) {
33588
+ writer.writeString(
33589
+ 8,
33590
+ f
33591
+ );
33592
+ }
33593
+ };
33594
+
33595
+
33596
+ /**
33597
+ * optional int32 user_id = 1;
33598
+ * @return {number}
33599
+ */
33600
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getUserId = function() {
33601
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33602
+ };
33603
+
33604
+
33605
+ /**
33606
+ * @param {number} value
33607
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33608
+ */
33609
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setUserId = function(value) {
33610
+ return jspb.Message.setProto3IntField(this, 1, value);
33611
+ };
33612
+
33613
+
33614
+ /**
33615
+ * optional int32 bonus_template_id = 2;
33616
+ * @return {number}
33617
+ */
33618
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getBonusTemplateId = function() {
33619
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33620
+ };
33621
+
33622
+
33623
+ /**
33624
+ * @param {number} value
33625
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33626
+ */
33627
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setBonusTemplateId = function(value) {
33628
+ return jspb.Message.setProto3IntField(this, 2, value);
33629
+ };
33630
+
33631
+
33632
+ /**
33633
+ * optional string grant_id = 3;
33634
+ * @return {string}
33635
+ */
33636
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getGrantId = function() {
33637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33638
+ };
33639
+
33640
+
33641
+ /**
33642
+ * @param {string} value
33643
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33644
+ */
33645
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setGrantId = function(value) {
33646
+ return jspb.Message.setProto3StringField(this, 3, value);
33647
+ };
33648
+
33649
+
33650
+ /**
33651
+ * optional string snapshot_id = 4;
33652
+ * @return {string}
33653
+ */
33654
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getSnapshotId = function() {
33655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
33656
+ };
33657
+
33658
+
33659
+ /**
33660
+ * @param {string} value
33661
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33662
+ */
33663
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setSnapshotId = function(value) {
33664
+ return jspb.Message.setProto3StringField(this, 4, value);
33665
+ };
33666
+
33667
+
33668
+ /**
33669
+ * optional string snapshot_hash = 5;
33670
+ * @return {string}
33671
+ */
33672
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getSnapshotHash = function() {
33673
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
33674
+ };
33675
+
33676
+
33677
+ /**
33678
+ * @param {string} value
33679
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33680
+ */
33681
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setSnapshotHash = function(value) {
33682
+ return jspb.Message.setProto3StringField(this, 5, value);
33683
+ };
33684
+
33685
+
33686
+ /**
33687
+ * optional string entitlement_id = 6;
33688
+ * @return {string}
33689
+ */
33690
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getEntitlementId = function() {
33691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
33692
+ };
33693
+
33694
+
33695
+ /**
33696
+ * @param {string} value
33697
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33698
+ */
33699
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setEntitlementId = function(value) {
33700
+ return jspb.Message.setProto3StringField(this, 6, value);
33701
+ };
33702
+
33703
+
33704
+ /**
33705
+ * optional string earned_at = 7;
33706
+ * @return {string}
33707
+ */
33708
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getEarnedAt = function() {
33709
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
33710
+ };
33711
+
33712
+
33713
+ /**
33714
+ * @param {string} value
33715
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33716
+ */
33717
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setEarnedAt = function(value) {
33718
+ return jspb.Message.setProto3StringField(this, 7, value);
33719
+ };
33720
+
33721
+
33722
+ /**
33723
+ * optional string currency = 8;
33724
+ * @return {string}
33725
+ */
33726
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.getCurrency = function() {
33727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
33728
+ };
33729
+
33730
+
33731
+ /**
33732
+ * @param {string} value
33733
+ * @return {!proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest} returns this
33734
+ */
33735
+ proto.bonus.GrantEarnedLoyaltyRecurringBonusRequest.prototype.setCurrency = function(value) {
33736
+ return jspb.Message.setProto3StringField(this, 8, value);
33737
+ };
33738
+
33739
+
32804
33740
  goog.object.extend(exports, proto.bonus);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.760",
3
+ "version": "1.2.761",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {