protobuf-platform 1.2.653 → 1.2.655

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
@@ -160,6 +160,7 @@ goog.exportSymbol('proto.game.PingRequest', null, global);
160
160
  goog.exportSymbol('proto.game.PongResponse', null, global);
161
161
  goog.exportSymbol('proto.game.ProviderCatalogBatchItem', null, global);
162
162
  goog.exportSymbol('proto.game.ProviderCatalogBatchResponse', null, global);
163
+ goog.exportSymbol('proto.game.ProviderCurrencyCapability', null, global);
163
164
  goog.exportSymbol('proto.game.ProviderCutoverAcceptedResponse', null, global);
164
165
  goog.exportSymbol('proto.game.ProviderCutoverProblemItem', null, global);
165
166
  goog.exportSymbol('proto.game.ProviderCutoverProviderItem', null, global);
@@ -200,6 +201,7 @@ goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
200
201
  goog.exportSymbol('proto.game.SearchGamesResponse', null, global);
201
202
  goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
202
203
  goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
204
+ goog.exportSymbol('proto.game.SetProviderCurrencyManagerEnabledRequest', null, global);
203
205
  goog.exportSymbol('proto.game.SyncGameImageUrlsForProviderRequest', null, global);
204
206
  goog.exportSymbol('proto.game.SyncGameImageUrlsRequest', null, global);
205
207
  goog.exportSymbol('proto.game.SyncImagesRequest', null, global);
@@ -1217,6 +1219,48 @@ if (goog.DEBUG && !COMPILED) {
1217
1219
  */
1218
1220
  proto.game.ProviderItem.displayName = 'proto.game.ProviderItem';
1219
1221
  }
1222
+ /**
1223
+ * Generated by JsPbCodeGenerator.
1224
+ * @param {Array=} opt_data Optional initial data array, typically from a
1225
+ * server response, or constructed directly in Javascript. The array is used
1226
+ * in place and becomes part of the constructed object. It is not cloned.
1227
+ * If no data is provided, the constructed object will be empty, but still
1228
+ * valid.
1229
+ * @extends {jspb.Message}
1230
+ * @constructor
1231
+ */
1232
+ proto.game.ProviderCurrencyCapability = function(opt_data) {
1233
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1234
+ };
1235
+ goog.inherits(proto.game.ProviderCurrencyCapability, jspb.Message);
1236
+ if (goog.DEBUG && !COMPILED) {
1237
+ /**
1238
+ * @public
1239
+ * @override
1240
+ */
1241
+ proto.game.ProviderCurrencyCapability.displayName = 'proto.game.ProviderCurrencyCapability';
1242
+ }
1243
+ /**
1244
+ * Generated by JsPbCodeGenerator.
1245
+ * @param {Array=} opt_data Optional initial data array, typically from a
1246
+ * server response, or constructed directly in Javascript. The array is used
1247
+ * in place and becomes part of the constructed object. It is not cloned.
1248
+ * If no data is provided, the constructed object will be empty, but still
1249
+ * valid.
1250
+ * @extends {jspb.Message}
1251
+ * @constructor
1252
+ */
1253
+ proto.game.SetProviderCurrencyManagerEnabledRequest = function(opt_data) {
1254
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1255
+ };
1256
+ goog.inherits(proto.game.SetProviderCurrencyManagerEnabledRequest, jspb.Message);
1257
+ if (goog.DEBUG && !COMPILED) {
1258
+ /**
1259
+ * @public
1260
+ * @override
1261
+ */
1262
+ proto.game.SetProviderCurrencyManagerEnabledRequest.displayName = 'proto.game.SetProviderCurrencyManagerEnabledRequest';
1263
+ }
1220
1264
  /**
1221
1265
  * Generated by JsPbCodeGenerator.
1222
1266
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -18444,7 +18488,7 @@ proto.game.TagGamesRequest.prototype.hasGeo = function() {
18444
18488
  * @private {!Array<number>}
18445
18489
  * @const
18446
18490
  */
18447
- proto.game.ProviderItem.repeatedFields_ = [13];
18491
+ proto.game.ProviderItem.repeatedFields_ = [13,14,15];
18448
18492
 
18449
18493
 
18450
18494
 
@@ -18490,7 +18534,10 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
18490
18534
  icon: jspb.Message.getFieldWithDefault(msg, 11, ""),
18491
18535
  iconCdn: jspb.Message.getFieldWithDefault(msg, 12, ""),
18492
18536
  translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
18493
- proto.game.GameEntityTranslationItem.toObject, includeInstance)
18537
+ proto.game.GameEntityTranslationItem.toObject, includeInstance),
18538
+ effectiveCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
18539
+ providerCurrenciesList: jspb.Message.toObjectList(msg.getProviderCurrenciesList(),
18540
+ proto.game.ProviderCurrencyCapability.toObject, includeInstance)
18494
18541
  };
18495
18542
 
18496
18543
  if (includeInstance) {
@@ -18580,6 +18627,15 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
18580
18627
  reader.readMessage(value,proto.game.GameEntityTranslationItem.deserializeBinaryFromReader);
18581
18628
  msg.addTranslations(value);
18582
18629
  break;
18630
+ case 14:
18631
+ var value = /** @type {string} */ (reader.readString());
18632
+ msg.addEffectiveCurrencies(value);
18633
+ break;
18634
+ case 15:
18635
+ var value = new proto.game.ProviderCurrencyCapability;
18636
+ reader.readMessage(value,proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader);
18637
+ msg.addProviderCurrencies(value);
18638
+ break;
18583
18639
  default:
18584
18640
  reader.skipField();
18585
18641
  break;
@@ -18701,6 +18757,21 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
18701
18757
  proto.game.GameEntityTranslationItem.serializeBinaryToWriter
18702
18758
  );
18703
18759
  }
18760
+ f = message.getEffectiveCurrenciesList();
18761
+ if (f.length > 0) {
18762
+ writer.writeRepeatedString(
18763
+ 14,
18764
+ f
18765
+ );
18766
+ }
18767
+ f = message.getProviderCurrenciesList();
18768
+ if (f.length > 0) {
18769
+ writer.writeRepeatedMessage(
18770
+ 15,
18771
+ f,
18772
+ proto.game.ProviderCurrencyCapability.serializeBinaryToWriter
18773
+ );
18774
+ }
18704
18775
  };
18705
18776
 
18706
18777
 
@@ -19174,6 +19245,521 @@ proto.game.ProviderItem.prototype.clearTranslationsList = function() {
19174
19245
  };
19175
19246
 
19176
19247
 
19248
+ /**
19249
+ * repeated string effective_currencies = 14;
19250
+ * @return {!Array<string>}
19251
+ */
19252
+ proto.game.ProviderItem.prototype.getEffectiveCurrenciesList = function() {
19253
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
19254
+ };
19255
+
19256
+
19257
+ /**
19258
+ * @param {!Array<string>} value
19259
+ * @return {!proto.game.ProviderItem} returns this
19260
+ */
19261
+ proto.game.ProviderItem.prototype.setEffectiveCurrenciesList = function(value) {
19262
+ return jspb.Message.setField(this, 14, value || []);
19263
+ };
19264
+
19265
+
19266
+ /**
19267
+ * @param {string} value
19268
+ * @param {number=} opt_index
19269
+ * @return {!proto.game.ProviderItem} returns this
19270
+ */
19271
+ proto.game.ProviderItem.prototype.addEffectiveCurrencies = function(value, opt_index) {
19272
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
19273
+ };
19274
+
19275
+
19276
+ /**
19277
+ * Clears the list making it empty but non-null.
19278
+ * @return {!proto.game.ProviderItem} returns this
19279
+ */
19280
+ proto.game.ProviderItem.prototype.clearEffectiveCurrenciesList = function() {
19281
+ return this.setEffectiveCurrenciesList([]);
19282
+ };
19283
+
19284
+
19285
+ /**
19286
+ * repeated ProviderCurrencyCapability provider_currencies = 15;
19287
+ * @return {!Array<!proto.game.ProviderCurrencyCapability>}
19288
+ */
19289
+ proto.game.ProviderItem.prototype.getProviderCurrenciesList = function() {
19290
+ return /** @type{!Array<!proto.game.ProviderCurrencyCapability>} */ (
19291
+ jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderCurrencyCapability, 15));
19292
+ };
19293
+
19294
+
19295
+ /**
19296
+ * @param {!Array<!proto.game.ProviderCurrencyCapability>} value
19297
+ * @return {!proto.game.ProviderItem} returns this
19298
+ */
19299
+ proto.game.ProviderItem.prototype.setProviderCurrenciesList = function(value) {
19300
+ return jspb.Message.setRepeatedWrapperField(this, 15, value);
19301
+ };
19302
+
19303
+
19304
+ /**
19305
+ * @param {!proto.game.ProviderCurrencyCapability=} opt_value
19306
+ * @param {number=} opt_index
19307
+ * @return {!proto.game.ProviderCurrencyCapability}
19308
+ */
19309
+ proto.game.ProviderItem.prototype.addProviderCurrencies = function(opt_value, opt_index) {
19310
+ return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.game.ProviderCurrencyCapability, opt_index);
19311
+ };
19312
+
19313
+
19314
+ /**
19315
+ * Clears the list making it empty but non-null.
19316
+ * @return {!proto.game.ProviderItem} returns this
19317
+ */
19318
+ proto.game.ProviderItem.prototype.clearProviderCurrenciesList = function() {
19319
+ return this.setProviderCurrenciesList([]);
19320
+ };
19321
+
19322
+
19323
+
19324
+
19325
+
19326
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19327
+ /**
19328
+ * Creates an object representation of this proto.
19329
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19330
+ * Optional fields that are not set will be set to undefined.
19331
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19332
+ * For the list of reserved names please see:
19333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19335
+ * JSPB instance for transitional soy proto support:
19336
+ * http://goto/soy-param-migration
19337
+ * @return {!Object}
19338
+ */
19339
+ proto.game.ProviderCurrencyCapability.prototype.toObject = function(opt_includeInstance) {
19340
+ return proto.game.ProviderCurrencyCapability.toObject(opt_includeInstance, this);
19341
+ };
19342
+
19343
+
19344
+ /**
19345
+ * Static version of the {@see toObject} method.
19346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19347
+ * the JSPB instance for transitional soy proto support:
19348
+ * http://goto/soy-param-migration
19349
+ * @param {!proto.game.ProviderCurrencyCapability} msg The msg instance to transform.
19350
+ * @return {!Object}
19351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19352
+ */
19353
+ proto.game.ProviderCurrencyCapability.toObject = function(includeInstance, msg) {
19354
+ var f, obj = {
19355
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
19356
+ providerSupported: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
19357
+ managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
19358
+ effectiveActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
19359
+ effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, "")
19360
+ };
19361
+
19362
+ if (includeInstance) {
19363
+ obj.$jspbMessageInstance = msg;
19364
+ }
19365
+ return obj;
19366
+ };
19367
+ }
19368
+
19369
+
19370
+ /**
19371
+ * Deserializes binary data (in protobuf wire format).
19372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19373
+ * @return {!proto.game.ProviderCurrencyCapability}
19374
+ */
19375
+ proto.game.ProviderCurrencyCapability.deserializeBinary = function(bytes) {
19376
+ var reader = new jspb.BinaryReader(bytes);
19377
+ var msg = new proto.game.ProviderCurrencyCapability;
19378
+ return proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader(msg, reader);
19379
+ };
19380
+
19381
+
19382
+ /**
19383
+ * Deserializes binary data (in protobuf wire format) from the
19384
+ * given reader into the given message object.
19385
+ * @param {!proto.game.ProviderCurrencyCapability} msg The message object to deserialize into.
19386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19387
+ * @return {!proto.game.ProviderCurrencyCapability}
19388
+ */
19389
+ proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader = function(msg, reader) {
19390
+ while (reader.nextField()) {
19391
+ if (reader.isEndGroup()) {
19392
+ break;
19393
+ }
19394
+ var field = reader.getFieldNumber();
19395
+ switch (field) {
19396
+ case 1:
19397
+ var value = /** @type {string} */ (reader.readString());
19398
+ msg.setCurrency(value);
19399
+ break;
19400
+ case 2:
19401
+ var value = /** @type {boolean} */ (reader.readBool());
19402
+ msg.setProviderSupported(value);
19403
+ break;
19404
+ case 3:
19405
+ var value = /** @type {boolean} */ (reader.readBool());
19406
+ msg.setManagerEnabled(value);
19407
+ break;
19408
+ case 4:
19409
+ var value = /** @type {boolean} */ (reader.readBool());
19410
+ msg.setEffectiveActive(value);
19411
+ break;
19412
+ case 5:
19413
+ var value = /** @type {string} */ (reader.readString());
19414
+ msg.setEffectiveStatus(value);
19415
+ break;
19416
+ default:
19417
+ reader.skipField();
19418
+ break;
19419
+ }
19420
+ }
19421
+ return msg;
19422
+ };
19423
+
19424
+
19425
+ /**
19426
+ * Serializes the message to binary data (in protobuf wire format).
19427
+ * @return {!Uint8Array}
19428
+ */
19429
+ proto.game.ProviderCurrencyCapability.prototype.serializeBinary = function() {
19430
+ var writer = new jspb.BinaryWriter();
19431
+ proto.game.ProviderCurrencyCapability.serializeBinaryToWriter(this, writer);
19432
+ return writer.getResultBuffer();
19433
+ };
19434
+
19435
+
19436
+ /**
19437
+ * Serializes the given message to binary data (in protobuf wire
19438
+ * format), writing to the given BinaryWriter.
19439
+ * @param {!proto.game.ProviderCurrencyCapability} message
19440
+ * @param {!jspb.BinaryWriter} writer
19441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19442
+ */
19443
+ proto.game.ProviderCurrencyCapability.serializeBinaryToWriter = function(message, writer) {
19444
+ var f = undefined;
19445
+ f = message.getCurrency();
19446
+ if (f.length > 0) {
19447
+ writer.writeString(
19448
+ 1,
19449
+ f
19450
+ );
19451
+ }
19452
+ f = message.getProviderSupported();
19453
+ if (f) {
19454
+ writer.writeBool(
19455
+ 2,
19456
+ f
19457
+ );
19458
+ }
19459
+ f = message.getManagerEnabled();
19460
+ if (f) {
19461
+ writer.writeBool(
19462
+ 3,
19463
+ f
19464
+ );
19465
+ }
19466
+ f = message.getEffectiveActive();
19467
+ if (f) {
19468
+ writer.writeBool(
19469
+ 4,
19470
+ f
19471
+ );
19472
+ }
19473
+ f = message.getEffectiveStatus();
19474
+ if (f.length > 0) {
19475
+ writer.writeString(
19476
+ 5,
19477
+ f
19478
+ );
19479
+ }
19480
+ };
19481
+
19482
+
19483
+ /**
19484
+ * optional string currency = 1;
19485
+ * @return {string}
19486
+ */
19487
+ proto.game.ProviderCurrencyCapability.prototype.getCurrency = function() {
19488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
19489
+ };
19490
+
19491
+
19492
+ /**
19493
+ * @param {string} value
19494
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19495
+ */
19496
+ proto.game.ProviderCurrencyCapability.prototype.setCurrency = function(value) {
19497
+ return jspb.Message.setProto3StringField(this, 1, value);
19498
+ };
19499
+
19500
+
19501
+ /**
19502
+ * optional bool provider_supported = 2;
19503
+ * @return {boolean}
19504
+ */
19505
+ proto.game.ProviderCurrencyCapability.prototype.getProviderSupported = function() {
19506
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
19507
+ };
19508
+
19509
+
19510
+ /**
19511
+ * @param {boolean} value
19512
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19513
+ */
19514
+ proto.game.ProviderCurrencyCapability.prototype.setProviderSupported = function(value) {
19515
+ return jspb.Message.setProto3BooleanField(this, 2, value);
19516
+ };
19517
+
19518
+
19519
+ /**
19520
+ * optional bool manager_enabled = 3;
19521
+ * @return {boolean}
19522
+ */
19523
+ proto.game.ProviderCurrencyCapability.prototype.getManagerEnabled = function() {
19524
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
19525
+ };
19526
+
19527
+
19528
+ /**
19529
+ * @param {boolean} value
19530
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19531
+ */
19532
+ proto.game.ProviderCurrencyCapability.prototype.setManagerEnabled = function(value) {
19533
+ return jspb.Message.setProto3BooleanField(this, 3, value);
19534
+ };
19535
+
19536
+
19537
+ /**
19538
+ * optional bool effective_active = 4;
19539
+ * @return {boolean}
19540
+ */
19541
+ proto.game.ProviderCurrencyCapability.prototype.getEffectiveActive = function() {
19542
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
19543
+ };
19544
+
19545
+
19546
+ /**
19547
+ * @param {boolean} value
19548
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19549
+ */
19550
+ proto.game.ProviderCurrencyCapability.prototype.setEffectiveActive = function(value) {
19551
+ return jspb.Message.setProto3BooleanField(this, 4, value);
19552
+ };
19553
+
19554
+
19555
+ /**
19556
+ * optional string effective_status = 5;
19557
+ * @return {string}
19558
+ */
19559
+ proto.game.ProviderCurrencyCapability.prototype.getEffectiveStatus = function() {
19560
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
19561
+ };
19562
+
19563
+
19564
+ /**
19565
+ * @param {string} value
19566
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19567
+ */
19568
+ proto.game.ProviderCurrencyCapability.prototype.setEffectiveStatus = function(value) {
19569
+ return jspb.Message.setProto3StringField(this, 5, value);
19570
+ };
19571
+
19572
+
19573
+
19574
+
19575
+
19576
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19577
+ /**
19578
+ * Creates an object representation of this proto.
19579
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19580
+ * Optional fields that are not set will be set to undefined.
19581
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19582
+ * For the list of reserved names please see:
19583
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19584
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19585
+ * JSPB instance for transitional soy proto support:
19586
+ * http://goto/soy-param-migration
19587
+ * @return {!Object}
19588
+ */
19589
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.toObject = function(opt_includeInstance) {
19590
+ return proto.game.SetProviderCurrencyManagerEnabledRequest.toObject(opt_includeInstance, this);
19591
+ };
19592
+
19593
+
19594
+ /**
19595
+ * Static version of the {@see toObject} method.
19596
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19597
+ * the JSPB instance for transitional soy proto support:
19598
+ * http://goto/soy-param-migration
19599
+ * @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} msg The msg instance to transform.
19600
+ * @return {!Object}
19601
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19602
+ */
19603
+ proto.game.SetProviderCurrencyManagerEnabledRequest.toObject = function(includeInstance, msg) {
19604
+ var f, obj = {
19605
+ providerId: jspb.Message.getFieldWithDefault(msg, 1, 0),
19606
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
19607
+ managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
19608
+ };
19609
+
19610
+ if (includeInstance) {
19611
+ obj.$jspbMessageInstance = msg;
19612
+ }
19613
+ return obj;
19614
+ };
19615
+ }
19616
+
19617
+
19618
+ /**
19619
+ * Deserializes binary data (in protobuf wire format).
19620
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19621
+ * @return {!proto.game.SetProviderCurrencyManagerEnabledRequest}
19622
+ */
19623
+ proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinary = function(bytes) {
19624
+ var reader = new jspb.BinaryReader(bytes);
19625
+ var msg = new proto.game.SetProviderCurrencyManagerEnabledRequest;
19626
+ return proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinaryFromReader(msg, reader);
19627
+ };
19628
+
19629
+
19630
+ /**
19631
+ * Deserializes binary data (in protobuf wire format) from the
19632
+ * given reader into the given message object.
19633
+ * @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} msg The message object to deserialize into.
19634
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19635
+ * @return {!proto.game.SetProviderCurrencyManagerEnabledRequest}
19636
+ */
19637
+ proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinaryFromReader = function(msg, reader) {
19638
+ while (reader.nextField()) {
19639
+ if (reader.isEndGroup()) {
19640
+ break;
19641
+ }
19642
+ var field = reader.getFieldNumber();
19643
+ switch (field) {
19644
+ case 1:
19645
+ var value = /** @type {number} */ (reader.readInt32());
19646
+ msg.setProviderId(value);
19647
+ break;
19648
+ case 2:
19649
+ var value = /** @type {string} */ (reader.readString());
19650
+ msg.setCurrency(value);
19651
+ break;
19652
+ case 3:
19653
+ var value = /** @type {boolean} */ (reader.readBool());
19654
+ msg.setManagerEnabled(value);
19655
+ break;
19656
+ default:
19657
+ reader.skipField();
19658
+ break;
19659
+ }
19660
+ }
19661
+ return msg;
19662
+ };
19663
+
19664
+
19665
+ /**
19666
+ * Serializes the message to binary data (in protobuf wire format).
19667
+ * @return {!Uint8Array}
19668
+ */
19669
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.serializeBinary = function() {
19670
+ var writer = new jspb.BinaryWriter();
19671
+ proto.game.SetProviderCurrencyManagerEnabledRequest.serializeBinaryToWriter(this, writer);
19672
+ return writer.getResultBuffer();
19673
+ };
19674
+
19675
+
19676
+ /**
19677
+ * Serializes the given message to binary data (in protobuf wire
19678
+ * format), writing to the given BinaryWriter.
19679
+ * @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} message
19680
+ * @param {!jspb.BinaryWriter} writer
19681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19682
+ */
19683
+ proto.game.SetProviderCurrencyManagerEnabledRequest.serializeBinaryToWriter = function(message, writer) {
19684
+ var f = undefined;
19685
+ f = message.getProviderId();
19686
+ if (f !== 0) {
19687
+ writer.writeInt32(
19688
+ 1,
19689
+ f
19690
+ );
19691
+ }
19692
+ f = message.getCurrency();
19693
+ if (f.length > 0) {
19694
+ writer.writeString(
19695
+ 2,
19696
+ f
19697
+ );
19698
+ }
19699
+ f = message.getManagerEnabled();
19700
+ if (f) {
19701
+ writer.writeBool(
19702
+ 3,
19703
+ f
19704
+ );
19705
+ }
19706
+ };
19707
+
19708
+
19709
+ /**
19710
+ * optional int32 provider_id = 1;
19711
+ * @return {number}
19712
+ */
19713
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getProviderId = function() {
19714
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19715
+ };
19716
+
19717
+
19718
+ /**
19719
+ * @param {number} value
19720
+ * @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
19721
+ */
19722
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setProviderId = function(value) {
19723
+ return jspb.Message.setProto3IntField(this, 1, value);
19724
+ };
19725
+
19726
+
19727
+ /**
19728
+ * optional string currency = 2;
19729
+ * @return {string}
19730
+ */
19731
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getCurrency = function() {
19732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19733
+ };
19734
+
19735
+
19736
+ /**
19737
+ * @param {string} value
19738
+ * @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
19739
+ */
19740
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setCurrency = function(value) {
19741
+ return jspb.Message.setProto3StringField(this, 2, value);
19742
+ };
19743
+
19744
+
19745
+ /**
19746
+ * optional bool manager_enabled = 3;
19747
+ * @return {boolean}
19748
+ */
19749
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getManagerEnabled = function() {
19750
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
19751
+ };
19752
+
19753
+
19754
+ /**
19755
+ * @param {boolean} value
19756
+ * @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
19757
+ */
19758
+ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setManagerEnabled = function(value) {
19759
+ return jspb.Message.setProto3BooleanField(this, 3, value);
19760
+ };
19761
+
19762
+
19177
19763
 
19178
19764
  /**
19179
19765
  * Oneof group definitions for this message. Each group defines the field
@@ -78,6 +78,8 @@ message LevelItem {
78
78
  optional string portrait_image = 14;
79
79
  optional string portrait_image_cdn = 15;
80
80
  optional int32 points_required = 16;
81
+ // Display-only card amount. It does not grant rewards.
82
+ optional string total_level_up_amount = 17;
81
83
  }
82
84
  message LevelRewardTranslationItem {
83
85
  string locale = 1;
@@ -87,6 +89,16 @@ message LevelRewardCashback {
87
89
  optional float percentage = 1;
88
90
  optional string currency = 2;
89
91
  }
92
+ message LevelRewardBonusReward {
93
+ string type = 1;
94
+ optional string amount = 2;
95
+ optional string currency = 3;
96
+ }
97
+ message LevelRewardBonus {
98
+ optional string type = 1;
99
+ optional string cadence = 2;
100
+ repeated LevelRewardBonusReward rewards = 3;
101
+ }
90
102
  message LevelRewardItem {
91
103
  optional int32 id = 1;
92
104
  string type = 2;
@@ -101,6 +113,7 @@ message LevelRewardItem {
101
113
  optional string amount = 11;
102
114
  optional bool is_available = 12;
103
115
  optional LevelRewardCashback cashback = 13;
116
+ optional LevelRewardBonus bonus = 14;
104
117
  }
105
118
  message LevelRewardRequest {
106
119
  string type = 1;
@@ -134,6 +147,7 @@ message LevelItemRequest {
134
147
  optional bool remove_mobile_image = 10;
135
148
  optional bool remove_portrait_image = 11;
136
149
  optional int32 points_required = 12;
150
+ optional string total_level_up_amount = 13;
137
151
  }
138
152
  message GetLevelRequest {
139
153
  int32 id = 1;
@@ -272,6 +286,7 @@ message UserLoyaltyResponse {
272
286
  optional string next_image = 15;
273
287
  optional string next_image_cdn = 16;
274
288
  repeated LevelRewardItem rewards = 17;
289
+ optional string total_level_up_amount = 18;
275
290
  }
276
291
  message UserLoyaltyPoint {
277
292
  int32 user_point_id = 1;