protobuf-platform 1.2.121 → 1.2.123

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.121",
3
+ "version": "1.2.123",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sport/sport.proto CHANGED
@@ -19,22 +19,23 @@ message PaginationRequest {
19
19
  // Launch request for Betby sportsbook.
20
20
  message LaunchBetbyRequest {
21
21
  // Optional: internal user identifier, empty for guest.
22
- optional string user_id = 1;
22
+ optional int32 user_id = 1;
23
+ optional string user_public_id = 2;
23
24
 
24
25
  // Player currency, e.g. "EUR".
25
- optional string currency = 2;
26
+ optional string currency = 3;
26
27
 
27
28
  // Player language, e.g. "en-US".
28
- optional string language = 3;
29
+ optional string language = 4;
29
30
 
30
31
  // URL to return player after sportsbook session end.
31
- optional string return_url = 4;
32
+ optional string return_url = 5;
32
33
 
33
34
  // Client IP address for Betby (X-Client-Ip).
34
- optional string client_ip = 5;
35
+ optional string client_ip = 6;
35
36
 
36
- optional string player_name = 6;
37
- optional string session_id = 7;
37
+ optional string player_name = 7;
38
+ optional string session_id = 8;
38
39
  }
39
40
 
40
41
  // Launch response with rendered Betby widget.
package/sport/sport_pb.js CHANGED
@@ -675,13 +675,14 @@ proto.sport.LaunchBetbyRequest.prototype.toObject = function(opt_includeInstance
675
675
  */
676
676
  proto.sport.LaunchBetbyRequest.toObject = function(includeInstance, msg) {
677
677
  var f, obj = {
678
- userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
679
- currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
680
- language: jspb.Message.getFieldWithDefault(msg, 3, ""),
681
- returnUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
682
- clientIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
683
- playerName: jspb.Message.getFieldWithDefault(msg, 6, ""),
684
- sessionId: jspb.Message.getFieldWithDefault(msg, 7, "")
678
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
679
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
680
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
681
+ language: jspb.Message.getFieldWithDefault(msg, 4, ""),
682
+ returnUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
683
+ clientIp: jspb.Message.getFieldWithDefault(msg, 6, ""),
684
+ playerName: jspb.Message.getFieldWithDefault(msg, 7, ""),
685
+ sessionId: jspb.Message.getFieldWithDefault(msg, 8, "")
685
686
  };
686
687
 
687
688
  if (includeInstance) {
@@ -719,30 +720,34 @@ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reade
719
720
  var field = reader.getFieldNumber();
720
721
  switch (field) {
721
722
  case 1:
722
- var value = /** @type {string} */ (reader.readString());
723
+ var value = /** @type {number} */ (reader.readInt32());
723
724
  msg.setUserId(value);
724
725
  break;
725
726
  case 2:
726
727
  var value = /** @type {string} */ (reader.readString());
727
- msg.setCurrency(value);
728
+ msg.setUserPublicId(value);
728
729
  break;
729
730
  case 3:
730
731
  var value = /** @type {string} */ (reader.readString());
731
- msg.setLanguage(value);
732
+ msg.setCurrency(value);
732
733
  break;
733
734
  case 4:
734
735
  var value = /** @type {string} */ (reader.readString());
735
- msg.setReturnUrl(value);
736
+ msg.setLanguage(value);
736
737
  break;
737
738
  case 5:
738
739
  var value = /** @type {string} */ (reader.readString());
739
- msg.setClientIp(value);
740
+ msg.setReturnUrl(value);
740
741
  break;
741
742
  case 6:
742
743
  var value = /** @type {string} */ (reader.readString());
743
- msg.setPlayerName(value);
744
+ msg.setClientIp(value);
744
745
  break;
745
746
  case 7:
747
+ var value = /** @type {string} */ (reader.readString());
748
+ msg.setPlayerName(value);
749
+ break;
750
+ case 8:
746
751
  var value = /** @type {string} */ (reader.readString());
747
752
  msg.setSessionId(value);
748
753
  break;
@@ -775,9 +780,9 @@ proto.sport.LaunchBetbyRequest.prototype.serializeBinary = function() {
775
780
  */
776
781
  proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, writer) {
777
782
  var f = undefined;
778
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
783
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
779
784
  if (f != null) {
780
- writer.writeString(
785
+ writer.writeInt32(
781
786
  1,
782
787
  f
783
788
  );
@@ -824,20 +829,27 @@ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, write
824
829
  f
825
830
  );
826
831
  }
832
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
833
+ if (f != null) {
834
+ writer.writeString(
835
+ 8,
836
+ f
837
+ );
838
+ }
827
839
  };
828
840
 
829
841
 
830
842
  /**
831
- * optional string user_id = 1;
832
- * @return {string}
843
+ * optional int32 user_id = 1;
844
+ * @return {number}
833
845
  */
834
846
  proto.sport.LaunchBetbyRequest.prototype.getUserId = function() {
835
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
847
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
836
848
  };
837
849
 
838
850
 
839
851
  /**
840
- * @param {string} value
852
+ * @param {number} value
841
853
  * @return {!proto.sport.LaunchBetbyRequest} returns this
842
854
  */
843
855
  proto.sport.LaunchBetbyRequest.prototype.setUserId = function(value) {
@@ -864,10 +876,10 @@ proto.sport.LaunchBetbyRequest.prototype.hasUserId = function() {
864
876
 
865
877
 
866
878
  /**
867
- * optional string currency = 2;
879
+ * optional string user_public_id = 2;
868
880
  * @return {string}
869
881
  */
870
- proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
882
+ proto.sport.LaunchBetbyRequest.prototype.getUserPublicId = function() {
871
883
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
872
884
  };
873
885
 
@@ -876,7 +888,7 @@ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
876
888
  * @param {string} value
877
889
  * @return {!proto.sport.LaunchBetbyRequest} returns this
878
890
  */
879
- proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
891
+ proto.sport.LaunchBetbyRequest.prototype.setUserPublicId = function(value) {
880
892
  return jspb.Message.setField(this, 2, value);
881
893
  };
882
894
 
@@ -885,7 +897,7 @@ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
885
897
  * Clears the field making it undefined.
886
898
  * @return {!proto.sport.LaunchBetbyRequest} returns this
887
899
  */
888
- proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
900
+ proto.sport.LaunchBetbyRequest.prototype.clearUserPublicId = function() {
889
901
  return jspb.Message.setField(this, 2, undefined);
890
902
  };
891
903
 
@@ -894,16 +906,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
894
906
  * Returns whether this field is set.
895
907
  * @return {boolean}
896
908
  */
897
- proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
909
+ proto.sport.LaunchBetbyRequest.prototype.hasUserPublicId = function() {
898
910
  return jspb.Message.getField(this, 2) != null;
899
911
  };
900
912
 
901
913
 
902
914
  /**
903
- * optional string language = 3;
915
+ * optional string currency = 3;
904
916
  * @return {string}
905
917
  */
906
- proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
918
+ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
907
919
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
908
920
  };
909
921
 
@@ -912,7 +924,7 @@ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
912
924
  * @param {string} value
913
925
  * @return {!proto.sport.LaunchBetbyRequest} returns this
914
926
  */
915
- proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
927
+ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
916
928
  return jspb.Message.setField(this, 3, value);
917
929
  };
918
930
 
@@ -921,7 +933,7 @@ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
921
933
  * Clears the field making it undefined.
922
934
  * @return {!proto.sport.LaunchBetbyRequest} returns this
923
935
  */
924
- proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
936
+ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
925
937
  return jspb.Message.setField(this, 3, undefined);
926
938
  };
927
939
 
@@ -930,16 +942,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
930
942
  * Returns whether this field is set.
931
943
  * @return {boolean}
932
944
  */
933
- proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
945
+ proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
934
946
  return jspb.Message.getField(this, 3) != null;
935
947
  };
936
948
 
937
949
 
938
950
  /**
939
- * optional string return_url = 4;
951
+ * optional string language = 4;
940
952
  * @return {string}
941
953
  */
942
- proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
954
+ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
943
955
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
944
956
  };
945
957
 
@@ -948,7 +960,7 @@ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
948
960
  * @param {string} value
949
961
  * @return {!proto.sport.LaunchBetbyRequest} returns this
950
962
  */
951
- proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
963
+ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
952
964
  return jspb.Message.setField(this, 4, value);
953
965
  };
954
966
 
@@ -957,7 +969,7 @@ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
957
969
  * Clears the field making it undefined.
958
970
  * @return {!proto.sport.LaunchBetbyRequest} returns this
959
971
  */
960
- proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
972
+ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
961
973
  return jspb.Message.setField(this, 4, undefined);
962
974
  };
963
975
 
@@ -966,16 +978,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
966
978
  * Returns whether this field is set.
967
979
  * @return {boolean}
968
980
  */
969
- proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
981
+ proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
970
982
  return jspb.Message.getField(this, 4) != null;
971
983
  };
972
984
 
973
985
 
974
986
  /**
975
- * optional string client_ip = 5;
987
+ * optional string return_url = 5;
976
988
  * @return {string}
977
989
  */
978
- proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
990
+ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
979
991
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
980
992
  };
981
993
 
@@ -984,7 +996,7 @@ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
984
996
  * @param {string} value
985
997
  * @return {!proto.sport.LaunchBetbyRequest} returns this
986
998
  */
987
- proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
999
+ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
988
1000
  return jspb.Message.setField(this, 5, value);
989
1001
  };
990
1002
 
@@ -993,7 +1005,7 @@ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
993
1005
  * Clears the field making it undefined.
994
1006
  * @return {!proto.sport.LaunchBetbyRequest} returns this
995
1007
  */
996
- proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
1008
+ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
997
1009
  return jspb.Message.setField(this, 5, undefined);
998
1010
  };
999
1011
 
@@ -1002,16 +1014,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
1002
1014
  * Returns whether this field is set.
1003
1015
  * @return {boolean}
1004
1016
  */
1005
- proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
1017
+ proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
1006
1018
  return jspb.Message.getField(this, 5) != null;
1007
1019
  };
1008
1020
 
1009
1021
 
1010
1022
  /**
1011
- * optional string player_name = 6;
1023
+ * optional string client_ip = 6;
1012
1024
  * @return {string}
1013
1025
  */
1014
- proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
1026
+ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
1015
1027
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1016
1028
  };
1017
1029
 
@@ -1020,7 +1032,7 @@ proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
1020
1032
  * @param {string} value
1021
1033
  * @return {!proto.sport.LaunchBetbyRequest} returns this
1022
1034
  */
1023
- proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
1035
+ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
1024
1036
  return jspb.Message.setField(this, 6, value);
1025
1037
  };
1026
1038
 
@@ -1029,7 +1041,7 @@ proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
1029
1041
  * Clears the field making it undefined.
1030
1042
  * @return {!proto.sport.LaunchBetbyRequest} returns this
1031
1043
  */
1032
- proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
1044
+ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
1033
1045
  return jspb.Message.setField(this, 6, undefined);
1034
1046
  };
1035
1047
 
@@ -1038,16 +1050,16 @@ proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
1038
1050
  * Returns whether this field is set.
1039
1051
  * @return {boolean}
1040
1052
  */
1041
- proto.sport.LaunchBetbyRequest.prototype.hasPlayerName = function() {
1053
+ proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
1042
1054
  return jspb.Message.getField(this, 6) != null;
1043
1055
  };
1044
1056
 
1045
1057
 
1046
1058
  /**
1047
- * optional string session_id = 7;
1059
+ * optional string player_name = 7;
1048
1060
  * @return {string}
1049
1061
  */
1050
- proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
1062
+ proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
1051
1063
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1052
1064
  };
1053
1065
 
@@ -1056,7 +1068,7 @@ proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
1056
1068
  * @param {string} value
1057
1069
  * @return {!proto.sport.LaunchBetbyRequest} returns this
1058
1070
  */
1059
- proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
1071
+ proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
1060
1072
  return jspb.Message.setField(this, 7, value);
1061
1073
  };
1062
1074
 
@@ -1065,7 +1077,7 @@ proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
1065
1077
  * Clears the field making it undefined.
1066
1078
  * @return {!proto.sport.LaunchBetbyRequest} returns this
1067
1079
  */
1068
- proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
1080
+ proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
1069
1081
  return jspb.Message.setField(this, 7, undefined);
1070
1082
  };
1071
1083
 
@@ -1074,11 +1086,47 @@ proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
1074
1086
  * Returns whether this field is set.
1075
1087
  * @return {boolean}
1076
1088
  */
1077
- proto.sport.LaunchBetbyRequest.prototype.hasSessionId = function() {
1089
+ proto.sport.LaunchBetbyRequest.prototype.hasPlayerName = function() {
1078
1090
  return jspb.Message.getField(this, 7) != null;
1079
1091
  };
1080
1092
 
1081
1093
 
1094
+ /**
1095
+ * optional string session_id = 8;
1096
+ * @return {string}
1097
+ */
1098
+ proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
1099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * @param {string} value
1105
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
1106
+ */
1107
+ proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
1108
+ return jspb.Message.setField(this, 8, value);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * Clears the field making it undefined.
1114
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
1115
+ */
1116
+ proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
1117
+ return jspb.Message.setField(this, 8, undefined);
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * Returns whether this field is set.
1123
+ * @return {boolean}
1124
+ */
1125
+ proto.sport.LaunchBetbyRequest.prototype.hasSessionId = function() {
1126
+ return jspb.Message.getField(this, 8) != null;
1127
+ };
1128
+
1129
+
1082
1130
 
1083
1131
 
1084
1132
 
package/user/user.proto CHANGED
@@ -8,6 +8,8 @@ service User {
8
8
  rpc signUp(RegistrationRequest) returns (LoggedInResponse);
9
9
  rpc signIn(LoginRequest) returns (LoggedInResponse);
10
10
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
11
+ rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
12
+ rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
11
13
  //Role and Permissions
12
14
  rpc addPermissionToUserRole(RolePermissionRequest) returns (RolePermissionStatusResponse);
13
15
  rpc rolesList(PaginationRequest) returns (RolesItemsResponse);
@@ -150,8 +152,14 @@ message LoginRequest {
150
152
  optional string city = 7;
151
153
  }
152
154
  message UserDataRequest {
153
- int32 id = 1;
155
+ optional int32 id = 1;
154
156
  optional string requested_area = 2;
157
+ optional string public_id = 3;
158
+ }
159
+ message UserBalanceRequest {
160
+ int32 id = 1;
161
+ float amount = 2;
162
+ optional string balance_type = 3;
155
163
  }
156
164
  message UserPasswordRequest {
157
165
  int32 id = 1;
@@ -466,6 +466,17 @@ function deserialize_user_UserActionResponse(buffer_arg) {
466
466
  return user_pb.UserActionResponse.deserializeBinary(new Uint8Array(buffer_arg));
467
467
  }
468
468
 
469
+ function serialize_user_UserBalanceRequest(arg) {
470
+ if (!(arg instanceof user_pb.UserBalanceRequest)) {
471
+ throw new Error('Expected argument of type user.UserBalanceRequest');
472
+ }
473
+ return Buffer.from(arg.serializeBinary());
474
+ }
475
+
476
+ function deserialize_user_UserBalanceRequest(buffer_arg) {
477
+ return user_pb.UserBalanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
478
+ }
479
+
469
480
  function serialize_user_UserCookiesRequest(arg) {
470
481
  if (!(arg instanceof user_pb.UserCookiesRequest)) {
471
482
  throw new Error('Expected argument of type user.UserCookiesRequest');
@@ -623,6 +634,28 @@ signUp: {
623
634
  responseSerialize: serialize_user_UserDataResponse,
624
635
  responseDeserialize: deserialize_user_UserDataResponse,
625
636
  },
637
+ getUserBalance: {
638
+ path: '/user.User/getUserBalance',
639
+ requestStream: false,
640
+ responseStream: false,
641
+ requestType: user_pb.UserDataRequest,
642
+ responseType: user_pb.UserDataResponse,
643
+ requestSerialize: serialize_user_UserDataRequest,
644
+ requestDeserialize: deserialize_user_UserDataRequest,
645
+ responseSerialize: serialize_user_UserDataResponse,
646
+ responseDeserialize: deserialize_user_UserDataResponse,
647
+ },
648
+ updateUserBalance: {
649
+ path: '/user.User/updateUserBalance',
650
+ requestStream: false,
651
+ responseStream: false,
652
+ requestType: user_pb.UserBalanceRequest,
653
+ responseType: user_pb.UserDataResponse,
654
+ requestSerialize: serialize_user_UserBalanceRequest,
655
+ requestDeserialize: deserialize_user_UserBalanceRequest,
656
+ responseSerialize: serialize_user_UserDataResponse,
657
+ responseDeserialize: deserialize_user_UserDataResponse,
658
+ },
626
659
  // Role and Permissions
627
660
  addPermissionToUserRole: {
628
661
  path: '/user.User/addPermissionToUserRole',
package/user/user_pb.js CHANGED
@@ -80,6 +80,7 @@ goog.exportSymbol('proto.user.SumSubResponse', null, global);
80
80
  goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
81
81
  goog.exportSymbol('proto.user.UserActionRequest', null, global);
82
82
  goog.exportSymbol('proto.user.UserActionResponse', null, global);
83
+ goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
83
84
  goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
84
85
  goog.exportSymbol('proto.user.UserDataRequest', null, global);
85
86
  goog.exportSymbol('proto.user.UserDataResponse', null, global);
@@ -324,6 +325,27 @@ if (goog.DEBUG && !COMPILED) {
324
325
  */
325
326
  proto.user.UserDataRequest.displayName = 'proto.user.UserDataRequest';
326
327
  }
328
+ /**
329
+ * Generated by JsPbCodeGenerator.
330
+ * @param {Array=} opt_data Optional initial data array, typically from a
331
+ * server response, or constructed directly in Javascript. The array is used
332
+ * in place and becomes part of the constructed object. It is not cloned.
333
+ * If no data is provided, the constructed object will be empty, but still
334
+ * valid.
335
+ * @extends {jspb.Message}
336
+ * @constructor
337
+ */
338
+ proto.user.UserBalanceRequest = function(opt_data) {
339
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
340
+ };
341
+ goog.inherits(proto.user.UserBalanceRequest, jspb.Message);
342
+ if (goog.DEBUG && !COMPILED) {
343
+ /**
344
+ * @public
345
+ * @override
346
+ */
347
+ proto.user.UserBalanceRequest.displayName = 'proto.user.UserBalanceRequest';
348
+ }
327
349
  /**
328
350
  * Generated by JsPbCodeGenerator.
329
351
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5726,7 +5748,8 @@ proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
5726
5748
  proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
5727
5749
  var f, obj = {
5728
5750
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5729
- requestedArea: jspb.Message.getFieldWithDefault(msg, 2, "")
5751
+ requestedArea: jspb.Message.getFieldWithDefault(msg, 2, ""),
5752
+ publicId: jspb.Message.getFieldWithDefault(msg, 3, "")
5730
5753
  };
5731
5754
 
5732
5755
  if (includeInstance) {
@@ -5771,6 +5794,10 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
5771
5794
  var value = /** @type {string} */ (reader.readString());
5772
5795
  msg.setRequestedArea(value);
5773
5796
  break;
5797
+ case 3:
5798
+ var value = /** @type {string} */ (reader.readString());
5799
+ msg.setPublicId(value);
5800
+ break;
5774
5801
  default:
5775
5802
  reader.skipField();
5776
5803
  break;
@@ -5800,8 +5827,8 @@ proto.user.UserDataRequest.prototype.serializeBinary = function() {
5800
5827
  */
5801
5828
  proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
5802
5829
  var f = undefined;
5803
- f = message.getId();
5804
- if (f !== 0) {
5830
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
5831
+ if (f != null) {
5805
5832
  writer.writeInt32(
5806
5833
  1,
5807
5834
  f
@@ -5814,6 +5841,13 @@ proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
5814
5841
  f
5815
5842
  );
5816
5843
  }
5844
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5845
+ if (f != null) {
5846
+ writer.writeString(
5847
+ 3,
5848
+ f
5849
+ );
5850
+ }
5817
5851
  };
5818
5852
 
5819
5853
 
@@ -5831,7 +5865,25 @@ proto.user.UserDataRequest.prototype.getId = function() {
5831
5865
  * @return {!proto.user.UserDataRequest} returns this
5832
5866
  */
5833
5867
  proto.user.UserDataRequest.prototype.setId = function(value) {
5834
- return jspb.Message.setProto3IntField(this, 1, value);
5868
+ return jspb.Message.setField(this, 1, value);
5869
+ };
5870
+
5871
+
5872
+ /**
5873
+ * Clears the field making it undefined.
5874
+ * @return {!proto.user.UserDataRequest} returns this
5875
+ */
5876
+ proto.user.UserDataRequest.prototype.clearId = function() {
5877
+ return jspb.Message.setField(this, 1, undefined);
5878
+ };
5879
+
5880
+
5881
+ /**
5882
+ * Returns whether this field is set.
5883
+ * @return {boolean}
5884
+ */
5885
+ proto.user.UserDataRequest.prototype.hasId = function() {
5886
+ return jspb.Message.getField(this, 1) != null;
5835
5887
  };
5836
5888
 
5837
5889
 
@@ -5871,6 +5923,250 @@ proto.user.UserDataRequest.prototype.hasRequestedArea = function() {
5871
5923
  };
5872
5924
 
5873
5925
 
5926
+ /**
5927
+ * optional string public_id = 3;
5928
+ * @return {string}
5929
+ */
5930
+ proto.user.UserDataRequest.prototype.getPublicId = function() {
5931
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5932
+ };
5933
+
5934
+
5935
+ /**
5936
+ * @param {string} value
5937
+ * @return {!proto.user.UserDataRequest} returns this
5938
+ */
5939
+ proto.user.UserDataRequest.prototype.setPublicId = function(value) {
5940
+ return jspb.Message.setField(this, 3, value);
5941
+ };
5942
+
5943
+
5944
+ /**
5945
+ * Clears the field making it undefined.
5946
+ * @return {!proto.user.UserDataRequest} returns this
5947
+ */
5948
+ proto.user.UserDataRequest.prototype.clearPublicId = function() {
5949
+ return jspb.Message.setField(this, 3, undefined);
5950
+ };
5951
+
5952
+
5953
+ /**
5954
+ * Returns whether this field is set.
5955
+ * @return {boolean}
5956
+ */
5957
+ proto.user.UserDataRequest.prototype.hasPublicId = function() {
5958
+ return jspb.Message.getField(this, 3) != null;
5959
+ };
5960
+
5961
+
5962
+
5963
+
5964
+
5965
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5966
+ /**
5967
+ * Creates an object representation of this proto.
5968
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5969
+ * Optional fields that are not set will be set to undefined.
5970
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5971
+ * For the list of reserved names please see:
5972
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5973
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5974
+ * JSPB instance for transitional soy proto support:
5975
+ * http://goto/soy-param-migration
5976
+ * @return {!Object}
5977
+ */
5978
+ proto.user.UserBalanceRequest.prototype.toObject = function(opt_includeInstance) {
5979
+ return proto.user.UserBalanceRequest.toObject(opt_includeInstance, this);
5980
+ };
5981
+
5982
+
5983
+ /**
5984
+ * Static version of the {@see toObject} method.
5985
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5986
+ * the JSPB instance for transitional soy proto support:
5987
+ * http://goto/soy-param-migration
5988
+ * @param {!proto.user.UserBalanceRequest} msg The msg instance to transform.
5989
+ * @return {!Object}
5990
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5991
+ */
5992
+ proto.user.UserBalanceRequest.toObject = function(includeInstance, msg) {
5993
+ var f, obj = {
5994
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5995
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
5996
+ balanceType: jspb.Message.getFieldWithDefault(msg, 3, "")
5997
+ };
5998
+
5999
+ if (includeInstance) {
6000
+ obj.$jspbMessageInstance = msg;
6001
+ }
6002
+ return obj;
6003
+ };
6004
+ }
6005
+
6006
+
6007
+ /**
6008
+ * Deserializes binary data (in protobuf wire format).
6009
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6010
+ * @return {!proto.user.UserBalanceRequest}
6011
+ */
6012
+ proto.user.UserBalanceRequest.deserializeBinary = function(bytes) {
6013
+ var reader = new jspb.BinaryReader(bytes);
6014
+ var msg = new proto.user.UserBalanceRequest;
6015
+ return proto.user.UserBalanceRequest.deserializeBinaryFromReader(msg, reader);
6016
+ };
6017
+
6018
+
6019
+ /**
6020
+ * Deserializes binary data (in protobuf wire format) from the
6021
+ * given reader into the given message object.
6022
+ * @param {!proto.user.UserBalanceRequest} msg The message object to deserialize into.
6023
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6024
+ * @return {!proto.user.UserBalanceRequest}
6025
+ */
6026
+ proto.user.UserBalanceRequest.deserializeBinaryFromReader = function(msg, reader) {
6027
+ while (reader.nextField()) {
6028
+ if (reader.isEndGroup()) {
6029
+ break;
6030
+ }
6031
+ var field = reader.getFieldNumber();
6032
+ switch (field) {
6033
+ case 1:
6034
+ var value = /** @type {number} */ (reader.readInt32());
6035
+ msg.setId(value);
6036
+ break;
6037
+ case 2:
6038
+ var value = /** @type {number} */ (reader.readFloat());
6039
+ msg.setAmount(value);
6040
+ break;
6041
+ case 3:
6042
+ var value = /** @type {string} */ (reader.readString());
6043
+ msg.setBalanceType(value);
6044
+ break;
6045
+ default:
6046
+ reader.skipField();
6047
+ break;
6048
+ }
6049
+ }
6050
+ return msg;
6051
+ };
6052
+
6053
+
6054
+ /**
6055
+ * Serializes the message to binary data (in protobuf wire format).
6056
+ * @return {!Uint8Array}
6057
+ */
6058
+ proto.user.UserBalanceRequest.prototype.serializeBinary = function() {
6059
+ var writer = new jspb.BinaryWriter();
6060
+ proto.user.UserBalanceRequest.serializeBinaryToWriter(this, writer);
6061
+ return writer.getResultBuffer();
6062
+ };
6063
+
6064
+
6065
+ /**
6066
+ * Serializes the given message to binary data (in protobuf wire
6067
+ * format), writing to the given BinaryWriter.
6068
+ * @param {!proto.user.UserBalanceRequest} message
6069
+ * @param {!jspb.BinaryWriter} writer
6070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6071
+ */
6072
+ proto.user.UserBalanceRequest.serializeBinaryToWriter = function(message, writer) {
6073
+ var f = undefined;
6074
+ f = message.getId();
6075
+ if (f !== 0) {
6076
+ writer.writeInt32(
6077
+ 1,
6078
+ f
6079
+ );
6080
+ }
6081
+ f = message.getAmount();
6082
+ if (f !== 0.0) {
6083
+ writer.writeFloat(
6084
+ 2,
6085
+ f
6086
+ );
6087
+ }
6088
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6089
+ if (f != null) {
6090
+ writer.writeString(
6091
+ 3,
6092
+ f
6093
+ );
6094
+ }
6095
+ };
6096
+
6097
+
6098
+ /**
6099
+ * optional int32 id = 1;
6100
+ * @return {number}
6101
+ */
6102
+ proto.user.UserBalanceRequest.prototype.getId = function() {
6103
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6104
+ };
6105
+
6106
+
6107
+ /**
6108
+ * @param {number} value
6109
+ * @return {!proto.user.UserBalanceRequest} returns this
6110
+ */
6111
+ proto.user.UserBalanceRequest.prototype.setId = function(value) {
6112
+ return jspb.Message.setProto3IntField(this, 1, value);
6113
+ };
6114
+
6115
+
6116
+ /**
6117
+ * optional float amount = 2;
6118
+ * @return {number}
6119
+ */
6120
+ proto.user.UserBalanceRequest.prototype.getAmount = function() {
6121
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
6122
+ };
6123
+
6124
+
6125
+ /**
6126
+ * @param {number} value
6127
+ * @return {!proto.user.UserBalanceRequest} returns this
6128
+ */
6129
+ proto.user.UserBalanceRequest.prototype.setAmount = function(value) {
6130
+ return jspb.Message.setProto3FloatField(this, 2, value);
6131
+ };
6132
+
6133
+
6134
+ /**
6135
+ * optional string balance_type = 3;
6136
+ * @return {string}
6137
+ */
6138
+ proto.user.UserBalanceRequest.prototype.getBalanceType = function() {
6139
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6140
+ };
6141
+
6142
+
6143
+ /**
6144
+ * @param {string} value
6145
+ * @return {!proto.user.UserBalanceRequest} returns this
6146
+ */
6147
+ proto.user.UserBalanceRequest.prototype.setBalanceType = function(value) {
6148
+ return jspb.Message.setField(this, 3, value);
6149
+ };
6150
+
6151
+
6152
+ /**
6153
+ * Clears the field making it undefined.
6154
+ * @return {!proto.user.UserBalanceRequest} returns this
6155
+ */
6156
+ proto.user.UserBalanceRequest.prototype.clearBalanceType = function() {
6157
+ return jspb.Message.setField(this, 3, undefined);
6158
+ };
6159
+
6160
+
6161
+ /**
6162
+ * Returns whether this field is set.
6163
+ * @return {boolean}
6164
+ */
6165
+ proto.user.UserBalanceRequest.prototype.hasBalanceType = function() {
6166
+ return jspb.Message.getField(this, 3) != null;
6167
+ };
6168
+
6169
+
5874
6170
 
5875
6171
 
5876
6172