protobuf-platform 1.0.74 → 1.0.76
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 +9 -7
- package/game/game_grpc_pb.js +2 -1
- package/game/game_pb.js +79 -49
- package/package.json +1 -1
- package/user/user.proto +4 -0
- package/user/user_pb.js +140 -2
package/game/game.proto
CHANGED
@@ -45,6 +45,7 @@ service Game {
|
|
45
45
|
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
46
46
|
rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
|
47
47
|
rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
|
48
|
+
//Vendor
|
48
49
|
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
49
50
|
}
|
50
51
|
|
@@ -301,13 +302,14 @@ message GamesPriorityRequest {
|
|
301
302
|
optional string geo = 3;
|
302
303
|
}
|
303
304
|
message InitGameSessionRequest {
|
304
|
-
string
|
305
|
-
string
|
306
|
-
string
|
307
|
-
string
|
308
|
-
|
309
|
-
optional
|
310
|
-
optional string
|
305
|
+
string game_slug = 1;
|
306
|
+
string provider_slug = 2;
|
307
|
+
string player_id = 3;
|
308
|
+
string player_name = 4;
|
309
|
+
string currency = 5;
|
310
|
+
optional int32 has_lobby = 6;
|
311
|
+
optional string return_url = 7;
|
312
|
+
optional string language = 8;
|
311
313
|
}
|
312
314
|
message InitDemoGameSessionRequest {
|
313
315
|
string game_slug = 1;
|
package/game/game_grpc_pb.js
CHANGED
@@ -880,7 +880,8 @@ parseGames: {
|
|
880
880
|
responseSerialize: serialize_game_InitGameSessionResponse,
|
881
881
|
responseDeserialize: deserialize_game_InitGameSessionResponse,
|
882
882
|
},
|
883
|
-
|
883
|
+
// Vendor
|
884
|
+
processedVendorActionCallback: {
|
884
885
|
path: '/game.Game/processedVendorActionCallback',
|
885
886
|
requestStream: false,
|
886
887
|
responseStream: false,
|
package/game/game_pb.js
CHANGED
@@ -12570,13 +12570,14 @@ proto.game.InitGameSessionRequest.prototype.toObject = function(opt_includeInsta
|
|
12570
12570
|
*/
|
12571
12571
|
proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
|
12572
12572
|
var f, obj = {
|
12573
|
-
|
12574
|
-
|
12575
|
-
|
12576
|
-
|
12577
|
-
|
12578
|
-
|
12579
|
-
|
12573
|
+
gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
12574
|
+
providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
12575
|
+
playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
12576
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
12577
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
12578
|
+
hasLobby: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
12579
|
+
returnUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
12580
|
+
language: jspb.Message.getFieldWithDefault(msg, 8, "")
|
12580
12581
|
};
|
12581
12582
|
|
12582
12583
|
if (includeInstance) {
|
@@ -12615,29 +12616,33 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
|
|
12615
12616
|
switch (field) {
|
12616
12617
|
case 1:
|
12617
12618
|
var value = /** @type {string} */ (reader.readString());
|
12618
|
-
msg.
|
12619
|
+
msg.setGameSlug(value);
|
12619
12620
|
break;
|
12620
12621
|
case 2:
|
12621
12622
|
var value = /** @type {string} */ (reader.readString());
|
12622
|
-
msg.
|
12623
|
+
msg.setProviderSlug(value);
|
12623
12624
|
break;
|
12624
12625
|
case 3:
|
12625
12626
|
var value = /** @type {string} */ (reader.readString());
|
12626
|
-
msg.
|
12627
|
+
msg.setPlayerId(value);
|
12627
12628
|
break;
|
12628
12629
|
case 4:
|
12629
12630
|
var value = /** @type {string} */ (reader.readString());
|
12630
|
-
msg.
|
12631
|
+
msg.setPlayerName(value);
|
12631
12632
|
break;
|
12632
12633
|
case 5:
|
12634
|
+
var value = /** @type {string} */ (reader.readString());
|
12635
|
+
msg.setCurrency(value);
|
12636
|
+
break;
|
12637
|
+
case 6:
|
12633
12638
|
var value = /** @type {number} */ (reader.readInt32());
|
12634
12639
|
msg.setHasLobby(value);
|
12635
12640
|
break;
|
12636
|
-
case
|
12641
|
+
case 7:
|
12637
12642
|
var value = /** @type {string} */ (reader.readString());
|
12638
12643
|
msg.setReturnUrl(value);
|
12639
12644
|
break;
|
12640
|
-
case
|
12645
|
+
case 8:
|
12641
12646
|
var value = /** @type {string} */ (reader.readString());
|
12642
12647
|
msg.setLanguage(value);
|
12643
12648
|
break;
|
@@ -12670,44 +12675,44 @@ proto.game.InitGameSessionRequest.prototype.serializeBinary = function() {
|
|
12670
12675
|
*/
|
12671
12676
|
proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
|
12672
12677
|
var f = undefined;
|
12673
|
-
f = message.
|
12678
|
+
f = message.getGameSlug();
|
12674
12679
|
if (f.length > 0) {
|
12675
12680
|
writer.writeString(
|
12676
12681
|
1,
|
12677
12682
|
f
|
12678
12683
|
);
|
12679
12684
|
}
|
12680
|
-
f = message.
|
12685
|
+
f = message.getProviderSlug();
|
12681
12686
|
if (f.length > 0) {
|
12682
12687
|
writer.writeString(
|
12683
12688
|
2,
|
12684
12689
|
f
|
12685
12690
|
);
|
12686
12691
|
}
|
12687
|
-
f = message.
|
12692
|
+
f = message.getPlayerId();
|
12688
12693
|
if (f.length > 0) {
|
12689
12694
|
writer.writeString(
|
12690
12695
|
3,
|
12691
12696
|
f
|
12692
12697
|
);
|
12693
12698
|
}
|
12694
|
-
f = message.
|
12699
|
+
f = message.getPlayerName();
|
12695
12700
|
if (f.length > 0) {
|
12696
12701
|
writer.writeString(
|
12697
12702
|
4,
|
12698
12703
|
f
|
12699
12704
|
);
|
12700
12705
|
}
|
12701
|
-
f =
|
12702
|
-
if (f
|
12703
|
-
writer.
|
12706
|
+
f = message.getCurrency();
|
12707
|
+
if (f.length > 0) {
|
12708
|
+
writer.writeString(
|
12704
12709
|
5,
|
12705
12710
|
f
|
12706
12711
|
);
|
12707
12712
|
}
|
12708
|
-
f = /** @type {
|
12713
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
12709
12714
|
if (f != null) {
|
12710
|
-
writer.
|
12715
|
+
writer.writeInt32(
|
12711
12716
|
6,
|
12712
12717
|
f
|
12713
12718
|
);
|
@@ -12719,14 +12724,21 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
|
|
12719
12724
|
f
|
12720
12725
|
);
|
12721
12726
|
}
|
12727
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
12728
|
+
if (f != null) {
|
12729
|
+
writer.writeString(
|
12730
|
+
8,
|
12731
|
+
f
|
12732
|
+
);
|
12733
|
+
}
|
12722
12734
|
};
|
12723
12735
|
|
12724
12736
|
|
12725
12737
|
/**
|
12726
|
-
* optional string
|
12738
|
+
* optional string game_slug = 1;
|
12727
12739
|
* @return {string}
|
12728
12740
|
*/
|
12729
|
-
proto.game.InitGameSessionRequest.prototype.
|
12741
|
+
proto.game.InitGameSessionRequest.prototype.getGameSlug = function() {
|
12730
12742
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12731
12743
|
};
|
12732
12744
|
|
@@ -12735,16 +12747,16 @@ proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
|
|
12735
12747
|
* @param {string} value
|
12736
12748
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12737
12749
|
*/
|
12738
|
-
proto.game.InitGameSessionRequest.prototype.
|
12750
|
+
proto.game.InitGameSessionRequest.prototype.setGameSlug = function(value) {
|
12739
12751
|
return jspb.Message.setProto3StringField(this, 1, value);
|
12740
12752
|
};
|
12741
12753
|
|
12742
12754
|
|
12743
12755
|
/**
|
12744
|
-
* optional string
|
12756
|
+
* optional string provider_slug = 2;
|
12745
12757
|
* @return {string}
|
12746
12758
|
*/
|
12747
|
-
proto.game.InitGameSessionRequest.prototype.
|
12759
|
+
proto.game.InitGameSessionRequest.prototype.getProviderSlug = function() {
|
12748
12760
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12749
12761
|
};
|
12750
12762
|
|
@@ -12753,16 +12765,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
|
|
12753
12765
|
* @param {string} value
|
12754
12766
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12755
12767
|
*/
|
12756
|
-
proto.game.InitGameSessionRequest.prototype.
|
12768
|
+
proto.game.InitGameSessionRequest.prototype.setProviderSlug = function(value) {
|
12757
12769
|
return jspb.Message.setProto3StringField(this, 2, value);
|
12758
12770
|
};
|
12759
12771
|
|
12760
12772
|
|
12761
12773
|
/**
|
12762
|
-
* optional string
|
12774
|
+
* optional string player_id = 3;
|
12763
12775
|
* @return {string}
|
12764
12776
|
*/
|
12765
|
-
proto.game.InitGameSessionRequest.prototype.
|
12777
|
+
proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
|
12766
12778
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
12767
12779
|
};
|
12768
12780
|
|
@@ -12771,16 +12783,16 @@ proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
|
|
12771
12783
|
* @param {string} value
|
12772
12784
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12773
12785
|
*/
|
12774
|
-
proto.game.InitGameSessionRequest.prototype.
|
12786
|
+
proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
|
12775
12787
|
return jspb.Message.setProto3StringField(this, 3, value);
|
12776
12788
|
};
|
12777
12789
|
|
12778
12790
|
|
12779
12791
|
/**
|
12780
|
-
* optional string
|
12792
|
+
* optional string player_name = 4;
|
12781
12793
|
* @return {string}
|
12782
12794
|
*/
|
12783
|
-
proto.game.InitGameSessionRequest.prototype.
|
12795
|
+
proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
|
12784
12796
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
12785
12797
|
};
|
12786
12798
|
|
@@ -12789,17 +12801,35 @@ proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
|
|
12789
12801
|
* @param {string} value
|
12790
12802
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12791
12803
|
*/
|
12792
|
-
proto.game.InitGameSessionRequest.prototype.
|
12804
|
+
proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
|
12793
12805
|
return jspb.Message.setProto3StringField(this, 4, value);
|
12794
12806
|
};
|
12795
12807
|
|
12796
12808
|
|
12797
12809
|
/**
|
12798
|
-
* optional
|
12810
|
+
* optional string currency = 5;
|
12811
|
+
* @return {string}
|
12812
|
+
*/
|
12813
|
+
proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
|
12814
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
12815
|
+
};
|
12816
|
+
|
12817
|
+
|
12818
|
+
/**
|
12819
|
+
* @param {string} value
|
12820
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12821
|
+
*/
|
12822
|
+
proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
|
12823
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
12824
|
+
};
|
12825
|
+
|
12826
|
+
|
12827
|
+
/**
|
12828
|
+
* optional int32 has_lobby = 6;
|
12799
12829
|
* @return {number}
|
12800
12830
|
*/
|
12801
12831
|
proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
|
12802
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
12832
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
12803
12833
|
};
|
12804
12834
|
|
12805
12835
|
|
@@ -12808,7 +12838,7 @@ proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
|
|
12808
12838
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12809
12839
|
*/
|
12810
12840
|
proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
|
12811
|
-
return jspb.Message.setField(this,
|
12841
|
+
return jspb.Message.setField(this, 6, value);
|
12812
12842
|
};
|
12813
12843
|
|
12814
12844
|
|
@@ -12817,7 +12847,7 @@ proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
|
|
12817
12847
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12818
12848
|
*/
|
12819
12849
|
proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
|
12820
|
-
return jspb.Message.setField(this,
|
12850
|
+
return jspb.Message.setField(this, 6, undefined);
|
12821
12851
|
};
|
12822
12852
|
|
12823
12853
|
|
@@ -12826,16 +12856,16 @@ proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
|
|
12826
12856
|
* @return {boolean}
|
12827
12857
|
*/
|
12828
12858
|
proto.game.InitGameSessionRequest.prototype.hasHasLobby = function() {
|
12829
|
-
return jspb.Message.getField(this,
|
12859
|
+
return jspb.Message.getField(this, 6) != null;
|
12830
12860
|
};
|
12831
12861
|
|
12832
12862
|
|
12833
12863
|
/**
|
12834
|
-
* optional string return_url =
|
12864
|
+
* optional string return_url = 7;
|
12835
12865
|
* @return {string}
|
12836
12866
|
*/
|
12837
12867
|
proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
|
12838
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
12868
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
12839
12869
|
};
|
12840
12870
|
|
12841
12871
|
|
@@ -12844,7 +12874,7 @@ proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
|
|
12844
12874
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12845
12875
|
*/
|
12846
12876
|
proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
|
12847
|
-
return jspb.Message.setField(this,
|
12877
|
+
return jspb.Message.setField(this, 7, value);
|
12848
12878
|
};
|
12849
12879
|
|
12850
12880
|
|
@@ -12853,7 +12883,7 @@ proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
|
|
12853
12883
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12854
12884
|
*/
|
12855
12885
|
proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
|
12856
|
-
return jspb.Message.setField(this,
|
12886
|
+
return jspb.Message.setField(this, 7, undefined);
|
12857
12887
|
};
|
12858
12888
|
|
12859
12889
|
|
@@ -12862,16 +12892,16 @@ proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
|
|
12862
12892
|
* @return {boolean}
|
12863
12893
|
*/
|
12864
12894
|
proto.game.InitGameSessionRequest.prototype.hasReturnUrl = function() {
|
12865
|
-
return jspb.Message.getField(this,
|
12895
|
+
return jspb.Message.getField(this, 7) != null;
|
12866
12896
|
};
|
12867
12897
|
|
12868
12898
|
|
12869
12899
|
/**
|
12870
|
-
* optional string language =
|
12900
|
+
* optional string language = 8;
|
12871
12901
|
* @return {string}
|
12872
12902
|
*/
|
12873
12903
|
proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
|
12874
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
12904
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
12875
12905
|
};
|
12876
12906
|
|
12877
12907
|
|
@@ -12880,7 +12910,7 @@ proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
|
|
12880
12910
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12881
12911
|
*/
|
12882
12912
|
proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
|
12883
|
-
return jspb.Message.setField(this,
|
12913
|
+
return jspb.Message.setField(this, 8, value);
|
12884
12914
|
};
|
12885
12915
|
|
12886
12916
|
|
@@ -12889,7 +12919,7 @@ proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
|
|
12889
12919
|
* @return {!proto.game.InitGameSessionRequest} returns this
|
12890
12920
|
*/
|
12891
12921
|
proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
|
12892
|
-
return jspb.Message.setField(this,
|
12922
|
+
return jspb.Message.setField(this, 8, undefined);
|
12893
12923
|
};
|
12894
12924
|
|
12895
12925
|
|
@@ -12898,7 +12928,7 @@ proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
|
|
12898
12928
|
* @return {boolean}
|
12899
12929
|
*/
|
12900
12930
|
proto.game.InitGameSessionRequest.prototype.hasLanguage = function() {
|
12901
|
-
return jspb.Message.getField(this,
|
12931
|
+
return jspb.Message.getField(this, 8) != null;
|
12902
12932
|
};
|
12903
12933
|
|
12904
12934
|
|
package/package.json
CHANGED
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;
|
@@ -56,6 +59,7 @@ message UserDataResponse {
|
|
56
59
|
optional string birthday = 8;
|
57
60
|
optional string locale = 9;
|
58
61
|
optional string permissions = 10;
|
62
|
+
optional string role_name = 11;
|
59
63
|
}
|
60
64
|
//Permissions
|
61
65
|
message RolePermissionRequest {
|
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
|
|
@@ -1798,7 +1888,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
|
|
1798
1888
|
lastName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1799
1889
|
birthday: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1800
1890
|
locale: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1801
|
-
permissions: jspb.Message.getFieldWithDefault(msg, 10, "")
|
1891
|
+
permissions: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1892
|
+
roleName: jspb.Message.getFieldWithDefault(msg, 11, "")
|
1802
1893
|
};
|
1803
1894
|
|
1804
1895
|
if (includeInstance) {
|
@@ -1875,6 +1966,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
1875
1966
|
var value = /** @type {string} */ (reader.readString());
|
1876
1967
|
msg.setPermissions(value);
|
1877
1968
|
break;
|
1969
|
+
case 11:
|
1970
|
+
var value = /** @type {string} */ (reader.readString());
|
1971
|
+
msg.setRoleName(value);
|
1972
|
+
break;
|
1878
1973
|
default:
|
1879
1974
|
reader.skipField();
|
1880
1975
|
break;
|
@@ -1974,6 +2069,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
|
|
1974
2069
|
f
|
1975
2070
|
);
|
1976
2071
|
}
|
2072
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
2073
|
+
if (f != null) {
|
2074
|
+
writer.writeString(
|
2075
|
+
11,
|
2076
|
+
f
|
2077
|
+
);
|
2078
|
+
}
|
1977
2079
|
};
|
1978
2080
|
|
1979
2081
|
|
@@ -2283,6 +2385,42 @@ proto.user.UserDataResponse.prototype.hasPermissions = function() {
|
|
2283
2385
|
};
|
2284
2386
|
|
2285
2387
|
|
2388
|
+
/**
|
2389
|
+
* optional string role_name = 11;
|
2390
|
+
* @return {string}
|
2391
|
+
*/
|
2392
|
+
proto.user.UserDataResponse.prototype.getRoleName = function() {
|
2393
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
2394
|
+
};
|
2395
|
+
|
2396
|
+
|
2397
|
+
/**
|
2398
|
+
* @param {string} value
|
2399
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2400
|
+
*/
|
2401
|
+
proto.user.UserDataResponse.prototype.setRoleName = function(value) {
|
2402
|
+
return jspb.Message.setField(this, 11, value);
|
2403
|
+
};
|
2404
|
+
|
2405
|
+
|
2406
|
+
/**
|
2407
|
+
* Clears the field making it undefined.
|
2408
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2409
|
+
*/
|
2410
|
+
proto.user.UserDataResponse.prototype.clearRoleName = function() {
|
2411
|
+
return jspb.Message.setField(this, 11, undefined);
|
2412
|
+
};
|
2413
|
+
|
2414
|
+
|
2415
|
+
/**
|
2416
|
+
* Returns whether this field is set.
|
2417
|
+
* @return {boolean}
|
2418
|
+
*/
|
2419
|
+
proto.user.UserDataResponse.prototype.hasRoleName = function() {
|
2420
|
+
return jspb.Message.getField(this, 11) != null;
|
2421
|
+
};
|
2422
|
+
|
2423
|
+
|
2286
2424
|
|
2287
2425
|
|
2288
2426
|
|