protobuf-platform 1.2.708 → 1.2.709

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.708",
3
+ "version": "1.2.709",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -70,6 +70,9 @@ service Payment {
70
70
  rpc executeGameplayPrecisionCommand(ExecuteGameplayPrecisionCommandRequest) returns (GameplayPrecisionResult);
71
71
  rpc readGameplayPrecisionBalance(GameplayPrecisionSessionRequest) returns (GameplayPrecisionResult);
72
72
  rpc closeGameplayPrecisionSession(GameplayPrecisionSessionRequest) returns (GameplayPrecisionResult);
73
+ // One synchronous settlement. Reads do not take a durable wallet fence.
74
+ rpc settleGameplay(SettleGameplayRequest) returns (SettleGameplayResponse);
75
+ rpc readGameplaySettlementFact(ReadGameplaySettlementFactRequest) returns (ReadGameplaySettlementFactResponse);
73
76
  //Segmentation
74
77
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
75
78
  //Currency source-of-truth
@@ -1566,6 +1569,37 @@ message CashbackClaimCreditRequest {
1566
1569
  // Absent means no wagering obligation. "0" is an explicit unlocked obligation.
1567
1570
  optional string wager_multiplier = 5;
1568
1571
  }
1572
+ // Canonical gameplay settlement. JSON bodies are the existing versioned command,
1573
+ // source, candidate and User RG receipt. Payment recomputes the binding under the wallet lock.
1574
+ message SettleGameplayRequest {
1575
+ uint32 protocol_version = 1;
1576
+ string namespace = 2;
1577
+ string request_id = 3;
1578
+ string command_json = 4;
1579
+ string source_json = 5;
1580
+ string candidate_json = 6;
1581
+ string rg_evidence_json = 7;
1582
+ string attempt_id = 8;
1583
+ }
1584
+ message SettleGameplayResponse {
1585
+ uint32 protocol_version = 1;
1586
+ string decision_id = 2;
1587
+ bool replay = 3;
1588
+ string outcome_json = 4;
1589
+ }
1590
+ message ReadGameplaySettlementFactRequest {
1591
+ uint32 protocol_version = 1;
1592
+ string namespace = 2;
1593
+ string fact = 3;
1594
+ string command_json = 4;
1595
+ string source_json = 5;
1596
+ string key = 6;
1597
+ string requested_debit_minor = 7;
1598
+ string packet_json = 8;
1599
+ }
1600
+ message ReadGameplaySettlementFactResponse {
1601
+ string result_json = 1;
1602
+ }
1569
1603
  message LoyaltyLevelUpRewardResponse {
1570
1604
  string operation_id = 1;
1571
1605
  string operation_public_id = 2;
@@ -961,6 +961,28 @@ function deserialize_payment_ProviderTranslationResponse(buffer_arg) {
961
961
  return payment_pb.ProviderTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
962
962
  }
963
963
 
964
+ function serialize_payment_ReadGameplaySettlementFactRequest(arg) {
965
+ if (!(arg instanceof payment_pb.ReadGameplaySettlementFactRequest)) {
966
+ throw new Error('Expected argument of type payment.ReadGameplaySettlementFactRequest');
967
+ }
968
+ return Buffer.from(arg.serializeBinary());
969
+ }
970
+
971
+ function deserialize_payment_ReadGameplaySettlementFactRequest(buffer_arg) {
972
+ return payment_pb.ReadGameplaySettlementFactRequest.deserializeBinary(new Uint8Array(buffer_arg));
973
+ }
974
+
975
+ function serialize_payment_ReadGameplaySettlementFactResponse(arg) {
976
+ if (!(arg instanceof payment_pb.ReadGameplaySettlementFactResponse)) {
977
+ throw new Error('Expected argument of type payment.ReadGameplaySettlementFactResponse');
978
+ }
979
+ return Buffer.from(arg.serializeBinary());
980
+ }
981
+
982
+ function deserialize_payment_ReadGameplaySettlementFactResponse(buffer_arg) {
983
+ return payment_pb.ReadGameplaySettlementFactResponse.deserializeBinary(new Uint8Array(buffer_arg));
984
+ }
985
+
964
986
  function serialize_payment_RegisterGameplayPrecisionSessionRequest(arg) {
965
987
  if (!(arg instanceof payment_pb.RegisterGameplayPrecisionSessionRequest)) {
966
988
  throw new Error('Expected argument of type payment.RegisterGameplayPrecisionSessionRequest');
@@ -1016,6 +1038,28 @@ function deserialize_payment_SegmentedUserResponse(buffer_arg) {
1016
1038
  return payment_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
1017
1039
  }
1018
1040
 
1041
+ function serialize_payment_SettleGameplayRequest(arg) {
1042
+ if (!(arg instanceof payment_pb.SettleGameplayRequest)) {
1043
+ throw new Error('Expected argument of type payment.SettleGameplayRequest');
1044
+ }
1045
+ return Buffer.from(arg.serializeBinary());
1046
+ }
1047
+
1048
+ function deserialize_payment_SettleGameplayRequest(buffer_arg) {
1049
+ return payment_pb.SettleGameplayRequest.deserializeBinary(new Uint8Array(buffer_arg));
1050
+ }
1051
+
1052
+ function serialize_payment_SettleGameplayResponse(arg) {
1053
+ if (!(arg instanceof payment_pb.SettleGameplayResponse)) {
1054
+ throw new Error('Expected argument of type payment.SettleGameplayResponse');
1055
+ }
1056
+ return Buffer.from(arg.serializeBinary());
1057
+ }
1058
+
1059
+ function deserialize_payment_SettleGameplayResponse(buffer_arg) {
1060
+ return payment_pb.SettleGameplayResponse.deserializeBinary(new Uint8Array(buffer_arg));
1061
+ }
1062
+
1019
1063
  function serialize_payment_SyncCurrenciesRequest(arg) {
1020
1064
  if (!(arg instanceof payment_pb.SyncCurrenciesRequest)) {
1021
1065
  throw new Error('Expected argument of type payment.SyncCurrenciesRequest');
@@ -1787,6 +1831,29 @@ registerGameplayPrecisionSession: {
1787
1831
  responseSerialize: serialize_payment_GameplayPrecisionResult,
1788
1832
  responseDeserialize: deserialize_payment_GameplayPrecisionResult,
1789
1833
  },
1834
+ // One synchronous settlement. Reads do not take a durable wallet fence.
1835
+ settleGameplay: {
1836
+ path: '/payment.Payment/settleGameplay',
1837
+ requestStream: false,
1838
+ responseStream: false,
1839
+ requestType: payment_pb.SettleGameplayRequest,
1840
+ responseType: payment_pb.SettleGameplayResponse,
1841
+ requestSerialize: serialize_payment_SettleGameplayRequest,
1842
+ requestDeserialize: deserialize_payment_SettleGameplayRequest,
1843
+ responseSerialize: serialize_payment_SettleGameplayResponse,
1844
+ responseDeserialize: deserialize_payment_SettleGameplayResponse,
1845
+ },
1846
+ readGameplaySettlementFact: {
1847
+ path: '/payment.Payment/readGameplaySettlementFact',
1848
+ requestStream: false,
1849
+ responseStream: false,
1850
+ requestType: payment_pb.ReadGameplaySettlementFactRequest,
1851
+ responseType: payment_pb.ReadGameplaySettlementFactResponse,
1852
+ requestSerialize: serialize_payment_ReadGameplaySettlementFactRequest,
1853
+ requestDeserialize: deserialize_payment_ReadGameplaySettlementFactRequest,
1854
+ responseSerialize: serialize_payment_ReadGameplaySettlementFactResponse,
1855
+ responseDeserialize: deserialize_payment_ReadGameplaySettlementFactResponse,
1856
+ },
1790
1857
  // Segmentation
1791
1858
  getSegmentedUsers: {
1792
1859
  path: '/payment.Payment/getSegmentedUsers',
@@ -140,12 +140,16 @@ goog.exportSymbol('proto.payment.ProviderResponse', null, global);
140
140
  goog.exportSymbol('proto.payment.ProviderTranslationItem', null, global);
141
141
  goog.exportSymbol('proto.payment.ProviderTranslationRequest', null, global);
142
142
  goog.exportSymbol('proto.payment.ProviderTranslationResponse', null, global);
143
+ goog.exportSymbol('proto.payment.ReadGameplaySettlementFactRequest', null, global);
144
+ goog.exportSymbol('proto.payment.ReadGameplaySettlementFactResponse', null, global);
143
145
  goog.exportSymbol('proto.payment.RegisterGameplayPrecisionSessionRequest', null, global);
144
146
  goog.exportSymbol('proto.payment.ResolveGameWalletContextRequest', null, global);
145
147
  goog.exportSymbol('proto.payment.ResolveGameWalletContextResponse', null, global);
146
148
  goog.exportSymbol('proto.payment.SavedDepositCard', null, global);
147
149
  goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
148
150
  goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
151
+ goog.exportSymbol('proto.payment.SettleGameplayRequest', null, global);
152
+ goog.exportSymbol('proto.payment.SettleGameplayResponse', null, global);
149
153
  goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
150
154
  goog.exportSymbol('proto.payment.UpdateCurrencyRequest', null, global);
151
155
  goog.exportSymbol('proto.payment.UserDepositCountResponse', null, global);
@@ -3171,6 +3175,90 @@ if (goog.DEBUG && !COMPILED) {
3171
3175
  */
3172
3176
  proto.payment.CashbackClaimCreditRequest.displayName = 'proto.payment.CashbackClaimCreditRequest';
3173
3177
  }
3178
+ /**
3179
+ * Generated by JsPbCodeGenerator.
3180
+ * @param {Array=} opt_data Optional initial data array, typically from a
3181
+ * server response, or constructed directly in Javascript. The array is used
3182
+ * in place and becomes part of the constructed object. It is not cloned.
3183
+ * If no data is provided, the constructed object will be empty, but still
3184
+ * valid.
3185
+ * @extends {jspb.Message}
3186
+ * @constructor
3187
+ */
3188
+ proto.payment.SettleGameplayRequest = function(opt_data) {
3189
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3190
+ };
3191
+ goog.inherits(proto.payment.SettleGameplayRequest, jspb.Message);
3192
+ if (goog.DEBUG && !COMPILED) {
3193
+ /**
3194
+ * @public
3195
+ * @override
3196
+ */
3197
+ proto.payment.SettleGameplayRequest.displayName = 'proto.payment.SettleGameplayRequest';
3198
+ }
3199
+ /**
3200
+ * Generated by JsPbCodeGenerator.
3201
+ * @param {Array=} opt_data Optional initial data array, typically from a
3202
+ * server response, or constructed directly in Javascript. The array is used
3203
+ * in place and becomes part of the constructed object. It is not cloned.
3204
+ * If no data is provided, the constructed object will be empty, but still
3205
+ * valid.
3206
+ * @extends {jspb.Message}
3207
+ * @constructor
3208
+ */
3209
+ proto.payment.SettleGameplayResponse = function(opt_data) {
3210
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3211
+ };
3212
+ goog.inherits(proto.payment.SettleGameplayResponse, jspb.Message);
3213
+ if (goog.DEBUG && !COMPILED) {
3214
+ /**
3215
+ * @public
3216
+ * @override
3217
+ */
3218
+ proto.payment.SettleGameplayResponse.displayName = 'proto.payment.SettleGameplayResponse';
3219
+ }
3220
+ /**
3221
+ * Generated by JsPbCodeGenerator.
3222
+ * @param {Array=} opt_data Optional initial data array, typically from a
3223
+ * server response, or constructed directly in Javascript. The array is used
3224
+ * in place and becomes part of the constructed object. It is not cloned.
3225
+ * If no data is provided, the constructed object will be empty, but still
3226
+ * valid.
3227
+ * @extends {jspb.Message}
3228
+ * @constructor
3229
+ */
3230
+ proto.payment.ReadGameplaySettlementFactRequest = function(opt_data) {
3231
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3232
+ };
3233
+ goog.inherits(proto.payment.ReadGameplaySettlementFactRequest, jspb.Message);
3234
+ if (goog.DEBUG && !COMPILED) {
3235
+ /**
3236
+ * @public
3237
+ * @override
3238
+ */
3239
+ proto.payment.ReadGameplaySettlementFactRequest.displayName = 'proto.payment.ReadGameplaySettlementFactRequest';
3240
+ }
3241
+ /**
3242
+ * Generated by JsPbCodeGenerator.
3243
+ * @param {Array=} opt_data Optional initial data array, typically from a
3244
+ * server response, or constructed directly in Javascript. The array is used
3245
+ * in place and becomes part of the constructed object. It is not cloned.
3246
+ * If no data is provided, the constructed object will be empty, but still
3247
+ * valid.
3248
+ * @extends {jspb.Message}
3249
+ * @constructor
3250
+ */
3251
+ proto.payment.ReadGameplaySettlementFactResponse = function(opt_data) {
3252
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3253
+ };
3254
+ goog.inherits(proto.payment.ReadGameplaySettlementFactResponse, jspb.Message);
3255
+ if (goog.DEBUG && !COMPILED) {
3256
+ /**
3257
+ * @public
3258
+ * @override
3259
+ */
3260
+ proto.payment.ReadGameplaySettlementFactResponse.displayName = 'proto.payment.ReadGameplaySettlementFactResponse';
3261
+ }
3174
3262
  /**
3175
3263
  * Generated by JsPbCodeGenerator.
3176
3264
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -63879,6 +63967,1036 @@ proto.payment.CashbackClaimCreditRequest.prototype.hasWagerMultiplier = function
63879
63967
 
63880
63968
 
63881
63969
 
63970
+
63971
+
63972
+ if (jspb.Message.GENERATE_TO_OBJECT) {
63973
+ /**
63974
+ * Creates an object representation of this proto.
63975
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
63976
+ * Optional fields that are not set will be set to undefined.
63977
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
63978
+ * For the list of reserved names please see:
63979
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63980
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
63981
+ * JSPB instance for transitional soy proto support:
63982
+ * http://goto/soy-param-migration
63983
+ * @return {!Object}
63984
+ */
63985
+ proto.payment.SettleGameplayRequest.prototype.toObject = function(opt_includeInstance) {
63986
+ return proto.payment.SettleGameplayRequest.toObject(opt_includeInstance, this);
63987
+ };
63988
+
63989
+
63990
+ /**
63991
+ * Static version of the {@see toObject} method.
63992
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
63993
+ * the JSPB instance for transitional soy proto support:
63994
+ * http://goto/soy-param-migration
63995
+ * @param {!proto.payment.SettleGameplayRequest} msg The msg instance to transform.
63996
+ * @return {!Object}
63997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63998
+ */
63999
+ proto.payment.SettleGameplayRequest.toObject = function(includeInstance, msg) {
64000
+ var f, obj = {
64001
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
64002
+ namespace: jspb.Message.getFieldWithDefault(msg, 2, ""),
64003
+ requestId: jspb.Message.getFieldWithDefault(msg, 3, ""),
64004
+ commandJson: jspb.Message.getFieldWithDefault(msg, 4, ""),
64005
+ sourceJson: jspb.Message.getFieldWithDefault(msg, 5, ""),
64006
+ candidateJson: jspb.Message.getFieldWithDefault(msg, 6, ""),
64007
+ rgEvidenceJson: jspb.Message.getFieldWithDefault(msg, 7, ""),
64008
+ attemptId: jspb.Message.getFieldWithDefault(msg, 8, "")
64009
+ };
64010
+
64011
+ if (includeInstance) {
64012
+ obj.$jspbMessageInstance = msg;
64013
+ }
64014
+ return obj;
64015
+ };
64016
+ }
64017
+
64018
+
64019
+ /**
64020
+ * Deserializes binary data (in protobuf wire format).
64021
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64022
+ * @return {!proto.payment.SettleGameplayRequest}
64023
+ */
64024
+ proto.payment.SettleGameplayRequest.deserializeBinary = function(bytes) {
64025
+ var reader = new jspb.BinaryReader(bytes);
64026
+ var msg = new proto.payment.SettleGameplayRequest;
64027
+ return proto.payment.SettleGameplayRequest.deserializeBinaryFromReader(msg, reader);
64028
+ };
64029
+
64030
+
64031
+ /**
64032
+ * Deserializes binary data (in protobuf wire format) from the
64033
+ * given reader into the given message object.
64034
+ * @param {!proto.payment.SettleGameplayRequest} msg The message object to deserialize into.
64035
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64036
+ * @return {!proto.payment.SettleGameplayRequest}
64037
+ */
64038
+ proto.payment.SettleGameplayRequest.deserializeBinaryFromReader = function(msg, reader) {
64039
+ while (reader.nextField()) {
64040
+ if (reader.isEndGroup()) {
64041
+ break;
64042
+ }
64043
+ var field = reader.getFieldNumber();
64044
+ switch (field) {
64045
+ case 1:
64046
+ var value = /** @type {number} */ (reader.readUint32());
64047
+ msg.setProtocolVersion(value);
64048
+ break;
64049
+ case 2:
64050
+ var value = /** @type {string} */ (reader.readString());
64051
+ msg.setNamespace(value);
64052
+ break;
64053
+ case 3:
64054
+ var value = /** @type {string} */ (reader.readString());
64055
+ msg.setRequestId(value);
64056
+ break;
64057
+ case 4:
64058
+ var value = /** @type {string} */ (reader.readString());
64059
+ msg.setCommandJson(value);
64060
+ break;
64061
+ case 5:
64062
+ var value = /** @type {string} */ (reader.readString());
64063
+ msg.setSourceJson(value);
64064
+ break;
64065
+ case 6:
64066
+ var value = /** @type {string} */ (reader.readString());
64067
+ msg.setCandidateJson(value);
64068
+ break;
64069
+ case 7:
64070
+ var value = /** @type {string} */ (reader.readString());
64071
+ msg.setRgEvidenceJson(value);
64072
+ break;
64073
+ case 8:
64074
+ var value = /** @type {string} */ (reader.readString());
64075
+ msg.setAttemptId(value);
64076
+ break;
64077
+ default:
64078
+ reader.skipField();
64079
+ break;
64080
+ }
64081
+ }
64082
+ return msg;
64083
+ };
64084
+
64085
+
64086
+ /**
64087
+ * Serializes the message to binary data (in protobuf wire format).
64088
+ * @return {!Uint8Array}
64089
+ */
64090
+ proto.payment.SettleGameplayRequest.prototype.serializeBinary = function() {
64091
+ var writer = new jspb.BinaryWriter();
64092
+ proto.payment.SettleGameplayRequest.serializeBinaryToWriter(this, writer);
64093
+ return writer.getResultBuffer();
64094
+ };
64095
+
64096
+
64097
+ /**
64098
+ * Serializes the given message to binary data (in protobuf wire
64099
+ * format), writing to the given BinaryWriter.
64100
+ * @param {!proto.payment.SettleGameplayRequest} message
64101
+ * @param {!jspb.BinaryWriter} writer
64102
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64103
+ */
64104
+ proto.payment.SettleGameplayRequest.serializeBinaryToWriter = function(message, writer) {
64105
+ var f = undefined;
64106
+ f = message.getProtocolVersion();
64107
+ if (f !== 0) {
64108
+ writer.writeUint32(
64109
+ 1,
64110
+ f
64111
+ );
64112
+ }
64113
+ f = message.getNamespace();
64114
+ if (f.length > 0) {
64115
+ writer.writeString(
64116
+ 2,
64117
+ f
64118
+ );
64119
+ }
64120
+ f = message.getRequestId();
64121
+ if (f.length > 0) {
64122
+ writer.writeString(
64123
+ 3,
64124
+ f
64125
+ );
64126
+ }
64127
+ f = message.getCommandJson();
64128
+ if (f.length > 0) {
64129
+ writer.writeString(
64130
+ 4,
64131
+ f
64132
+ );
64133
+ }
64134
+ f = message.getSourceJson();
64135
+ if (f.length > 0) {
64136
+ writer.writeString(
64137
+ 5,
64138
+ f
64139
+ );
64140
+ }
64141
+ f = message.getCandidateJson();
64142
+ if (f.length > 0) {
64143
+ writer.writeString(
64144
+ 6,
64145
+ f
64146
+ );
64147
+ }
64148
+ f = message.getRgEvidenceJson();
64149
+ if (f.length > 0) {
64150
+ writer.writeString(
64151
+ 7,
64152
+ f
64153
+ );
64154
+ }
64155
+ f = message.getAttemptId();
64156
+ if (f.length > 0) {
64157
+ writer.writeString(
64158
+ 8,
64159
+ f
64160
+ );
64161
+ }
64162
+ };
64163
+
64164
+
64165
+ /**
64166
+ * optional uint32 protocol_version = 1;
64167
+ * @return {number}
64168
+ */
64169
+ proto.payment.SettleGameplayRequest.prototype.getProtocolVersion = function() {
64170
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
64171
+ };
64172
+
64173
+
64174
+ /**
64175
+ * @param {number} value
64176
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64177
+ */
64178
+ proto.payment.SettleGameplayRequest.prototype.setProtocolVersion = function(value) {
64179
+ return jspb.Message.setProto3IntField(this, 1, value);
64180
+ };
64181
+
64182
+
64183
+ /**
64184
+ * optional string namespace = 2;
64185
+ * @return {string}
64186
+ */
64187
+ proto.payment.SettleGameplayRequest.prototype.getNamespace = function() {
64188
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
64189
+ };
64190
+
64191
+
64192
+ /**
64193
+ * @param {string} value
64194
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64195
+ */
64196
+ proto.payment.SettleGameplayRequest.prototype.setNamespace = function(value) {
64197
+ return jspb.Message.setProto3StringField(this, 2, value);
64198
+ };
64199
+
64200
+
64201
+ /**
64202
+ * optional string request_id = 3;
64203
+ * @return {string}
64204
+ */
64205
+ proto.payment.SettleGameplayRequest.prototype.getRequestId = function() {
64206
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
64207
+ };
64208
+
64209
+
64210
+ /**
64211
+ * @param {string} value
64212
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64213
+ */
64214
+ proto.payment.SettleGameplayRequest.prototype.setRequestId = function(value) {
64215
+ return jspb.Message.setProto3StringField(this, 3, value);
64216
+ };
64217
+
64218
+
64219
+ /**
64220
+ * optional string command_json = 4;
64221
+ * @return {string}
64222
+ */
64223
+ proto.payment.SettleGameplayRequest.prototype.getCommandJson = function() {
64224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
64225
+ };
64226
+
64227
+
64228
+ /**
64229
+ * @param {string} value
64230
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64231
+ */
64232
+ proto.payment.SettleGameplayRequest.prototype.setCommandJson = function(value) {
64233
+ return jspb.Message.setProto3StringField(this, 4, value);
64234
+ };
64235
+
64236
+
64237
+ /**
64238
+ * optional string source_json = 5;
64239
+ * @return {string}
64240
+ */
64241
+ proto.payment.SettleGameplayRequest.prototype.getSourceJson = function() {
64242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
64243
+ };
64244
+
64245
+
64246
+ /**
64247
+ * @param {string} value
64248
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64249
+ */
64250
+ proto.payment.SettleGameplayRequest.prototype.setSourceJson = function(value) {
64251
+ return jspb.Message.setProto3StringField(this, 5, value);
64252
+ };
64253
+
64254
+
64255
+ /**
64256
+ * optional string candidate_json = 6;
64257
+ * @return {string}
64258
+ */
64259
+ proto.payment.SettleGameplayRequest.prototype.getCandidateJson = function() {
64260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
64261
+ };
64262
+
64263
+
64264
+ /**
64265
+ * @param {string} value
64266
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64267
+ */
64268
+ proto.payment.SettleGameplayRequest.prototype.setCandidateJson = function(value) {
64269
+ return jspb.Message.setProto3StringField(this, 6, value);
64270
+ };
64271
+
64272
+
64273
+ /**
64274
+ * optional string rg_evidence_json = 7;
64275
+ * @return {string}
64276
+ */
64277
+ proto.payment.SettleGameplayRequest.prototype.getRgEvidenceJson = function() {
64278
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
64279
+ };
64280
+
64281
+
64282
+ /**
64283
+ * @param {string} value
64284
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64285
+ */
64286
+ proto.payment.SettleGameplayRequest.prototype.setRgEvidenceJson = function(value) {
64287
+ return jspb.Message.setProto3StringField(this, 7, value);
64288
+ };
64289
+
64290
+
64291
+ /**
64292
+ * optional string attempt_id = 8;
64293
+ * @return {string}
64294
+ */
64295
+ proto.payment.SettleGameplayRequest.prototype.getAttemptId = function() {
64296
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
64297
+ };
64298
+
64299
+
64300
+ /**
64301
+ * @param {string} value
64302
+ * @return {!proto.payment.SettleGameplayRequest} returns this
64303
+ */
64304
+ proto.payment.SettleGameplayRequest.prototype.setAttemptId = function(value) {
64305
+ return jspb.Message.setProto3StringField(this, 8, value);
64306
+ };
64307
+
64308
+
64309
+
64310
+
64311
+
64312
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64313
+ /**
64314
+ * Creates an object representation of this proto.
64315
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64316
+ * Optional fields that are not set will be set to undefined.
64317
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64318
+ * For the list of reserved names please see:
64319
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64320
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64321
+ * JSPB instance for transitional soy proto support:
64322
+ * http://goto/soy-param-migration
64323
+ * @return {!Object}
64324
+ */
64325
+ proto.payment.SettleGameplayResponse.prototype.toObject = function(opt_includeInstance) {
64326
+ return proto.payment.SettleGameplayResponse.toObject(opt_includeInstance, this);
64327
+ };
64328
+
64329
+
64330
+ /**
64331
+ * Static version of the {@see toObject} method.
64332
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64333
+ * the JSPB instance for transitional soy proto support:
64334
+ * http://goto/soy-param-migration
64335
+ * @param {!proto.payment.SettleGameplayResponse} msg The msg instance to transform.
64336
+ * @return {!Object}
64337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64338
+ */
64339
+ proto.payment.SettleGameplayResponse.toObject = function(includeInstance, msg) {
64340
+ var f, obj = {
64341
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
64342
+ decisionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
64343
+ replay: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
64344
+ outcomeJson: jspb.Message.getFieldWithDefault(msg, 4, "")
64345
+ };
64346
+
64347
+ if (includeInstance) {
64348
+ obj.$jspbMessageInstance = msg;
64349
+ }
64350
+ return obj;
64351
+ };
64352
+ }
64353
+
64354
+
64355
+ /**
64356
+ * Deserializes binary data (in protobuf wire format).
64357
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64358
+ * @return {!proto.payment.SettleGameplayResponse}
64359
+ */
64360
+ proto.payment.SettleGameplayResponse.deserializeBinary = function(bytes) {
64361
+ var reader = new jspb.BinaryReader(bytes);
64362
+ var msg = new proto.payment.SettleGameplayResponse;
64363
+ return proto.payment.SettleGameplayResponse.deserializeBinaryFromReader(msg, reader);
64364
+ };
64365
+
64366
+
64367
+ /**
64368
+ * Deserializes binary data (in protobuf wire format) from the
64369
+ * given reader into the given message object.
64370
+ * @param {!proto.payment.SettleGameplayResponse} msg The message object to deserialize into.
64371
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64372
+ * @return {!proto.payment.SettleGameplayResponse}
64373
+ */
64374
+ proto.payment.SettleGameplayResponse.deserializeBinaryFromReader = function(msg, reader) {
64375
+ while (reader.nextField()) {
64376
+ if (reader.isEndGroup()) {
64377
+ break;
64378
+ }
64379
+ var field = reader.getFieldNumber();
64380
+ switch (field) {
64381
+ case 1:
64382
+ var value = /** @type {number} */ (reader.readUint32());
64383
+ msg.setProtocolVersion(value);
64384
+ break;
64385
+ case 2:
64386
+ var value = /** @type {string} */ (reader.readString());
64387
+ msg.setDecisionId(value);
64388
+ break;
64389
+ case 3:
64390
+ var value = /** @type {boolean} */ (reader.readBool());
64391
+ msg.setReplay(value);
64392
+ break;
64393
+ case 4:
64394
+ var value = /** @type {string} */ (reader.readString());
64395
+ msg.setOutcomeJson(value);
64396
+ break;
64397
+ default:
64398
+ reader.skipField();
64399
+ break;
64400
+ }
64401
+ }
64402
+ return msg;
64403
+ };
64404
+
64405
+
64406
+ /**
64407
+ * Serializes the message to binary data (in protobuf wire format).
64408
+ * @return {!Uint8Array}
64409
+ */
64410
+ proto.payment.SettleGameplayResponse.prototype.serializeBinary = function() {
64411
+ var writer = new jspb.BinaryWriter();
64412
+ proto.payment.SettleGameplayResponse.serializeBinaryToWriter(this, writer);
64413
+ return writer.getResultBuffer();
64414
+ };
64415
+
64416
+
64417
+ /**
64418
+ * Serializes the given message to binary data (in protobuf wire
64419
+ * format), writing to the given BinaryWriter.
64420
+ * @param {!proto.payment.SettleGameplayResponse} message
64421
+ * @param {!jspb.BinaryWriter} writer
64422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64423
+ */
64424
+ proto.payment.SettleGameplayResponse.serializeBinaryToWriter = function(message, writer) {
64425
+ var f = undefined;
64426
+ f = message.getProtocolVersion();
64427
+ if (f !== 0) {
64428
+ writer.writeUint32(
64429
+ 1,
64430
+ f
64431
+ );
64432
+ }
64433
+ f = message.getDecisionId();
64434
+ if (f.length > 0) {
64435
+ writer.writeString(
64436
+ 2,
64437
+ f
64438
+ );
64439
+ }
64440
+ f = message.getReplay();
64441
+ if (f) {
64442
+ writer.writeBool(
64443
+ 3,
64444
+ f
64445
+ );
64446
+ }
64447
+ f = message.getOutcomeJson();
64448
+ if (f.length > 0) {
64449
+ writer.writeString(
64450
+ 4,
64451
+ f
64452
+ );
64453
+ }
64454
+ };
64455
+
64456
+
64457
+ /**
64458
+ * optional uint32 protocol_version = 1;
64459
+ * @return {number}
64460
+ */
64461
+ proto.payment.SettleGameplayResponse.prototype.getProtocolVersion = function() {
64462
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
64463
+ };
64464
+
64465
+
64466
+ /**
64467
+ * @param {number} value
64468
+ * @return {!proto.payment.SettleGameplayResponse} returns this
64469
+ */
64470
+ proto.payment.SettleGameplayResponse.prototype.setProtocolVersion = function(value) {
64471
+ return jspb.Message.setProto3IntField(this, 1, value);
64472
+ };
64473
+
64474
+
64475
+ /**
64476
+ * optional string decision_id = 2;
64477
+ * @return {string}
64478
+ */
64479
+ proto.payment.SettleGameplayResponse.prototype.getDecisionId = function() {
64480
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
64481
+ };
64482
+
64483
+
64484
+ /**
64485
+ * @param {string} value
64486
+ * @return {!proto.payment.SettleGameplayResponse} returns this
64487
+ */
64488
+ proto.payment.SettleGameplayResponse.prototype.setDecisionId = function(value) {
64489
+ return jspb.Message.setProto3StringField(this, 2, value);
64490
+ };
64491
+
64492
+
64493
+ /**
64494
+ * optional bool replay = 3;
64495
+ * @return {boolean}
64496
+ */
64497
+ proto.payment.SettleGameplayResponse.prototype.getReplay = function() {
64498
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
64499
+ };
64500
+
64501
+
64502
+ /**
64503
+ * @param {boolean} value
64504
+ * @return {!proto.payment.SettleGameplayResponse} returns this
64505
+ */
64506
+ proto.payment.SettleGameplayResponse.prototype.setReplay = function(value) {
64507
+ return jspb.Message.setProto3BooleanField(this, 3, value);
64508
+ };
64509
+
64510
+
64511
+ /**
64512
+ * optional string outcome_json = 4;
64513
+ * @return {string}
64514
+ */
64515
+ proto.payment.SettleGameplayResponse.prototype.getOutcomeJson = function() {
64516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
64517
+ };
64518
+
64519
+
64520
+ /**
64521
+ * @param {string} value
64522
+ * @return {!proto.payment.SettleGameplayResponse} returns this
64523
+ */
64524
+ proto.payment.SettleGameplayResponse.prototype.setOutcomeJson = function(value) {
64525
+ return jspb.Message.setProto3StringField(this, 4, value);
64526
+ };
64527
+
64528
+
64529
+
64530
+
64531
+
64532
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64533
+ /**
64534
+ * Creates an object representation of this proto.
64535
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64536
+ * Optional fields that are not set will be set to undefined.
64537
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64538
+ * For the list of reserved names please see:
64539
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64540
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64541
+ * JSPB instance for transitional soy proto support:
64542
+ * http://goto/soy-param-migration
64543
+ * @return {!Object}
64544
+ */
64545
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.toObject = function(opt_includeInstance) {
64546
+ return proto.payment.ReadGameplaySettlementFactRequest.toObject(opt_includeInstance, this);
64547
+ };
64548
+
64549
+
64550
+ /**
64551
+ * Static version of the {@see toObject} method.
64552
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64553
+ * the JSPB instance for transitional soy proto support:
64554
+ * http://goto/soy-param-migration
64555
+ * @param {!proto.payment.ReadGameplaySettlementFactRequest} msg The msg instance to transform.
64556
+ * @return {!Object}
64557
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64558
+ */
64559
+ proto.payment.ReadGameplaySettlementFactRequest.toObject = function(includeInstance, msg) {
64560
+ var f, obj = {
64561
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
64562
+ namespace: jspb.Message.getFieldWithDefault(msg, 2, ""),
64563
+ fact: jspb.Message.getFieldWithDefault(msg, 3, ""),
64564
+ commandJson: jspb.Message.getFieldWithDefault(msg, 4, ""),
64565
+ sourceJson: jspb.Message.getFieldWithDefault(msg, 5, ""),
64566
+ key: jspb.Message.getFieldWithDefault(msg, 6, ""),
64567
+ requestedDebitMinor: jspb.Message.getFieldWithDefault(msg, 7, ""),
64568
+ packetJson: jspb.Message.getFieldWithDefault(msg, 8, "")
64569
+ };
64570
+
64571
+ if (includeInstance) {
64572
+ obj.$jspbMessageInstance = msg;
64573
+ }
64574
+ return obj;
64575
+ };
64576
+ }
64577
+
64578
+
64579
+ /**
64580
+ * Deserializes binary data (in protobuf wire format).
64581
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64582
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest}
64583
+ */
64584
+ proto.payment.ReadGameplaySettlementFactRequest.deserializeBinary = function(bytes) {
64585
+ var reader = new jspb.BinaryReader(bytes);
64586
+ var msg = new proto.payment.ReadGameplaySettlementFactRequest;
64587
+ return proto.payment.ReadGameplaySettlementFactRequest.deserializeBinaryFromReader(msg, reader);
64588
+ };
64589
+
64590
+
64591
+ /**
64592
+ * Deserializes binary data (in protobuf wire format) from the
64593
+ * given reader into the given message object.
64594
+ * @param {!proto.payment.ReadGameplaySettlementFactRequest} msg The message object to deserialize into.
64595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64596
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest}
64597
+ */
64598
+ proto.payment.ReadGameplaySettlementFactRequest.deserializeBinaryFromReader = function(msg, reader) {
64599
+ while (reader.nextField()) {
64600
+ if (reader.isEndGroup()) {
64601
+ break;
64602
+ }
64603
+ var field = reader.getFieldNumber();
64604
+ switch (field) {
64605
+ case 1:
64606
+ var value = /** @type {number} */ (reader.readUint32());
64607
+ msg.setProtocolVersion(value);
64608
+ break;
64609
+ case 2:
64610
+ var value = /** @type {string} */ (reader.readString());
64611
+ msg.setNamespace(value);
64612
+ break;
64613
+ case 3:
64614
+ var value = /** @type {string} */ (reader.readString());
64615
+ msg.setFact(value);
64616
+ break;
64617
+ case 4:
64618
+ var value = /** @type {string} */ (reader.readString());
64619
+ msg.setCommandJson(value);
64620
+ break;
64621
+ case 5:
64622
+ var value = /** @type {string} */ (reader.readString());
64623
+ msg.setSourceJson(value);
64624
+ break;
64625
+ case 6:
64626
+ var value = /** @type {string} */ (reader.readString());
64627
+ msg.setKey(value);
64628
+ break;
64629
+ case 7:
64630
+ var value = /** @type {string} */ (reader.readString());
64631
+ msg.setRequestedDebitMinor(value);
64632
+ break;
64633
+ case 8:
64634
+ var value = /** @type {string} */ (reader.readString());
64635
+ msg.setPacketJson(value);
64636
+ break;
64637
+ default:
64638
+ reader.skipField();
64639
+ break;
64640
+ }
64641
+ }
64642
+ return msg;
64643
+ };
64644
+
64645
+
64646
+ /**
64647
+ * Serializes the message to binary data (in protobuf wire format).
64648
+ * @return {!Uint8Array}
64649
+ */
64650
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.serializeBinary = function() {
64651
+ var writer = new jspb.BinaryWriter();
64652
+ proto.payment.ReadGameplaySettlementFactRequest.serializeBinaryToWriter(this, writer);
64653
+ return writer.getResultBuffer();
64654
+ };
64655
+
64656
+
64657
+ /**
64658
+ * Serializes the given message to binary data (in protobuf wire
64659
+ * format), writing to the given BinaryWriter.
64660
+ * @param {!proto.payment.ReadGameplaySettlementFactRequest} message
64661
+ * @param {!jspb.BinaryWriter} writer
64662
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64663
+ */
64664
+ proto.payment.ReadGameplaySettlementFactRequest.serializeBinaryToWriter = function(message, writer) {
64665
+ var f = undefined;
64666
+ f = message.getProtocolVersion();
64667
+ if (f !== 0) {
64668
+ writer.writeUint32(
64669
+ 1,
64670
+ f
64671
+ );
64672
+ }
64673
+ f = message.getNamespace();
64674
+ if (f.length > 0) {
64675
+ writer.writeString(
64676
+ 2,
64677
+ f
64678
+ );
64679
+ }
64680
+ f = message.getFact();
64681
+ if (f.length > 0) {
64682
+ writer.writeString(
64683
+ 3,
64684
+ f
64685
+ );
64686
+ }
64687
+ f = message.getCommandJson();
64688
+ if (f.length > 0) {
64689
+ writer.writeString(
64690
+ 4,
64691
+ f
64692
+ );
64693
+ }
64694
+ f = message.getSourceJson();
64695
+ if (f.length > 0) {
64696
+ writer.writeString(
64697
+ 5,
64698
+ f
64699
+ );
64700
+ }
64701
+ f = message.getKey();
64702
+ if (f.length > 0) {
64703
+ writer.writeString(
64704
+ 6,
64705
+ f
64706
+ );
64707
+ }
64708
+ f = message.getRequestedDebitMinor();
64709
+ if (f.length > 0) {
64710
+ writer.writeString(
64711
+ 7,
64712
+ f
64713
+ );
64714
+ }
64715
+ f = message.getPacketJson();
64716
+ if (f.length > 0) {
64717
+ writer.writeString(
64718
+ 8,
64719
+ f
64720
+ );
64721
+ }
64722
+ };
64723
+
64724
+
64725
+ /**
64726
+ * optional uint32 protocol_version = 1;
64727
+ * @return {number}
64728
+ */
64729
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getProtocolVersion = function() {
64730
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
64731
+ };
64732
+
64733
+
64734
+ /**
64735
+ * @param {number} value
64736
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64737
+ */
64738
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setProtocolVersion = function(value) {
64739
+ return jspb.Message.setProto3IntField(this, 1, value);
64740
+ };
64741
+
64742
+
64743
+ /**
64744
+ * optional string namespace = 2;
64745
+ * @return {string}
64746
+ */
64747
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getNamespace = function() {
64748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
64749
+ };
64750
+
64751
+
64752
+ /**
64753
+ * @param {string} value
64754
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64755
+ */
64756
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setNamespace = function(value) {
64757
+ return jspb.Message.setProto3StringField(this, 2, value);
64758
+ };
64759
+
64760
+
64761
+ /**
64762
+ * optional string fact = 3;
64763
+ * @return {string}
64764
+ */
64765
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getFact = function() {
64766
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
64767
+ };
64768
+
64769
+
64770
+ /**
64771
+ * @param {string} value
64772
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64773
+ */
64774
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setFact = function(value) {
64775
+ return jspb.Message.setProto3StringField(this, 3, value);
64776
+ };
64777
+
64778
+
64779
+ /**
64780
+ * optional string command_json = 4;
64781
+ * @return {string}
64782
+ */
64783
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getCommandJson = function() {
64784
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
64785
+ };
64786
+
64787
+
64788
+ /**
64789
+ * @param {string} value
64790
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64791
+ */
64792
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setCommandJson = function(value) {
64793
+ return jspb.Message.setProto3StringField(this, 4, value);
64794
+ };
64795
+
64796
+
64797
+ /**
64798
+ * optional string source_json = 5;
64799
+ * @return {string}
64800
+ */
64801
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getSourceJson = function() {
64802
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
64803
+ };
64804
+
64805
+
64806
+ /**
64807
+ * @param {string} value
64808
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64809
+ */
64810
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setSourceJson = function(value) {
64811
+ return jspb.Message.setProto3StringField(this, 5, value);
64812
+ };
64813
+
64814
+
64815
+ /**
64816
+ * optional string key = 6;
64817
+ * @return {string}
64818
+ */
64819
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getKey = function() {
64820
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
64821
+ };
64822
+
64823
+
64824
+ /**
64825
+ * @param {string} value
64826
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64827
+ */
64828
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setKey = function(value) {
64829
+ return jspb.Message.setProto3StringField(this, 6, value);
64830
+ };
64831
+
64832
+
64833
+ /**
64834
+ * optional string requested_debit_minor = 7;
64835
+ * @return {string}
64836
+ */
64837
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getRequestedDebitMinor = function() {
64838
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
64839
+ };
64840
+
64841
+
64842
+ /**
64843
+ * @param {string} value
64844
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64845
+ */
64846
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setRequestedDebitMinor = function(value) {
64847
+ return jspb.Message.setProto3StringField(this, 7, value);
64848
+ };
64849
+
64850
+
64851
+ /**
64852
+ * optional string packet_json = 8;
64853
+ * @return {string}
64854
+ */
64855
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.getPacketJson = function() {
64856
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
64857
+ };
64858
+
64859
+
64860
+ /**
64861
+ * @param {string} value
64862
+ * @return {!proto.payment.ReadGameplaySettlementFactRequest} returns this
64863
+ */
64864
+ proto.payment.ReadGameplaySettlementFactRequest.prototype.setPacketJson = function(value) {
64865
+ return jspb.Message.setProto3StringField(this, 8, value);
64866
+ };
64867
+
64868
+
64869
+
64870
+
64871
+
64872
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64873
+ /**
64874
+ * Creates an object representation of this proto.
64875
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64876
+ * Optional fields that are not set will be set to undefined.
64877
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64878
+ * For the list of reserved names please see:
64879
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64880
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64881
+ * JSPB instance for transitional soy proto support:
64882
+ * http://goto/soy-param-migration
64883
+ * @return {!Object}
64884
+ */
64885
+ proto.payment.ReadGameplaySettlementFactResponse.prototype.toObject = function(opt_includeInstance) {
64886
+ return proto.payment.ReadGameplaySettlementFactResponse.toObject(opt_includeInstance, this);
64887
+ };
64888
+
64889
+
64890
+ /**
64891
+ * Static version of the {@see toObject} method.
64892
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64893
+ * the JSPB instance for transitional soy proto support:
64894
+ * http://goto/soy-param-migration
64895
+ * @param {!proto.payment.ReadGameplaySettlementFactResponse} msg The msg instance to transform.
64896
+ * @return {!Object}
64897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64898
+ */
64899
+ proto.payment.ReadGameplaySettlementFactResponse.toObject = function(includeInstance, msg) {
64900
+ var f, obj = {
64901
+ resultJson: jspb.Message.getFieldWithDefault(msg, 1, "")
64902
+ };
64903
+
64904
+ if (includeInstance) {
64905
+ obj.$jspbMessageInstance = msg;
64906
+ }
64907
+ return obj;
64908
+ };
64909
+ }
64910
+
64911
+
64912
+ /**
64913
+ * Deserializes binary data (in protobuf wire format).
64914
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64915
+ * @return {!proto.payment.ReadGameplaySettlementFactResponse}
64916
+ */
64917
+ proto.payment.ReadGameplaySettlementFactResponse.deserializeBinary = function(bytes) {
64918
+ var reader = new jspb.BinaryReader(bytes);
64919
+ var msg = new proto.payment.ReadGameplaySettlementFactResponse;
64920
+ return proto.payment.ReadGameplaySettlementFactResponse.deserializeBinaryFromReader(msg, reader);
64921
+ };
64922
+
64923
+
64924
+ /**
64925
+ * Deserializes binary data (in protobuf wire format) from the
64926
+ * given reader into the given message object.
64927
+ * @param {!proto.payment.ReadGameplaySettlementFactResponse} msg The message object to deserialize into.
64928
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64929
+ * @return {!proto.payment.ReadGameplaySettlementFactResponse}
64930
+ */
64931
+ proto.payment.ReadGameplaySettlementFactResponse.deserializeBinaryFromReader = function(msg, reader) {
64932
+ while (reader.nextField()) {
64933
+ if (reader.isEndGroup()) {
64934
+ break;
64935
+ }
64936
+ var field = reader.getFieldNumber();
64937
+ switch (field) {
64938
+ case 1:
64939
+ var value = /** @type {string} */ (reader.readString());
64940
+ msg.setResultJson(value);
64941
+ break;
64942
+ default:
64943
+ reader.skipField();
64944
+ break;
64945
+ }
64946
+ }
64947
+ return msg;
64948
+ };
64949
+
64950
+
64951
+ /**
64952
+ * Serializes the message to binary data (in protobuf wire format).
64953
+ * @return {!Uint8Array}
64954
+ */
64955
+ proto.payment.ReadGameplaySettlementFactResponse.prototype.serializeBinary = function() {
64956
+ var writer = new jspb.BinaryWriter();
64957
+ proto.payment.ReadGameplaySettlementFactResponse.serializeBinaryToWriter(this, writer);
64958
+ return writer.getResultBuffer();
64959
+ };
64960
+
64961
+
64962
+ /**
64963
+ * Serializes the given message to binary data (in protobuf wire
64964
+ * format), writing to the given BinaryWriter.
64965
+ * @param {!proto.payment.ReadGameplaySettlementFactResponse} message
64966
+ * @param {!jspb.BinaryWriter} writer
64967
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64968
+ */
64969
+ proto.payment.ReadGameplaySettlementFactResponse.serializeBinaryToWriter = function(message, writer) {
64970
+ var f = undefined;
64971
+ f = message.getResultJson();
64972
+ if (f.length > 0) {
64973
+ writer.writeString(
64974
+ 1,
64975
+ f
64976
+ );
64977
+ }
64978
+ };
64979
+
64980
+
64981
+ /**
64982
+ * optional string result_json = 1;
64983
+ * @return {string}
64984
+ */
64985
+ proto.payment.ReadGameplaySettlementFactResponse.prototype.getResultJson = function() {
64986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
64987
+ };
64988
+
64989
+
64990
+ /**
64991
+ * @param {string} value
64992
+ * @return {!proto.payment.ReadGameplaySettlementFactResponse} returns this
64993
+ */
64994
+ proto.payment.ReadGameplaySettlementFactResponse.prototype.setResultJson = function(value) {
64995
+ return jspb.Message.setProto3StringField(this, 1, value);
64996
+ };
64997
+
64998
+
64999
+
63882
65000
  /**
63883
65001
  * List of repeated fields within this message type.
63884
65002
  * @private {!Array<number>}