protobuf-platform 1.0.125 → 1.0.127

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
@@ -59,6 +59,7 @@ goog.exportSymbol('proto.game.GetFileRequest', null, global);
59
59
  goog.exportSymbol('proto.game.GetGameRequest', null, global);
60
60
  goog.exportSymbol('proto.game.GetProviderRequest', null, global);
61
61
  goog.exportSymbol('proto.game.GetTagRequest', null, global);
62
+ goog.exportSymbol('proto.game.GetWagerListRequest', null, global);
62
63
  goog.exportSymbol('proto.game.InitDemoGameSessionRequest', null, global);
63
64
  goog.exportSymbol('proto.game.InitGameSessionRequest', null, global);
64
65
  goog.exportSymbol('proto.game.InitGameSessionResponse', null, global);
@@ -93,6 +94,11 @@ goog.exportSymbol('proto.game.TagStatusResponse', null, global);
93
94
  goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
94
95
  goog.exportSymbol('proto.game.VendorActionRequest', null, global);
95
96
  goog.exportSymbol('proto.game.VendorActionResponse', null, global);
97
+ goog.exportSymbol('proto.game.WagerListGamesRequest', null, global);
98
+ goog.exportSymbol('proto.game.WagerListItem', null, global);
99
+ goog.exportSymbol('proto.game.WagerListItemsResponse', null, global);
100
+ goog.exportSymbol('proto.game.WagerListRequest', null, global);
101
+ goog.exportSymbol('proto.game.WagerListResponse', null, global);
96
102
  /**
97
103
  * Generated by JsPbCodeGenerator.
98
104
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1500,6 +1506,132 @@ if (goog.DEBUG && !COMPILED) {
1500
1506
  */
1501
1507
  proto.game.FreeSpinCampaignResponse.displayName = 'proto.game.FreeSpinCampaignResponse';
1502
1508
  }
1509
+ /**
1510
+ * Generated by JsPbCodeGenerator.
1511
+ * @param {Array=} opt_data Optional initial data array, typically from a
1512
+ * server response, or constructed directly in Javascript. The array is used
1513
+ * in place and becomes part of the constructed object. It is not cloned.
1514
+ * If no data is provided, the constructed object will be empty, but still
1515
+ * valid.
1516
+ * @extends {jspb.Message}
1517
+ * @constructor
1518
+ */
1519
+ proto.game.GetWagerListRequest = function(opt_data) {
1520
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1521
+ };
1522
+ goog.inherits(proto.game.GetWagerListRequest, jspb.Message);
1523
+ if (goog.DEBUG && !COMPILED) {
1524
+ /**
1525
+ * @public
1526
+ * @override
1527
+ */
1528
+ proto.game.GetWagerListRequest.displayName = 'proto.game.GetWagerListRequest';
1529
+ }
1530
+ /**
1531
+ * Generated by JsPbCodeGenerator.
1532
+ * @param {Array=} opt_data Optional initial data array, typically from a
1533
+ * server response, or constructed directly in Javascript. The array is used
1534
+ * in place and becomes part of the constructed object. It is not cloned.
1535
+ * If no data is provided, the constructed object will be empty, but still
1536
+ * valid.
1537
+ * @extends {jspb.Message}
1538
+ * @constructor
1539
+ */
1540
+ proto.game.WagerListRequest = function(opt_data) {
1541
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1542
+ };
1543
+ goog.inherits(proto.game.WagerListRequest, jspb.Message);
1544
+ if (goog.DEBUG && !COMPILED) {
1545
+ /**
1546
+ * @public
1547
+ * @override
1548
+ */
1549
+ proto.game.WagerListRequest.displayName = 'proto.game.WagerListRequest';
1550
+ }
1551
+ /**
1552
+ * Generated by JsPbCodeGenerator.
1553
+ * @param {Array=} opt_data Optional initial data array, typically from a
1554
+ * server response, or constructed directly in Javascript. The array is used
1555
+ * in place and becomes part of the constructed object. It is not cloned.
1556
+ * If no data is provided, the constructed object will be empty, but still
1557
+ * valid.
1558
+ * @extends {jspb.Message}
1559
+ * @constructor
1560
+ */
1561
+ proto.game.WagerListGamesRequest = function(opt_data) {
1562
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.WagerListGamesRequest.repeatedFields_, null);
1563
+ };
1564
+ goog.inherits(proto.game.WagerListGamesRequest, jspb.Message);
1565
+ if (goog.DEBUG && !COMPILED) {
1566
+ /**
1567
+ * @public
1568
+ * @override
1569
+ */
1570
+ proto.game.WagerListGamesRequest.displayName = 'proto.game.WagerListGamesRequest';
1571
+ }
1572
+ /**
1573
+ * Generated by JsPbCodeGenerator.
1574
+ * @param {Array=} opt_data Optional initial data array, typically from a
1575
+ * server response, or constructed directly in Javascript. The array is used
1576
+ * in place and becomes part of the constructed object. It is not cloned.
1577
+ * If no data is provided, the constructed object will be empty, but still
1578
+ * valid.
1579
+ * @extends {jspb.Message}
1580
+ * @constructor
1581
+ */
1582
+ proto.game.WagerListItem = function(opt_data) {
1583
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1584
+ };
1585
+ goog.inherits(proto.game.WagerListItem, jspb.Message);
1586
+ if (goog.DEBUG && !COMPILED) {
1587
+ /**
1588
+ * @public
1589
+ * @override
1590
+ */
1591
+ proto.game.WagerListItem.displayName = 'proto.game.WagerListItem';
1592
+ }
1593
+ /**
1594
+ * Generated by JsPbCodeGenerator.
1595
+ * @param {Array=} opt_data Optional initial data array, typically from a
1596
+ * server response, or constructed directly in Javascript. The array is used
1597
+ * in place and becomes part of the constructed object. It is not cloned.
1598
+ * If no data is provided, the constructed object will be empty, but still
1599
+ * valid.
1600
+ * @extends {jspb.Message}
1601
+ * @constructor
1602
+ */
1603
+ proto.game.WagerListResponse = function(opt_data) {
1604
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1605
+ };
1606
+ goog.inherits(proto.game.WagerListResponse, jspb.Message);
1607
+ if (goog.DEBUG && !COMPILED) {
1608
+ /**
1609
+ * @public
1610
+ * @override
1611
+ */
1612
+ proto.game.WagerListResponse.displayName = 'proto.game.WagerListResponse';
1613
+ }
1614
+ /**
1615
+ * Generated by JsPbCodeGenerator.
1616
+ * @param {Array=} opt_data Optional initial data array, typically from a
1617
+ * server response, or constructed directly in Javascript. The array is used
1618
+ * in place and becomes part of the constructed object. It is not cloned.
1619
+ * If no data is provided, the constructed object will be empty, but still
1620
+ * valid.
1621
+ * @extends {jspb.Message}
1622
+ * @constructor
1623
+ */
1624
+ proto.game.WagerListItemsResponse = function(opt_data) {
1625
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.WagerListItemsResponse.repeatedFields_, null);
1626
+ };
1627
+ goog.inherits(proto.game.WagerListItemsResponse, jspb.Message);
1628
+ if (goog.DEBUG && !COMPILED) {
1629
+ /**
1630
+ * @public
1631
+ * @override
1632
+ */
1633
+ proto.game.WagerListItemsResponse.displayName = 'proto.game.WagerListItemsResponse';
1634
+ }
1503
1635
 
1504
1636
 
1505
1637
 
@@ -18049,4 +18181,1403 @@ proto.game.FreeSpinCampaignResponse.prototype.setData = function(value) {
18049
18181
  };
18050
18182
 
18051
18183
 
18184
+
18185
+
18186
+
18187
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18188
+ /**
18189
+ * Creates an object representation of this proto.
18190
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18191
+ * Optional fields that are not set will be set to undefined.
18192
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18193
+ * For the list of reserved names please see:
18194
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18195
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18196
+ * JSPB instance for transitional soy proto support:
18197
+ * http://goto/soy-param-migration
18198
+ * @return {!Object}
18199
+ */
18200
+ proto.game.GetWagerListRequest.prototype.toObject = function(opt_includeInstance) {
18201
+ return proto.game.GetWagerListRequest.toObject(opt_includeInstance, this);
18202
+ };
18203
+
18204
+
18205
+ /**
18206
+ * Static version of the {@see toObject} method.
18207
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18208
+ * the JSPB instance for transitional soy proto support:
18209
+ * http://goto/soy-param-migration
18210
+ * @param {!proto.game.GetWagerListRequest} msg The msg instance to transform.
18211
+ * @return {!Object}
18212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18213
+ */
18214
+ proto.game.GetWagerListRequest.toObject = function(includeInstance, msg) {
18215
+ var f, obj = {
18216
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18217
+ onlyGames: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
18218
+ };
18219
+
18220
+ if (includeInstance) {
18221
+ obj.$jspbMessageInstance = msg;
18222
+ }
18223
+ return obj;
18224
+ };
18225
+ }
18226
+
18227
+
18228
+ /**
18229
+ * Deserializes binary data (in protobuf wire format).
18230
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18231
+ * @return {!proto.game.GetWagerListRequest}
18232
+ */
18233
+ proto.game.GetWagerListRequest.deserializeBinary = function(bytes) {
18234
+ var reader = new jspb.BinaryReader(bytes);
18235
+ var msg = new proto.game.GetWagerListRequest;
18236
+ return proto.game.GetWagerListRequest.deserializeBinaryFromReader(msg, reader);
18237
+ };
18238
+
18239
+
18240
+ /**
18241
+ * Deserializes binary data (in protobuf wire format) from the
18242
+ * given reader into the given message object.
18243
+ * @param {!proto.game.GetWagerListRequest} msg The message object to deserialize into.
18244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18245
+ * @return {!proto.game.GetWagerListRequest}
18246
+ */
18247
+ proto.game.GetWagerListRequest.deserializeBinaryFromReader = function(msg, reader) {
18248
+ while (reader.nextField()) {
18249
+ if (reader.isEndGroup()) {
18250
+ break;
18251
+ }
18252
+ var field = reader.getFieldNumber();
18253
+ switch (field) {
18254
+ case 1:
18255
+ var value = /** @type {number} */ (reader.readInt32());
18256
+ msg.setId(value);
18257
+ break;
18258
+ case 2:
18259
+ var value = /** @type {boolean} */ (reader.readBool());
18260
+ msg.setOnlyGames(value);
18261
+ break;
18262
+ default:
18263
+ reader.skipField();
18264
+ break;
18265
+ }
18266
+ }
18267
+ return msg;
18268
+ };
18269
+
18270
+
18271
+ /**
18272
+ * Serializes the message to binary data (in protobuf wire format).
18273
+ * @return {!Uint8Array}
18274
+ */
18275
+ proto.game.GetWagerListRequest.prototype.serializeBinary = function() {
18276
+ var writer = new jspb.BinaryWriter();
18277
+ proto.game.GetWagerListRequest.serializeBinaryToWriter(this, writer);
18278
+ return writer.getResultBuffer();
18279
+ };
18280
+
18281
+
18282
+ /**
18283
+ * Serializes the given message to binary data (in protobuf wire
18284
+ * format), writing to the given BinaryWriter.
18285
+ * @param {!proto.game.GetWagerListRequest} message
18286
+ * @param {!jspb.BinaryWriter} writer
18287
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18288
+ */
18289
+ proto.game.GetWagerListRequest.serializeBinaryToWriter = function(message, writer) {
18290
+ var f = undefined;
18291
+ f = message.getId();
18292
+ if (f !== 0) {
18293
+ writer.writeInt32(
18294
+ 1,
18295
+ f
18296
+ );
18297
+ }
18298
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
18299
+ if (f != null) {
18300
+ writer.writeBool(
18301
+ 2,
18302
+ f
18303
+ );
18304
+ }
18305
+ };
18306
+
18307
+
18308
+ /**
18309
+ * optional int32 id = 1;
18310
+ * @return {number}
18311
+ */
18312
+ proto.game.GetWagerListRequest.prototype.getId = function() {
18313
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18314
+ };
18315
+
18316
+
18317
+ /**
18318
+ * @param {number} value
18319
+ * @return {!proto.game.GetWagerListRequest} returns this
18320
+ */
18321
+ proto.game.GetWagerListRequest.prototype.setId = function(value) {
18322
+ return jspb.Message.setProto3IntField(this, 1, value);
18323
+ };
18324
+
18325
+
18326
+ /**
18327
+ * optional bool only_games = 2;
18328
+ * @return {boolean}
18329
+ */
18330
+ proto.game.GetWagerListRequest.prototype.getOnlyGames = function() {
18331
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
18332
+ };
18333
+
18334
+
18335
+ /**
18336
+ * @param {boolean} value
18337
+ * @return {!proto.game.GetWagerListRequest} returns this
18338
+ */
18339
+ proto.game.GetWagerListRequest.prototype.setOnlyGames = function(value) {
18340
+ return jspb.Message.setField(this, 2, value);
18341
+ };
18342
+
18343
+
18344
+ /**
18345
+ * Clears the field making it undefined.
18346
+ * @return {!proto.game.GetWagerListRequest} returns this
18347
+ */
18348
+ proto.game.GetWagerListRequest.prototype.clearOnlyGames = function() {
18349
+ return jspb.Message.setField(this, 2, undefined);
18350
+ };
18351
+
18352
+
18353
+ /**
18354
+ * Returns whether this field is set.
18355
+ * @return {boolean}
18356
+ */
18357
+ proto.game.GetWagerListRequest.prototype.hasOnlyGames = function() {
18358
+ return jspb.Message.getField(this, 2) != null;
18359
+ };
18360
+
18361
+
18362
+
18363
+
18364
+
18365
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18366
+ /**
18367
+ * Creates an object representation of this proto.
18368
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18369
+ * Optional fields that are not set will be set to undefined.
18370
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18371
+ * For the list of reserved names please see:
18372
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18373
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18374
+ * JSPB instance for transitional soy proto support:
18375
+ * http://goto/soy-param-migration
18376
+ * @return {!Object}
18377
+ */
18378
+ proto.game.WagerListRequest.prototype.toObject = function(opt_includeInstance) {
18379
+ return proto.game.WagerListRequest.toObject(opt_includeInstance, this);
18380
+ };
18381
+
18382
+
18383
+ /**
18384
+ * Static version of the {@see toObject} method.
18385
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18386
+ * the JSPB instance for transitional soy proto support:
18387
+ * http://goto/soy-param-migration
18388
+ * @param {!proto.game.WagerListRequest} msg The msg instance to transform.
18389
+ * @return {!Object}
18390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18391
+ */
18392
+ proto.game.WagerListRequest.toObject = function(includeInstance, msg) {
18393
+ var f, obj = {
18394
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18395
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
18396
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
18397
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
18398
+ contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
18399
+ };
18400
+
18401
+ if (includeInstance) {
18402
+ obj.$jspbMessageInstance = msg;
18403
+ }
18404
+ return obj;
18405
+ };
18406
+ }
18407
+
18408
+
18409
+ /**
18410
+ * Deserializes binary data (in protobuf wire format).
18411
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18412
+ * @return {!proto.game.WagerListRequest}
18413
+ */
18414
+ proto.game.WagerListRequest.deserializeBinary = function(bytes) {
18415
+ var reader = new jspb.BinaryReader(bytes);
18416
+ var msg = new proto.game.WagerListRequest;
18417
+ return proto.game.WagerListRequest.deserializeBinaryFromReader(msg, reader);
18418
+ };
18419
+
18420
+
18421
+ /**
18422
+ * Deserializes binary data (in protobuf wire format) from the
18423
+ * given reader into the given message object.
18424
+ * @param {!proto.game.WagerListRequest} msg The message object to deserialize into.
18425
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18426
+ * @return {!proto.game.WagerListRequest}
18427
+ */
18428
+ proto.game.WagerListRequest.deserializeBinaryFromReader = function(msg, reader) {
18429
+ while (reader.nextField()) {
18430
+ if (reader.isEndGroup()) {
18431
+ break;
18432
+ }
18433
+ var field = reader.getFieldNumber();
18434
+ switch (field) {
18435
+ case 1:
18436
+ var value = /** @type {number} */ (reader.readInt32());
18437
+ msg.setId(value);
18438
+ break;
18439
+ case 2:
18440
+ var value = /** @type {string} */ (reader.readString());
18441
+ msg.setTitle(value);
18442
+ break;
18443
+ case 3:
18444
+ var value = /** @type {string} */ (reader.readString());
18445
+ msg.setDescription(value);
18446
+ break;
18447
+ case 4:
18448
+ var value = /** @type {boolean} */ (reader.readBool());
18449
+ msg.setIsActive(value);
18450
+ break;
18451
+ case 5:
18452
+ var value = /** @type {number} */ (reader.readFloat());
18453
+ msg.setContribution(value);
18454
+ break;
18455
+ default:
18456
+ reader.skipField();
18457
+ break;
18458
+ }
18459
+ }
18460
+ return msg;
18461
+ };
18462
+
18463
+
18464
+ /**
18465
+ * Serializes the message to binary data (in protobuf wire format).
18466
+ * @return {!Uint8Array}
18467
+ */
18468
+ proto.game.WagerListRequest.prototype.serializeBinary = function() {
18469
+ var writer = new jspb.BinaryWriter();
18470
+ proto.game.WagerListRequest.serializeBinaryToWriter(this, writer);
18471
+ return writer.getResultBuffer();
18472
+ };
18473
+
18474
+
18475
+ /**
18476
+ * Serializes the given message to binary data (in protobuf wire
18477
+ * format), writing to the given BinaryWriter.
18478
+ * @param {!proto.game.WagerListRequest} message
18479
+ * @param {!jspb.BinaryWriter} writer
18480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18481
+ */
18482
+ proto.game.WagerListRequest.serializeBinaryToWriter = function(message, writer) {
18483
+ var f = undefined;
18484
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
18485
+ if (f != null) {
18486
+ writer.writeInt32(
18487
+ 1,
18488
+ f
18489
+ );
18490
+ }
18491
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
18492
+ if (f != null) {
18493
+ writer.writeString(
18494
+ 2,
18495
+ f
18496
+ );
18497
+ }
18498
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
18499
+ if (f != null) {
18500
+ writer.writeString(
18501
+ 3,
18502
+ f
18503
+ );
18504
+ }
18505
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
18506
+ if (f != null) {
18507
+ writer.writeBool(
18508
+ 4,
18509
+ f
18510
+ );
18511
+ }
18512
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
18513
+ if (f != null) {
18514
+ writer.writeFloat(
18515
+ 5,
18516
+ f
18517
+ );
18518
+ }
18519
+ };
18520
+
18521
+
18522
+ /**
18523
+ * optional int32 id = 1;
18524
+ * @return {number}
18525
+ */
18526
+ proto.game.WagerListRequest.prototype.getId = function() {
18527
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18528
+ };
18529
+
18530
+
18531
+ /**
18532
+ * @param {number} value
18533
+ * @return {!proto.game.WagerListRequest} returns this
18534
+ */
18535
+ proto.game.WagerListRequest.prototype.setId = function(value) {
18536
+ return jspb.Message.setField(this, 1, value);
18537
+ };
18538
+
18539
+
18540
+ /**
18541
+ * Clears the field making it undefined.
18542
+ * @return {!proto.game.WagerListRequest} returns this
18543
+ */
18544
+ proto.game.WagerListRequest.prototype.clearId = function() {
18545
+ return jspb.Message.setField(this, 1, undefined);
18546
+ };
18547
+
18548
+
18549
+ /**
18550
+ * Returns whether this field is set.
18551
+ * @return {boolean}
18552
+ */
18553
+ proto.game.WagerListRequest.prototype.hasId = function() {
18554
+ return jspb.Message.getField(this, 1) != null;
18555
+ };
18556
+
18557
+
18558
+ /**
18559
+ * optional string title = 2;
18560
+ * @return {string}
18561
+ */
18562
+ proto.game.WagerListRequest.prototype.getTitle = function() {
18563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
18564
+ };
18565
+
18566
+
18567
+ /**
18568
+ * @param {string} value
18569
+ * @return {!proto.game.WagerListRequest} returns this
18570
+ */
18571
+ proto.game.WagerListRequest.prototype.setTitle = function(value) {
18572
+ return jspb.Message.setField(this, 2, value);
18573
+ };
18574
+
18575
+
18576
+ /**
18577
+ * Clears the field making it undefined.
18578
+ * @return {!proto.game.WagerListRequest} returns this
18579
+ */
18580
+ proto.game.WagerListRequest.prototype.clearTitle = function() {
18581
+ return jspb.Message.setField(this, 2, undefined);
18582
+ };
18583
+
18584
+
18585
+ /**
18586
+ * Returns whether this field is set.
18587
+ * @return {boolean}
18588
+ */
18589
+ proto.game.WagerListRequest.prototype.hasTitle = function() {
18590
+ return jspb.Message.getField(this, 2) != null;
18591
+ };
18592
+
18593
+
18594
+ /**
18595
+ * optional string description = 3;
18596
+ * @return {string}
18597
+ */
18598
+ proto.game.WagerListRequest.prototype.getDescription = function() {
18599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
18600
+ };
18601
+
18602
+
18603
+ /**
18604
+ * @param {string} value
18605
+ * @return {!proto.game.WagerListRequest} returns this
18606
+ */
18607
+ proto.game.WagerListRequest.prototype.setDescription = function(value) {
18608
+ return jspb.Message.setField(this, 3, value);
18609
+ };
18610
+
18611
+
18612
+ /**
18613
+ * Clears the field making it undefined.
18614
+ * @return {!proto.game.WagerListRequest} returns this
18615
+ */
18616
+ proto.game.WagerListRequest.prototype.clearDescription = function() {
18617
+ return jspb.Message.setField(this, 3, undefined);
18618
+ };
18619
+
18620
+
18621
+ /**
18622
+ * Returns whether this field is set.
18623
+ * @return {boolean}
18624
+ */
18625
+ proto.game.WagerListRequest.prototype.hasDescription = function() {
18626
+ return jspb.Message.getField(this, 3) != null;
18627
+ };
18628
+
18629
+
18630
+ /**
18631
+ * optional bool is_active = 4;
18632
+ * @return {boolean}
18633
+ */
18634
+ proto.game.WagerListRequest.prototype.getIsActive = function() {
18635
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
18636
+ };
18637
+
18638
+
18639
+ /**
18640
+ * @param {boolean} value
18641
+ * @return {!proto.game.WagerListRequest} returns this
18642
+ */
18643
+ proto.game.WagerListRequest.prototype.setIsActive = function(value) {
18644
+ return jspb.Message.setField(this, 4, value);
18645
+ };
18646
+
18647
+
18648
+ /**
18649
+ * Clears the field making it undefined.
18650
+ * @return {!proto.game.WagerListRequest} returns this
18651
+ */
18652
+ proto.game.WagerListRequest.prototype.clearIsActive = function() {
18653
+ return jspb.Message.setField(this, 4, undefined);
18654
+ };
18655
+
18656
+
18657
+ /**
18658
+ * Returns whether this field is set.
18659
+ * @return {boolean}
18660
+ */
18661
+ proto.game.WagerListRequest.prototype.hasIsActive = function() {
18662
+ return jspb.Message.getField(this, 4) != null;
18663
+ };
18664
+
18665
+
18666
+ /**
18667
+ * optional float contribution = 5;
18668
+ * @return {number}
18669
+ */
18670
+ proto.game.WagerListRequest.prototype.getContribution = function() {
18671
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
18672
+ };
18673
+
18674
+
18675
+ /**
18676
+ * @param {number} value
18677
+ * @return {!proto.game.WagerListRequest} returns this
18678
+ */
18679
+ proto.game.WagerListRequest.prototype.setContribution = function(value) {
18680
+ return jspb.Message.setField(this, 5, value);
18681
+ };
18682
+
18683
+
18684
+ /**
18685
+ * Clears the field making it undefined.
18686
+ * @return {!proto.game.WagerListRequest} returns this
18687
+ */
18688
+ proto.game.WagerListRequest.prototype.clearContribution = function() {
18689
+ return jspb.Message.setField(this, 5, undefined);
18690
+ };
18691
+
18692
+
18693
+ /**
18694
+ * Returns whether this field is set.
18695
+ * @return {boolean}
18696
+ */
18697
+ proto.game.WagerListRequest.prototype.hasContribution = function() {
18698
+ return jspb.Message.getField(this, 5) != null;
18699
+ };
18700
+
18701
+
18702
+
18703
+ /**
18704
+ * List of repeated fields within this message type.
18705
+ * @private {!Array<number>}
18706
+ * @const
18707
+ */
18708
+ proto.game.WagerListGamesRequest.repeatedFields_ = [2];
18709
+
18710
+
18711
+
18712
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18713
+ /**
18714
+ * Creates an object representation of this proto.
18715
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18716
+ * Optional fields that are not set will be set to undefined.
18717
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18718
+ * For the list of reserved names please see:
18719
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18720
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18721
+ * JSPB instance for transitional soy proto support:
18722
+ * http://goto/soy-param-migration
18723
+ * @return {!Object}
18724
+ */
18725
+ proto.game.WagerListGamesRequest.prototype.toObject = function(opt_includeInstance) {
18726
+ return proto.game.WagerListGamesRequest.toObject(opt_includeInstance, this);
18727
+ };
18728
+
18729
+
18730
+ /**
18731
+ * Static version of the {@see toObject} method.
18732
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18733
+ * the JSPB instance for transitional soy proto support:
18734
+ * http://goto/soy-param-migration
18735
+ * @param {!proto.game.WagerListGamesRequest} msg The msg instance to transform.
18736
+ * @return {!Object}
18737
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18738
+ */
18739
+ proto.game.WagerListGamesRequest.toObject = function(includeInstance, msg) {
18740
+ var f, obj = {
18741
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18742
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
18743
+ };
18744
+
18745
+ if (includeInstance) {
18746
+ obj.$jspbMessageInstance = msg;
18747
+ }
18748
+ return obj;
18749
+ };
18750
+ }
18751
+
18752
+
18753
+ /**
18754
+ * Deserializes binary data (in protobuf wire format).
18755
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18756
+ * @return {!proto.game.WagerListGamesRequest}
18757
+ */
18758
+ proto.game.WagerListGamesRequest.deserializeBinary = function(bytes) {
18759
+ var reader = new jspb.BinaryReader(bytes);
18760
+ var msg = new proto.game.WagerListGamesRequest;
18761
+ return proto.game.WagerListGamesRequest.deserializeBinaryFromReader(msg, reader);
18762
+ };
18763
+
18764
+
18765
+ /**
18766
+ * Deserializes binary data (in protobuf wire format) from the
18767
+ * given reader into the given message object.
18768
+ * @param {!proto.game.WagerListGamesRequest} msg The message object to deserialize into.
18769
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18770
+ * @return {!proto.game.WagerListGamesRequest}
18771
+ */
18772
+ proto.game.WagerListGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
18773
+ while (reader.nextField()) {
18774
+ if (reader.isEndGroup()) {
18775
+ break;
18776
+ }
18777
+ var field = reader.getFieldNumber();
18778
+ switch (field) {
18779
+ case 1:
18780
+ var value = /** @type {number} */ (reader.readInt32());
18781
+ msg.setId(value);
18782
+ break;
18783
+ case 2:
18784
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
18785
+ for (var i = 0; i < values.length; i++) {
18786
+ msg.addGameIds(values[i]);
18787
+ }
18788
+ break;
18789
+ default:
18790
+ reader.skipField();
18791
+ break;
18792
+ }
18793
+ }
18794
+ return msg;
18795
+ };
18796
+
18797
+
18798
+ /**
18799
+ * Serializes the message to binary data (in protobuf wire format).
18800
+ * @return {!Uint8Array}
18801
+ */
18802
+ proto.game.WagerListGamesRequest.prototype.serializeBinary = function() {
18803
+ var writer = new jspb.BinaryWriter();
18804
+ proto.game.WagerListGamesRequest.serializeBinaryToWriter(this, writer);
18805
+ return writer.getResultBuffer();
18806
+ };
18807
+
18808
+
18809
+ /**
18810
+ * Serializes the given message to binary data (in protobuf wire
18811
+ * format), writing to the given BinaryWriter.
18812
+ * @param {!proto.game.WagerListGamesRequest} message
18813
+ * @param {!jspb.BinaryWriter} writer
18814
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18815
+ */
18816
+ proto.game.WagerListGamesRequest.serializeBinaryToWriter = function(message, writer) {
18817
+ var f = undefined;
18818
+ f = message.getId();
18819
+ if (f !== 0) {
18820
+ writer.writeInt32(
18821
+ 1,
18822
+ f
18823
+ );
18824
+ }
18825
+ f = message.getGameIdsList();
18826
+ if (f.length > 0) {
18827
+ writer.writePackedInt32(
18828
+ 2,
18829
+ f
18830
+ );
18831
+ }
18832
+ };
18833
+
18834
+
18835
+ /**
18836
+ * optional int32 id = 1;
18837
+ * @return {number}
18838
+ */
18839
+ proto.game.WagerListGamesRequest.prototype.getId = function() {
18840
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18841
+ };
18842
+
18843
+
18844
+ /**
18845
+ * @param {number} value
18846
+ * @return {!proto.game.WagerListGamesRequest} returns this
18847
+ */
18848
+ proto.game.WagerListGamesRequest.prototype.setId = function(value) {
18849
+ return jspb.Message.setProto3IntField(this, 1, value);
18850
+ };
18851
+
18852
+
18853
+ /**
18854
+ * repeated int32 game_ids = 2;
18855
+ * @return {!Array<number>}
18856
+ */
18857
+ proto.game.WagerListGamesRequest.prototype.getGameIdsList = function() {
18858
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
18859
+ };
18860
+
18861
+
18862
+ /**
18863
+ * @param {!Array<number>} value
18864
+ * @return {!proto.game.WagerListGamesRequest} returns this
18865
+ */
18866
+ proto.game.WagerListGamesRequest.prototype.setGameIdsList = function(value) {
18867
+ return jspb.Message.setField(this, 2, value || []);
18868
+ };
18869
+
18870
+
18871
+ /**
18872
+ * @param {number} value
18873
+ * @param {number=} opt_index
18874
+ * @return {!proto.game.WagerListGamesRequest} returns this
18875
+ */
18876
+ proto.game.WagerListGamesRequest.prototype.addGameIds = function(value, opt_index) {
18877
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
18878
+ };
18879
+
18880
+
18881
+ /**
18882
+ * Clears the list making it empty but non-null.
18883
+ * @return {!proto.game.WagerListGamesRequest} returns this
18884
+ */
18885
+ proto.game.WagerListGamesRequest.prototype.clearGameIdsList = function() {
18886
+ return this.setGameIdsList([]);
18887
+ };
18888
+
18889
+
18890
+
18891
+
18892
+
18893
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18894
+ /**
18895
+ * Creates an object representation of this proto.
18896
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18897
+ * Optional fields that are not set will be set to undefined.
18898
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18899
+ * For the list of reserved names please see:
18900
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18901
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18902
+ * JSPB instance for transitional soy proto support:
18903
+ * http://goto/soy-param-migration
18904
+ * @return {!Object}
18905
+ */
18906
+ proto.game.WagerListItem.prototype.toObject = function(opt_includeInstance) {
18907
+ return proto.game.WagerListItem.toObject(opt_includeInstance, this);
18908
+ };
18909
+
18910
+
18911
+ /**
18912
+ * Static version of the {@see toObject} method.
18913
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18914
+ * the JSPB instance for transitional soy proto support:
18915
+ * http://goto/soy-param-migration
18916
+ * @param {!proto.game.WagerListItem} msg The msg instance to transform.
18917
+ * @return {!Object}
18918
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18919
+ */
18920
+ proto.game.WagerListItem.toObject = function(includeInstance, msg) {
18921
+ var f, obj = {
18922
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18923
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
18924
+ contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
18925
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
18926
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
18927
+ };
18928
+
18929
+ if (includeInstance) {
18930
+ obj.$jspbMessageInstance = msg;
18931
+ }
18932
+ return obj;
18933
+ };
18934
+ }
18935
+
18936
+
18937
+ /**
18938
+ * Deserializes binary data (in protobuf wire format).
18939
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18940
+ * @return {!proto.game.WagerListItem}
18941
+ */
18942
+ proto.game.WagerListItem.deserializeBinary = function(bytes) {
18943
+ var reader = new jspb.BinaryReader(bytes);
18944
+ var msg = new proto.game.WagerListItem;
18945
+ return proto.game.WagerListItem.deserializeBinaryFromReader(msg, reader);
18946
+ };
18947
+
18948
+
18949
+ /**
18950
+ * Deserializes binary data (in protobuf wire format) from the
18951
+ * given reader into the given message object.
18952
+ * @param {!proto.game.WagerListItem} msg The message object to deserialize into.
18953
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18954
+ * @return {!proto.game.WagerListItem}
18955
+ */
18956
+ proto.game.WagerListItem.deserializeBinaryFromReader = function(msg, reader) {
18957
+ while (reader.nextField()) {
18958
+ if (reader.isEndGroup()) {
18959
+ break;
18960
+ }
18961
+ var field = reader.getFieldNumber();
18962
+ switch (field) {
18963
+ case 1:
18964
+ var value = /** @type {number} */ (reader.readInt32());
18965
+ msg.setId(value);
18966
+ break;
18967
+ case 2:
18968
+ var value = /** @type {string} */ (reader.readString());
18969
+ msg.setTitle(value);
18970
+ break;
18971
+ case 3:
18972
+ var value = /** @type {number} */ (reader.readFloat());
18973
+ msg.setContribution(value);
18974
+ break;
18975
+ case 4:
18976
+ var value = /** @type {string} */ (reader.readString());
18977
+ msg.setDescription(value);
18978
+ break;
18979
+ case 5:
18980
+ var value = /** @type {boolean} */ (reader.readBool());
18981
+ msg.setIsActive(value);
18982
+ break;
18983
+ default:
18984
+ reader.skipField();
18985
+ break;
18986
+ }
18987
+ }
18988
+ return msg;
18989
+ };
18990
+
18991
+
18992
+ /**
18993
+ * Serializes the message to binary data (in protobuf wire format).
18994
+ * @return {!Uint8Array}
18995
+ */
18996
+ proto.game.WagerListItem.prototype.serializeBinary = function() {
18997
+ var writer = new jspb.BinaryWriter();
18998
+ proto.game.WagerListItem.serializeBinaryToWriter(this, writer);
18999
+ return writer.getResultBuffer();
19000
+ };
19001
+
19002
+
19003
+ /**
19004
+ * Serializes the given message to binary data (in protobuf wire
19005
+ * format), writing to the given BinaryWriter.
19006
+ * @param {!proto.game.WagerListItem} message
19007
+ * @param {!jspb.BinaryWriter} writer
19008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19009
+ */
19010
+ proto.game.WagerListItem.serializeBinaryToWriter = function(message, writer) {
19011
+ var f = undefined;
19012
+ f = message.getId();
19013
+ if (f !== 0) {
19014
+ writer.writeInt32(
19015
+ 1,
19016
+ f
19017
+ );
19018
+ }
19019
+ f = message.getTitle();
19020
+ if (f.length > 0) {
19021
+ writer.writeString(
19022
+ 2,
19023
+ f
19024
+ );
19025
+ }
19026
+ f = message.getContribution();
19027
+ if (f !== 0.0) {
19028
+ writer.writeFloat(
19029
+ 3,
19030
+ f
19031
+ );
19032
+ }
19033
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
19034
+ if (f != null) {
19035
+ writer.writeString(
19036
+ 4,
19037
+ f
19038
+ );
19039
+ }
19040
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
19041
+ if (f != null) {
19042
+ writer.writeBool(
19043
+ 5,
19044
+ f
19045
+ );
19046
+ }
19047
+ };
19048
+
19049
+
19050
+ /**
19051
+ * optional int32 id = 1;
19052
+ * @return {number}
19053
+ */
19054
+ proto.game.WagerListItem.prototype.getId = function() {
19055
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19056
+ };
19057
+
19058
+
19059
+ /**
19060
+ * @param {number} value
19061
+ * @return {!proto.game.WagerListItem} returns this
19062
+ */
19063
+ proto.game.WagerListItem.prototype.setId = function(value) {
19064
+ return jspb.Message.setProto3IntField(this, 1, value);
19065
+ };
19066
+
19067
+
19068
+ /**
19069
+ * optional string title = 2;
19070
+ * @return {string}
19071
+ */
19072
+ proto.game.WagerListItem.prototype.getTitle = function() {
19073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19074
+ };
19075
+
19076
+
19077
+ /**
19078
+ * @param {string} value
19079
+ * @return {!proto.game.WagerListItem} returns this
19080
+ */
19081
+ proto.game.WagerListItem.prototype.setTitle = function(value) {
19082
+ return jspb.Message.setProto3StringField(this, 2, value);
19083
+ };
19084
+
19085
+
19086
+ /**
19087
+ * optional float contribution = 3;
19088
+ * @return {number}
19089
+ */
19090
+ proto.game.WagerListItem.prototype.getContribution = function() {
19091
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
19092
+ };
19093
+
19094
+
19095
+ /**
19096
+ * @param {number} value
19097
+ * @return {!proto.game.WagerListItem} returns this
19098
+ */
19099
+ proto.game.WagerListItem.prototype.setContribution = function(value) {
19100
+ return jspb.Message.setProto3FloatField(this, 3, value);
19101
+ };
19102
+
19103
+
19104
+ /**
19105
+ * optional string description = 4;
19106
+ * @return {string}
19107
+ */
19108
+ proto.game.WagerListItem.prototype.getDescription = function() {
19109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19110
+ };
19111
+
19112
+
19113
+ /**
19114
+ * @param {string} value
19115
+ * @return {!proto.game.WagerListItem} returns this
19116
+ */
19117
+ proto.game.WagerListItem.prototype.setDescription = function(value) {
19118
+ return jspb.Message.setField(this, 4, value);
19119
+ };
19120
+
19121
+
19122
+ /**
19123
+ * Clears the field making it undefined.
19124
+ * @return {!proto.game.WagerListItem} returns this
19125
+ */
19126
+ proto.game.WagerListItem.prototype.clearDescription = function() {
19127
+ return jspb.Message.setField(this, 4, undefined);
19128
+ };
19129
+
19130
+
19131
+ /**
19132
+ * Returns whether this field is set.
19133
+ * @return {boolean}
19134
+ */
19135
+ proto.game.WagerListItem.prototype.hasDescription = function() {
19136
+ return jspb.Message.getField(this, 4) != null;
19137
+ };
19138
+
19139
+
19140
+ /**
19141
+ * optional bool is_active = 5;
19142
+ * @return {boolean}
19143
+ */
19144
+ proto.game.WagerListItem.prototype.getIsActive = function() {
19145
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
19146
+ };
19147
+
19148
+
19149
+ /**
19150
+ * @param {boolean} value
19151
+ * @return {!proto.game.WagerListItem} returns this
19152
+ */
19153
+ proto.game.WagerListItem.prototype.setIsActive = function(value) {
19154
+ return jspb.Message.setField(this, 5, value);
19155
+ };
19156
+
19157
+
19158
+ /**
19159
+ * Clears the field making it undefined.
19160
+ * @return {!proto.game.WagerListItem} returns this
19161
+ */
19162
+ proto.game.WagerListItem.prototype.clearIsActive = function() {
19163
+ return jspb.Message.setField(this, 5, undefined);
19164
+ };
19165
+
19166
+
19167
+ /**
19168
+ * Returns whether this field is set.
19169
+ * @return {boolean}
19170
+ */
19171
+ proto.game.WagerListItem.prototype.hasIsActive = function() {
19172
+ return jspb.Message.getField(this, 5) != null;
19173
+ };
19174
+
19175
+
19176
+
19177
+
19178
+
19179
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19180
+ /**
19181
+ * Creates an object representation of this proto.
19182
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19183
+ * Optional fields that are not set will be set to undefined.
19184
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19185
+ * For the list of reserved names please see:
19186
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19187
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19188
+ * JSPB instance for transitional soy proto support:
19189
+ * http://goto/soy-param-migration
19190
+ * @return {!Object}
19191
+ */
19192
+ proto.game.WagerListResponse.prototype.toObject = function(opt_includeInstance) {
19193
+ return proto.game.WagerListResponse.toObject(opt_includeInstance, this);
19194
+ };
19195
+
19196
+
19197
+ /**
19198
+ * Static version of the {@see toObject} method.
19199
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19200
+ * the JSPB instance for transitional soy proto support:
19201
+ * http://goto/soy-param-migration
19202
+ * @param {!proto.game.WagerListResponse} msg The msg instance to transform.
19203
+ * @return {!Object}
19204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19205
+ */
19206
+ proto.game.WagerListResponse.toObject = function(includeInstance, msg) {
19207
+ var f, obj = {
19208
+ data: (f = msg.getData()) && proto.game.WagerListItem.toObject(includeInstance, f)
19209
+ };
19210
+
19211
+ if (includeInstance) {
19212
+ obj.$jspbMessageInstance = msg;
19213
+ }
19214
+ return obj;
19215
+ };
19216
+ }
19217
+
19218
+
19219
+ /**
19220
+ * Deserializes binary data (in protobuf wire format).
19221
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19222
+ * @return {!proto.game.WagerListResponse}
19223
+ */
19224
+ proto.game.WagerListResponse.deserializeBinary = function(bytes) {
19225
+ var reader = new jspb.BinaryReader(bytes);
19226
+ var msg = new proto.game.WagerListResponse;
19227
+ return proto.game.WagerListResponse.deserializeBinaryFromReader(msg, reader);
19228
+ };
19229
+
19230
+
19231
+ /**
19232
+ * Deserializes binary data (in protobuf wire format) from the
19233
+ * given reader into the given message object.
19234
+ * @param {!proto.game.WagerListResponse} msg The message object to deserialize into.
19235
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19236
+ * @return {!proto.game.WagerListResponse}
19237
+ */
19238
+ proto.game.WagerListResponse.deserializeBinaryFromReader = function(msg, reader) {
19239
+ while (reader.nextField()) {
19240
+ if (reader.isEndGroup()) {
19241
+ break;
19242
+ }
19243
+ var field = reader.getFieldNumber();
19244
+ switch (field) {
19245
+ case 1:
19246
+ var value = new proto.game.WagerListItem;
19247
+ reader.readMessage(value,proto.game.WagerListItem.deserializeBinaryFromReader);
19248
+ msg.setData(value);
19249
+ break;
19250
+ default:
19251
+ reader.skipField();
19252
+ break;
19253
+ }
19254
+ }
19255
+ return msg;
19256
+ };
19257
+
19258
+
19259
+ /**
19260
+ * Serializes the message to binary data (in protobuf wire format).
19261
+ * @return {!Uint8Array}
19262
+ */
19263
+ proto.game.WagerListResponse.prototype.serializeBinary = function() {
19264
+ var writer = new jspb.BinaryWriter();
19265
+ proto.game.WagerListResponse.serializeBinaryToWriter(this, writer);
19266
+ return writer.getResultBuffer();
19267
+ };
19268
+
19269
+
19270
+ /**
19271
+ * Serializes the given message to binary data (in protobuf wire
19272
+ * format), writing to the given BinaryWriter.
19273
+ * @param {!proto.game.WagerListResponse} message
19274
+ * @param {!jspb.BinaryWriter} writer
19275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19276
+ */
19277
+ proto.game.WagerListResponse.serializeBinaryToWriter = function(message, writer) {
19278
+ var f = undefined;
19279
+ f = message.getData();
19280
+ if (f != null) {
19281
+ writer.writeMessage(
19282
+ 1,
19283
+ f,
19284
+ proto.game.WagerListItem.serializeBinaryToWriter
19285
+ );
19286
+ }
19287
+ };
19288
+
19289
+
19290
+ /**
19291
+ * optional WagerListItem data = 1;
19292
+ * @return {?proto.game.WagerListItem}
19293
+ */
19294
+ proto.game.WagerListResponse.prototype.getData = function() {
19295
+ return /** @type{?proto.game.WagerListItem} */ (
19296
+ jspb.Message.getWrapperField(this, proto.game.WagerListItem, 1));
19297
+ };
19298
+
19299
+
19300
+ /**
19301
+ * @param {?proto.game.WagerListItem|undefined} value
19302
+ * @return {!proto.game.WagerListResponse} returns this
19303
+ */
19304
+ proto.game.WagerListResponse.prototype.setData = function(value) {
19305
+ return jspb.Message.setWrapperField(this, 1, value);
19306
+ };
19307
+
19308
+
19309
+ /**
19310
+ * Clears the message field making it undefined.
19311
+ * @return {!proto.game.WagerListResponse} returns this
19312
+ */
19313
+ proto.game.WagerListResponse.prototype.clearData = function() {
19314
+ return this.setData(undefined);
19315
+ };
19316
+
19317
+
19318
+ /**
19319
+ * Returns whether this field is set.
19320
+ * @return {boolean}
19321
+ */
19322
+ proto.game.WagerListResponse.prototype.hasData = function() {
19323
+ return jspb.Message.getField(this, 1) != null;
19324
+ };
19325
+
19326
+
19327
+
19328
+ /**
19329
+ * List of repeated fields within this message type.
19330
+ * @private {!Array<number>}
19331
+ * @const
19332
+ */
19333
+ proto.game.WagerListItemsResponse.repeatedFields_ = [1];
19334
+
19335
+
19336
+
19337
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19338
+ /**
19339
+ * Creates an object representation of this proto.
19340
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19341
+ * Optional fields that are not set will be set to undefined.
19342
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19343
+ * For the list of reserved names please see:
19344
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19345
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19346
+ * JSPB instance for transitional soy proto support:
19347
+ * http://goto/soy-param-migration
19348
+ * @return {!Object}
19349
+ */
19350
+ proto.game.WagerListItemsResponse.prototype.toObject = function(opt_includeInstance) {
19351
+ return proto.game.WagerListItemsResponse.toObject(opt_includeInstance, this);
19352
+ };
19353
+
19354
+
19355
+ /**
19356
+ * Static version of the {@see toObject} method.
19357
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19358
+ * the JSPB instance for transitional soy proto support:
19359
+ * http://goto/soy-param-migration
19360
+ * @param {!proto.game.WagerListItemsResponse} msg The msg instance to transform.
19361
+ * @return {!Object}
19362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19363
+ */
19364
+ proto.game.WagerListItemsResponse.toObject = function(includeInstance, msg) {
19365
+ var f, obj = {
19366
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
19367
+ proto.game.WagerListItem.toObject, includeInstance),
19368
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
19369
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
19370
+ };
19371
+
19372
+ if (includeInstance) {
19373
+ obj.$jspbMessageInstance = msg;
19374
+ }
19375
+ return obj;
19376
+ };
19377
+ }
19378
+
19379
+
19380
+ /**
19381
+ * Deserializes binary data (in protobuf wire format).
19382
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19383
+ * @return {!proto.game.WagerListItemsResponse}
19384
+ */
19385
+ proto.game.WagerListItemsResponse.deserializeBinary = function(bytes) {
19386
+ var reader = new jspb.BinaryReader(bytes);
19387
+ var msg = new proto.game.WagerListItemsResponse;
19388
+ return proto.game.WagerListItemsResponse.deserializeBinaryFromReader(msg, reader);
19389
+ };
19390
+
19391
+
19392
+ /**
19393
+ * Deserializes binary data (in protobuf wire format) from the
19394
+ * given reader into the given message object.
19395
+ * @param {!proto.game.WagerListItemsResponse} msg The message object to deserialize into.
19396
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19397
+ * @return {!proto.game.WagerListItemsResponse}
19398
+ */
19399
+ proto.game.WagerListItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
19400
+ while (reader.nextField()) {
19401
+ if (reader.isEndGroup()) {
19402
+ break;
19403
+ }
19404
+ var field = reader.getFieldNumber();
19405
+ switch (field) {
19406
+ case 1:
19407
+ var value = new proto.game.WagerListItem;
19408
+ reader.readMessage(value,proto.game.WagerListItem.deserializeBinaryFromReader);
19409
+ msg.addItems(value);
19410
+ break;
19411
+ case 2:
19412
+ var value = /** @type {number} */ (reader.readInt32());
19413
+ msg.setTotalPages(value);
19414
+ break;
19415
+ case 3:
19416
+ var value = /** @type {number} */ (reader.readInt32());
19417
+ msg.setTotalItems(value);
19418
+ break;
19419
+ default:
19420
+ reader.skipField();
19421
+ break;
19422
+ }
19423
+ }
19424
+ return msg;
19425
+ };
19426
+
19427
+
19428
+ /**
19429
+ * Serializes the message to binary data (in protobuf wire format).
19430
+ * @return {!Uint8Array}
19431
+ */
19432
+ proto.game.WagerListItemsResponse.prototype.serializeBinary = function() {
19433
+ var writer = new jspb.BinaryWriter();
19434
+ proto.game.WagerListItemsResponse.serializeBinaryToWriter(this, writer);
19435
+ return writer.getResultBuffer();
19436
+ };
19437
+
19438
+
19439
+ /**
19440
+ * Serializes the given message to binary data (in protobuf wire
19441
+ * format), writing to the given BinaryWriter.
19442
+ * @param {!proto.game.WagerListItemsResponse} message
19443
+ * @param {!jspb.BinaryWriter} writer
19444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19445
+ */
19446
+ proto.game.WagerListItemsResponse.serializeBinaryToWriter = function(message, writer) {
19447
+ var f = undefined;
19448
+ f = message.getItemsList();
19449
+ if (f.length > 0) {
19450
+ writer.writeRepeatedMessage(
19451
+ 1,
19452
+ f,
19453
+ proto.game.WagerListItem.serializeBinaryToWriter
19454
+ );
19455
+ }
19456
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
19457
+ if (f != null) {
19458
+ writer.writeInt32(
19459
+ 2,
19460
+ f
19461
+ );
19462
+ }
19463
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
19464
+ if (f != null) {
19465
+ writer.writeInt32(
19466
+ 3,
19467
+ f
19468
+ );
19469
+ }
19470
+ };
19471
+
19472
+
19473
+ /**
19474
+ * repeated WagerListItem items = 1;
19475
+ * @return {!Array<!proto.game.WagerListItem>}
19476
+ */
19477
+ proto.game.WagerListItemsResponse.prototype.getItemsList = function() {
19478
+ return /** @type{!Array<!proto.game.WagerListItem>} */ (
19479
+ jspb.Message.getRepeatedWrapperField(this, proto.game.WagerListItem, 1));
19480
+ };
19481
+
19482
+
19483
+ /**
19484
+ * @param {!Array<!proto.game.WagerListItem>} value
19485
+ * @return {!proto.game.WagerListItemsResponse} returns this
19486
+ */
19487
+ proto.game.WagerListItemsResponse.prototype.setItemsList = function(value) {
19488
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
19489
+ };
19490
+
19491
+
19492
+ /**
19493
+ * @param {!proto.game.WagerListItem=} opt_value
19494
+ * @param {number=} opt_index
19495
+ * @return {!proto.game.WagerListItem}
19496
+ */
19497
+ proto.game.WagerListItemsResponse.prototype.addItems = function(opt_value, opt_index) {
19498
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.WagerListItem, opt_index);
19499
+ };
19500
+
19501
+
19502
+ /**
19503
+ * Clears the list making it empty but non-null.
19504
+ * @return {!proto.game.WagerListItemsResponse} returns this
19505
+ */
19506
+ proto.game.WagerListItemsResponse.prototype.clearItemsList = function() {
19507
+ return this.setItemsList([]);
19508
+ };
19509
+
19510
+
19511
+ /**
19512
+ * optional int32 total_pages = 2;
19513
+ * @return {number}
19514
+ */
19515
+ proto.game.WagerListItemsResponse.prototype.getTotalPages = function() {
19516
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
19517
+ };
19518
+
19519
+
19520
+ /**
19521
+ * @param {number} value
19522
+ * @return {!proto.game.WagerListItemsResponse} returns this
19523
+ */
19524
+ proto.game.WagerListItemsResponse.prototype.setTotalPages = function(value) {
19525
+ return jspb.Message.setField(this, 2, value);
19526
+ };
19527
+
19528
+
19529
+ /**
19530
+ * Clears the field making it undefined.
19531
+ * @return {!proto.game.WagerListItemsResponse} returns this
19532
+ */
19533
+ proto.game.WagerListItemsResponse.prototype.clearTotalPages = function() {
19534
+ return jspb.Message.setField(this, 2, undefined);
19535
+ };
19536
+
19537
+
19538
+ /**
19539
+ * Returns whether this field is set.
19540
+ * @return {boolean}
19541
+ */
19542
+ proto.game.WagerListItemsResponse.prototype.hasTotalPages = function() {
19543
+ return jspb.Message.getField(this, 2) != null;
19544
+ };
19545
+
19546
+
19547
+ /**
19548
+ * optional int32 total_items = 3;
19549
+ * @return {number}
19550
+ */
19551
+ proto.game.WagerListItemsResponse.prototype.getTotalItems = function() {
19552
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
19553
+ };
19554
+
19555
+
19556
+ /**
19557
+ * @param {number} value
19558
+ * @return {!proto.game.WagerListItemsResponse} returns this
19559
+ */
19560
+ proto.game.WagerListItemsResponse.prototype.setTotalItems = function(value) {
19561
+ return jspb.Message.setField(this, 3, value);
19562
+ };
19563
+
19564
+
19565
+ /**
19566
+ * Clears the field making it undefined.
19567
+ * @return {!proto.game.WagerListItemsResponse} returns this
19568
+ */
19569
+ proto.game.WagerListItemsResponse.prototype.clearTotalItems = function() {
19570
+ return jspb.Message.setField(this, 3, undefined);
19571
+ };
19572
+
19573
+
19574
+ /**
19575
+ * Returns whether this field is set.
19576
+ * @return {boolean}
19577
+ */
19578
+ proto.game.WagerListItemsResponse.prototype.hasTotalItems = function() {
19579
+ return jspb.Message.getField(this, 3) != null;
19580
+ };
19581
+
19582
+
18052
19583
  goog.object.extend(exports, proto.game);