protobuf-platform 1.2.726 → 1.2.728

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/bet/bet.proto CHANGED
@@ -482,6 +482,15 @@ message SportBetListItem {
482
482
  optional string market = 30;
483
483
  optional string outcome = 31;
484
484
  optional string provider_betslip_id = 32; // Authoritative BetBy betslip identifier; absent when unavailable.
485
+ // Related settlement SportAction for a placement row. Absent when none exists.
486
+ // settlement_amount_decimal is the stored action amount at the 4-decimal history
487
+ // scale. It is the provider credit or refund, never stake minus payout.
488
+ optional string settlement_action = 33;
489
+ optional string settlement_amount_decimal = 34;
490
+ optional string settlement_currency = 35;
491
+ // Stored amount selected for history display. Not a calculated profit.
492
+ optional string history_amount_decimal = 36;
493
+ optional string history_amount_role = 37; // stake, win, loss, settlement, or returned.
485
494
  }
486
495
 
487
496
  message SportBetsHistoryResponse {
package/bet/bet_pb.js CHANGED
@@ -17782,7 +17782,12 @@ proto.bet.SportBetListItem.toObject = function(includeInstance, msg) {
17782
17782
  competition: jspb.Message.getFieldWithDefault(msg, 29, ""),
17783
17783
  market: jspb.Message.getFieldWithDefault(msg, 30, ""),
17784
17784
  outcome: jspb.Message.getFieldWithDefault(msg, 31, ""),
17785
- providerBetslipId: jspb.Message.getFieldWithDefault(msg, 32, "")
17785
+ providerBetslipId: jspb.Message.getFieldWithDefault(msg, 32, ""),
17786
+ settlementAction: jspb.Message.getFieldWithDefault(msg, 33, ""),
17787
+ settlementAmountDecimal: jspb.Message.getFieldWithDefault(msg, 34, ""),
17788
+ settlementCurrency: jspb.Message.getFieldWithDefault(msg, 35, ""),
17789
+ historyAmountDecimal: jspb.Message.getFieldWithDefault(msg, 36, ""),
17790
+ historyAmountRole: jspb.Message.getFieldWithDefault(msg, 37, "")
17786
17791
  };
17787
17792
 
17788
17793
  if (includeInstance) {
@@ -17944,6 +17949,26 @@ proto.bet.SportBetListItem.deserializeBinaryFromReader = function(msg, reader) {
17944
17949
  var value = /** @type {string} */ (reader.readString());
17945
17950
  msg.setProviderBetslipId(value);
17946
17951
  break;
17952
+ case 33:
17953
+ var value = /** @type {string} */ (reader.readString());
17954
+ msg.setSettlementAction(value);
17955
+ break;
17956
+ case 34:
17957
+ var value = /** @type {string} */ (reader.readString());
17958
+ msg.setSettlementAmountDecimal(value);
17959
+ break;
17960
+ case 35:
17961
+ var value = /** @type {string} */ (reader.readString());
17962
+ msg.setSettlementCurrency(value);
17963
+ break;
17964
+ case 36:
17965
+ var value = /** @type {string} */ (reader.readString());
17966
+ msg.setHistoryAmountDecimal(value);
17967
+ break;
17968
+ case 37:
17969
+ var value = /** @type {string} */ (reader.readString());
17970
+ msg.setHistoryAmountRole(value);
17971
+ break;
17947
17972
  default:
17948
17973
  reader.skipField();
17949
17974
  break;
@@ -18191,6 +18216,41 @@ proto.bet.SportBetListItem.serializeBinaryToWriter = function(message, writer) {
18191
18216
  f
18192
18217
  );
18193
18218
  }
18219
+ f = /** @type {string} */ (jspb.Message.getField(message, 33));
18220
+ if (f != null) {
18221
+ writer.writeString(
18222
+ 33,
18223
+ f
18224
+ );
18225
+ }
18226
+ f = /** @type {string} */ (jspb.Message.getField(message, 34));
18227
+ if (f != null) {
18228
+ writer.writeString(
18229
+ 34,
18230
+ f
18231
+ );
18232
+ }
18233
+ f = /** @type {string} */ (jspb.Message.getField(message, 35));
18234
+ if (f != null) {
18235
+ writer.writeString(
18236
+ 35,
18237
+ f
18238
+ );
18239
+ }
18240
+ f = /** @type {string} */ (jspb.Message.getField(message, 36));
18241
+ if (f != null) {
18242
+ writer.writeString(
18243
+ 36,
18244
+ f
18245
+ );
18246
+ }
18247
+ f = /** @type {string} */ (jspb.Message.getField(message, 37));
18248
+ if (f != null) {
18249
+ writer.writeString(
18250
+ 37,
18251
+ f
18252
+ );
18253
+ }
18194
18254
  };
18195
18255
 
18196
18256
 
@@ -19222,6 +19282,186 @@ proto.bet.SportBetListItem.prototype.hasProviderBetslipId = function() {
19222
19282
  };
19223
19283
 
19224
19284
 
19285
+ /**
19286
+ * optional string settlement_action = 33;
19287
+ * @return {string}
19288
+ */
19289
+ proto.bet.SportBetListItem.prototype.getSettlementAction = function() {
19290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, ""));
19291
+ };
19292
+
19293
+
19294
+ /**
19295
+ * @param {string} value
19296
+ * @return {!proto.bet.SportBetListItem} returns this
19297
+ */
19298
+ proto.bet.SportBetListItem.prototype.setSettlementAction = function(value) {
19299
+ return jspb.Message.setField(this, 33, value);
19300
+ };
19301
+
19302
+
19303
+ /**
19304
+ * Clears the field making it undefined.
19305
+ * @return {!proto.bet.SportBetListItem} returns this
19306
+ */
19307
+ proto.bet.SportBetListItem.prototype.clearSettlementAction = function() {
19308
+ return jspb.Message.setField(this, 33, undefined);
19309
+ };
19310
+
19311
+
19312
+ /**
19313
+ * Returns whether this field is set.
19314
+ * @return {boolean}
19315
+ */
19316
+ proto.bet.SportBetListItem.prototype.hasSettlementAction = function() {
19317
+ return jspb.Message.getField(this, 33) != null;
19318
+ };
19319
+
19320
+
19321
+ /**
19322
+ * optional string settlement_amount_decimal = 34;
19323
+ * @return {string}
19324
+ */
19325
+ proto.bet.SportBetListItem.prototype.getSettlementAmountDecimal = function() {
19326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
19327
+ };
19328
+
19329
+
19330
+ /**
19331
+ * @param {string} value
19332
+ * @return {!proto.bet.SportBetListItem} returns this
19333
+ */
19334
+ proto.bet.SportBetListItem.prototype.setSettlementAmountDecimal = function(value) {
19335
+ return jspb.Message.setField(this, 34, value);
19336
+ };
19337
+
19338
+
19339
+ /**
19340
+ * Clears the field making it undefined.
19341
+ * @return {!proto.bet.SportBetListItem} returns this
19342
+ */
19343
+ proto.bet.SportBetListItem.prototype.clearSettlementAmountDecimal = function() {
19344
+ return jspb.Message.setField(this, 34, undefined);
19345
+ };
19346
+
19347
+
19348
+ /**
19349
+ * Returns whether this field is set.
19350
+ * @return {boolean}
19351
+ */
19352
+ proto.bet.SportBetListItem.prototype.hasSettlementAmountDecimal = function() {
19353
+ return jspb.Message.getField(this, 34) != null;
19354
+ };
19355
+
19356
+
19357
+ /**
19358
+ * optional string settlement_currency = 35;
19359
+ * @return {string}
19360
+ */
19361
+ proto.bet.SportBetListItem.prototype.getSettlementCurrency = function() {
19362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
19363
+ };
19364
+
19365
+
19366
+ /**
19367
+ * @param {string} value
19368
+ * @return {!proto.bet.SportBetListItem} returns this
19369
+ */
19370
+ proto.bet.SportBetListItem.prototype.setSettlementCurrency = function(value) {
19371
+ return jspb.Message.setField(this, 35, value);
19372
+ };
19373
+
19374
+
19375
+ /**
19376
+ * Clears the field making it undefined.
19377
+ * @return {!proto.bet.SportBetListItem} returns this
19378
+ */
19379
+ proto.bet.SportBetListItem.prototype.clearSettlementCurrency = function() {
19380
+ return jspb.Message.setField(this, 35, undefined);
19381
+ };
19382
+
19383
+
19384
+ /**
19385
+ * Returns whether this field is set.
19386
+ * @return {boolean}
19387
+ */
19388
+ proto.bet.SportBetListItem.prototype.hasSettlementCurrency = function() {
19389
+ return jspb.Message.getField(this, 35) != null;
19390
+ };
19391
+
19392
+
19393
+ /**
19394
+ * optional string history_amount_decimal = 36;
19395
+ * @return {string}
19396
+ */
19397
+ proto.bet.SportBetListItem.prototype.getHistoryAmountDecimal = function() {
19398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, ""));
19399
+ };
19400
+
19401
+
19402
+ /**
19403
+ * @param {string} value
19404
+ * @return {!proto.bet.SportBetListItem} returns this
19405
+ */
19406
+ proto.bet.SportBetListItem.prototype.setHistoryAmountDecimal = function(value) {
19407
+ return jspb.Message.setField(this, 36, value);
19408
+ };
19409
+
19410
+
19411
+ /**
19412
+ * Clears the field making it undefined.
19413
+ * @return {!proto.bet.SportBetListItem} returns this
19414
+ */
19415
+ proto.bet.SportBetListItem.prototype.clearHistoryAmountDecimal = function() {
19416
+ return jspb.Message.setField(this, 36, undefined);
19417
+ };
19418
+
19419
+
19420
+ /**
19421
+ * Returns whether this field is set.
19422
+ * @return {boolean}
19423
+ */
19424
+ proto.bet.SportBetListItem.prototype.hasHistoryAmountDecimal = function() {
19425
+ return jspb.Message.getField(this, 36) != null;
19426
+ };
19427
+
19428
+
19429
+ /**
19430
+ * optional string history_amount_role = 37;
19431
+ * @return {string}
19432
+ */
19433
+ proto.bet.SportBetListItem.prototype.getHistoryAmountRole = function() {
19434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
19435
+ };
19436
+
19437
+
19438
+ /**
19439
+ * @param {string} value
19440
+ * @return {!proto.bet.SportBetListItem} returns this
19441
+ */
19442
+ proto.bet.SportBetListItem.prototype.setHistoryAmountRole = function(value) {
19443
+ return jspb.Message.setField(this, 37, value);
19444
+ };
19445
+
19446
+
19447
+ /**
19448
+ * Clears the field making it undefined.
19449
+ * @return {!proto.bet.SportBetListItem} returns this
19450
+ */
19451
+ proto.bet.SportBetListItem.prototype.clearHistoryAmountRole = function() {
19452
+ return jspb.Message.setField(this, 37, undefined);
19453
+ };
19454
+
19455
+
19456
+ /**
19457
+ * Returns whether this field is set.
19458
+ * @return {boolean}
19459
+ */
19460
+ proto.bet.SportBetListItem.prototype.hasHistoryAmountRole = function() {
19461
+ return jspb.Message.getField(this, 37) != null;
19462
+ };
19463
+
19464
+
19225
19465
 
19226
19466
  /**
19227
19467
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.726",
3
+ "version": "1.2.728",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -87,6 +87,7 @@ service Payment {
87
87
  returns (GameplayProviderIdentityResult);
88
88
  rpc fenceGameplayProviderTransactions(FenceGameplayProviderTransactionsRequest)
89
89
  returns (FenceGameplayProviderTransactionsResponse);
90
+ rpc resolveGuardedGameplayScope(ResolveGuardedGameplayScopeRequest) returns (ResolveGuardedGameplayScopeResponse);
90
91
  rpc settleGuardedGameplay(SettleGuardedGameplayRequest)
91
92
  returns (SettleGameplayResponse);
92
93
 
@@ -1788,3 +1789,17 @@ message SettleGuardedGameplayRequest {
1788
1789
  repeated string reversal_refs = 6;
1789
1790
  bool close_round = 7;
1790
1791
  }
1792
+
1793
+ // Resolves immutable provider scope and establishes mandatory guarded admission.
1794
+ message ResolveGuardedGameplayScopeRequest {
1795
+ uint32 protocol_version = 1;
1796
+ string namespace = 2;
1797
+ string provider = 3;
1798
+ string operator_id = 4;
1799
+ }
1800
+
1801
+ message ResolveGuardedGameplayScopeResponse {
1802
+ uint32 protocol_version = 1;
1803
+ GameplayProviderScope scope = 2;
1804
+ string admission_id = 3;
1805
+ }
@@ -1137,6 +1137,28 @@ function deserialize_payment_ResolveGameWalletContextResponse(buffer_arg) {
1137
1137
  return payment_pb.ResolveGameWalletContextResponse.deserializeBinary(new Uint8Array(buffer_arg));
1138
1138
  }
1139
1139
 
1140
+ function serialize_payment_ResolveGuardedGameplayScopeRequest(arg) {
1141
+ if (!(arg instanceof payment_pb.ResolveGuardedGameplayScopeRequest)) {
1142
+ throw new Error('Expected argument of type payment.ResolveGuardedGameplayScopeRequest');
1143
+ }
1144
+ return Buffer.from(arg.serializeBinary());
1145
+ }
1146
+
1147
+ function deserialize_payment_ResolveGuardedGameplayScopeRequest(buffer_arg) {
1148
+ return payment_pb.ResolveGuardedGameplayScopeRequest.deserializeBinary(new Uint8Array(buffer_arg));
1149
+ }
1150
+
1151
+ function serialize_payment_ResolveGuardedGameplayScopeResponse(arg) {
1152
+ if (!(arg instanceof payment_pb.ResolveGuardedGameplayScopeResponse)) {
1153
+ throw new Error('Expected argument of type payment.ResolveGuardedGameplayScopeResponse');
1154
+ }
1155
+ return Buffer.from(arg.serializeBinary());
1156
+ }
1157
+
1158
+ function deserialize_payment_ResolveGuardedGameplayScopeResponse(buffer_arg) {
1159
+ return payment_pb.ResolveGuardedGameplayScopeResponse.deserializeBinary(new Uint8Array(buffer_arg));
1160
+ }
1161
+
1140
1162
  function serialize_payment_SegmentedUserRequest(arg) {
1141
1163
  if (!(arg instanceof payment_pb.SegmentedUserRequest)) {
1142
1164
  throw new Error('Expected argument of type payment.SegmentedUserRequest');
@@ -2078,6 +2100,17 @@ readGameplayProviderIdentity: {
2078
2100
  responseSerialize: serialize_payment_FenceGameplayProviderTransactionsResponse,
2079
2101
  responseDeserialize: deserialize_payment_FenceGameplayProviderTransactionsResponse,
2080
2102
  },
2103
+ resolveGuardedGameplayScope: {
2104
+ path: '/payment.Payment/resolveGuardedGameplayScope',
2105
+ requestStream: false,
2106
+ responseStream: false,
2107
+ requestType: payment_pb.ResolveGuardedGameplayScopeRequest,
2108
+ responseType: payment_pb.ResolveGuardedGameplayScopeResponse,
2109
+ requestSerialize: serialize_payment_ResolveGuardedGameplayScopeRequest,
2110
+ requestDeserialize: deserialize_payment_ResolveGuardedGameplayScopeRequest,
2111
+ responseSerialize: serialize_payment_ResolveGuardedGameplayScopeResponse,
2112
+ responseDeserialize: deserialize_payment_ResolveGuardedGameplayScopeResponse,
2113
+ },
2081
2114
  settleGuardedGameplay: {
2082
2115
  path: '/payment.Payment/settleGuardedGameplay',
2083
2116
  requestStream: false,
@@ -161,6 +161,8 @@ goog.exportSymbol('proto.payment.RegisterGameplayPrecisionSessionRequest', null,
161
161
  goog.exportSymbol('proto.payment.ReserveRealFundsRequest', null, global);
162
162
  goog.exportSymbol('proto.payment.ResolveGameWalletContextRequest', null, global);
163
163
  goog.exportSymbol('proto.payment.ResolveGameWalletContextResponse', null, global);
164
+ goog.exportSymbol('proto.payment.ResolveGuardedGameplayScopeRequest', null, global);
165
+ goog.exportSymbol('proto.payment.ResolveGuardedGameplayScopeResponse', null, global);
164
166
  goog.exportSymbol('proto.payment.SavedDepositCard', null, global);
165
167
  goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
166
168
  goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
@@ -3634,6 +3636,48 @@ if (goog.DEBUG && !COMPILED) {
3634
3636
  */
3635
3637
  proto.payment.SettleGuardedGameplayRequest.displayName = 'proto.payment.SettleGuardedGameplayRequest';
3636
3638
  }
3639
+ /**
3640
+ * Generated by JsPbCodeGenerator.
3641
+ * @param {Array=} opt_data Optional initial data array, typically from a
3642
+ * server response, or constructed directly in Javascript. The array is used
3643
+ * in place and becomes part of the constructed object. It is not cloned.
3644
+ * If no data is provided, the constructed object will be empty, but still
3645
+ * valid.
3646
+ * @extends {jspb.Message}
3647
+ * @constructor
3648
+ */
3649
+ proto.payment.ResolveGuardedGameplayScopeRequest = function(opt_data) {
3650
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3651
+ };
3652
+ goog.inherits(proto.payment.ResolveGuardedGameplayScopeRequest, jspb.Message);
3653
+ if (goog.DEBUG && !COMPILED) {
3654
+ /**
3655
+ * @public
3656
+ * @override
3657
+ */
3658
+ proto.payment.ResolveGuardedGameplayScopeRequest.displayName = 'proto.payment.ResolveGuardedGameplayScopeRequest';
3659
+ }
3660
+ /**
3661
+ * Generated by JsPbCodeGenerator.
3662
+ * @param {Array=} opt_data Optional initial data array, typically from a
3663
+ * server response, or constructed directly in Javascript. The array is used
3664
+ * in place and becomes part of the constructed object. It is not cloned.
3665
+ * If no data is provided, the constructed object will be empty, but still
3666
+ * valid.
3667
+ * @extends {jspb.Message}
3668
+ * @constructor
3669
+ */
3670
+ proto.payment.ResolveGuardedGameplayScopeResponse = function(opt_data) {
3671
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3672
+ };
3673
+ goog.inherits(proto.payment.ResolveGuardedGameplayScopeResponse, jspb.Message);
3674
+ if (goog.DEBUG && !COMPILED) {
3675
+ /**
3676
+ * @public
3677
+ * @override
3678
+ */
3679
+ proto.payment.ResolveGuardedGameplayScopeResponse.displayName = 'proto.payment.ResolveGuardedGameplayScopeResponse';
3680
+ }
3637
3681
 
3638
3682
 
3639
3683
 
@@ -70400,6 +70444,437 @@ proto.payment.SettleGuardedGameplayRequest.prototype.setCloseRound = function(va
70400
70444
  };
70401
70445
 
70402
70446
 
70447
+
70448
+
70449
+
70450
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70451
+ /**
70452
+ * Creates an object representation of this proto.
70453
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70454
+ * Optional fields that are not set will be set to undefined.
70455
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70456
+ * For the list of reserved names please see:
70457
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70458
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70459
+ * JSPB instance for transitional soy proto support:
70460
+ * http://goto/soy-param-migration
70461
+ * @return {!Object}
70462
+ */
70463
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.toObject = function(opt_includeInstance) {
70464
+ return proto.payment.ResolveGuardedGameplayScopeRequest.toObject(opt_includeInstance, this);
70465
+ };
70466
+
70467
+
70468
+ /**
70469
+ * Static version of the {@see toObject} method.
70470
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70471
+ * the JSPB instance for transitional soy proto support:
70472
+ * http://goto/soy-param-migration
70473
+ * @param {!proto.payment.ResolveGuardedGameplayScopeRequest} msg The msg instance to transform.
70474
+ * @return {!Object}
70475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70476
+ */
70477
+ proto.payment.ResolveGuardedGameplayScopeRequest.toObject = function(includeInstance, msg) {
70478
+ var f, obj = {
70479
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
70480
+ namespace: jspb.Message.getFieldWithDefault(msg, 2, ""),
70481
+ provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
70482
+ operatorId: jspb.Message.getFieldWithDefault(msg, 4, "")
70483
+ };
70484
+
70485
+ if (includeInstance) {
70486
+ obj.$jspbMessageInstance = msg;
70487
+ }
70488
+ return obj;
70489
+ };
70490
+ }
70491
+
70492
+
70493
+ /**
70494
+ * Deserializes binary data (in protobuf wire format).
70495
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70496
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest}
70497
+ */
70498
+ proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinary = function(bytes) {
70499
+ var reader = new jspb.BinaryReader(bytes);
70500
+ var msg = new proto.payment.ResolveGuardedGameplayScopeRequest;
70501
+ return proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinaryFromReader(msg, reader);
70502
+ };
70503
+
70504
+
70505
+ /**
70506
+ * Deserializes binary data (in protobuf wire format) from the
70507
+ * given reader into the given message object.
70508
+ * @param {!proto.payment.ResolveGuardedGameplayScopeRequest} msg The message object to deserialize into.
70509
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70510
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest}
70511
+ */
70512
+ proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
70513
+ while (reader.nextField()) {
70514
+ if (reader.isEndGroup()) {
70515
+ break;
70516
+ }
70517
+ var field = reader.getFieldNumber();
70518
+ switch (field) {
70519
+ case 1:
70520
+ var value = /** @type {number} */ (reader.readUint32());
70521
+ msg.setProtocolVersion(value);
70522
+ break;
70523
+ case 2:
70524
+ var value = /** @type {string} */ (reader.readString());
70525
+ msg.setNamespace(value);
70526
+ break;
70527
+ case 3:
70528
+ var value = /** @type {string} */ (reader.readString());
70529
+ msg.setProvider(value);
70530
+ break;
70531
+ case 4:
70532
+ var value = /** @type {string} */ (reader.readString());
70533
+ msg.setOperatorId(value);
70534
+ break;
70535
+ default:
70536
+ reader.skipField();
70537
+ break;
70538
+ }
70539
+ }
70540
+ return msg;
70541
+ };
70542
+
70543
+
70544
+ /**
70545
+ * Serializes the message to binary data (in protobuf wire format).
70546
+ * @return {!Uint8Array}
70547
+ */
70548
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.serializeBinary = function() {
70549
+ var writer = new jspb.BinaryWriter();
70550
+ proto.payment.ResolveGuardedGameplayScopeRequest.serializeBinaryToWriter(this, writer);
70551
+ return writer.getResultBuffer();
70552
+ };
70553
+
70554
+
70555
+ /**
70556
+ * Serializes the given message to binary data (in protobuf wire
70557
+ * format), writing to the given BinaryWriter.
70558
+ * @param {!proto.payment.ResolveGuardedGameplayScopeRequest} message
70559
+ * @param {!jspb.BinaryWriter} writer
70560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70561
+ */
70562
+ proto.payment.ResolveGuardedGameplayScopeRequest.serializeBinaryToWriter = function(message, writer) {
70563
+ var f = undefined;
70564
+ f = message.getProtocolVersion();
70565
+ if (f !== 0) {
70566
+ writer.writeUint32(
70567
+ 1,
70568
+ f
70569
+ );
70570
+ }
70571
+ f = message.getNamespace();
70572
+ if (f.length > 0) {
70573
+ writer.writeString(
70574
+ 2,
70575
+ f
70576
+ );
70577
+ }
70578
+ f = message.getProvider();
70579
+ if (f.length > 0) {
70580
+ writer.writeString(
70581
+ 3,
70582
+ f
70583
+ );
70584
+ }
70585
+ f = message.getOperatorId();
70586
+ if (f.length > 0) {
70587
+ writer.writeString(
70588
+ 4,
70589
+ f
70590
+ );
70591
+ }
70592
+ };
70593
+
70594
+
70595
+ /**
70596
+ * optional uint32 protocol_version = 1;
70597
+ * @return {number}
70598
+ */
70599
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getProtocolVersion = function() {
70600
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
70601
+ };
70602
+
70603
+
70604
+ /**
70605
+ * @param {number} value
70606
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
70607
+ */
70608
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setProtocolVersion = function(value) {
70609
+ return jspb.Message.setProto3IntField(this, 1, value);
70610
+ };
70611
+
70612
+
70613
+ /**
70614
+ * optional string namespace = 2;
70615
+ * @return {string}
70616
+ */
70617
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getNamespace = function() {
70618
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
70619
+ };
70620
+
70621
+
70622
+ /**
70623
+ * @param {string} value
70624
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
70625
+ */
70626
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setNamespace = function(value) {
70627
+ return jspb.Message.setProto3StringField(this, 2, value);
70628
+ };
70629
+
70630
+
70631
+ /**
70632
+ * optional string provider = 3;
70633
+ * @return {string}
70634
+ */
70635
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getProvider = function() {
70636
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
70637
+ };
70638
+
70639
+
70640
+ /**
70641
+ * @param {string} value
70642
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
70643
+ */
70644
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setProvider = function(value) {
70645
+ return jspb.Message.setProto3StringField(this, 3, value);
70646
+ };
70647
+
70648
+
70649
+ /**
70650
+ * optional string operator_id = 4;
70651
+ * @return {string}
70652
+ */
70653
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getOperatorId = function() {
70654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
70655
+ };
70656
+
70657
+
70658
+ /**
70659
+ * @param {string} value
70660
+ * @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
70661
+ */
70662
+ proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setOperatorId = function(value) {
70663
+ return jspb.Message.setProto3StringField(this, 4, value);
70664
+ };
70665
+
70666
+
70667
+
70668
+
70669
+
70670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70671
+ /**
70672
+ * Creates an object representation of this proto.
70673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70674
+ * Optional fields that are not set will be set to undefined.
70675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70676
+ * For the list of reserved names please see:
70677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70679
+ * JSPB instance for transitional soy proto support:
70680
+ * http://goto/soy-param-migration
70681
+ * @return {!Object}
70682
+ */
70683
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.toObject = function(opt_includeInstance) {
70684
+ return proto.payment.ResolveGuardedGameplayScopeResponse.toObject(opt_includeInstance, this);
70685
+ };
70686
+
70687
+
70688
+ /**
70689
+ * Static version of the {@see toObject} method.
70690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70691
+ * the JSPB instance for transitional soy proto support:
70692
+ * http://goto/soy-param-migration
70693
+ * @param {!proto.payment.ResolveGuardedGameplayScopeResponse} msg The msg instance to transform.
70694
+ * @return {!Object}
70695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70696
+ */
70697
+ proto.payment.ResolveGuardedGameplayScopeResponse.toObject = function(includeInstance, msg) {
70698
+ var f, obj = {
70699
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
70700
+ scope: (f = msg.getScope()) && proto.payment.GameplayProviderScope.toObject(includeInstance, f),
70701
+ admissionId: jspb.Message.getFieldWithDefault(msg, 3, "")
70702
+ };
70703
+
70704
+ if (includeInstance) {
70705
+ obj.$jspbMessageInstance = msg;
70706
+ }
70707
+ return obj;
70708
+ };
70709
+ }
70710
+
70711
+
70712
+ /**
70713
+ * Deserializes binary data (in protobuf wire format).
70714
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70715
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse}
70716
+ */
70717
+ proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinary = function(bytes) {
70718
+ var reader = new jspb.BinaryReader(bytes);
70719
+ var msg = new proto.payment.ResolveGuardedGameplayScopeResponse;
70720
+ return proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinaryFromReader(msg, reader);
70721
+ };
70722
+
70723
+
70724
+ /**
70725
+ * Deserializes binary data (in protobuf wire format) from the
70726
+ * given reader into the given message object.
70727
+ * @param {!proto.payment.ResolveGuardedGameplayScopeResponse} msg The message object to deserialize into.
70728
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70729
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse}
70730
+ */
70731
+ proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinaryFromReader = function(msg, reader) {
70732
+ while (reader.nextField()) {
70733
+ if (reader.isEndGroup()) {
70734
+ break;
70735
+ }
70736
+ var field = reader.getFieldNumber();
70737
+ switch (field) {
70738
+ case 1:
70739
+ var value = /** @type {number} */ (reader.readUint32());
70740
+ msg.setProtocolVersion(value);
70741
+ break;
70742
+ case 2:
70743
+ var value = new proto.payment.GameplayProviderScope;
70744
+ reader.readMessage(value,proto.payment.GameplayProviderScope.deserializeBinaryFromReader);
70745
+ msg.setScope(value);
70746
+ break;
70747
+ case 3:
70748
+ var value = /** @type {string} */ (reader.readString());
70749
+ msg.setAdmissionId(value);
70750
+ break;
70751
+ default:
70752
+ reader.skipField();
70753
+ break;
70754
+ }
70755
+ }
70756
+ return msg;
70757
+ };
70758
+
70759
+
70760
+ /**
70761
+ * Serializes the message to binary data (in protobuf wire format).
70762
+ * @return {!Uint8Array}
70763
+ */
70764
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.serializeBinary = function() {
70765
+ var writer = new jspb.BinaryWriter();
70766
+ proto.payment.ResolveGuardedGameplayScopeResponse.serializeBinaryToWriter(this, writer);
70767
+ return writer.getResultBuffer();
70768
+ };
70769
+
70770
+
70771
+ /**
70772
+ * Serializes the given message to binary data (in protobuf wire
70773
+ * format), writing to the given BinaryWriter.
70774
+ * @param {!proto.payment.ResolveGuardedGameplayScopeResponse} message
70775
+ * @param {!jspb.BinaryWriter} writer
70776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70777
+ */
70778
+ proto.payment.ResolveGuardedGameplayScopeResponse.serializeBinaryToWriter = function(message, writer) {
70779
+ var f = undefined;
70780
+ f = message.getProtocolVersion();
70781
+ if (f !== 0) {
70782
+ writer.writeUint32(
70783
+ 1,
70784
+ f
70785
+ );
70786
+ }
70787
+ f = message.getScope();
70788
+ if (f != null) {
70789
+ writer.writeMessage(
70790
+ 2,
70791
+ f,
70792
+ proto.payment.GameplayProviderScope.serializeBinaryToWriter
70793
+ );
70794
+ }
70795
+ f = message.getAdmissionId();
70796
+ if (f.length > 0) {
70797
+ writer.writeString(
70798
+ 3,
70799
+ f
70800
+ );
70801
+ }
70802
+ };
70803
+
70804
+
70805
+ /**
70806
+ * optional uint32 protocol_version = 1;
70807
+ * @return {number}
70808
+ */
70809
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getProtocolVersion = function() {
70810
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
70811
+ };
70812
+
70813
+
70814
+ /**
70815
+ * @param {number} value
70816
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
70817
+ */
70818
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setProtocolVersion = function(value) {
70819
+ return jspb.Message.setProto3IntField(this, 1, value);
70820
+ };
70821
+
70822
+
70823
+ /**
70824
+ * optional GameplayProviderScope scope = 2;
70825
+ * @return {?proto.payment.GameplayProviderScope}
70826
+ */
70827
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getScope = function() {
70828
+ return /** @type{?proto.payment.GameplayProviderScope} */ (
70829
+ jspb.Message.getWrapperField(this, proto.payment.GameplayProviderScope, 2));
70830
+ };
70831
+
70832
+
70833
+ /**
70834
+ * @param {?proto.payment.GameplayProviderScope|undefined} value
70835
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
70836
+ */
70837
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setScope = function(value) {
70838
+ return jspb.Message.setWrapperField(this, 2, value);
70839
+ };
70840
+
70841
+
70842
+ /**
70843
+ * Clears the message field making it undefined.
70844
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
70845
+ */
70846
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.clearScope = function() {
70847
+ return this.setScope(undefined);
70848
+ };
70849
+
70850
+
70851
+ /**
70852
+ * Returns whether this field is set.
70853
+ * @return {boolean}
70854
+ */
70855
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.hasScope = function() {
70856
+ return jspb.Message.getField(this, 2) != null;
70857
+ };
70858
+
70859
+
70860
+ /**
70861
+ * optional string admission_id = 3;
70862
+ * @return {string}
70863
+ */
70864
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getAdmissionId = function() {
70865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
70866
+ };
70867
+
70868
+
70869
+ /**
70870
+ * @param {string} value
70871
+ * @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
70872
+ */
70873
+ proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setAdmissionId = function(value) {
70874
+ return jspb.Message.setProto3StringField(this, 3, value);
70875
+ };
70876
+
70877
+
70403
70878
  /**
70404
70879
  * @enum {number}
70405
70880
  */