protobuf-platform 1.0.75 → 1.0.77

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.proto CHANGED
@@ -63,6 +63,7 @@ message CategoryItem {
63
63
  optional string description = 4;
64
64
  optional int32 is_active = 5;
65
65
  optional string image = 6;
66
+ optional int32 count_of_collections = 7;
66
67
  }
67
68
  //Category CRUD | Requests
68
69
  message CategoryRequest {
@@ -105,6 +106,7 @@ message CollectionItem {
105
106
  optional string description = 5;
106
107
  optional int32 is_active = 6;
107
108
  optional string image = 7;
109
+ optional int32 count_of_games = 8;
108
110
  }
109
111
  //Collection CRUD | Requests
110
112
  message CollectionRequest {
@@ -152,6 +154,7 @@ message TagItem {
152
154
  optional string description = 4;
153
155
  optional int32 is_active = 5;
154
156
  optional string image = 6;
157
+ optional int32 count_of_games = 7;
155
158
  }
156
159
  //Tag CRUD | Requests
157
160
  message TagRequest {
@@ -302,13 +305,14 @@ message GamesPriorityRequest {
302
305
  optional string geo = 3;
303
306
  }
304
307
  message InitGameSessionRequest {
305
- string game_uuid = 1;
306
- string player_id = 2;
307
- string player_name = 3;
308
- string currency = 4;
309
- optional int32 has_lobby = 5;
310
- optional string return_url = 6;
311
- optional string language = 7;
308
+ string game_slug = 1;
309
+ string provider_slug = 2;
310
+ string player_id = 3;
311
+ string player_name = 4;
312
+ string currency = 5;
313
+ optional int32 has_lobby = 6;
314
+ optional string return_url = 7;
315
+ optional string language = 8;
312
316
  }
313
317
  message InitDemoGameSessionRequest {
314
318
  string game_slug = 1;
package/game/game_pb.js CHANGED
@@ -1963,7 +1963,8 @@ proto.game.CategoryItem.toObject = function(includeInstance, msg) {
1963
1963
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
1964
1964
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1965
1965
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
1966
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
1966
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
1967
+ countOfCollections: jspb.Message.getFieldWithDefault(msg, 7, 0)
1967
1968
  };
1968
1969
 
1969
1970
  if (includeInstance) {
@@ -2024,6 +2025,10 @@ proto.game.CategoryItem.deserializeBinaryFromReader = function(msg, reader) {
2024
2025
  var value = /** @type {string} */ (reader.readString());
2025
2026
  msg.setImage(value);
2026
2027
  break;
2028
+ case 7:
2029
+ var value = /** @type {number} */ (reader.readInt32());
2030
+ msg.setCountOfCollections(value);
2031
+ break;
2027
2032
  default:
2028
2033
  reader.skipField();
2029
2034
  break;
@@ -2095,6 +2100,13 @@ proto.game.CategoryItem.serializeBinaryToWriter = function(message, writer) {
2095
2100
  f
2096
2101
  );
2097
2102
  }
2103
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
2104
+ if (f != null) {
2105
+ writer.writeInt32(
2106
+ 7,
2107
+ f
2108
+ );
2109
+ }
2098
2110
  };
2099
2111
 
2100
2112
 
@@ -2314,6 +2326,42 @@ proto.game.CategoryItem.prototype.hasImage = function() {
2314
2326
  };
2315
2327
 
2316
2328
 
2329
+ /**
2330
+ * optional int32 count_of_collections = 7;
2331
+ * @return {number}
2332
+ */
2333
+ proto.game.CategoryItem.prototype.getCountOfCollections = function() {
2334
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * @param {number} value
2340
+ * @return {!proto.game.CategoryItem} returns this
2341
+ */
2342
+ proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
2343
+ return jspb.Message.setField(this, 7, value);
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * Clears the field making it undefined.
2349
+ * @return {!proto.game.CategoryItem} returns this
2350
+ */
2351
+ proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
2352
+ return jspb.Message.setField(this, 7, undefined);
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * Returns whether this field is set.
2358
+ * @return {boolean}
2359
+ */
2360
+ proto.game.CategoryItem.prototype.hasCountOfCollections = function() {
2361
+ return jspb.Message.getField(this, 7) != null;
2362
+ };
2363
+
2364
+
2317
2365
 
2318
2366
  /**
2319
2367
  * Oneof group definitions for this message. Each group defines the field
@@ -3683,7 +3731,8 @@ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
3683
3731
  slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
3684
3732
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
3685
3733
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
3686
- image: jspb.Message.getFieldWithDefault(msg, 7, "")
3734
+ image: jspb.Message.getFieldWithDefault(msg, 7, ""),
3735
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
3687
3736
  };
3688
3737
 
3689
3738
  if (includeInstance) {
@@ -3749,6 +3798,10 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
3749
3798
  var value = /** @type {string} */ (reader.readString());
3750
3799
  msg.setImage(value);
3751
3800
  break;
3801
+ case 8:
3802
+ var value = /** @type {number} */ (reader.readInt32());
3803
+ msg.setCountOfGames(value);
3804
+ break;
3752
3805
  default:
3753
3806
  reader.skipField();
3754
3807
  break;
@@ -3828,6 +3881,13 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
3828
3881
  f
3829
3882
  );
3830
3883
  }
3884
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
3885
+ if (f != null) {
3886
+ writer.writeInt32(
3887
+ 8,
3888
+ f
3889
+ );
3890
+ }
3831
3891
  };
3832
3892
 
3833
3893
 
@@ -4084,6 +4144,42 @@ proto.game.CollectionItem.prototype.hasImage = function() {
4084
4144
  };
4085
4145
 
4086
4146
 
4147
+ /**
4148
+ * optional int32 count_of_games = 8;
4149
+ * @return {number}
4150
+ */
4151
+ proto.game.CollectionItem.prototype.getCountOfGames = function() {
4152
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
4153
+ };
4154
+
4155
+
4156
+ /**
4157
+ * @param {number} value
4158
+ * @return {!proto.game.CollectionItem} returns this
4159
+ */
4160
+ proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
4161
+ return jspb.Message.setField(this, 8, value);
4162
+ };
4163
+
4164
+
4165
+ /**
4166
+ * Clears the field making it undefined.
4167
+ * @return {!proto.game.CollectionItem} returns this
4168
+ */
4169
+ proto.game.CollectionItem.prototype.clearCountOfGames = function() {
4170
+ return jspb.Message.setField(this, 8, undefined);
4171
+ };
4172
+
4173
+
4174
+ /**
4175
+ * Returns whether this field is set.
4176
+ * @return {boolean}
4177
+ */
4178
+ proto.game.CollectionItem.prototype.hasCountOfGames = function() {
4179
+ return jspb.Message.getField(this, 8) != null;
4180
+ };
4181
+
4182
+
4087
4183
 
4088
4184
  /**
4089
4185
  * Oneof group definitions for this message. Each group defines the field
@@ -5708,7 +5804,8 @@ proto.game.TagItem.toObject = function(includeInstance, msg) {
5708
5804
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
5709
5805
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
5710
5806
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
5711
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
5807
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
5808
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
5712
5809
  };
5713
5810
 
5714
5811
  if (includeInstance) {
@@ -5769,6 +5866,10 @@ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
5769
5866
  var value = /** @type {string} */ (reader.readString());
5770
5867
  msg.setImage(value);
5771
5868
  break;
5869
+ case 7:
5870
+ var value = /** @type {number} */ (reader.readInt32());
5871
+ msg.setCountOfGames(value);
5872
+ break;
5772
5873
  default:
5773
5874
  reader.skipField();
5774
5875
  break;
@@ -5840,6 +5941,13 @@ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
5840
5941
  f
5841
5942
  );
5842
5943
  }
5944
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
5945
+ if (f != null) {
5946
+ writer.writeInt32(
5947
+ 7,
5948
+ f
5949
+ );
5950
+ }
5843
5951
  };
5844
5952
 
5845
5953
 
@@ -6059,6 +6167,42 @@ proto.game.TagItem.prototype.hasImage = function() {
6059
6167
  };
6060
6168
 
6061
6169
 
6170
+ /**
6171
+ * optional int32 count_of_games = 7;
6172
+ * @return {number}
6173
+ */
6174
+ proto.game.TagItem.prototype.getCountOfGames = function() {
6175
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
6176
+ };
6177
+
6178
+
6179
+ /**
6180
+ * @param {number} value
6181
+ * @return {!proto.game.TagItem} returns this
6182
+ */
6183
+ proto.game.TagItem.prototype.setCountOfGames = function(value) {
6184
+ return jspb.Message.setField(this, 7, value);
6185
+ };
6186
+
6187
+
6188
+ /**
6189
+ * Clears the field making it undefined.
6190
+ * @return {!proto.game.TagItem} returns this
6191
+ */
6192
+ proto.game.TagItem.prototype.clearCountOfGames = function() {
6193
+ return jspb.Message.setField(this, 7, undefined);
6194
+ };
6195
+
6196
+
6197
+ /**
6198
+ * Returns whether this field is set.
6199
+ * @return {boolean}
6200
+ */
6201
+ proto.game.TagItem.prototype.hasCountOfGames = function() {
6202
+ return jspb.Message.getField(this, 7) != null;
6203
+ };
6204
+
6205
+
6062
6206
 
6063
6207
  /**
6064
6208
  * Oneof group definitions for this message. Each group defines the field
@@ -12570,13 +12714,14 @@ proto.game.InitGameSessionRequest.prototype.toObject = function(opt_includeInsta
12570
12714
  */
12571
12715
  proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
12572
12716
  var f, obj = {
12573
- gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
12574
- playerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
12575
- playerName: jspb.Message.getFieldWithDefault(msg, 3, ""),
12576
- currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
12577
- hasLobby: jspb.Message.getFieldWithDefault(msg, 5, 0),
12578
- returnUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
12579
- language: jspb.Message.getFieldWithDefault(msg, 7, "")
12717
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
12718
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
12719
+ playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
12720
+ playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
12721
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
12722
+ hasLobby: jspb.Message.getFieldWithDefault(msg, 6, 0),
12723
+ returnUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
12724
+ language: jspb.Message.getFieldWithDefault(msg, 8, "")
12580
12725
  };
12581
12726
 
12582
12727
  if (includeInstance) {
@@ -12615,29 +12760,33 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
12615
12760
  switch (field) {
12616
12761
  case 1:
12617
12762
  var value = /** @type {string} */ (reader.readString());
12618
- msg.setGameUuid(value);
12763
+ msg.setGameSlug(value);
12619
12764
  break;
12620
12765
  case 2:
12621
12766
  var value = /** @type {string} */ (reader.readString());
12622
- msg.setPlayerId(value);
12767
+ msg.setProviderSlug(value);
12623
12768
  break;
12624
12769
  case 3:
12625
12770
  var value = /** @type {string} */ (reader.readString());
12626
- msg.setPlayerName(value);
12771
+ msg.setPlayerId(value);
12627
12772
  break;
12628
12773
  case 4:
12629
12774
  var value = /** @type {string} */ (reader.readString());
12630
- msg.setCurrency(value);
12775
+ msg.setPlayerName(value);
12631
12776
  break;
12632
12777
  case 5:
12778
+ var value = /** @type {string} */ (reader.readString());
12779
+ msg.setCurrency(value);
12780
+ break;
12781
+ case 6:
12633
12782
  var value = /** @type {number} */ (reader.readInt32());
12634
12783
  msg.setHasLobby(value);
12635
12784
  break;
12636
- case 6:
12785
+ case 7:
12637
12786
  var value = /** @type {string} */ (reader.readString());
12638
12787
  msg.setReturnUrl(value);
12639
12788
  break;
12640
- case 7:
12789
+ case 8:
12641
12790
  var value = /** @type {string} */ (reader.readString());
12642
12791
  msg.setLanguage(value);
12643
12792
  break;
@@ -12670,44 +12819,44 @@ proto.game.InitGameSessionRequest.prototype.serializeBinary = function() {
12670
12819
  */
12671
12820
  proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
12672
12821
  var f = undefined;
12673
- f = message.getGameUuid();
12822
+ f = message.getGameSlug();
12674
12823
  if (f.length > 0) {
12675
12824
  writer.writeString(
12676
12825
  1,
12677
12826
  f
12678
12827
  );
12679
12828
  }
12680
- f = message.getPlayerId();
12829
+ f = message.getProviderSlug();
12681
12830
  if (f.length > 0) {
12682
12831
  writer.writeString(
12683
12832
  2,
12684
12833
  f
12685
12834
  );
12686
12835
  }
12687
- f = message.getPlayerName();
12836
+ f = message.getPlayerId();
12688
12837
  if (f.length > 0) {
12689
12838
  writer.writeString(
12690
12839
  3,
12691
12840
  f
12692
12841
  );
12693
12842
  }
12694
- f = message.getCurrency();
12843
+ f = message.getPlayerName();
12695
12844
  if (f.length > 0) {
12696
12845
  writer.writeString(
12697
12846
  4,
12698
12847
  f
12699
12848
  );
12700
12849
  }
12701
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
12702
- if (f != null) {
12703
- writer.writeInt32(
12850
+ f = message.getCurrency();
12851
+ if (f.length > 0) {
12852
+ writer.writeString(
12704
12853
  5,
12705
12854
  f
12706
12855
  );
12707
12856
  }
12708
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
12857
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
12709
12858
  if (f != null) {
12710
- writer.writeString(
12859
+ writer.writeInt32(
12711
12860
  6,
12712
12861
  f
12713
12862
  );
@@ -12719,14 +12868,21 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
12719
12868
  f
12720
12869
  );
12721
12870
  }
12871
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
12872
+ if (f != null) {
12873
+ writer.writeString(
12874
+ 8,
12875
+ f
12876
+ );
12877
+ }
12722
12878
  };
12723
12879
 
12724
12880
 
12725
12881
  /**
12726
- * optional string game_uuid = 1;
12882
+ * optional string game_slug = 1;
12727
12883
  * @return {string}
12728
12884
  */
12729
- proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
12885
+ proto.game.InitGameSessionRequest.prototype.getGameSlug = function() {
12730
12886
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12731
12887
  };
12732
12888
 
@@ -12735,16 +12891,16 @@ proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
12735
12891
  * @param {string} value
12736
12892
  * @return {!proto.game.InitGameSessionRequest} returns this
12737
12893
  */
12738
- proto.game.InitGameSessionRequest.prototype.setGameUuid = function(value) {
12894
+ proto.game.InitGameSessionRequest.prototype.setGameSlug = function(value) {
12739
12895
  return jspb.Message.setProto3StringField(this, 1, value);
12740
12896
  };
12741
12897
 
12742
12898
 
12743
12899
  /**
12744
- * optional string player_id = 2;
12900
+ * optional string provider_slug = 2;
12745
12901
  * @return {string}
12746
12902
  */
12747
- proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12903
+ proto.game.InitGameSessionRequest.prototype.getProviderSlug = function() {
12748
12904
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12749
12905
  };
12750
12906
 
@@ -12753,16 +12909,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12753
12909
  * @param {string} value
12754
12910
  * @return {!proto.game.InitGameSessionRequest} returns this
12755
12911
  */
12756
- proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
12912
+ proto.game.InitGameSessionRequest.prototype.setProviderSlug = function(value) {
12757
12913
  return jspb.Message.setProto3StringField(this, 2, value);
12758
12914
  };
12759
12915
 
12760
12916
 
12761
12917
  /**
12762
- * optional string player_name = 3;
12918
+ * optional string player_id = 3;
12763
12919
  * @return {string}
12764
12920
  */
12765
- proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12921
+ proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
12766
12922
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12767
12923
  };
12768
12924
 
@@ -12771,16 +12927,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12771
12927
  * @param {string} value
12772
12928
  * @return {!proto.game.InitGameSessionRequest} returns this
12773
12929
  */
12774
- proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
12930
+ proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
12775
12931
  return jspb.Message.setProto3StringField(this, 3, value);
12776
12932
  };
12777
12933
 
12778
12934
 
12779
12935
  /**
12780
- * optional string currency = 4;
12936
+ * optional string player_name = 4;
12781
12937
  * @return {string}
12782
12938
  */
12783
- proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12939
+ proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
12784
12940
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12785
12941
  };
12786
12942
 
@@ -12789,17 +12945,35 @@ proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12789
12945
  * @param {string} value
12790
12946
  * @return {!proto.game.InitGameSessionRequest} returns this
12791
12947
  */
12792
- proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
12948
+ proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
12793
12949
  return jspb.Message.setProto3StringField(this, 4, value);
12794
12950
  };
12795
12951
 
12796
12952
 
12797
12953
  /**
12798
- * optional int32 has_lobby = 5;
12954
+ * optional string currency = 5;
12955
+ * @return {string}
12956
+ */
12957
+ proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
12958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12959
+ };
12960
+
12961
+
12962
+ /**
12963
+ * @param {string} value
12964
+ * @return {!proto.game.InitGameSessionRequest} returns this
12965
+ */
12966
+ proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
12967
+ return jspb.Message.setProto3StringField(this, 5, value);
12968
+ };
12969
+
12970
+
12971
+ /**
12972
+ * optional int32 has_lobby = 6;
12799
12973
  * @return {number}
12800
12974
  */
12801
12975
  proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
12802
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
12976
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
12803
12977
  };
12804
12978
 
12805
12979
 
@@ -12808,7 +12982,7 @@ proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
12808
12982
  * @return {!proto.game.InitGameSessionRequest} returns this
12809
12983
  */
12810
12984
  proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
12811
- return jspb.Message.setField(this, 5, value);
12985
+ return jspb.Message.setField(this, 6, value);
12812
12986
  };
12813
12987
 
12814
12988
 
@@ -12817,7 +12991,7 @@ proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
12817
12991
  * @return {!proto.game.InitGameSessionRequest} returns this
12818
12992
  */
12819
12993
  proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
12820
- return jspb.Message.setField(this, 5, undefined);
12994
+ return jspb.Message.setField(this, 6, undefined);
12821
12995
  };
12822
12996
 
12823
12997
 
@@ -12826,16 +13000,16 @@ proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
12826
13000
  * @return {boolean}
12827
13001
  */
12828
13002
  proto.game.InitGameSessionRequest.prototype.hasHasLobby = function() {
12829
- return jspb.Message.getField(this, 5) != null;
13003
+ return jspb.Message.getField(this, 6) != null;
12830
13004
  };
12831
13005
 
12832
13006
 
12833
13007
  /**
12834
- * optional string return_url = 6;
13008
+ * optional string return_url = 7;
12835
13009
  * @return {string}
12836
13010
  */
12837
13011
  proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
12838
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
13012
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12839
13013
  };
12840
13014
 
12841
13015
 
@@ -12844,7 +13018,7 @@ proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
12844
13018
  * @return {!proto.game.InitGameSessionRequest} returns this
12845
13019
  */
12846
13020
  proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
12847
- return jspb.Message.setField(this, 6, value);
13021
+ return jspb.Message.setField(this, 7, value);
12848
13022
  };
12849
13023
 
12850
13024
 
@@ -12853,7 +13027,7 @@ proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
12853
13027
  * @return {!proto.game.InitGameSessionRequest} returns this
12854
13028
  */
12855
13029
  proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
12856
- return jspb.Message.setField(this, 6, undefined);
13030
+ return jspb.Message.setField(this, 7, undefined);
12857
13031
  };
12858
13032
 
12859
13033
 
@@ -12862,16 +13036,16 @@ proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
12862
13036
  * @return {boolean}
12863
13037
  */
12864
13038
  proto.game.InitGameSessionRequest.prototype.hasReturnUrl = function() {
12865
- return jspb.Message.getField(this, 6) != null;
13039
+ return jspb.Message.getField(this, 7) != null;
12866
13040
  };
12867
13041
 
12868
13042
 
12869
13043
  /**
12870
- * optional string language = 7;
13044
+ * optional string language = 8;
12871
13045
  * @return {string}
12872
13046
  */
12873
13047
  proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
12874
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
13048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
12875
13049
  };
12876
13050
 
12877
13051
 
@@ -12880,7 +13054,7 @@ proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
12880
13054
  * @return {!proto.game.InitGameSessionRequest} returns this
12881
13055
  */
12882
13056
  proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
12883
- return jspb.Message.setField(this, 7, value);
13057
+ return jspb.Message.setField(this, 8, value);
12884
13058
  };
12885
13059
 
12886
13060
 
@@ -12889,7 +13063,7 @@ proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
12889
13063
  * @return {!proto.game.InitGameSessionRequest} returns this
12890
13064
  */
12891
13065
  proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
12892
- return jspb.Message.setField(this, 7, undefined);
13066
+ return jspb.Message.setField(this, 8, undefined);
12893
13067
  };
12894
13068
 
12895
13069
 
@@ -12898,7 +13072,7 @@ proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
12898
13072
  * @return {boolean}
12899
13073
  */
12900
13074
  proto.game.InitGameSessionRequest.prototype.hasLanguage = function() {
12901
- return jspb.Message.getField(this, 7) != null;
13075
+ return jspb.Message.getField(this, 8) != null;
12902
13076
  };
12903
13077
 
12904
13078
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -36,6 +36,9 @@ message LoggedInResponse {
36
36
  string country = 4;
37
37
  string role = 5;
38
38
  string permissions = 6;
39
+ string locale = 7;
40
+ string first_name = 8;
41
+ string last_name = 9;
39
42
  }
40
43
  message LoginRequest {
41
44
  string email = 1;
package/user/user_pb.js CHANGED
@@ -1176,7 +1176,10 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
1176
1176
  currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
1177
1177
  country: jspb.Message.getFieldWithDefault(msg, 4, ""),
1178
1178
  role: jspb.Message.getFieldWithDefault(msg, 5, ""),
1179
- permissions: jspb.Message.getFieldWithDefault(msg, 6, "")
1179
+ permissions: jspb.Message.getFieldWithDefault(msg, 6, ""),
1180
+ locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
1181
+ firstName: jspb.Message.getFieldWithDefault(msg, 8, ""),
1182
+ lastName: jspb.Message.getFieldWithDefault(msg, 9, "")
1180
1183
  };
1181
1184
 
1182
1185
  if (includeInstance) {
@@ -1237,6 +1240,18 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
1237
1240
  var value = /** @type {string} */ (reader.readString());
1238
1241
  msg.setPermissions(value);
1239
1242
  break;
1243
+ case 7:
1244
+ var value = /** @type {string} */ (reader.readString());
1245
+ msg.setLocale(value);
1246
+ break;
1247
+ case 8:
1248
+ var value = /** @type {string} */ (reader.readString());
1249
+ msg.setFirstName(value);
1250
+ break;
1251
+ case 9:
1252
+ var value = /** @type {string} */ (reader.readString());
1253
+ msg.setLastName(value);
1254
+ break;
1240
1255
  default:
1241
1256
  reader.skipField();
1242
1257
  break;
@@ -1308,6 +1323,27 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
1308
1323
  f
1309
1324
  );
1310
1325
  }
1326
+ f = message.getLocale();
1327
+ if (f.length > 0) {
1328
+ writer.writeString(
1329
+ 7,
1330
+ f
1331
+ );
1332
+ }
1333
+ f = message.getFirstName();
1334
+ if (f.length > 0) {
1335
+ writer.writeString(
1336
+ 8,
1337
+ f
1338
+ );
1339
+ }
1340
+ f = message.getLastName();
1341
+ if (f.length > 0) {
1342
+ writer.writeString(
1343
+ 9,
1344
+ f
1345
+ );
1346
+ }
1311
1347
  };
1312
1348
 
1313
1349
 
@@ -1419,6 +1455,60 @@ proto.user.LoggedInResponse.prototype.setPermissions = function(value) {
1419
1455
  };
1420
1456
 
1421
1457
 
1458
+ /**
1459
+ * optional string locale = 7;
1460
+ * @return {string}
1461
+ */
1462
+ proto.user.LoggedInResponse.prototype.getLocale = function() {
1463
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * @param {string} value
1469
+ * @return {!proto.user.LoggedInResponse} returns this
1470
+ */
1471
+ proto.user.LoggedInResponse.prototype.setLocale = function(value) {
1472
+ return jspb.Message.setProto3StringField(this, 7, value);
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * optional string first_name = 8;
1478
+ * @return {string}
1479
+ */
1480
+ proto.user.LoggedInResponse.prototype.getFirstName = function() {
1481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * @param {string} value
1487
+ * @return {!proto.user.LoggedInResponse} returns this
1488
+ */
1489
+ proto.user.LoggedInResponse.prototype.setFirstName = function(value) {
1490
+ return jspb.Message.setProto3StringField(this, 8, value);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * optional string last_name = 9;
1496
+ * @return {string}
1497
+ */
1498
+ proto.user.LoggedInResponse.prototype.getLastName = function() {
1499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * @param {string} value
1505
+ * @return {!proto.user.LoggedInResponse} returns this
1506
+ */
1507
+ proto.user.LoggedInResponse.prototype.setLastName = function(value) {
1508
+ return jspb.Message.setProto3StringField(this, 9, value);
1509
+ };
1510
+
1511
+
1422
1512
 
1423
1513
 
1424
1514