protobuf-platform 1.0.124 → 1.0.126

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
 
@@ -2020,7 +2152,8 @@ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
2020
2152
  geosList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
2021
2153
  providerIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
2022
2154
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
2023
- userGeo: jspb.Message.getFieldWithDefault(msg, 11, "")
2155
+ userGeo: jspb.Message.getFieldWithDefault(msg, 11, ""),
2156
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
2024
2157
  };
2025
2158
 
2026
2159
  if (includeInstance) {
@@ -2109,6 +2242,10 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
2109
2242
  var value = /** @type {string} */ (reader.readString());
2110
2243
  msg.setUserGeo(value);
2111
2244
  break;
2245
+ case 12:
2246
+ var value = /** @type {boolean} */ (reader.readBool());
2247
+ msg.setAdminSide(value);
2248
+ break;
2112
2249
  default:
2113
2250
  reader.skipField();
2114
2251
  break;
@@ -2215,6 +2352,13 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
2215
2352
  f
2216
2353
  );
2217
2354
  }
2355
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
2356
+ if (f != null) {
2357
+ writer.writeBool(
2358
+ 12,
2359
+ f
2360
+ );
2361
+ }
2218
2362
  };
2219
2363
 
2220
2364
 
@@ -2619,6 +2763,42 @@ proto.game.GameSearchRequest.prototype.hasUserGeo = function() {
2619
2763
  };
2620
2764
 
2621
2765
 
2766
+ /**
2767
+ * optional bool admin_side = 12;
2768
+ * @return {boolean}
2769
+ */
2770
+ proto.game.GameSearchRequest.prototype.getAdminSide = function() {
2771
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
2772
+ };
2773
+
2774
+
2775
+ /**
2776
+ * @param {boolean} value
2777
+ * @return {!proto.game.GameSearchRequest} returns this
2778
+ */
2779
+ proto.game.GameSearchRequest.prototype.setAdminSide = function(value) {
2780
+ return jspb.Message.setField(this, 12, value);
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * Clears the field making it undefined.
2786
+ * @return {!proto.game.GameSearchRequest} returns this
2787
+ */
2788
+ proto.game.GameSearchRequest.prototype.clearAdminSide = function() {
2789
+ return jspb.Message.setField(this, 12, undefined);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * Returns whether this field is set.
2795
+ * @return {boolean}
2796
+ */
2797
+ proto.game.GameSearchRequest.prototype.hasAdminSide = function() {
2798
+ return jspb.Message.getField(this, 12) != null;
2799
+ };
2800
+
2801
+
2622
2802
 
2623
2803
 
2624
2804
 
@@ -18001,4 +18181,1199 @@ proto.game.FreeSpinCampaignResponse.prototype.setData = function(value) {
18001
18181
  };
18002
18182
 
18003
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
+ };
18399
+
18400
+ if (includeInstance) {
18401
+ obj.$jspbMessageInstance = msg;
18402
+ }
18403
+ return obj;
18404
+ };
18405
+ }
18406
+
18407
+
18408
+ /**
18409
+ * Deserializes binary data (in protobuf wire format).
18410
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18411
+ * @return {!proto.game.WagerListRequest}
18412
+ */
18413
+ proto.game.WagerListRequest.deserializeBinary = function(bytes) {
18414
+ var reader = new jspb.BinaryReader(bytes);
18415
+ var msg = new proto.game.WagerListRequest;
18416
+ return proto.game.WagerListRequest.deserializeBinaryFromReader(msg, reader);
18417
+ };
18418
+
18419
+
18420
+ /**
18421
+ * Deserializes binary data (in protobuf wire format) from the
18422
+ * given reader into the given message object.
18423
+ * @param {!proto.game.WagerListRequest} msg The message object to deserialize into.
18424
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18425
+ * @return {!proto.game.WagerListRequest}
18426
+ */
18427
+ proto.game.WagerListRequest.deserializeBinaryFromReader = function(msg, reader) {
18428
+ while (reader.nextField()) {
18429
+ if (reader.isEndGroup()) {
18430
+ break;
18431
+ }
18432
+ var field = reader.getFieldNumber();
18433
+ switch (field) {
18434
+ case 1:
18435
+ var value = /** @type {number} */ (reader.readInt32());
18436
+ msg.setId(value);
18437
+ break;
18438
+ case 2:
18439
+ var value = /** @type {string} */ (reader.readString());
18440
+ msg.setTitle(value);
18441
+ break;
18442
+ case 3:
18443
+ var value = /** @type {string} */ (reader.readString());
18444
+ msg.setDescription(value);
18445
+ break;
18446
+ case 4:
18447
+ var value = /** @type {boolean} */ (reader.readBool());
18448
+ msg.setIsActive(value);
18449
+ break;
18450
+ default:
18451
+ reader.skipField();
18452
+ break;
18453
+ }
18454
+ }
18455
+ return msg;
18456
+ };
18457
+
18458
+
18459
+ /**
18460
+ * Serializes the message to binary data (in protobuf wire format).
18461
+ * @return {!Uint8Array}
18462
+ */
18463
+ proto.game.WagerListRequest.prototype.serializeBinary = function() {
18464
+ var writer = new jspb.BinaryWriter();
18465
+ proto.game.WagerListRequest.serializeBinaryToWriter(this, writer);
18466
+ return writer.getResultBuffer();
18467
+ };
18468
+
18469
+
18470
+ /**
18471
+ * Serializes the given message to binary data (in protobuf wire
18472
+ * format), writing to the given BinaryWriter.
18473
+ * @param {!proto.game.WagerListRequest} message
18474
+ * @param {!jspb.BinaryWriter} writer
18475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18476
+ */
18477
+ proto.game.WagerListRequest.serializeBinaryToWriter = function(message, writer) {
18478
+ var f = undefined;
18479
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
18480
+ if (f != null) {
18481
+ writer.writeInt32(
18482
+ 1,
18483
+ f
18484
+ );
18485
+ }
18486
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
18487
+ if (f != null) {
18488
+ writer.writeString(
18489
+ 2,
18490
+ f
18491
+ );
18492
+ }
18493
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
18494
+ if (f != null) {
18495
+ writer.writeString(
18496
+ 3,
18497
+ f
18498
+ );
18499
+ }
18500
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
18501
+ if (f != null) {
18502
+ writer.writeBool(
18503
+ 4,
18504
+ f
18505
+ );
18506
+ }
18507
+ };
18508
+
18509
+
18510
+ /**
18511
+ * optional int32 id = 1;
18512
+ * @return {number}
18513
+ */
18514
+ proto.game.WagerListRequest.prototype.getId = function() {
18515
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18516
+ };
18517
+
18518
+
18519
+ /**
18520
+ * @param {number} value
18521
+ * @return {!proto.game.WagerListRequest} returns this
18522
+ */
18523
+ proto.game.WagerListRequest.prototype.setId = function(value) {
18524
+ return jspb.Message.setField(this, 1, value);
18525
+ };
18526
+
18527
+
18528
+ /**
18529
+ * Clears the field making it undefined.
18530
+ * @return {!proto.game.WagerListRequest} returns this
18531
+ */
18532
+ proto.game.WagerListRequest.prototype.clearId = function() {
18533
+ return jspb.Message.setField(this, 1, undefined);
18534
+ };
18535
+
18536
+
18537
+ /**
18538
+ * Returns whether this field is set.
18539
+ * @return {boolean}
18540
+ */
18541
+ proto.game.WagerListRequest.prototype.hasId = function() {
18542
+ return jspb.Message.getField(this, 1) != null;
18543
+ };
18544
+
18545
+
18546
+ /**
18547
+ * optional string title = 2;
18548
+ * @return {string}
18549
+ */
18550
+ proto.game.WagerListRequest.prototype.getTitle = function() {
18551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
18552
+ };
18553
+
18554
+
18555
+ /**
18556
+ * @param {string} value
18557
+ * @return {!proto.game.WagerListRequest} returns this
18558
+ */
18559
+ proto.game.WagerListRequest.prototype.setTitle = function(value) {
18560
+ return jspb.Message.setField(this, 2, value);
18561
+ };
18562
+
18563
+
18564
+ /**
18565
+ * Clears the field making it undefined.
18566
+ * @return {!proto.game.WagerListRequest} returns this
18567
+ */
18568
+ proto.game.WagerListRequest.prototype.clearTitle = function() {
18569
+ return jspb.Message.setField(this, 2, undefined);
18570
+ };
18571
+
18572
+
18573
+ /**
18574
+ * Returns whether this field is set.
18575
+ * @return {boolean}
18576
+ */
18577
+ proto.game.WagerListRequest.prototype.hasTitle = function() {
18578
+ return jspb.Message.getField(this, 2) != null;
18579
+ };
18580
+
18581
+
18582
+ /**
18583
+ * optional string description = 3;
18584
+ * @return {string}
18585
+ */
18586
+ proto.game.WagerListRequest.prototype.getDescription = function() {
18587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
18588
+ };
18589
+
18590
+
18591
+ /**
18592
+ * @param {string} value
18593
+ * @return {!proto.game.WagerListRequest} returns this
18594
+ */
18595
+ proto.game.WagerListRequest.prototype.setDescription = function(value) {
18596
+ return jspb.Message.setField(this, 3, value);
18597
+ };
18598
+
18599
+
18600
+ /**
18601
+ * Clears the field making it undefined.
18602
+ * @return {!proto.game.WagerListRequest} returns this
18603
+ */
18604
+ proto.game.WagerListRequest.prototype.clearDescription = function() {
18605
+ return jspb.Message.setField(this, 3, undefined);
18606
+ };
18607
+
18608
+
18609
+ /**
18610
+ * Returns whether this field is set.
18611
+ * @return {boolean}
18612
+ */
18613
+ proto.game.WagerListRequest.prototype.hasDescription = function() {
18614
+ return jspb.Message.getField(this, 3) != null;
18615
+ };
18616
+
18617
+
18618
+ /**
18619
+ * optional bool is_active = 4;
18620
+ * @return {boolean}
18621
+ */
18622
+ proto.game.WagerListRequest.prototype.getIsActive = function() {
18623
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
18624
+ };
18625
+
18626
+
18627
+ /**
18628
+ * @param {boolean} value
18629
+ * @return {!proto.game.WagerListRequest} returns this
18630
+ */
18631
+ proto.game.WagerListRequest.prototype.setIsActive = function(value) {
18632
+ return jspb.Message.setField(this, 4, value);
18633
+ };
18634
+
18635
+
18636
+ /**
18637
+ * Clears the field making it undefined.
18638
+ * @return {!proto.game.WagerListRequest} returns this
18639
+ */
18640
+ proto.game.WagerListRequest.prototype.clearIsActive = function() {
18641
+ return jspb.Message.setField(this, 4, undefined);
18642
+ };
18643
+
18644
+
18645
+ /**
18646
+ * Returns whether this field is set.
18647
+ * @return {boolean}
18648
+ */
18649
+ proto.game.WagerListRequest.prototype.hasIsActive = function() {
18650
+ return jspb.Message.getField(this, 4) != null;
18651
+ };
18652
+
18653
+
18654
+
18655
+ /**
18656
+ * List of repeated fields within this message type.
18657
+ * @private {!Array<number>}
18658
+ * @const
18659
+ */
18660
+ proto.game.WagerListGamesRequest.repeatedFields_ = [2];
18661
+
18662
+
18663
+
18664
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18665
+ /**
18666
+ * Creates an object representation of this proto.
18667
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18668
+ * Optional fields that are not set will be set to undefined.
18669
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18670
+ * For the list of reserved names please see:
18671
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18672
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18673
+ * JSPB instance for transitional soy proto support:
18674
+ * http://goto/soy-param-migration
18675
+ * @return {!Object}
18676
+ */
18677
+ proto.game.WagerListGamesRequest.prototype.toObject = function(opt_includeInstance) {
18678
+ return proto.game.WagerListGamesRequest.toObject(opt_includeInstance, this);
18679
+ };
18680
+
18681
+
18682
+ /**
18683
+ * Static version of the {@see toObject} method.
18684
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18685
+ * the JSPB instance for transitional soy proto support:
18686
+ * http://goto/soy-param-migration
18687
+ * @param {!proto.game.WagerListGamesRequest} msg The msg instance to transform.
18688
+ * @return {!Object}
18689
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18690
+ */
18691
+ proto.game.WagerListGamesRequest.toObject = function(includeInstance, msg) {
18692
+ var f, obj = {
18693
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18694
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
18695
+ };
18696
+
18697
+ if (includeInstance) {
18698
+ obj.$jspbMessageInstance = msg;
18699
+ }
18700
+ return obj;
18701
+ };
18702
+ }
18703
+
18704
+
18705
+ /**
18706
+ * Deserializes binary data (in protobuf wire format).
18707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18708
+ * @return {!proto.game.WagerListGamesRequest}
18709
+ */
18710
+ proto.game.WagerListGamesRequest.deserializeBinary = function(bytes) {
18711
+ var reader = new jspb.BinaryReader(bytes);
18712
+ var msg = new proto.game.WagerListGamesRequest;
18713
+ return proto.game.WagerListGamesRequest.deserializeBinaryFromReader(msg, reader);
18714
+ };
18715
+
18716
+
18717
+ /**
18718
+ * Deserializes binary data (in protobuf wire format) from the
18719
+ * given reader into the given message object.
18720
+ * @param {!proto.game.WagerListGamesRequest} msg The message object to deserialize into.
18721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18722
+ * @return {!proto.game.WagerListGamesRequest}
18723
+ */
18724
+ proto.game.WagerListGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
18725
+ while (reader.nextField()) {
18726
+ if (reader.isEndGroup()) {
18727
+ break;
18728
+ }
18729
+ var field = reader.getFieldNumber();
18730
+ switch (field) {
18731
+ case 1:
18732
+ var value = /** @type {number} */ (reader.readInt32());
18733
+ msg.setId(value);
18734
+ break;
18735
+ case 2:
18736
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
18737
+ for (var i = 0; i < values.length; i++) {
18738
+ msg.addGameIds(values[i]);
18739
+ }
18740
+ break;
18741
+ default:
18742
+ reader.skipField();
18743
+ break;
18744
+ }
18745
+ }
18746
+ return msg;
18747
+ };
18748
+
18749
+
18750
+ /**
18751
+ * Serializes the message to binary data (in protobuf wire format).
18752
+ * @return {!Uint8Array}
18753
+ */
18754
+ proto.game.WagerListGamesRequest.prototype.serializeBinary = function() {
18755
+ var writer = new jspb.BinaryWriter();
18756
+ proto.game.WagerListGamesRequest.serializeBinaryToWriter(this, writer);
18757
+ return writer.getResultBuffer();
18758
+ };
18759
+
18760
+
18761
+ /**
18762
+ * Serializes the given message to binary data (in protobuf wire
18763
+ * format), writing to the given BinaryWriter.
18764
+ * @param {!proto.game.WagerListGamesRequest} message
18765
+ * @param {!jspb.BinaryWriter} writer
18766
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18767
+ */
18768
+ proto.game.WagerListGamesRequest.serializeBinaryToWriter = function(message, writer) {
18769
+ var f = undefined;
18770
+ f = message.getId();
18771
+ if (f !== 0) {
18772
+ writer.writeInt32(
18773
+ 1,
18774
+ f
18775
+ );
18776
+ }
18777
+ f = message.getGameIdsList();
18778
+ if (f.length > 0) {
18779
+ writer.writePackedInt32(
18780
+ 2,
18781
+ f
18782
+ );
18783
+ }
18784
+ };
18785
+
18786
+
18787
+ /**
18788
+ * optional int32 id = 1;
18789
+ * @return {number}
18790
+ */
18791
+ proto.game.WagerListGamesRequest.prototype.getId = function() {
18792
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18793
+ };
18794
+
18795
+
18796
+ /**
18797
+ * @param {number} value
18798
+ * @return {!proto.game.WagerListGamesRequest} returns this
18799
+ */
18800
+ proto.game.WagerListGamesRequest.prototype.setId = function(value) {
18801
+ return jspb.Message.setProto3IntField(this, 1, value);
18802
+ };
18803
+
18804
+
18805
+ /**
18806
+ * repeated int32 game_ids = 2;
18807
+ * @return {!Array<number>}
18808
+ */
18809
+ proto.game.WagerListGamesRequest.prototype.getGameIdsList = function() {
18810
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
18811
+ };
18812
+
18813
+
18814
+ /**
18815
+ * @param {!Array<number>} value
18816
+ * @return {!proto.game.WagerListGamesRequest} returns this
18817
+ */
18818
+ proto.game.WagerListGamesRequest.prototype.setGameIdsList = function(value) {
18819
+ return jspb.Message.setField(this, 2, value || []);
18820
+ };
18821
+
18822
+
18823
+ /**
18824
+ * @param {number} value
18825
+ * @param {number=} opt_index
18826
+ * @return {!proto.game.WagerListGamesRequest} returns this
18827
+ */
18828
+ proto.game.WagerListGamesRequest.prototype.addGameIds = function(value, opt_index) {
18829
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
18830
+ };
18831
+
18832
+
18833
+ /**
18834
+ * Clears the list making it empty but non-null.
18835
+ * @return {!proto.game.WagerListGamesRequest} returns this
18836
+ */
18837
+ proto.game.WagerListGamesRequest.prototype.clearGameIdsList = function() {
18838
+ return this.setGameIdsList([]);
18839
+ };
18840
+
18841
+
18842
+
18843
+
18844
+
18845
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18846
+ /**
18847
+ * Creates an object representation of this proto.
18848
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18849
+ * Optional fields that are not set will be set to undefined.
18850
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18851
+ * For the list of reserved names please see:
18852
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18853
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18854
+ * JSPB instance for transitional soy proto support:
18855
+ * http://goto/soy-param-migration
18856
+ * @return {!Object}
18857
+ */
18858
+ proto.game.WagerListItem.prototype.toObject = function(opt_includeInstance) {
18859
+ return proto.game.WagerListItem.toObject(opt_includeInstance, this);
18860
+ };
18861
+
18862
+
18863
+ /**
18864
+ * Static version of the {@see toObject} method.
18865
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18866
+ * the JSPB instance for transitional soy proto support:
18867
+ * http://goto/soy-param-migration
18868
+ * @param {!proto.game.WagerListItem} msg The msg instance to transform.
18869
+ * @return {!Object}
18870
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18871
+ */
18872
+ proto.game.WagerListItem.toObject = function(includeInstance, msg) {
18873
+ var f, obj = {
18874
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
18875
+ };
18876
+
18877
+ if (includeInstance) {
18878
+ obj.$jspbMessageInstance = msg;
18879
+ }
18880
+ return obj;
18881
+ };
18882
+ }
18883
+
18884
+
18885
+ /**
18886
+ * Deserializes binary data (in protobuf wire format).
18887
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18888
+ * @return {!proto.game.WagerListItem}
18889
+ */
18890
+ proto.game.WagerListItem.deserializeBinary = function(bytes) {
18891
+ var reader = new jspb.BinaryReader(bytes);
18892
+ var msg = new proto.game.WagerListItem;
18893
+ return proto.game.WagerListItem.deserializeBinaryFromReader(msg, reader);
18894
+ };
18895
+
18896
+
18897
+ /**
18898
+ * Deserializes binary data (in protobuf wire format) from the
18899
+ * given reader into the given message object.
18900
+ * @param {!proto.game.WagerListItem} msg The message object to deserialize into.
18901
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18902
+ * @return {!proto.game.WagerListItem}
18903
+ */
18904
+ proto.game.WagerListItem.deserializeBinaryFromReader = function(msg, reader) {
18905
+ while (reader.nextField()) {
18906
+ if (reader.isEndGroup()) {
18907
+ break;
18908
+ }
18909
+ var field = reader.getFieldNumber();
18910
+ switch (field) {
18911
+ case 1:
18912
+ var value = /** @type {number} */ (reader.readInt32());
18913
+ msg.setId(value);
18914
+ break;
18915
+ default:
18916
+ reader.skipField();
18917
+ break;
18918
+ }
18919
+ }
18920
+ return msg;
18921
+ };
18922
+
18923
+
18924
+ /**
18925
+ * Serializes the message to binary data (in protobuf wire format).
18926
+ * @return {!Uint8Array}
18927
+ */
18928
+ proto.game.WagerListItem.prototype.serializeBinary = function() {
18929
+ var writer = new jspb.BinaryWriter();
18930
+ proto.game.WagerListItem.serializeBinaryToWriter(this, writer);
18931
+ return writer.getResultBuffer();
18932
+ };
18933
+
18934
+
18935
+ /**
18936
+ * Serializes the given message to binary data (in protobuf wire
18937
+ * format), writing to the given BinaryWriter.
18938
+ * @param {!proto.game.WagerListItem} message
18939
+ * @param {!jspb.BinaryWriter} writer
18940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18941
+ */
18942
+ proto.game.WagerListItem.serializeBinaryToWriter = function(message, writer) {
18943
+ var f = undefined;
18944
+ f = message.getId();
18945
+ if (f !== 0) {
18946
+ writer.writeInt32(
18947
+ 1,
18948
+ f
18949
+ );
18950
+ }
18951
+ };
18952
+
18953
+
18954
+ /**
18955
+ * optional int32 id = 1;
18956
+ * @return {number}
18957
+ */
18958
+ proto.game.WagerListItem.prototype.getId = function() {
18959
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
18960
+ };
18961
+
18962
+
18963
+ /**
18964
+ * @param {number} value
18965
+ * @return {!proto.game.WagerListItem} returns this
18966
+ */
18967
+ proto.game.WagerListItem.prototype.setId = function(value) {
18968
+ return jspb.Message.setProto3IntField(this, 1, value);
18969
+ };
18970
+
18971
+
18972
+
18973
+
18974
+
18975
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18976
+ /**
18977
+ * Creates an object representation of this proto.
18978
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18979
+ * Optional fields that are not set will be set to undefined.
18980
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18981
+ * For the list of reserved names please see:
18982
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18983
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18984
+ * JSPB instance for transitional soy proto support:
18985
+ * http://goto/soy-param-migration
18986
+ * @return {!Object}
18987
+ */
18988
+ proto.game.WagerListResponse.prototype.toObject = function(opt_includeInstance) {
18989
+ return proto.game.WagerListResponse.toObject(opt_includeInstance, this);
18990
+ };
18991
+
18992
+
18993
+ /**
18994
+ * Static version of the {@see toObject} method.
18995
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18996
+ * the JSPB instance for transitional soy proto support:
18997
+ * http://goto/soy-param-migration
18998
+ * @param {!proto.game.WagerListResponse} msg The msg instance to transform.
18999
+ * @return {!Object}
19000
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19001
+ */
19002
+ proto.game.WagerListResponse.toObject = function(includeInstance, msg) {
19003
+ var f, obj = {
19004
+ data: (f = msg.getData()) && proto.game.WagerListItem.toObject(includeInstance, f)
19005
+ };
19006
+
19007
+ if (includeInstance) {
19008
+ obj.$jspbMessageInstance = msg;
19009
+ }
19010
+ return obj;
19011
+ };
19012
+ }
19013
+
19014
+
19015
+ /**
19016
+ * Deserializes binary data (in protobuf wire format).
19017
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19018
+ * @return {!proto.game.WagerListResponse}
19019
+ */
19020
+ proto.game.WagerListResponse.deserializeBinary = function(bytes) {
19021
+ var reader = new jspb.BinaryReader(bytes);
19022
+ var msg = new proto.game.WagerListResponse;
19023
+ return proto.game.WagerListResponse.deserializeBinaryFromReader(msg, reader);
19024
+ };
19025
+
19026
+
19027
+ /**
19028
+ * Deserializes binary data (in protobuf wire format) from the
19029
+ * given reader into the given message object.
19030
+ * @param {!proto.game.WagerListResponse} msg The message object to deserialize into.
19031
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19032
+ * @return {!proto.game.WagerListResponse}
19033
+ */
19034
+ proto.game.WagerListResponse.deserializeBinaryFromReader = function(msg, reader) {
19035
+ while (reader.nextField()) {
19036
+ if (reader.isEndGroup()) {
19037
+ break;
19038
+ }
19039
+ var field = reader.getFieldNumber();
19040
+ switch (field) {
19041
+ case 1:
19042
+ var value = new proto.game.WagerListItem;
19043
+ reader.readMessage(value,proto.game.WagerListItem.deserializeBinaryFromReader);
19044
+ msg.setData(value);
19045
+ break;
19046
+ default:
19047
+ reader.skipField();
19048
+ break;
19049
+ }
19050
+ }
19051
+ return msg;
19052
+ };
19053
+
19054
+
19055
+ /**
19056
+ * Serializes the message to binary data (in protobuf wire format).
19057
+ * @return {!Uint8Array}
19058
+ */
19059
+ proto.game.WagerListResponse.prototype.serializeBinary = function() {
19060
+ var writer = new jspb.BinaryWriter();
19061
+ proto.game.WagerListResponse.serializeBinaryToWriter(this, writer);
19062
+ return writer.getResultBuffer();
19063
+ };
19064
+
19065
+
19066
+ /**
19067
+ * Serializes the given message to binary data (in protobuf wire
19068
+ * format), writing to the given BinaryWriter.
19069
+ * @param {!proto.game.WagerListResponse} message
19070
+ * @param {!jspb.BinaryWriter} writer
19071
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19072
+ */
19073
+ proto.game.WagerListResponse.serializeBinaryToWriter = function(message, writer) {
19074
+ var f = undefined;
19075
+ f = message.getData();
19076
+ if (f != null) {
19077
+ writer.writeMessage(
19078
+ 1,
19079
+ f,
19080
+ proto.game.WagerListItem.serializeBinaryToWriter
19081
+ );
19082
+ }
19083
+ };
19084
+
19085
+
19086
+ /**
19087
+ * optional WagerListItem data = 1;
19088
+ * @return {?proto.game.WagerListItem}
19089
+ */
19090
+ proto.game.WagerListResponse.prototype.getData = function() {
19091
+ return /** @type{?proto.game.WagerListItem} */ (
19092
+ jspb.Message.getWrapperField(this, proto.game.WagerListItem, 1));
19093
+ };
19094
+
19095
+
19096
+ /**
19097
+ * @param {?proto.game.WagerListItem|undefined} value
19098
+ * @return {!proto.game.WagerListResponse} returns this
19099
+ */
19100
+ proto.game.WagerListResponse.prototype.setData = function(value) {
19101
+ return jspb.Message.setWrapperField(this, 1, value);
19102
+ };
19103
+
19104
+
19105
+ /**
19106
+ * Clears the message field making it undefined.
19107
+ * @return {!proto.game.WagerListResponse} returns this
19108
+ */
19109
+ proto.game.WagerListResponse.prototype.clearData = function() {
19110
+ return this.setData(undefined);
19111
+ };
19112
+
19113
+
19114
+ /**
19115
+ * Returns whether this field is set.
19116
+ * @return {boolean}
19117
+ */
19118
+ proto.game.WagerListResponse.prototype.hasData = function() {
19119
+ return jspb.Message.getField(this, 1) != null;
19120
+ };
19121
+
19122
+
19123
+
19124
+ /**
19125
+ * List of repeated fields within this message type.
19126
+ * @private {!Array<number>}
19127
+ * @const
19128
+ */
19129
+ proto.game.WagerListItemsResponse.repeatedFields_ = [1];
19130
+
19131
+
19132
+
19133
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19134
+ /**
19135
+ * Creates an object representation of this proto.
19136
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19137
+ * Optional fields that are not set will be set to undefined.
19138
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19139
+ * For the list of reserved names please see:
19140
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19141
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19142
+ * JSPB instance for transitional soy proto support:
19143
+ * http://goto/soy-param-migration
19144
+ * @return {!Object}
19145
+ */
19146
+ proto.game.WagerListItemsResponse.prototype.toObject = function(opt_includeInstance) {
19147
+ return proto.game.WagerListItemsResponse.toObject(opt_includeInstance, this);
19148
+ };
19149
+
19150
+
19151
+ /**
19152
+ * Static version of the {@see toObject} method.
19153
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19154
+ * the JSPB instance for transitional soy proto support:
19155
+ * http://goto/soy-param-migration
19156
+ * @param {!proto.game.WagerListItemsResponse} msg The msg instance to transform.
19157
+ * @return {!Object}
19158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19159
+ */
19160
+ proto.game.WagerListItemsResponse.toObject = function(includeInstance, msg) {
19161
+ var f, obj = {
19162
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
19163
+ proto.game.WagerListItem.toObject, includeInstance),
19164
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
19165
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
19166
+ };
19167
+
19168
+ if (includeInstance) {
19169
+ obj.$jspbMessageInstance = msg;
19170
+ }
19171
+ return obj;
19172
+ };
19173
+ }
19174
+
19175
+
19176
+ /**
19177
+ * Deserializes binary data (in protobuf wire format).
19178
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19179
+ * @return {!proto.game.WagerListItemsResponse}
19180
+ */
19181
+ proto.game.WagerListItemsResponse.deserializeBinary = function(bytes) {
19182
+ var reader = new jspb.BinaryReader(bytes);
19183
+ var msg = new proto.game.WagerListItemsResponse;
19184
+ return proto.game.WagerListItemsResponse.deserializeBinaryFromReader(msg, reader);
19185
+ };
19186
+
19187
+
19188
+ /**
19189
+ * Deserializes binary data (in protobuf wire format) from the
19190
+ * given reader into the given message object.
19191
+ * @param {!proto.game.WagerListItemsResponse} msg The message object to deserialize into.
19192
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19193
+ * @return {!proto.game.WagerListItemsResponse}
19194
+ */
19195
+ proto.game.WagerListItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
19196
+ while (reader.nextField()) {
19197
+ if (reader.isEndGroup()) {
19198
+ break;
19199
+ }
19200
+ var field = reader.getFieldNumber();
19201
+ switch (field) {
19202
+ case 1:
19203
+ var value = new proto.game.WagerListItem;
19204
+ reader.readMessage(value,proto.game.WagerListItem.deserializeBinaryFromReader);
19205
+ msg.addItems(value);
19206
+ break;
19207
+ case 2:
19208
+ var value = /** @type {number} */ (reader.readInt32());
19209
+ msg.setTotalPages(value);
19210
+ break;
19211
+ case 3:
19212
+ var value = /** @type {number} */ (reader.readInt32());
19213
+ msg.setTotalItems(value);
19214
+ break;
19215
+ default:
19216
+ reader.skipField();
19217
+ break;
19218
+ }
19219
+ }
19220
+ return msg;
19221
+ };
19222
+
19223
+
19224
+ /**
19225
+ * Serializes the message to binary data (in protobuf wire format).
19226
+ * @return {!Uint8Array}
19227
+ */
19228
+ proto.game.WagerListItemsResponse.prototype.serializeBinary = function() {
19229
+ var writer = new jspb.BinaryWriter();
19230
+ proto.game.WagerListItemsResponse.serializeBinaryToWriter(this, writer);
19231
+ return writer.getResultBuffer();
19232
+ };
19233
+
19234
+
19235
+ /**
19236
+ * Serializes the given message to binary data (in protobuf wire
19237
+ * format), writing to the given BinaryWriter.
19238
+ * @param {!proto.game.WagerListItemsResponse} message
19239
+ * @param {!jspb.BinaryWriter} writer
19240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19241
+ */
19242
+ proto.game.WagerListItemsResponse.serializeBinaryToWriter = function(message, writer) {
19243
+ var f = undefined;
19244
+ f = message.getItemsList();
19245
+ if (f.length > 0) {
19246
+ writer.writeRepeatedMessage(
19247
+ 1,
19248
+ f,
19249
+ proto.game.WagerListItem.serializeBinaryToWriter
19250
+ );
19251
+ }
19252
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
19253
+ if (f != null) {
19254
+ writer.writeInt32(
19255
+ 2,
19256
+ f
19257
+ );
19258
+ }
19259
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
19260
+ if (f != null) {
19261
+ writer.writeInt32(
19262
+ 3,
19263
+ f
19264
+ );
19265
+ }
19266
+ };
19267
+
19268
+
19269
+ /**
19270
+ * repeated WagerListItem items = 1;
19271
+ * @return {!Array<!proto.game.WagerListItem>}
19272
+ */
19273
+ proto.game.WagerListItemsResponse.prototype.getItemsList = function() {
19274
+ return /** @type{!Array<!proto.game.WagerListItem>} */ (
19275
+ jspb.Message.getRepeatedWrapperField(this, proto.game.WagerListItem, 1));
19276
+ };
19277
+
19278
+
19279
+ /**
19280
+ * @param {!Array<!proto.game.WagerListItem>} value
19281
+ * @return {!proto.game.WagerListItemsResponse} returns this
19282
+ */
19283
+ proto.game.WagerListItemsResponse.prototype.setItemsList = function(value) {
19284
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
19285
+ };
19286
+
19287
+
19288
+ /**
19289
+ * @param {!proto.game.WagerListItem=} opt_value
19290
+ * @param {number=} opt_index
19291
+ * @return {!proto.game.WagerListItem}
19292
+ */
19293
+ proto.game.WagerListItemsResponse.prototype.addItems = function(opt_value, opt_index) {
19294
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.WagerListItem, opt_index);
19295
+ };
19296
+
19297
+
19298
+ /**
19299
+ * Clears the list making it empty but non-null.
19300
+ * @return {!proto.game.WagerListItemsResponse} returns this
19301
+ */
19302
+ proto.game.WagerListItemsResponse.prototype.clearItemsList = function() {
19303
+ return this.setItemsList([]);
19304
+ };
19305
+
19306
+
19307
+ /**
19308
+ * optional int32 total_pages = 2;
19309
+ * @return {number}
19310
+ */
19311
+ proto.game.WagerListItemsResponse.prototype.getTotalPages = function() {
19312
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
19313
+ };
19314
+
19315
+
19316
+ /**
19317
+ * @param {number} value
19318
+ * @return {!proto.game.WagerListItemsResponse} returns this
19319
+ */
19320
+ proto.game.WagerListItemsResponse.prototype.setTotalPages = function(value) {
19321
+ return jspb.Message.setField(this, 2, value);
19322
+ };
19323
+
19324
+
19325
+ /**
19326
+ * Clears the field making it undefined.
19327
+ * @return {!proto.game.WagerListItemsResponse} returns this
19328
+ */
19329
+ proto.game.WagerListItemsResponse.prototype.clearTotalPages = function() {
19330
+ return jspb.Message.setField(this, 2, undefined);
19331
+ };
19332
+
19333
+
19334
+ /**
19335
+ * Returns whether this field is set.
19336
+ * @return {boolean}
19337
+ */
19338
+ proto.game.WagerListItemsResponse.prototype.hasTotalPages = function() {
19339
+ return jspb.Message.getField(this, 2) != null;
19340
+ };
19341
+
19342
+
19343
+ /**
19344
+ * optional int32 total_items = 3;
19345
+ * @return {number}
19346
+ */
19347
+ proto.game.WagerListItemsResponse.prototype.getTotalItems = function() {
19348
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
19349
+ };
19350
+
19351
+
19352
+ /**
19353
+ * @param {number} value
19354
+ * @return {!proto.game.WagerListItemsResponse} returns this
19355
+ */
19356
+ proto.game.WagerListItemsResponse.prototype.setTotalItems = function(value) {
19357
+ return jspb.Message.setField(this, 3, value);
19358
+ };
19359
+
19360
+
19361
+ /**
19362
+ * Clears the field making it undefined.
19363
+ * @return {!proto.game.WagerListItemsResponse} returns this
19364
+ */
19365
+ proto.game.WagerListItemsResponse.prototype.clearTotalItems = function() {
19366
+ return jspb.Message.setField(this, 3, undefined);
19367
+ };
19368
+
19369
+
19370
+ /**
19371
+ * Returns whether this field is set.
19372
+ * @return {boolean}
19373
+ */
19374
+ proto.game.WagerListItemsResponse.prototype.hasTotalItems = function() {
19375
+ return jspb.Message.getField(this, 3) != null;
19376
+ };
19377
+
19378
+
18004
19379
  goog.object.extend(exports, proto.game);