protobuf-platform 1.2.178 → 1.2.180

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/cms/cms.proto CHANGED
@@ -265,6 +265,7 @@ message BannerGroupItem {
265
265
  optional int32 is_active = 4;
266
266
  repeated BannerItem banners = 5;
267
267
  optional string default_image = 6;
268
+ optional string default_image_cdn = 7;
268
269
  }
269
270
  message GetBannerGroupRequest {
270
271
  int32 id = 1;
package/cms/cms_pb.js CHANGED
@@ -10075,7 +10075,8 @@ proto.cms.BannerGroupItem.toObject = function(includeInstance, msg) {
10075
10075
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
10076
10076
  bannersList: jspb.Message.toObjectList(msg.getBannersList(),
10077
10077
  proto.cms.BannerItem.toObject, includeInstance),
10078
- defaultImage: jspb.Message.getFieldWithDefault(msg, 6, "")
10078
+ defaultImage: jspb.Message.getFieldWithDefault(msg, 6, ""),
10079
+ defaultImageCdn: jspb.Message.getFieldWithDefault(msg, 7, "")
10079
10080
  };
10080
10081
 
10081
10082
  if (includeInstance) {
@@ -10137,6 +10138,10 @@ proto.cms.BannerGroupItem.deserializeBinaryFromReader = function(msg, reader) {
10137
10138
  var value = /** @type {string} */ (reader.readString());
10138
10139
  msg.setDefaultImage(value);
10139
10140
  break;
10141
+ case 7:
10142
+ var value = /** @type {string} */ (reader.readString());
10143
+ msg.setDefaultImageCdn(value);
10144
+ break;
10140
10145
  default:
10141
10146
  reader.skipField();
10142
10147
  break;
@@ -10209,6 +10214,13 @@ proto.cms.BannerGroupItem.serializeBinaryToWriter = function(message, writer) {
10209
10214
  f
10210
10215
  );
10211
10216
  }
10217
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
10218
+ if (f != null) {
10219
+ writer.writeString(
10220
+ 7,
10221
+ f
10222
+ );
10223
+ }
10212
10224
  };
10213
10225
 
10214
10226
 
@@ -10431,6 +10443,42 @@ proto.cms.BannerGroupItem.prototype.hasDefaultImage = function() {
10431
10443
  };
10432
10444
 
10433
10445
 
10446
+ /**
10447
+ * optional string default_image_cdn = 7;
10448
+ * @return {string}
10449
+ */
10450
+ proto.cms.BannerGroupItem.prototype.getDefaultImageCdn = function() {
10451
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
10452
+ };
10453
+
10454
+
10455
+ /**
10456
+ * @param {string} value
10457
+ * @return {!proto.cms.BannerGroupItem} returns this
10458
+ */
10459
+ proto.cms.BannerGroupItem.prototype.setDefaultImageCdn = function(value) {
10460
+ return jspb.Message.setField(this, 7, value);
10461
+ };
10462
+
10463
+
10464
+ /**
10465
+ * Clears the field making it undefined.
10466
+ * @return {!proto.cms.BannerGroupItem} returns this
10467
+ */
10468
+ proto.cms.BannerGroupItem.prototype.clearDefaultImageCdn = function() {
10469
+ return jspb.Message.setField(this, 7, undefined);
10470
+ };
10471
+
10472
+
10473
+ /**
10474
+ * Returns whether this field is set.
10475
+ * @return {boolean}
10476
+ */
10477
+ proto.cms.BannerGroupItem.prototype.hasDefaultImageCdn = function() {
10478
+ return jspb.Message.getField(this, 7) != null;
10479
+ };
10480
+
10481
+
10434
10482
 
10435
10483
 
10436
10484
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.178",
3
+ "version": "1.2.180",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -65,6 +65,10 @@ service User {
65
65
  rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
66
66
  rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
67
67
  rpc setUserCookies(UserCookiesRequest) returns (ConfirmationStatusResponse);
68
+ // Games
69
+ rpc toggleUserFavouriteGame(UserGameRequest) returns (UserToggleGameStatusResponse);
70
+ rpc getUserFavouriteGames(PaginationRequest) returns (UserGameIdsResponse);
71
+ rpc getUserLastPlayedGames(PaginationRequest) returns (UserGameIdsResponse);
68
72
  }
69
73
  //Technical
70
74
  message PingRequest { string ping = 1; }
@@ -76,6 +80,7 @@ message PaginationRequest {
76
80
  optional UserSearchParams user_search_params = 4;
77
81
  optional SegmentSearchParams segment_search_params = 5;
78
82
  optional NoteSearchParams note_search_params = 6;
83
+ optional UserGameRequest user_game_params = 7;
79
84
  }
80
85
  //Media
81
86
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
@@ -644,4 +649,15 @@ message UserCookiesRequest {
644
649
  optional int32 targeting = 2;
645
650
  optional int32 performance = 3;
646
651
  optional int32 functional = 4;
652
+ }
653
+ //Games
654
+ message UserGameRequest {
655
+ int32 user_id = 1;
656
+ optional int32 game_id = 2;
657
+ }
658
+ message UserToggleGameStatusResponse {
659
+ string status = 1; // add | removed
660
+ }
661
+ message UserGameIdsResponse {
662
+ repeated int32 game_ids = 1;
647
663
  }
@@ -521,6 +521,28 @@ function deserialize_user_UserDataResponse(buffer_arg) {
521
521
  return user_pb.UserDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
522
522
  }
523
523
 
524
+ function serialize_user_UserGameIdsResponse(arg) {
525
+ if (!(arg instanceof user_pb.UserGameIdsResponse)) {
526
+ throw new Error('Expected argument of type user.UserGameIdsResponse');
527
+ }
528
+ return Buffer.from(arg.serializeBinary());
529
+ }
530
+
531
+ function deserialize_user_UserGameIdsResponse(buffer_arg) {
532
+ return user_pb.UserGameIdsResponse.deserializeBinary(new Uint8Array(buffer_arg));
533
+ }
534
+
535
+ function serialize_user_UserGameRequest(arg) {
536
+ if (!(arg instanceof user_pb.UserGameRequest)) {
537
+ throw new Error('Expected argument of type user.UserGameRequest');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_user_UserGameRequest(buffer_arg) {
543
+ return user_pb.UserGameRequest.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
524
546
  function serialize_user_UserLimitsRequest(arg) {
525
547
  if (!(arg instanceof user_pb.UserLimitsRequest)) {
526
548
  throw new Error('Expected argument of type user.UserLimitsRequest');
@@ -576,6 +598,17 @@ function deserialize_user_UserStatusResponse(buffer_arg) {
576
598
  return user_pb.UserStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
577
599
  }
578
600
 
601
+ function serialize_user_UserToggleGameStatusResponse(arg) {
602
+ if (!(arg instanceof user_pb.UserToggleGameStatusResponse)) {
603
+ throw new Error('Expected argument of type user.UserToggleGameStatusResponse');
604
+ }
605
+ return Buffer.from(arg.serializeBinary());
606
+ }
607
+
608
+ function deserialize_user_UserToggleGameStatusResponse(buffer_arg) {
609
+ return user_pb.UserToggleGameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
610
+ }
611
+
579
612
  function serialize_user_UsersResponse(arg) {
580
613
  if (!(arg instanceof user_pb.UsersResponse)) {
581
614
  throw new Error('Expected argument of type user.UsersResponse');
@@ -1152,6 +1185,40 @@ attemptEmailConfirmation: {
1152
1185
  responseSerialize: serialize_user_ConfirmationStatusResponse,
1153
1186
  responseDeserialize: deserialize_user_ConfirmationStatusResponse,
1154
1187
  },
1188
+ // Games
1189
+ toggleUserFavouriteGame: {
1190
+ path: '/user.User/toggleUserFavouriteGame',
1191
+ requestStream: false,
1192
+ responseStream: false,
1193
+ requestType: user_pb.UserGameRequest,
1194
+ responseType: user_pb.UserToggleGameStatusResponse,
1195
+ requestSerialize: serialize_user_UserGameRequest,
1196
+ requestDeserialize: deserialize_user_UserGameRequest,
1197
+ responseSerialize: serialize_user_UserToggleGameStatusResponse,
1198
+ responseDeserialize: deserialize_user_UserToggleGameStatusResponse,
1199
+ },
1200
+ getUserFavouriteGames: {
1201
+ path: '/user.User/getUserFavouriteGames',
1202
+ requestStream: false,
1203
+ responseStream: false,
1204
+ requestType: user_pb.PaginationRequest,
1205
+ responseType: user_pb.UserGameIdsResponse,
1206
+ requestSerialize: serialize_user_PaginationRequest,
1207
+ requestDeserialize: deserialize_user_PaginationRequest,
1208
+ responseSerialize: serialize_user_UserGameIdsResponse,
1209
+ responseDeserialize: deserialize_user_UserGameIdsResponse,
1210
+ },
1211
+ getUserLastPlayedGames: {
1212
+ path: '/user.User/getUserLastPlayedGames',
1213
+ requestStream: false,
1214
+ responseStream: false,
1215
+ requestType: user_pb.PaginationRequest,
1216
+ responseType: user_pb.UserGameIdsResponse,
1217
+ requestSerialize: serialize_user_PaginationRequest,
1218
+ requestDeserialize: deserialize_user_PaginationRequest,
1219
+ responseSerialize: serialize_user_UserGameIdsResponse,
1220
+ responseDeserialize: deserialize_user_UserGameIdsResponse,
1221
+ },
1155
1222
  };
1156
1223
 
1157
1224
  exports.UserClient = grpc.makeGenericClientConstructor(UserService, 'User');
package/user/user_pb.js CHANGED
@@ -85,6 +85,8 @@ goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
85
85
  goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
86
86
  goog.exportSymbol('proto.user.UserDataRequest', null, global);
87
87
  goog.exportSymbol('proto.user.UserDataResponse', null, global);
88
+ goog.exportSymbol('proto.user.UserGameIdsResponse', null, global);
89
+ goog.exportSymbol('proto.user.UserGameRequest', null, global);
88
90
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
89
91
  goog.exportSymbol('proto.user.UserLimitsResponse', null, global);
90
92
  goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
@@ -92,6 +94,7 @@ goog.exportSymbol('proto.user.UserPasswordRequest', null, global);
92
94
  goog.exportSymbol('proto.user.UserRequest', null, global);
93
95
  goog.exportSymbol('proto.user.UserSearchParams', null, global);
94
96
  goog.exportSymbol('proto.user.UserStatusResponse', null, global);
97
+ goog.exportSymbol('proto.user.UserToggleGameStatusResponse', null, global);
95
98
  goog.exportSymbol('proto.user.UsersResponse', null, global);
96
99
  goog.exportSymbol('proto.user.VerificationStatus', null, global);
97
100
  goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
@@ -1628,6 +1631,69 @@ if (goog.DEBUG && !COMPILED) {
1628
1631
  */
1629
1632
  proto.user.UserCookiesRequest.displayName = 'proto.user.UserCookiesRequest';
1630
1633
  }
1634
+ /**
1635
+ * Generated by JsPbCodeGenerator.
1636
+ * @param {Array=} opt_data Optional initial data array, typically from a
1637
+ * server response, or constructed directly in Javascript. The array is used
1638
+ * in place and becomes part of the constructed object. It is not cloned.
1639
+ * If no data is provided, the constructed object will be empty, but still
1640
+ * valid.
1641
+ * @extends {jspb.Message}
1642
+ * @constructor
1643
+ */
1644
+ proto.user.UserGameRequest = function(opt_data) {
1645
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1646
+ };
1647
+ goog.inherits(proto.user.UserGameRequest, jspb.Message);
1648
+ if (goog.DEBUG && !COMPILED) {
1649
+ /**
1650
+ * @public
1651
+ * @override
1652
+ */
1653
+ proto.user.UserGameRequest.displayName = 'proto.user.UserGameRequest';
1654
+ }
1655
+ /**
1656
+ * Generated by JsPbCodeGenerator.
1657
+ * @param {Array=} opt_data Optional initial data array, typically from a
1658
+ * server response, or constructed directly in Javascript. The array is used
1659
+ * in place and becomes part of the constructed object. It is not cloned.
1660
+ * If no data is provided, the constructed object will be empty, but still
1661
+ * valid.
1662
+ * @extends {jspb.Message}
1663
+ * @constructor
1664
+ */
1665
+ proto.user.UserToggleGameStatusResponse = function(opt_data) {
1666
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1667
+ };
1668
+ goog.inherits(proto.user.UserToggleGameStatusResponse, jspb.Message);
1669
+ if (goog.DEBUG && !COMPILED) {
1670
+ /**
1671
+ * @public
1672
+ * @override
1673
+ */
1674
+ proto.user.UserToggleGameStatusResponse.displayName = 'proto.user.UserToggleGameStatusResponse';
1675
+ }
1676
+ /**
1677
+ * Generated by JsPbCodeGenerator.
1678
+ * @param {Array=} opt_data Optional initial data array, typically from a
1679
+ * server response, or constructed directly in Javascript. The array is used
1680
+ * in place and becomes part of the constructed object. It is not cloned.
1681
+ * If no data is provided, the constructed object will be empty, but still
1682
+ * valid.
1683
+ * @extends {jspb.Message}
1684
+ * @constructor
1685
+ */
1686
+ proto.user.UserGameIdsResponse = function(opt_data) {
1687
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserGameIdsResponse.repeatedFields_, null);
1688
+ };
1689
+ goog.inherits(proto.user.UserGameIdsResponse, jspb.Message);
1690
+ if (goog.DEBUG && !COMPILED) {
1691
+ /**
1692
+ * @public
1693
+ * @override
1694
+ */
1695
+ proto.user.UserGameIdsResponse.displayName = 'proto.user.UserGameIdsResponse';
1696
+ }
1631
1697
 
1632
1698
 
1633
1699
 
@@ -1925,7 +1991,8 @@ proto.user.PaginationRequest.toObject = function(includeInstance, msg) {
1925
1991
  order: jspb.Message.getFieldWithDefault(msg, 3, ""),
1926
1992
  userSearchParams: (f = msg.getUserSearchParams()) && proto.user.UserSearchParams.toObject(includeInstance, f),
1927
1993
  segmentSearchParams: (f = msg.getSegmentSearchParams()) && proto.user.SegmentSearchParams.toObject(includeInstance, f),
1928
- noteSearchParams: (f = msg.getNoteSearchParams()) && proto.user.NoteSearchParams.toObject(includeInstance, f)
1994
+ noteSearchParams: (f = msg.getNoteSearchParams()) && proto.user.NoteSearchParams.toObject(includeInstance, f),
1995
+ userGameParams: (f = msg.getUserGameParams()) && proto.user.UserGameRequest.toObject(includeInstance, f)
1929
1996
  };
1930
1997
 
1931
1998
  if (includeInstance) {
@@ -1989,6 +2056,11 @@ proto.user.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
1989
2056
  reader.readMessage(value,proto.user.NoteSearchParams.deserializeBinaryFromReader);
1990
2057
  msg.setNoteSearchParams(value);
1991
2058
  break;
2059
+ case 7:
2060
+ var value = new proto.user.UserGameRequest;
2061
+ reader.readMessage(value,proto.user.UserGameRequest.deserializeBinaryFromReader);
2062
+ msg.setUserGameParams(value);
2063
+ break;
1992
2064
  default:
1993
2065
  reader.skipField();
1994
2066
  break;
@@ -2063,6 +2135,14 @@ proto.user.PaginationRequest.serializeBinaryToWriter = function(message, writer)
2063
2135
  proto.user.NoteSearchParams.serializeBinaryToWriter
2064
2136
  );
2065
2137
  }
2138
+ f = message.getUserGameParams();
2139
+ if (f != null) {
2140
+ writer.writeMessage(
2141
+ 7,
2142
+ f,
2143
+ proto.user.UserGameRequest.serializeBinaryToWriter
2144
+ );
2145
+ }
2066
2146
  };
2067
2147
 
2068
2148
 
@@ -2249,6 +2329,43 @@ proto.user.PaginationRequest.prototype.hasNoteSearchParams = function() {
2249
2329
  };
2250
2330
 
2251
2331
 
2332
+ /**
2333
+ * optional UserGameRequest user_game_params = 7;
2334
+ * @return {?proto.user.UserGameRequest}
2335
+ */
2336
+ proto.user.PaginationRequest.prototype.getUserGameParams = function() {
2337
+ return /** @type{?proto.user.UserGameRequest} */ (
2338
+ jspb.Message.getWrapperField(this, proto.user.UserGameRequest, 7));
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * @param {?proto.user.UserGameRequest|undefined} value
2344
+ * @return {!proto.user.PaginationRequest} returns this
2345
+ */
2346
+ proto.user.PaginationRequest.prototype.setUserGameParams = function(value) {
2347
+ return jspb.Message.setWrapperField(this, 7, value);
2348
+ };
2349
+
2350
+
2351
+ /**
2352
+ * Clears the message field making it undefined.
2353
+ * @return {!proto.user.PaginationRequest} returns this
2354
+ */
2355
+ proto.user.PaginationRequest.prototype.clearUserGameParams = function() {
2356
+ return this.setUserGameParams(undefined);
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * Returns whether this field is set.
2362
+ * @return {boolean}
2363
+ */
2364
+ proto.user.PaginationRequest.prototype.hasUserGameParams = function() {
2365
+ return jspb.Message.getField(this, 7) != null;
2366
+ };
2367
+
2368
+
2252
2369
 
2253
2370
 
2254
2371
 
@@ -28389,4 +28506,470 @@ proto.user.UserCookiesRequest.prototype.hasFunctional = function() {
28389
28506
  };
28390
28507
 
28391
28508
 
28509
+
28510
+
28511
+
28512
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28513
+ /**
28514
+ * Creates an object representation of this proto.
28515
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28516
+ * Optional fields that are not set will be set to undefined.
28517
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28518
+ * For the list of reserved names please see:
28519
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28520
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28521
+ * JSPB instance for transitional soy proto support:
28522
+ * http://goto/soy-param-migration
28523
+ * @return {!Object}
28524
+ */
28525
+ proto.user.UserGameRequest.prototype.toObject = function(opt_includeInstance) {
28526
+ return proto.user.UserGameRequest.toObject(opt_includeInstance, this);
28527
+ };
28528
+
28529
+
28530
+ /**
28531
+ * Static version of the {@see toObject} method.
28532
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28533
+ * the JSPB instance for transitional soy proto support:
28534
+ * http://goto/soy-param-migration
28535
+ * @param {!proto.user.UserGameRequest} msg The msg instance to transform.
28536
+ * @return {!Object}
28537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28538
+ */
28539
+ proto.user.UserGameRequest.toObject = function(includeInstance, msg) {
28540
+ var f, obj = {
28541
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
28542
+ gameId: jspb.Message.getFieldWithDefault(msg, 2, 0)
28543
+ };
28544
+
28545
+ if (includeInstance) {
28546
+ obj.$jspbMessageInstance = msg;
28547
+ }
28548
+ return obj;
28549
+ };
28550
+ }
28551
+
28552
+
28553
+ /**
28554
+ * Deserializes binary data (in protobuf wire format).
28555
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28556
+ * @return {!proto.user.UserGameRequest}
28557
+ */
28558
+ proto.user.UserGameRequest.deserializeBinary = function(bytes) {
28559
+ var reader = new jspb.BinaryReader(bytes);
28560
+ var msg = new proto.user.UserGameRequest;
28561
+ return proto.user.UserGameRequest.deserializeBinaryFromReader(msg, reader);
28562
+ };
28563
+
28564
+
28565
+ /**
28566
+ * Deserializes binary data (in protobuf wire format) from the
28567
+ * given reader into the given message object.
28568
+ * @param {!proto.user.UserGameRequest} msg The message object to deserialize into.
28569
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28570
+ * @return {!proto.user.UserGameRequest}
28571
+ */
28572
+ proto.user.UserGameRequest.deserializeBinaryFromReader = function(msg, reader) {
28573
+ while (reader.nextField()) {
28574
+ if (reader.isEndGroup()) {
28575
+ break;
28576
+ }
28577
+ var field = reader.getFieldNumber();
28578
+ switch (field) {
28579
+ case 1:
28580
+ var value = /** @type {number} */ (reader.readInt32());
28581
+ msg.setUserId(value);
28582
+ break;
28583
+ case 2:
28584
+ var value = /** @type {number} */ (reader.readInt32());
28585
+ msg.setGameId(value);
28586
+ break;
28587
+ default:
28588
+ reader.skipField();
28589
+ break;
28590
+ }
28591
+ }
28592
+ return msg;
28593
+ };
28594
+
28595
+
28596
+ /**
28597
+ * Serializes the message to binary data (in protobuf wire format).
28598
+ * @return {!Uint8Array}
28599
+ */
28600
+ proto.user.UserGameRequest.prototype.serializeBinary = function() {
28601
+ var writer = new jspb.BinaryWriter();
28602
+ proto.user.UserGameRequest.serializeBinaryToWriter(this, writer);
28603
+ return writer.getResultBuffer();
28604
+ };
28605
+
28606
+
28607
+ /**
28608
+ * Serializes the given message to binary data (in protobuf wire
28609
+ * format), writing to the given BinaryWriter.
28610
+ * @param {!proto.user.UserGameRequest} message
28611
+ * @param {!jspb.BinaryWriter} writer
28612
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28613
+ */
28614
+ proto.user.UserGameRequest.serializeBinaryToWriter = function(message, writer) {
28615
+ var f = undefined;
28616
+ f = message.getUserId();
28617
+ if (f !== 0) {
28618
+ writer.writeInt32(
28619
+ 1,
28620
+ f
28621
+ );
28622
+ }
28623
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
28624
+ if (f != null) {
28625
+ writer.writeInt32(
28626
+ 2,
28627
+ f
28628
+ );
28629
+ }
28630
+ };
28631
+
28632
+
28633
+ /**
28634
+ * optional int32 user_id = 1;
28635
+ * @return {number}
28636
+ */
28637
+ proto.user.UserGameRequest.prototype.getUserId = function() {
28638
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28639
+ };
28640
+
28641
+
28642
+ /**
28643
+ * @param {number} value
28644
+ * @return {!proto.user.UserGameRequest} returns this
28645
+ */
28646
+ proto.user.UserGameRequest.prototype.setUserId = function(value) {
28647
+ return jspb.Message.setProto3IntField(this, 1, value);
28648
+ };
28649
+
28650
+
28651
+ /**
28652
+ * optional int32 game_id = 2;
28653
+ * @return {number}
28654
+ */
28655
+ proto.user.UserGameRequest.prototype.getGameId = function() {
28656
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
28657
+ };
28658
+
28659
+
28660
+ /**
28661
+ * @param {number} value
28662
+ * @return {!proto.user.UserGameRequest} returns this
28663
+ */
28664
+ proto.user.UserGameRequest.prototype.setGameId = function(value) {
28665
+ return jspb.Message.setField(this, 2, value);
28666
+ };
28667
+
28668
+
28669
+ /**
28670
+ * Clears the field making it undefined.
28671
+ * @return {!proto.user.UserGameRequest} returns this
28672
+ */
28673
+ proto.user.UserGameRequest.prototype.clearGameId = function() {
28674
+ return jspb.Message.setField(this, 2, undefined);
28675
+ };
28676
+
28677
+
28678
+ /**
28679
+ * Returns whether this field is set.
28680
+ * @return {boolean}
28681
+ */
28682
+ proto.user.UserGameRequest.prototype.hasGameId = function() {
28683
+ return jspb.Message.getField(this, 2) != null;
28684
+ };
28685
+
28686
+
28687
+
28688
+
28689
+
28690
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28691
+ /**
28692
+ * Creates an object representation of this proto.
28693
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28694
+ * Optional fields that are not set will be set to undefined.
28695
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28696
+ * For the list of reserved names please see:
28697
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28698
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28699
+ * JSPB instance for transitional soy proto support:
28700
+ * http://goto/soy-param-migration
28701
+ * @return {!Object}
28702
+ */
28703
+ proto.user.UserToggleGameStatusResponse.prototype.toObject = function(opt_includeInstance) {
28704
+ return proto.user.UserToggleGameStatusResponse.toObject(opt_includeInstance, this);
28705
+ };
28706
+
28707
+
28708
+ /**
28709
+ * Static version of the {@see toObject} method.
28710
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28711
+ * the JSPB instance for transitional soy proto support:
28712
+ * http://goto/soy-param-migration
28713
+ * @param {!proto.user.UserToggleGameStatusResponse} msg The msg instance to transform.
28714
+ * @return {!Object}
28715
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28716
+ */
28717
+ proto.user.UserToggleGameStatusResponse.toObject = function(includeInstance, msg) {
28718
+ var f, obj = {
28719
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
28720
+ };
28721
+
28722
+ if (includeInstance) {
28723
+ obj.$jspbMessageInstance = msg;
28724
+ }
28725
+ return obj;
28726
+ };
28727
+ }
28728
+
28729
+
28730
+ /**
28731
+ * Deserializes binary data (in protobuf wire format).
28732
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28733
+ * @return {!proto.user.UserToggleGameStatusResponse}
28734
+ */
28735
+ proto.user.UserToggleGameStatusResponse.deserializeBinary = function(bytes) {
28736
+ var reader = new jspb.BinaryReader(bytes);
28737
+ var msg = new proto.user.UserToggleGameStatusResponse;
28738
+ return proto.user.UserToggleGameStatusResponse.deserializeBinaryFromReader(msg, reader);
28739
+ };
28740
+
28741
+
28742
+ /**
28743
+ * Deserializes binary data (in protobuf wire format) from the
28744
+ * given reader into the given message object.
28745
+ * @param {!proto.user.UserToggleGameStatusResponse} msg The message object to deserialize into.
28746
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28747
+ * @return {!proto.user.UserToggleGameStatusResponse}
28748
+ */
28749
+ proto.user.UserToggleGameStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
28750
+ while (reader.nextField()) {
28751
+ if (reader.isEndGroup()) {
28752
+ break;
28753
+ }
28754
+ var field = reader.getFieldNumber();
28755
+ switch (field) {
28756
+ case 1:
28757
+ var value = /** @type {string} */ (reader.readString());
28758
+ msg.setStatus(value);
28759
+ break;
28760
+ default:
28761
+ reader.skipField();
28762
+ break;
28763
+ }
28764
+ }
28765
+ return msg;
28766
+ };
28767
+
28768
+
28769
+ /**
28770
+ * Serializes the message to binary data (in protobuf wire format).
28771
+ * @return {!Uint8Array}
28772
+ */
28773
+ proto.user.UserToggleGameStatusResponse.prototype.serializeBinary = function() {
28774
+ var writer = new jspb.BinaryWriter();
28775
+ proto.user.UserToggleGameStatusResponse.serializeBinaryToWriter(this, writer);
28776
+ return writer.getResultBuffer();
28777
+ };
28778
+
28779
+
28780
+ /**
28781
+ * Serializes the given message to binary data (in protobuf wire
28782
+ * format), writing to the given BinaryWriter.
28783
+ * @param {!proto.user.UserToggleGameStatusResponse} message
28784
+ * @param {!jspb.BinaryWriter} writer
28785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28786
+ */
28787
+ proto.user.UserToggleGameStatusResponse.serializeBinaryToWriter = function(message, writer) {
28788
+ var f = undefined;
28789
+ f = message.getStatus();
28790
+ if (f.length > 0) {
28791
+ writer.writeString(
28792
+ 1,
28793
+ f
28794
+ );
28795
+ }
28796
+ };
28797
+
28798
+
28799
+ /**
28800
+ * optional string status = 1;
28801
+ * @return {string}
28802
+ */
28803
+ proto.user.UserToggleGameStatusResponse.prototype.getStatus = function() {
28804
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28805
+ };
28806
+
28807
+
28808
+ /**
28809
+ * @param {string} value
28810
+ * @return {!proto.user.UserToggleGameStatusResponse} returns this
28811
+ */
28812
+ proto.user.UserToggleGameStatusResponse.prototype.setStatus = function(value) {
28813
+ return jspb.Message.setProto3StringField(this, 1, value);
28814
+ };
28815
+
28816
+
28817
+
28818
+ /**
28819
+ * List of repeated fields within this message type.
28820
+ * @private {!Array<number>}
28821
+ * @const
28822
+ */
28823
+ proto.user.UserGameIdsResponse.repeatedFields_ = [1];
28824
+
28825
+
28826
+
28827
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28828
+ /**
28829
+ * Creates an object representation of this proto.
28830
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28831
+ * Optional fields that are not set will be set to undefined.
28832
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28833
+ * For the list of reserved names please see:
28834
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28835
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28836
+ * JSPB instance for transitional soy proto support:
28837
+ * http://goto/soy-param-migration
28838
+ * @return {!Object}
28839
+ */
28840
+ proto.user.UserGameIdsResponse.prototype.toObject = function(opt_includeInstance) {
28841
+ return proto.user.UserGameIdsResponse.toObject(opt_includeInstance, this);
28842
+ };
28843
+
28844
+
28845
+ /**
28846
+ * Static version of the {@see toObject} method.
28847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28848
+ * the JSPB instance for transitional soy proto support:
28849
+ * http://goto/soy-param-migration
28850
+ * @param {!proto.user.UserGameIdsResponse} msg The msg instance to transform.
28851
+ * @return {!Object}
28852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28853
+ */
28854
+ proto.user.UserGameIdsResponse.toObject = function(includeInstance, msg) {
28855
+ var f, obj = {
28856
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
28857
+ };
28858
+
28859
+ if (includeInstance) {
28860
+ obj.$jspbMessageInstance = msg;
28861
+ }
28862
+ return obj;
28863
+ };
28864
+ }
28865
+
28866
+
28867
+ /**
28868
+ * Deserializes binary data (in protobuf wire format).
28869
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28870
+ * @return {!proto.user.UserGameIdsResponse}
28871
+ */
28872
+ proto.user.UserGameIdsResponse.deserializeBinary = function(bytes) {
28873
+ var reader = new jspb.BinaryReader(bytes);
28874
+ var msg = new proto.user.UserGameIdsResponse;
28875
+ return proto.user.UserGameIdsResponse.deserializeBinaryFromReader(msg, reader);
28876
+ };
28877
+
28878
+
28879
+ /**
28880
+ * Deserializes binary data (in protobuf wire format) from the
28881
+ * given reader into the given message object.
28882
+ * @param {!proto.user.UserGameIdsResponse} msg The message object to deserialize into.
28883
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28884
+ * @return {!proto.user.UserGameIdsResponse}
28885
+ */
28886
+ proto.user.UserGameIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
28887
+ while (reader.nextField()) {
28888
+ if (reader.isEndGroup()) {
28889
+ break;
28890
+ }
28891
+ var field = reader.getFieldNumber();
28892
+ switch (field) {
28893
+ case 1:
28894
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
28895
+ for (var i = 0; i < values.length; i++) {
28896
+ msg.addGameIds(values[i]);
28897
+ }
28898
+ break;
28899
+ default:
28900
+ reader.skipField();
28901
+ break;
28902
+ }
28903
+ }
28904
+ return msg;
28905
+ };
28906
+
28907
+
28908
+ /**
28909
+ * Serializes the message to binary data (in protobuf wire format).
28910
+ * @return {!Uint8Array}
28911
+ */
28912
+ proto.user.UserGameIdsResponse.prototype.serializeBinary = function() {
28913
+ var writer = new jspb.BinaryWriter();
28914
+ proto.user.UserGameIdsResponse.serializeBinaryToWriter(this, writer);
28915
+ return writer.getResultBuffer();
28916
+ };
28917
+
28918
+
28919
+ /**
28920
+ * Serializes the given message to binary data (in protobuf wire
28921
+ * format), writing to the given BinaryWriter.
28922
+ * @param {!proto.user.UserGameIdsResponse} message
28923
+ * @param {!jspb.BinaryWriter} writer
28924
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28925
+ */
28926
+ proto.user.UserGameIdsResponse.serializeBinaryToWriter = function(message, writer) {
28927
+ var f = undefined;
28928
+ f = message.getGameIdsList();
28929
+ if (f.length > 0) {
28930
+ writer.writePackedInt32(
28931
+ 1,
28932
+ f
28933
+ );
28934
+ }
28935
+ };
28936
+
28937
+
28938
+ /**
28939
+ * repeated int32 game_ids = 1;
28940
+ * @return {!Array<number>}
28941
+ */
28942
+ proto.user.UserGameIdsResponse.prototype.getGameIdsList = function() {
28943
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
28944
+ };
28945
+
28946
+
28947
+ /**
28948
+ * @param {!Array<number>} value
28949
+ * @return {!proto.user.UserGameIdsResponse} returns this
28950
+ */
28951
+ proto.user.UserGameIdsResponse.prototype.setGameIdsList = function(value) {
28952
+ return jspb.Message.setField(this, 1, value || []);
28953
+ };
28954
+
28955
+
28956
+ /**
28957
+ * @param {number} value
28958
+ * @param {number=} opt_index
28959
+ * @return {!proto.user.UserGameIdsResponse} returns this
28960
+ */
28961
+ proto.user.UserGameIdsResponse.prototype.addGameIds = function(value, opt_index) {
28962
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
28963
+ };
28964
+
28965
+
28966
+ /**
28967
+ * Clears the list making it empty but non-null.
28968
+ * @return {!proto.user.UserGameIdsResponse} returns this
28969
+ */
28970
+ proto.user.UserGameIdsResponse.prototype.clearGameIdsList = function() {
28971
+ return this.setGameIdsList([]);
28972
+ };
28973
+
28974
+
28392
28975
  goog.object.extend(exports, proto.user);