protobuf-platform 1.2.613 → 1.2.615

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/game/game_pb.js CHANGED
@@ -88,6 +88,8 @@ goog.exportSymbol('proto.game.GameImagesParsingTechnicalResponse', null, global)
88
88
  goog.exportSymbol('proto.game.GameItem', null, global);
89
89
  goog.exportSymbol('proto.game.GameItemRequest', null, global);
90
90
  goog.exportSymbol('proto.game.GameItemsResponse', null, global);
91
+ goog.exportSymbol('proto.game.GameLaunchCurrencyContext', null, global);
92
+ goog.exportSymbol('proto.game.GameLaunchWalletContext', null, global);
91
93
  goog.exportSymbol('proto.game.GamePoorItemsResponse', null, global);
92
94
  goog.exportSymbol('proto.game.GameRelationItem', null, global);
93
95
  goog.exportSymbol('proto.game.GameRelationsRequest', null, global);
@@ -2521,6 +2523,48 @@ if (goog.DEBUG && !COMPILED) {
2521
2523
  */
2522
2524
  proto.game.GameConfigCheckResponse.displayName = 'proto.game.GameConfigCheckResponse';
2523
2525
  }
2526
+ /**
2527
+ * Generated by JsPbCodeGenerator.
2528
+ * @param {Array=} opt_data Optional initial data array, typically from a
2529
+ * server response, or constructed directly in Javascript. The array is used
2530
+ * in place and becomes part of the constructed object. It is not cloned.
2531
+ * If no data is provided, the constructed object will be empty, but still
2532
+ * valid.
2533
+ * @extends {jspb.Message}
2534
+ * @constructor
2535
+ */
2536
+ proto.game.GameLaunchWalletContext = function(opt_data) {
2537
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2538
+ };
2539
+ goog.inherits(proto.game.GameLaunchWalletContext, jspb.Message);
2540
+ if (goog.DEBUG && !COMPILED) {
2541
+ /**
2542
+ * @public
2543
+ * @override
2544
+ */
2545
+ proto.game.GameLaunchWalletContext.displayName = 'proto.game.GameLaunchWalletContext';
2546
+ }
2547
+ /**
2548
+ * Generated by JsPbCodeGenerator.
2549
+ * @param {Array=} opt_data Optional initial data array, typically from a
2550
+ * server response, or constructed directly in Javascript. The array is used
2551
+ * in place and becomes part of the constructed object. It is not cloned.
2552
+ * If no data is provided, the constructed object will be empty, but still
2553
+ * valid.
2554
+ * @extends {jspb.Message}
2555
+ * @constructor
2556
+ */
2557
+ proto.game.GameLaunchCurrencyContext = function(opt_data) {
2558
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameLaunchCurrencyContext.repeatedFields_, null);
2559
+ };
2560
+ goog.inherits(proto.game.GameLaunchCurrencyContext, jspb.Message);
2561
+ if (goog.DEBUG && !COMPILED) {
2562
+ /**
2563
+ * @public
2564
+ * @override
2565
+ */
2566
+ proto.game.GameLaunchCurrencyContext.displayName = 'proto.game.GameLaunchCurrencyContext';
2567
+ }
2524
2568
  /**
2525
2569
  * Generated by JsPbCodeGenerator.
2526
2570
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -34914,7 +34958,9 @@ proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
34914
34958
  userDevice: jspb.Message.getFieldWithDefault(msg, 10, ""),
34915
34959
  userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0),
34916
34960
  userSessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
34917
- userIp: jspb.Message.getFieldWithDefault(msg, 13, "")
34961
+ userIp: jspb.Message.getFieldWithDefault(msg, 13, ""),
34962
+ walletCurrency: jspb.Message.getFieldWithDefault(msg, 14, ""),
34963
+ gameCurrency: jspb.Message.getFieldWithDefault(msg, 15, "")
34918
34964
  };
34919
34965
 
34920
34966
  if (includeInstance) {
@@ -35003,6 +35049,14 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
35003
35049
  var value = /** @type {string} */ (reader.readString());
35004
35050
  msg.setUserIp(value);
35005
35051
  break;
35052
+ case 14:
35053
+ var value = /** @type {string} */ (reader.readString());
35054
+ msg.setWalletCurrency(value);
35055
+ break;
35056
+ case 15:
35057
+ var value = /** @type {string} */ (reader.readString());
35058
+ msg.setGameCurrency(value);
35059
+ break;
35006
35060
  default:
35007
35061
  reader.skipField();
35008
35062
  break;
@@ -35123,6 +35177,20 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
35123
35177
  f
35124
35178
  );
35125
35179
  }
35180
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
35181
+ if (f != null) {
35182
+ writer.writeString(
35183
+ 14,
35184
+ f
35185
+ );
35186
+ }
35187
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
35188
+ if (f != null) {
35189
+ writer.writeString(
35190
+ 15,
35191
+ f
35192
+ );
35193
+ }
35126
35194
  };
35127
35195
 
35128
35196
 
@@ -35486,6 +35554,78 @@ proto.game.InitGameSessionRequest.prototype.hasUserIp = function() {
35486
35554
  };
35487
35555
 
35488
35556
 
35557
+ /**
35558
+ * optional string wallet_currency = 14;
35559
+ * @return {string}
35560
+ */
35561
+ proto.game.InitGameSessionRequest.prototype.getWalletCurrency = function() {
35562
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
35563
+ };
35564
+
35565
+
35566
+ /**
35567
+ * @param {string} value
35568
+ * @return {!proto.game.InitGameSessionRequest} returns this
35569
+ */
35570
+ proto.game.InitGameSessionRequest.prototype.setWalletCurrency = function(value) {
35571
+ return jspb.Message.setField(this, 14, value);
35572
+ };
35573
+
35574
+
35575
+ /**
35576
+ * Clears the field making it undefined.
35577
+ * @return {!proto.game.InitGameSessionRequest} returns this
35578
+ */
35579
+ proto.game.InitGameSessionRequest.prototype.clearWalletCurrency = function() {
35580
+ return jspb.Message.setField(this, 14, undefined);
35581
+ };
35582
+
35583
+
35584
+ /**
35585
+ * Returns whether this field is set.
35586
+ * @return {boolean}
35587
+ */
35588
+ proto.game.InitGameSessionRequest.prototype.hasWalletCurrency = function() {
35589
+ return jspb.Message.getField(this, 14) != null;
35590
+ };
35591
+
35592
+
35593
+ /**
35594
+ * optional string game_currency = 15;
35595
+ * @return {string}
35596
+ */
35597
+ proto.game.InitGameSessionRequest.prototype.getGameCurrency = function() {
35598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
35599
+ };
35600
+
35601
+
35602
+ /**
35603
+ * @param {string} value
35604
+ * @return {!proto.game.InitGameSessionRequest} returns this
35605
+ */
35606
+ proto.game.InitGameSessionRequest.prototype.setGameCurrency = function(value) {
35607
+ return jspb.Message.setField(this, 15, value);
35608
+ };
35609
+
35610
+
35611
+ /**
35612
+ * Clears the field making it undefined.
35613
+ * @return {!proto.game.InitGameSessionRequest} returns this
35614
+ */
35615
+ proto.game.InitGameSessionRequest.prototype.clearGameCurrency = function() {
35616
+ return jspb.Message.setField(this, 15, undefined);
35617
+ };
35618
+
35619
+
35620
+ /**
35621
+ * Returns whether this field is set.
35622
+ * @return {boolean}
35623
+ */
35624
+ proto.game.InitGameSessionRequest.prototype.hasGameCurrency = function() {
35625
+ return jspb.Message.getField(this, 15) != null;
35626
+ };
35627
+
35628
+
35489
35629
 
35490
35630
 
35491
35631
 
@@ -35531,7 +35671,9 @@ proto.game.InitGameSessionV2Request.toObject = function(includeInstance, msg) {
35531
35671
  userDevice: jspb.Message.getFieldWithDefault(msg, 11, ""),
35532
35672
  userSessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
35533
35673
  userIp: jspb.Message.getFieldWithDefault(msg, 13, ""),
35534
- selectedTournamentId: jspb.Message.getFieldWithDefault(msg, 14, 0)
35674
+ selectedTournamentId: jspb.Message.getFieldWithDefault(msg, 14, 0),
35675
+ walletCurrency: jspb.Message.getFieldWithDefault(msg, 15, ""),
35676
+ gameCurrency: jspb.Message.getFieldWithDefault(msg, 16, "")
35535
35677
  };
35536
35678
 
35537
35679
  if (includeInstance) {
@@ -35624,6 +35766,14 @@ proto.game.InitGameSessionV2Request.deserializeBinaryFromReader = function(msg,
35624
35766
  var value = /** @type {number} */ (reader.readUint64());
35625
35767
  msg.setSelectedTournamentId(value);
35626
35768
  break;
35769
+ case 15:
35770
+ var value = /** @type {string} */ (reader.readString());
35771
+ msg.setWalletCurrency(value);
35772
+ break;
35773
+ case 16:
35774
+ var value = /** @type {string} */ (reader.readString());
35775
+ msg.setGameCurrency(value);
35776
+ break;
35627
35777
  default:
35628
35778
  reader.skipField();
35629
35779
  break;
@@ -35751,6 +35901,20 @@ proto.game.InitGameSessionV2Request.serializeBinaryToWriter = function(message,
35751
35901
  f
35752
35902
  );
35753
35903
  }
35904
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
35905
+ if (f != null) {
35906
+ writer.writeString(
35907
+ 15,
35908
+ f
35909
+ );
35910
+ }
35911
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
35912
+ if (f != null) {
35913
+ writer.writeString(
35914
+ 16,
35915
+ f
35916
+ );
35917
+ }
35754
35918
  };
35755
35919
 
35756
35920
 
@@ -36150,6 +36314,78 @@ proto.game.InitGameSessionV2Request.prototype.hasSelectedTournamentId = function
36150
36314
  };
36151
36315
 
36152
36316
 
36317
+ /**
36318
+ * optional string wallet_currency = 15;
36319
+ * @return {string}
36320
+ */
36321
+ proto.game.InitGameSessionV2Request.prototype.getWalletCurrency = function() {
36322
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
36323
+ };
36324
+
36325
+
36326
+ /**
36327
+ * @param {string} value
36328
+ * @return {!proto.game.InitGameSessionV2Request} returns this
36329
+ */
36330
+ proto.game.InitGameSessionV2Request.prototype.setWalletCurrency = function(value) {
36331
+ return jspb.Message.setField(this, 15, value);
36332
+ };
36333
+
36334
+
36335
+ /**
36336
+ * Clears the field making it undefined.
36337
+ * @return {!proto.game.InitGameSessionV2Request} returns this
36338
+ */
36339
+ proto.game.InitGameSessionV2Request.prototype.clearWalletCurrency = function() {
36340
+ return jspb.Message.setField(this, 15, undefined);
36341
+ };
36342
+
36343
+
36344
+ /**
36345
+ * Returns whether this field is set.
36346
+ * @return {boolean}
36347
+ */
36348
+ proto.game.InitGameSessionV2Request.prototype.hasWalletCurrency = function() {
36349
+ return jspb.Message.getField(this, 15) != null;
36350
+ };
36351
+
36352
+
36353
+ /**
36354
+ * optional string game_currency = 16;
36355
+ * @return {string}
36356
+ */
36357
+ proto.game.InitGameSessionV2Request.prototype.getGameCurrency = function() {
36358
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
36359
+ };
36360
+
36361
+
36362
+ /**
36363
+ * @param {string} value
36364
+ * @return {!proto.game.InitGameSessionV2Request} returns this
36365
+ */
36366
+ proto.game.InitGameSessionV2Request.prototype.setGameCurrency = function(value) {
36367
+ return jspb.Message.setField(this, 16, value);
36368
+ };
36369
+
36370
+
36371
+ /**
36372
+ * Clears the field making it undefined.
36373
+ * @return {!proto.game.InitGameSessionV2Request} returns this
36374
+ */
36375
+ proto.game.InitGameSessionV2Request.prototype.clearGameCurrency = function() {
36376
+ return jspb.Message.setField(this, 16, undefined);
36377
+ };
36378
+
36379
+
36380
+ /**
36381
+ * Returns whether this field is set.
36382
+ * @return {boolean}
36383
+ */
36384
+ proto.game.InitGameSessionV2Request.prototype.hasGameCurrency = function() {
36385
+ return jspb.Message.getField(this, 16) != null;
36386
+ };
36387
+
36388
+
36153
36389
 
36154
36390
 
36155
36391
 
@@ -38232,6 +38468,412 @@ proto.game.GameConfigCheckResponse.prototype.hasHasDemo = function() {
38232
38468
 
38233
38469
 
38234
38470
 
38471
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38472
+ /**
38473
+ * Creates an object representation of this proto.
38474
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38475
+ * Optional fields that are not set will be set to undefined.
38476
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38477
+ * For the list of reserved names please see:
38478
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38479
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38480
+ * JSPB instance for transitional soy proto support:
38481
+ * http://goto/soy-param-migration
38482
+ * @return {!Object}
38483
+ */
38484
+ proto.game.GameLaunchWalletContext.prototype.toObject = function(opt_includeInstance) {
38485
+ return proto.game.GameLaunchWalletContext.toObject(opt_includeInstance, this);
38486
+ };
38487
+
38488
+
38489
+ /**
38490
+ * Static version of the {@see toObject} method.
38491
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38492
+ * the JSPB instance for transitional soy proto support:
38493
+ * http://goto/soy-param-migration
38494
+ * @param {!proto.game.GameLaunchWalletContext} msg The msg instance to transform.
38495
+ * @return {!Object}
38496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38497
+ */
38498
+ proto.game.GameLaunchWalletContext.toObject = function(includeInstance, msg) {
38499
+ var f, obj = {
38500
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
38501
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0),
38502
+ balanceMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
38503
+ balanceMajor: jspb.Message.getFieldWithDefault(msg, 4, "")
38504
+ };
38505
+
38506
+ if (includeInstance) {
38507
+ obj.$jspbMessageInstance = msg;
38508
+ }
38509
+ return obj;
38510
+ };
38511
+ }
38512
+
38513
+
38514
+ /**
38515
+ * Deserializes binary data (in protobuf wire format).
38516
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38517
+ * @return {!proto.game.GameLaunchWalletContext}
38518
+ */
38519
+ proto.game.GameLaunchWalletContext.deserializeBinary = function(bytes) {
38520
+ var reader = new jspb.BinaryReader(bytes);
38521
+ var msg = new proto.game.GameLaunchWalletContext;
38522
+ return proto.game.GameLaunchWalletContext.deserializeBinaryFromReader(msg, reader);
38523
+ };
38524
+
38525
+
38526
+ /**
38527
+ * Deserializes binary data (in protobuf wire format) from the
38528
+ * given reader into the given message object.
38529
+ * @param {!proto.game.GameLaunchWalletContext} msg The message object to deserialize into.
38530
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38531
+ * @return {!proto.game.GameLaunchWalletContext}
38532
+ */
38533
+ proto.game.GameLaunchWalletContext.deserializeBinaryFromReader = function(msg, reader) {
38534
+ while (reader.nextField()) {
38535
+ if (reader.isEndGroup()) {
38536
+ break;
38537
+ }
38538
+ var field = reader.getFieldNumber();
38539
+ switch (field) {
38540
+ case 1:
38541
+ var value = /** @type {string} */ (reader.readString());
38542
+ msg.setCurrency(value);
38543
+ break;
38544
+ case 2:
38545
+ var value = /** @type {number} */ (reader.readInt32());
38546
+ msg.setCurrencyScale(value);
38547
+ break;
38548
+ case 3:
38549
+ var value = /** @type {number} */ (reader.readInt64());
38550
+ msg.setBalanceMinor(value);
38551
+ break;
38552
+ case 4:
38553
+ var value = /** @type {string} */ (reader.readString());
38554
+ msg.setBalanceMajor(value);
38555
+ break;
38556
+ default:
38557
+ reader.skipField();
38558
+ break;
38559
+ }
38560
+ }
38561
+ return msg;
38562
+ };
38563
+
38564
+
38565
+ /**
38566
+ * Serializes the message to binary data (in protobuf wire format).
38567
+ * @return {!Uint8Array}
38568
+ */
38569
+ proto.game.GameLaunchWalletContext.prototype.serializeBinary = function() {
38570
+ var writer = new jspb.BinaryWriter();
38571
+ proto.game.GameLaunchWalletContext.serializeBinaryToWriter(this, writer);
38572
+ return writer.getResultBuffer();
38573
+ };
38574
+
38575
+
38576
+ /**
38577
+ * Serializes the given message to binary data (in protobuf wire
38578
+ * format), writing to the given BinaryWriter.
38579
+ * @param {!proto.game.GameLaunchWalletContext} message
38580
+ * @param {!jspb.BinaryWriter} writer
38581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38582
+ */
38583
+ proto.game.GameLaunchWalletContext.serializeBinaryToWriter = function(message, writer) {
38584
+ var f = undefined;
38585
+ f = message.getCurrency();
38586
+ if (f.length > 0) {
38587
+ writer.writeString(
38588
+ 1,
38589
+ f
38590
+ );
38591
+ }
38592
+ f = message.getCurrencyScale();
38593
+ if (f !== 0) {
38594
+ writer.writeInt32(
38595
+ 2,
38596
+ f
38597
+ );
38598
+ }
38599
+ f = message.getBalanceMinor();
38600
+ if (f !== 0) {
38601
+ writer.writeInt64(
38602
+ 3,
38603
+ f
38604
+ );
38605
+ }
38606
+ f = message.getBalanceMajor();
38607
+ if (f.length > 0) {
38608
+ writer.writeString(
38609
+ 4,
38610
+ f
38611
+ );
38612
+ }
38613
+ };
38614
+
38615
+
38616
+ /**
38617
+ * optional string currency = 1;
38618
+ * @return {string}
38619
+ */
38620
+ proto.game.GameLaunchWalletContext.prototype.getCurrency = function() {
38621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
38622
+ };
38623
+
38624
+
38625
+ /**
38626
+ * @param {string} value
38627
+ * @return {!proto.game.GameLaunchWalletContext} returns this
38628
+ */
38629
+ proto.game.GameLaunchWalletContext.prototype.setCurrency = function(value) {
38630
+ return jspb.Message.setProto3StringField(this, 1, value);
38631
+ };
38632
+
38633
+
38634
+ /**
38635
+ * optional int32 currency_scale = 2;
38636
+ * @return {number}
38637
+ */
38638
+ proto.game.GameLaunchWalletContext.prototype.getCurrencyScale = function() {
38639
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
38640
+ };
38641
+
38642
+
38643
+ /**
38644
+ * @param {number} value
38645
+ * @return {!proto.game.GameLaunchWalletContext} returns this
38646
+ */
38647
+ proto.game.GameLaunchWalletContext.prototype.setCurrencyScale = function(value) {
38648
+ return jspb.Message.setProto3IntField(this, 2, value);
38649
+ };
38650
+
38651
+
38652
+ /**
38653
+ * optional int64 balance_minor = 3;
38654
+ * @return {number}
38655
+ */
38656
+ proto.game.GameLaunchWalletContext.prototype.getBalanceMinor = function() {
38657
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
38658
+ };
38659
+
38660
+
38661
+ /**
38662
+ * @param {number} value
38663
+ * @return {!proto.game.GameLaunchWalletContext} returns this
38664
+ */
38665
+ proto.game.GameLaunchWalletContext.prototype.setBalanceMinor = function(value) {
38666
+ return jspb.Message.setProto3IntField(this, 3, value);
38667
+ };
38668
+
38669
+
38670
+ /**
38671
+ * optional string balance_major = 4;
38672
+ * @return {string}
38673
+ */
38674
+ proto.game.GameLaunchWalletContext.prototype.getBalanceMajor = function() {
38675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
38676
+ };
38677
+
38678
+
38679
+ /**
38680
+ * @param {string} value
38681
+ * @return {!proto.game.GameLaunchWalletContext} returns this
38682
+ */
38683
+ proto.game.GameLaunchWalletContext.prototype.setBalanceMajor = function(value) {
38684
+ return jspb.Message.setProto3StringField(this, 4, value);
38685
+ };
38686
+
38687
+
38688
+
38689
+ /**
38690
+ * List of repeated fields within this message type.
38691
+ * @private {!Array<number>}
38692
+ * @const
38693
+ */
38694
+ proto.game.GameLaunchCurrencyContext.repeatedFields_ = [2];
38695
+
38696
+
38697
+
38698
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38699
+ /**
38700
+ * Creates an object representation of this proto.
38701
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38702
+ * Optional fields that are not set will be set to undefined.
38703
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38704
+ * For the list of reserved names please see:
38705
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38706
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38707
+ * JSPB instance for transitional soy proto support:
38708
+ * http://goto/soy-param-migration
38709
+ * @return {!Object}
38710
+ */
38711
+ proto.game.GameLaunchCurrencyContext.prototype.toObject = function(opt_includeInstance) {
38712
+ return proto.game.GameLaunchCurrencyContext.toObject(opt_includeInstance, this);
38713
+ };
38714
+
38715
+
38716
+ /**
38717
+ * Static version of the {@see toObject} method.
38718
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38719
+ * the JSPB instance for transitional soy proto support:
38720
+ * http://goto/soy-param-migration
38721
+ * @param {!proto.game.GameLaunchCurrencyContext} msg The msg instance to transform.
38722
+ * @return {!Object}
38723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38724
+ */
38725
+ proto.game.GameLaunchCurrencyContext.toObject = function(includeInstance, msg) {
38726
+ var f, obj = {
38727
+ selectedCurrency: jspb.Message.getFieldWithDefault(msg, 1, ""),
38728
+ availableCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
38729
+ };
38730
+
38731
+ if (includeInstance) {
38732
+ obj.$jspbMessageInstance = msg;
38733
+ }
38734
+ return obj;
38735
+ };
38736
+ }
38737
+
38738
+
38739
+ /**
38740
+ * Deserializes binary data (in protobuf wire format).
38741
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38742
+ * @return {!proto.game.GameLaunchCurrencyContext}
38743
+ */
38744
+ proto.game.GameLaunchCurrencyContext.deserializeBinary = function(bytes) {
38745
+ var reader = new jspb.BinaryReader(bytes);
38746
+ var msg = new proto.game.GameLaunchCurrencyContext;
38747
+ return proto.game.GameLaunchCurrencyContext.deserializeBinaryFromReader(msg, reader);
38748
+ };
38749
+
38750
+
38751
+ /**
38752
+ * Deserializes binary data (in protobuf wire format) from the
38753
+ * given reader into the given message object.
38754
+ * @param {!proto.game.GameLaunchCurrencyContext} msg The message object to deserialize into.
38755
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38756
+ * @return {!proto.game.GameLaunchCurrencyContext}
38757
+ */
38758
+ proto.game.GameLaunchCurrencyContext.deserializeBinaryFromReader = function(msg, reader) {
38759
+ while (reader.nextField()) {
38760
+ if (reader.isEndGroup()) {
38761
+ break;
38762
+ }
38763
+ var field = reader.getFieldNumber();
38764
+ switch (field) {
38765
+ case 1:
38766
+ var value = /** @type {string} */ (reader.readString());
38767
+ msg.setSelectedCurrency(value);
38768
+ break;
38769
+ case 2:
38770
+ var value = /** @type {string} */ (reader.readString());
38771
+ msg.addAvailableCurrencies(value);
38772
+ break;
38773
+ default:
38774
+ reader.skipField();
38775
+ break;
38776
+ }
38777
+ }
38778
+ return msg;
38779
+ };
38780
+
38781
+
38782
+ /**
38783
+ * Serializes the message to binary data (in protobuf wire format).
38784
+ * @return {!Uint8Array}
38785
+ */
38786
+ proto.game.GameLaunchCurrencyContext.prototype.serializeBinary = function() {
38787
+ var writer = new jspb.BinaryWriter();
38788
+ proto.game.GameLaunchCurrencyContext.serializeBinaryToWriter(this, writer);
38789
+ return writer.getResultBuffer();
38790
+ };
38791
+
38792
+
38793
+ /**
38794
+ * Serializes the given message to binary data (in protobuf wire
38795
+ * format), writing to the given BinaryWriter.
38796
+ * @param {!proto.game.GameLaunchCurrencyContext} message
38797
+ * @param {!jspb.BinaryWriter} writer
38798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38799
+ */
38800
+ proto.game.GameLaunchCurrencyContext.serializeBinaryToWriter = function(message, writer) {
38801
+ var f = undefined;
38802
+ f = message.getSelectedCurrency();
38803
+ if (f.length > 0) {
38804
+ writer.writeString(
38805
+ 1,
38806
+ f
38807
+ );
38808
+ }
38809
+ f = message.getAvailableCurrenciesList();
38810
+ if (f.length > 0) {
38811
+ writer.writeRepeatedString(
38812
+ 2,
38813
+ f
38814
+ );
38815
+ }
38816
+ };
38817
+
38818
+
38819
+ /**
38820
+ * optional string selected_currency = 1;
38821
+ * @return {string}
38822
+ */
38823
+ proto.game.GameLaunchCurrencyContext.prototype.getSelectedCurrency = function() {
38824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
38825
+ };
38826
+
38827
+
38828
+ /**
38829
+ * @param {string} value
38830
+ * @return {!proto.game.GameLaunchCurrencyContext} returns this
38831
+ */
38832
+ proto.game.GameLaunchCurrencyContext.prototype.setSelectedCurrency = function(value) {
38833
+ return jspb.Message.setProto3StringField(this, 1, value);
38834
+ };
38835
+
38836
+
38837
+ /**
38838
+ * repeated string available_currencies = 2;
38839
+ * @return {!Array<string>}
38840
+ */
38841
+ proto.game.GameLaunchCurrencyContext.prototype.getAvailableCurrenciesList = function() {
38842
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
38843
+ };
38844
+
38845
+
38846
+ /**
38847
+ * @param {!Array<string>} value
38848
+ * @return {!proto.game.GameLaunchCurrencyContext} returns this
38849
+ */
38850
+ proto.game.GameLaunchCurrencyContext.prototype.setAvailableCurrenciesList = function(value) {
38851
+ return jspb.Message.setField(this, 2, value || []);
38852
+ };
38853
+
38854
+
38855
+ /**
38856
+ * @param {string} value
38857
+ * @param {number=} opt_index
38858
+ * @return {!proto.game.GameLaunchCurrencyContext} returns this
38859
+ */
38860
+ proto.game.GameLaunchCurrencyContext.prototype.addAvailableCurrencies = function(value, opt_index) {
38861
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
38862
+ };
38863
+
38864
+
38865
+ /**
38866
+ * Clears the list making it empty but non-null.
38867
+ * @return {!proto.game.GameLaunchCurrencyContext} returns this
38868
+ */
38869
+ proto.game.GameLaunchCurrencyContext.prototype.clearAvailableCurrenciesList = function() {
38870
+ return this.setAvailableCurrenciesList([]);
38871
+ };
38872
+
38873
+
38874
+
38875
+
38876
+
38235
38877
  if (jspb.Message.GENERATE_TO_OBJECT) {
38236
38878
  /**
38237
38879
  * Creates an object representation of this proto.
@@ -38273,7 +38915,9 @@ proto.game.InitGameSessionResponse.toObject = function(includeInstance, msg) {
38273
38915
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
38274
38916
  hasDemo: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
38275
38917
  launchType: jspb.Message.getFieldWithDefault(msg, 12, ""),
38276
- launchHtml: jspb.Message.getFieldWithDefault(msg, 13, "")
38918
+ launchHtml: jspb.Message.getFieldWithDefault(msg, 13, ""),
38919
+ wallet: (f = msg.getWallet()) && proto.game.GameLaunchWalletContext.toObject(includeInstance, f),
38920
+ gameCurrency: (f = msg.getGameCurrency()) && proto.game.GameLaunchCurrencyContext.toObject(includeInstance, f)
38277
38921
  };
38278
38922
 
38279
38923
  if (includeInstance) {
@@ -38362,6 +39006,16 @@ proto.game.InitGameSessionResponse.deserializeBinaryFromReader = function(msg, r
38362
39006
  var value = /** @type {string} */ (reader.readString());
38363
39007
  msg.setLaunchHtml(value);
38364
39008
  break;
39009
+ case 14:
39010
+ var value = new proto.game.GameLaunchWalletContext;
39011
+ reader.readMessage(value,proto.game.GameLaunchWalletContext.deserializeBinaryFromReader);
39012
+ msg.setWallet(value);
39013
+ break;
39014
+ case 15:
39015
+ var value = new proto.game.GameLaunchCurrencyContext;
39016
+ reader.readMessage(value,proto.game.GameLaunchCurrencyContext.deserializeBinaryFromReader);
39017
+ msg.setGameCurrency(value);
39018
+ break;
38365
39019
  default:
38366
39020
  reader.skipField();
38367
39021
  break;
@@ -38482,6 +39136,22 @@ proto.game.InitGameSessionResponse.serializeBinaryToWriter = function(message, w
38482
39136
  f
38483
39137
  );
38484
39138
  }
39139
+ f = message.getWallet();
39140
+ if (f != null) {
39141
+ writer.writeMessage(
39142
+ 14,
39143
+ f,
39144
+ proto.game.GameLaunchWalletContext.serializeBinaryToWriter
39145
+ );
39146
+ }
39147
+ f = message.getGameCurrency();
39148
+ if (f != null) {
39149
+ writer.writeMessage(
39150
+ 15,
39151
+ f,
39152
+ proto.game.GameLaunchCurrencyContext.serializeBinaryToWriter
39153
+ );
39154
+ }
38485
39155
  };
38486
39156
 
38487
39157
 
@@ -38827,6 +39497,80 @@ proto.game.InitGameSessionResponse.prototype.hasLaunchHtml = function() {
38827
39497
  };
38828
39498
 
38829
39499
 
39500
+ /**
39501
+ * optional GameLaunchWalletContext wallet = 14;
39502
+ * @return {?proto.game.GameLaunchWalletContext}
39503
+ */
39504
+ proto.game.InitGameSessionResponse.prototype.getWallet = function() {
39505
+ return /** @type{?proto.game.GameLaunchWalletContext} */ (
39506
+ jspb.Message.getWrapperField(this, proto.game.GameLaunchWalletContext, 14));
39507
+ };
39508
+
39509
+
39510
+ /**
39511
+ * @param {?proto.game.GameLaunchWalletContext|undefined} value
39512
+ * @return {!proto.game.InitGameSessionResponse} returns this
39513
+ */
39514
+ proto.game.InitGameSessionResponse.prototype.setWallet = function(value) {
39515
+ return jspb.Message.setWrapperField(this, 14, value);
39516
+ };
39517
+
39518
+
39519
+ /**
39520
+ * Clears the message field making it undefined.
39521
+ * @return {!proto.game.InitGameSessionResponse} returns this
39522
+ */
39523
+ proto.game.InitGameSessionResponse.prototype.clearWallet = function() {
39524
+ return this.setWallet(undefined);
39525
+ };
39526
+
39527
+
39528
+ /**
39529
+ * Returns whether this field is set.
39530
+ * @return {boolean}
39531
+ */
39532
+ proto.game.InitGameSessionResponse.prototype.hasWallet = function() {
39533
+ return jspb.Message.getField(this, 14) != null;
39534
+ };
39535
+
39536
+
39537
+ /**
39538
+ * optional GameLaunchCurrencyContext game_currency = 15;
39539
+ * @return {?proto.game.GameLaunchCurrencyContext}
39540
+ */
39541
+ proto.game.InitGameSessionResponse.prototype.getGameCurrency = function() {
39542
+ return /** @type{?proto.game.GameLaunchCurrencyContext} */ (
39543
+ jspb.Message.getWrapperField(this, proto.game.GameLaunchCurrencyContext, 15));
39544
+ };
39545
+
39546
+
39547
+ /**
39548
+ * @param {?proto.game.GameLaunchCurrencyContext|undefined} value
39549
+ * @return {!proto.game.InitGameSessionResponse} returns this
39550
+ */
39551
+ proto.game.InitGameSessionResponse.prototype.setGameCurrency = function(value) {
39552
+ return jspb.Message.setWrapperField(this, 15, value);
39553
+ };
39554
+
39555
+
39556
+ /**
39557
+ * Clears the message field making it undefined.
39558
+ * @return {!proto.game.InitGameSessionResponse} returns this
39559
+ */
39560
+ proto.game.InitGameSessionResponse.prototype.clearGameCurrency = function() {
39561
+ return this.setGameCurrency(undefined);
39562
+ };
39563
+
39564
+
39565
+ /**
39566
+ * Returns whether this field is set.
39567
+ * @return {boolean}
39568
+ */
39569
+ proto.game.InitGameSessionResponse.prototype.hasGameCurrency = function() {
39570
+ return jspb.Message.getField(this, 15) != null;
39571
+ };
39572
+
39573
+
38830
39574
 
38831
39575
 
38832
39576