protobuf-platform 1.0.207 → 1.0.209

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.0.207",
3
+ "version": "1.0.209",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -14,6 +14,7 @@ service User {
14
14
  rpc getSingleRole(GetRoleRequest) returns (Role);
15
15
  //CRUD
16
16
  rpc readListUsers(PaginationRequest) returns (UsersResponse);
17
+ rpc updateSingleUser(UserRequest) returns (UserDataResponse);
17
18
  //Segments
18
19
  rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
19
20
  rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
@@ -77,6 +78,29 @@ message UserDataRequest {
77
78
  int32 id = 1;
78
79
  optional string requested_area = 2;
79
80
  }
81
+ message UserRequest {
82
+ int32 id = 1;
83
+ optional string email = 2;
84
+ optional string phone = 3;
85
+ optional string currency = 4;
86
+ optional string country = 5;
87
+ optional string city = 6;
88
+ optional string first_name = 7;
89
+ optional string last_name = 8;
90
+ optional string birthday = 9;
91
+ optional string locale = 10;
92
+ optional int32 role_id = 11;
93
+ optional float balance_real = 12;
94
+ optional float balance_bonus = 13;
95
+ optional string balance_type = 14;
96
+ optional int32 affiliate_id = 15;
97
+ optional string timezone = 16;
98
+ optional int32 risk_status_id = 17;
99
+ optional int32 category_id = 18;
100
+ optional int32 block_user = 19;
101
+ optional int32 block_deposit = 20;
102
+ optional int32 block_bet = 21;
103
+ }
80
104
  message UserDataResponse {
81
105
  int32 id = 1;
82
106
  string public_id = 2;
@@ -202,6 +202,17 @@ function deserialize_user_UserDataResponse(buffer_arg) {
202
202
  return user_pb.UserDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
203
203
  }
204
204
 
205
+ function serialize_user_UserRequest(arg) {
206
+ if (!(arg instanceof user_pb.UserRequest)) {
207
+ throw new Error('Expected argument of type user.UserRequest');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_user_UserRequest(buffer_arg) {
213
+ return user_pb.UserRequest.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
205
216
  function serialize_user_UsersResponse(arg) {
206
217
  if (!(arg instanceof user_pb.UsersResponse)) {
207
218
  throw new Error('Expected argument of type user.UsersResponse');
@@ -306,6 +317,17 @@ readListUsers: {
306
317
  responseSerialize: serialize_user_UsersResponse,
307
318
  responseDeserialize: deserialize_user_UsersResponse,
308
319
  },
320
+ updateSingleUser: {
321
+ path: '/user.User/updateSingleUser',
322
+ requestStream: false,
323
+ responseStream: false,
324
+ requestType: user_pb.UserRequest,
325
+ responseType: user_pb.UserDataResponse,
326
+ requestSerialize: serialize_user_UserRequest,
327
+ requestDeserialize: deserialize_user_UserRequest,
328
+ responseSerialize: serialize_user_UserDataResponse,
329
+ responseDeserialize: deserialize_user_UserDataResponse,
330
+ },
309
331
  // Segments
310
332
  createSingleSegment: {
311
333
  path: '/user.User/createSingleSegment',
package/user/user_pb.js CHANGED
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.user.SegmentStatusResponse', null, global);
41
41
  goog.exportSymbol('proto.user.UserDataRequest', null, global);
42
42
  goog.exportSymbol('proto.user.UserDataResponse', null, global);
43
43
  goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
44
+ goog.exportSymbol('proto.user.UserRequest', null, global);
44
45
  goog.exportSymbol('proto.user.UserSearchParams', null, global);
45
46
  goog.exportSymbol('proto.user.UsersResponse', null, global);
46
47
  /**
@@ -232,6 +233,27 @@ if (goog.DEBUG && !COMPILED) {
232
233
  */
233
234
  proto.user.UserDataRequest.displayName = 'proto.user.UserDataRequest';
234
235
  }
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.user.UserRequest = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
248
+ };
249
+ goog.inherits(proto.user.UserRequest, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ /**
252
+ * @public
253
+ * @override
254
+ */
255
+ proto.user.UserRequest.displayName = 'proto.user.UserRequest';
256
+ }
235
257
  /**
236
258
  * Generated by JsPbCodeGenerator.
237
259
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2793,6 +2815,1096 @@ proto.user.UserDataRequest.prototype.hasRequestedArea = function() {
2793
2815
 
2794
2816
 
2795
2817
 
2818
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2819
+ /**
2820
+ * Creates an object representation of this proto.
2821
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2822
+ * Optional fields that are not set will be set to undefined.
2823
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2824
+ * For the list of reserved names please see:
2825
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2826
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2827
+ * JSPB instance for transitional soy proto support:
2828
+ * http://goto/soy-param-migration
2829
+ * @return {!Object}
2830
+ */
2831
+ proto.user.UserRequest.prototype.toObject = function(opt_includeInstance) {
2832
+ return proto.user.UserRequest.toObject(opt_includeInstance, this);
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Static version of the {@see toObject} method.
2838
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2839
+ * the JSPB instance for transitional soy proto support:
2840
+ * http://goto/soy-param-migration
2841
+ * @param {!proto.user.UserRequest} msg The msg instance to transform.
2842
+ * @return {!Object}
2843
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2844
+ */
2845
+ proto.user.UserRequest.toObject = function(includeInstance, msg) {
2846
+ var f, obj = {
2847
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2848
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
2849
+ phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
2850
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
2851
+ country: jspb.Message.getFieldWithDefault(msg, 5, ""),
2852
+ city: jspb.Message.getFieldWithDefault(msg, 6, ""),
2853
+ firstName: jspb.Message.getFieldWithDefault(msg, 7, ""),
2854
+ lastName: jspb.Message.getFieldWithDefault(msg, 8, ""),
2855
+ birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
2856
+ locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
2857
+ roleId: jspb.Message.getFieldWithDefault(msg, 11, 0),
2858
+ balanceReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
2859
+ balanceBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
2860
+ balanceType: jspb.Message.getFieldWithDefault(msg, 14, ""),
2861
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 15, 0),
2862
+ timezone: jspb.Message.getFieldWithDefault(msg, 16, ""),
2863
+ riskStatusId: jspb.Message.getFieldWithDefault(msg, 17, 0),
2864
+ categoryId: jspb.Message.getFieldWithDefault(msg, 18, 0),
2865
+ blockUser: jspb.Message.getFieldWithDefault(msg, 19, 0),
2866
+ blockDeposit: jspb.Message.getFieldWithDefault(msg, 20, 0),
2867
+ blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0)
2868
+ };
2869
+
2870
+ if (includeInstance) {
2871
+ obj.$jspbMessageInstance = msg;
2872
+ }
2873
+ return obj;
2874
+ };
2875
+ }
2876
+
2877
+
2878
+ /**
2879
+ * Deserializes binary data (in protobuf wire format).
2880
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2881
+ * @return {!proto.user.UserRequest}
2882
+ */
2883
+ proto.user.UserRequest.deserializeBinary = function(bytes) {
2884
+ var reader = new jspb.BinaryReader(bytes);
2885
+ var msg = new proto.user.UserRequest;
2886
+ return proto.user.UserRequest.deserializeBinaryFromReader(msg, reader);
2887
+ };
2888
+
2889
+
2890
+ /**
2891
+ * Deserializes binary data (in protobuf wire format) from the
2892
+ * given reader into the given message object.
2893
+ * @param {!proto.user.UserRequest} msg The message object to deserialize into.
2894
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2895
+ * @return {!proto.user.UserRequest}
2896
+ */
2897
+ proto.user.UserRequest.deserializeBinaryFromReader = function(msg, reader) {
2898
+ while (reader.nextField()) {
2899
+ if (reader.isEndGroup()) {
2900
+ break;
2901
+ }
2902
+ var field = reader.getFieldNumber();
2903
+ switch (field) {
2904
+ case 1:
2905
+ var value = /** @type {number} */ (reader.readInt32());
2906
+ msg.setId(value);
2907
+ break;
2908
+ case 2:
2909
+ var value = /** @type {string} */ (reader.readString());
2910
+ msg.setEmail(value);
2911
+ break;
2912
+ case 3:
2913
+ var value = /** @type {string} */ (reader.readString());
2914
+ msg.setPhone(value);
2915
+ break;
2916
+ case 4:
2917
+ var value = /** @type {string} */ (reader.readString());
2918
+ msg.setCurrency(value);
2919
+ break;
2920
+ case 5:
2921
+ var value = /** @type {string} */ (reader.readString());
2922
+ msg.setCountry(value);
2923
+ break;
2924
+ case 6:
2925
+ var value = /** @type {string} */ (reader.readString());
2926
+ msg.setCity(value);
2927
+ break;
2928
+ case 7:
2929
+ var value = /** @type {string} */ (reader.readString());
2930
+ msg.setFirstName(value);
2931
+ break;
2932
+ case 8:
2933
+ var value = /** @type {string} */ (reader.readString());
2934
+ msg.setLastName(value);
2935
+ break;
2936
+ case 9:
2937
+ var value = /** @type {string} */ (reader.readString());
2938
+ msg.setBirthday(value);
2939
+ break;
2940
+ case 10:
2941
+ var value = /** @type {string} */ (reader.readString());
2942
+ msg.setLocale(value);
2943
+ break;
2944
+ case 11:
2945
+ var value = /** @type {number} */ (reader.readInt32());
2946
+ msg.setRoleId(value);
2947
+ break;
2948
+ case 12:
2949
+ var value = /** @type {number} */ (reader.readFloat());
2950
+ msg.setBalanceReal(value);
2951
+ break;
2952
+ case 13:
2953
+ var value = /** @type {number} */ (reader.readFloat());
2954
+ msg.setBalanceBonus(value);
2955
+ break;
2956
+ case 14:
2957
+ var value = /** @type {string} */ (reader.readString());
2958
+ msg.setBalanceType(value);
2959
+ break;
2960
+ case 15:
2961
+ var value = /** @type {number} */ (reader.readInt32());
2962
+ msg.setAffiliateId(value);
2963
+ break;
2964
+ case 16:
2965
+ var value = /** @type {string} */ (reader.readString());
2966
+ msg.setTimezone(value);
2967
+ break;
2968
+ case 17:
2969
+ var value = /** @type {number} */ (reader.readInt32());
2970
+ msg.setRiskStatusId(value);
2971
+ break;
2972
+ case 18:
2973
+ var value = /** @type {number} */ (reader.readInt32());
2974
+ msg.setCategoryId(value);
2975
+ break;
2976
+ case 19:
2977
+ var value = /** @type {number} */ (reader.readInt32());
2978
+ msg.setBlockUser(value);
2979
+ break;
2980
+ case 20:
2981
+ var value = /** @type {number} */ (reader.readInt32());
2982
+ msg.setBlockDeposit(value);
2983
+ break;
2984
+ case 21:
2985
+ var value = /** @type {number} */ (reader.readInt32());
2986
+ msg.setBlockBet(value);
2987
+ break;
2988
+ default:
2989
+ reader.skipField();
2990
+ break;
2991
+ }
2992
+ }
2993
+ return msg;
2994
+ };
2995
+
2996
+
2997
+ /**
2998
+ * Serializes the message to binary data (in protobuf wire format).
2999
+ * @return {!Uint8Array}
3000
+ */
3001
+ proto.user.UserRequest.prototype.serializeBinary = function() {
3002
+ var writer = new jspb.BinaryWriter();
3003
+ proto.user.UserRequest.serializeBinaryToWriter(this, writer);
3004
+ return writer.getResultBuffer();
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * Serializes the given message to binary data (in protobuf wire
3010
+ * format), writing to the given BinaryWriter.
3011
+ * @param {!proto.user.UserRequest} message
3012
+ * @param {!jspb.BinaryWriter} writer
3013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3014
+ */
3015
+ proto.user.UserRequest.serializeBinaryToWriter = function(message, writer) {
3016
+ var f = undefined;
3017
+ f = message.getId();
3018
+ if (f !== 0) {
3019
+ writer.writeInt32(
3020
+ 1,
3021
+ f
3022
+ );
3023
+ }
3024
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3025
+ if (f != null) {
3026
+ writer.writeString(
3027
+ 2,
3028
+ f
3029
+ );
3030
+ }
3031
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
3032
+ if (f != null) {
3033
+ writer.writeString(
3034
+ 3,
3035
+ f
3036
+ );
3037
+ }
3038
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3039
+ if (f != null) {
3040
+ writer.writeString(
3041
+ 4,
3042
+ f
3043
+ );
3044
+ }
3045
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3046
+ if (f != null) {
3047
+ writer.writeString(
3048
+ 5,
3049
+ f
3050
+ );
3051
+ }
3052
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
3053
+ if (f != null) {
3054
+ writer.writeString(
3055
+ 6,
3056
+ f
3057
+ );
3058
+ }
3059
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3060
+ if (f != null) {
3061
+ writer.writeString(
3062
+ 7,
3063
+ f
3064
+ );
3065
+ }
3066
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
3067
+ if (f != null) {
3068
+ writer.writeString(
3069
+ 8,
3070
+ f
3071
+ );
3072
+ }
3073
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
3074
+ if (f != null) {
3075
+ writer.writeString(
3076
+ 9,
3077
+ f
3078
+ );
3079
+ }
3080
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
3081
+ if (f != null) {
3082
+ writer.writeString(
3083
+ 10,
3084
+ f
3085
+ );
3086
+ }
3087
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
3088
+ if (f != null) {
3089
+ writer.writeInt32(
3090
+ 11,
3091
+ f
3092
+ );
3093
+ }
3094
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
3095
+ if (f != null) {
3096
+ writer.writeFloat(
3097
+ 12,
3098
+ f
3099
+ );
3100
+ }
3101
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
3102
+ if (f != null) {
3103
+ writer.writeFloat(
3104
+ 13,
3105
+ f
3106
+ );
3107
+ }
3108
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
3109
+ if (f != null) {
3110
+ writer.writeString(
3111
+ 14,
3112
+ f
3113
+ );
3114
+ }
3115
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
3116
+ if (f != null) {
3117
+ writer.writeInt32(
3118
+ 15,
3119
+ f
3120
+ );
3121
+ }
3122
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
3123
+ if (f != null) {
3124
+ writer.writeString(
3125
+ 16,
3126
+ f
3127
+ );
3128
+ }
3129
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
3130
+ if (f != null) {
3131
+ writer.writeInt32(
3132
+ 17,
3133
+ f
3134
+ );
3135
+ }
3136
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
3137
+ if (f != null) {
3138
+ writer.writeInt32(
3139
+ 18,
3140
+ f
3141
+ );
3142
+ }
3143
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
3144
+ if (f != null) {
3145
+ writer.writeInt32(
3146
+ 19,
3147
+ f
3148
+ );
3149
+ }
3150
+ f = /** @type {number} */ (jspb.Message.getField(message, 20));
3151
+ if (f != null) {
3152
+ writer.writeInt32(
3153
+ 20,
3154
+ f
3155
+ );
3156
+ }
3157
+ f = /** @type {number} */ (jspb.Message.getField(message, 21));
3158
+ if (f != null) {
3159
+ writer.writeInt32(
3160
+ 21,
3161
+ f
3162
+ );
3163
+ }
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * optional int32 id = 1;
3169
+ * @return {number}
3170
+ */
3171
+ proto.user.UserRequest.prototype.getId = function() {
3172
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * @param {number} value
3178
+ * @return {!proto.user.UserRequest} returns this
3179
+ */
3180
+ proto.user.UserRequest.prototype.setId = function(value) {
3181
+ return jspb.Message.setProto3IntField(this, 1, value);
3182
+ };
3183
+
3184
+
3185
+ /**
3186
+ * optional string email = 2;
3187
+ * @return {string}
3188
+ */
3189
+ proto.user.UserRequest.prototype.getEmail = function() {
3190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3191
+ };
3192
+
3193
+
3194
+ /**
3195
+ * @param {string} value
3196
+ * @return {!proto.user.UserRequest} returns this
3197
+ */
3198
+ proto.user.UserRequest.prototype.setEmail = function(value) {
3199
+ return jspb.Message.setField(this, 2, value);
3200
+ };
3201
+
3202
+
3203
+ /**
3204
+ * Clears the field making it undefined.
3205
+ * @return {!proto.user.UserRequest} returns this
3206
+ */
3207
+ proto.user.UserRequest.prototype.clearEmail = function() {
3208
+ return jspb.Message.setField(this, 2, undefined);
3209
+ };
3210
+
3211
+
3212
+ /**
3213
+ * Returns whether this field is set.
3214
+ * @return {boolean}
3215
+ */
3216
+ proto.user.UserRequest.prototype.hasEmail = function() {
3217
+ return jspb.Message.getField(this, 2) != null;
3218
+ };
3219
+
3220
+
3221
+ /**
3222
+ * optional string phone = 3;
3223
+ * @return {string}
3224
+ */
3225
+ proto.user.UserRequest.prototype.getPhone = function() {
3226
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * @param {string} value
3232
+ * @return {!proto.user.UserRequest} returns this
3233
+ */
3234
+ proto.user.UserRequest.prototype.setPhone = function(value) {
3235
+ return jspb.Message.setField(this, 3, value);
3236
+ };
3237
+
3238
+
3239
+ /**
3240
+ * Clears the field making it undefined.
3241
+ * @return {!proto.user.UserRequest} returns this
3242
+ */
3243
+ proto.user.UserRequest.prototype.clearPhone = function() {
3244
+ return jspb.Message.setField(this, 3, undefined);
3245
+ };
3246
+
3247
+
3248
+ /**
3249
+ * Returns whether this field is set.
3250
+ * @return {boolean}
3251
+ */
3252
+ proto.user.UserRequest.prototype.hasPhone = function() {
3253
+ return jspb.Message.getField(this, 3) != null;
3254
+ };
3255
+
3256
+
3257
+ /**
3258
+ * optional string currency = 4;
3259
+ * @return {string}
3260
+ */
3261
+ proto.user.UserRequest.prototype.getCurrency = function() {
3262
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3263
+ };
3264
+
3265
+
3266
+ /**
3267
+ * @param {string} value
3268
+ * @return {!proto.user.UserRequest} returns this
3269
+ */
3270
+ proto.user.UserRequest.prototype.setCurrency = function(value) {
3271
+ return jspb.Message.setField(this, 4, value);
3272
+ };
3273
+
3274
+
3275
+ /**
3276
+ * Clears the field making it undefined.
3277
+ * @return {!proto.user.UserRequest} returns this
3278
+ */
3279
+ proto.user.UserRequest.prototype.clearCurrency = function() {
3280
+ return jspb.Message.setField(this, 4, undefined);
3281
+ };
3282
+
3283
+
3284
+ /**
3285
+ * Returns whether this field is set.
3286
+ * @return {boolean}
3287
+ */
3288
+ proto.user.UserRequest.prototype.hasCurrency = function() {
3289
+ return jspb.Message.getField(this, 4) != null;
3290
+ };
3291
+
3292
+
3293
+ /**
3294
+ * optional string country = 5;
3295
+ * @return {string}
3296
+ */
3297
+ proto.user.UserRequest.prototype.getCountry = function() {
3298
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3299
+ };
3300
+
3301
+
3302
+ /**
3303
+ * @param {string} value
3304
+ * @return {!proto.user.UserRequest} returns this
3305
+ */
3306
+ proto.user.UserRequest.prototype.setCountry = function(value) {
3307
+ return jspb.Message.setField(this, 5, value);
3308
+ };
3309
+
3310
+
3311
+ /**
3312
+ * Clears the field making it undefined.
3313
+ * @return {!proto.user.UserRequest} returns this
3314
+ */
3315
+ proto.user.UserRequest.prototype.clearCountry = function() {
3316
+ return jspb.Message.setField(this, 5, undefined);
3317
+ };
3318
+
3319
+
3320
+ /**
3321
+ * Returns whether this field is set.
3322
+ * @return {boolean}
3323
+ */
3324
+ proto.user.UserRequest.prototype.hasCountry = function() {
3325
+ return jspb.Message.getField(this, 5) != null;
3326
+ };
3327
+
3328
+
3329
+ /**
3330
+ * optional string city = 6;
3331
+ * @return {string}
3332
+ */
3333
+ proto.user.UserRequest.prototype.getCity = function() {
3334
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3335
+ };
3336
+
3337
+
3338
+ /**
3339
+ * @param {string} value
3340
+ * @return {!proto.user.UserRequest} returns this
3341
+ */
3342
+ proto.user.UserRequest.prototype.setCity = function(value) {
3343
+ return jspb.Message.setField(this, 6, value);
3344
+ };
3345
+
3346
+
3347
+ /**
3348
+ * Clears the field making it undefined.
3349
+ * @return {!proto.user.UserRequest} returns this
3350
+ */
3351
+ proto.user.UserRequest.prototype.clearCity = function() {
3352
+ return jspb.Message.setField(this, 6, undefined);
3353
+ };
3354
+
3355
+
3356
+ /**
3357
+ * Returns whether this field is set.
3358
+ * @return {boolean}
3359
+ */
3360
+ proto.user.UserRequest.prototype.hasCity = function() {
3361
+ return jspb.Message.getField(this, 6) != null;
3362
+ };
3363
+
3364
+
3365
+ /**
3366
+ * optional string first_name = 7;
3367
+ * @return {string}
3368
+ */
3369
+ proto.user.UserRequest.prototype.getFirstName = function() {
3370
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3371
+ };
3372
+
3373
+
3374
+ /**
3375
+ * @param {string} value
3376
+ * @return {!proto.user.UserRequest} returns this
3377
+ */
3378
+ proto.user.UserRequest.prototype.setFirstName = function(value) {
3379
+ return jspb.Message.setField(this, 7, value);
3380
+ };
3381
+
3382
+
3383
+ /**
3384
+ * Clears the field making it undefined.
3385
+ * @return {!proto.user.UserRequest} returns this
3386
+ */
3387
+ proto.user.UserRequest.prototype.clearFirstName = function() {
3388
+ return jspb.Message.setField(this, 7, undefined);
3389
+ };
3390
+
3391
+
3392
+ /**
3393
+ * Returns whether this field is set.
3394
+ * @return {boolean}
3395
+ */
3396
+ proto.user.UserRequest.prototype.hasFirstName = function() {
3397
+ return jspb.Message.getField(this, 7) != null;
3398
+ };
3399
+
3400
+
3401
+ /**
3402
+ * optional string last_name = 8;
3403
+ * @return {string}
3404
+ */
3405
+ proto.user.UserRequest.prototype.getLastName = function() {
3406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3407
+ };
3408
+
3409
+
3410
+ /**
3411
+ * @param {string} value
3412
+ * @return {!proto.user.UserRequest} returns this
3413
+ */
3414
+ proto.user.UserRequest.prototype.setLastName = function(value) {
3415
+ return jspb.Message.setField(this, 8, value);
3416
+ };
3417
+
3418
+
3419
+ /**
3420
+ * Clears the field making it undefined.
3421
+ * @return {!proto.user.UserRequest} returns this
3422
+ */
3423
+ proto.user.UserRequest.prototype.clearLastName = function() {
3424
+ return jspb.Message.setField(this, 8, undefined);
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * Returns whether this field is set.
3430
+ * @return {boolean}
3431
+ */
3432
+ proto.user.UserRequest.prototype.hasLastName = function() {
3433
+ return jspb.Message.getField(this, 8) != null;
3434
+ };
3435
+
3436
+
3437
+ /**
3438
+ * optional string birthday = 9;
3439
+ * @return {string}
3440
+ */
3441
+ proto.user.UserRequest.prototype.getBirthday = function() {
3442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3443
+ };
3444
+
3445
+
3446
+ /**
3447
+ * @param {string} value
3448
+ * @return {!proto.user.UserRequest} returns this
3449
+ */
3450
+ proto.user.UserRequest.prototype.setBirthday = function(value) {
3451
+ return jspb.Message.setField(this, 9, value);
3452
+ };
3453
+
3454
+
3455
+ /**
3456
+ * Clears the field making it undefined.
3457
+ * @return {!proto.user.UserRequest} returns this
3458
+ */
3459
+ proto.user.UserRequest.prototype.clearBirthday = function() {
3460
+ return jspb.Message.setField(this, 9, undefined);
3461
+ };
3462
+
3463
+
3464
+ /**
3465
+ * Returns whether this field is set.
3466
+ * @return {boolean}
3467
+ */
3468
+ proto.user.UserRequest.prototype.hasBirthday = function() {
3469
+ return jspb.Message.getField(this, 9) != null;
3470
+ };
3471
+
3472
+
3473
+ /**
3474
+ * optional string locale = 10;
3475
+ * @return {string}
3476
+ */
3477
+ proto.user.UserRequest.prototype.getLocale = function() {
3478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3479
+ };
3480
+
3481
+
3482
+ /**
3483
+ * @param {string} value
3484
+ * @return {!proto.user.UserRequest} returns this
3485
+ */
3486
+ proto.user.UserRequest.prototype.setLocale = function(value) {
3487
+ return jspb.Message.setField(this, 10, value);
3488
+ };
3489
+
3490
+
3491
+ /**
3492
+ * Clears the field making it undefined.
3493
+ * @return {!proto.user.UserRequest} returns this
3494
+ */
3495
+ proto.user.UserRequest.prototype.clearLocale = function() {
3496
+ return jspb.Message.setField(this, 10, undefined);
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * Returns whether this field is set.
3502
+ * @return {boolean}
3503
+ */
3504
+ proto.user.UserRequest.prototype.hasLocale = function() {
3505
+ return jspb.Message.getField(this, 10) != null;
3506
+ };
3507
+
3508
+
3509
+ /**
3510
+ * optional int32 role_id = 11;
3511
+ * @return {number}
3512
+ */
3513
+ proto.user.UserRequest.prototype.getRoleId = function() {
3514
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * @param {number} value
3520
+ * @return {!proto.user.UserRequest} returns this
3521
+ */
3522
+ proto.user.UserRequest.prototype.setRoleId = function(value) {
3523
+ return jspb.Message.setField(this, 11, value);
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * Clears the field making it undefined.
3529
+ * @return {!proto.user.UserRequest} returns this
3530
+ */
3531
+ proto.user.UserRequest.prototype.clearRoleId = function() {
3532
+ return jspb.Message.setField(this, 11, undefined);
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * Returns whether this field is set.
3538
+ * @return {boolean}
3539
+ */
3540
+ proto.user.UserRequest.prototype.hasRoleId = function() {
3541
+ return jspb.Message.getField(this, 11) != null;
3542
+ };
3543
+
3544
+
3545
+ /**
3546
+ * optional float balance_real = 12;
3547
+ * @return {number}
3548
+ */
3549
+ proto.user.UserRequest.prototype.getBalanceReal = function() {
3550
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
3551
+ };
3552
+
3553
+
3554
+ /**
3555
+ * @param {number} value
3556
+ * @return {!proto.user.UserRequest} returns this
3557
+ */
3558
+ proto.user.UserRequest.prototype.setBalanceReal = function(value) {
3559
+ return jspb.Message.setField(this, 12, value);
3560
+ };
3561
+
3562
+
3563
+ /**
3564
+ * Clears the field making it undefined.
3565
+ * @return {!proto.user.UserRequest} returns this
3566
+ */
3567
+ proto.user.UserRequest.prototype.clearBalanceReal = function() {
3568
+ return jspb.Message.setField(this, 12, undefined);
3569
+ };
3570
+
3571
+
3572
+ /**
3573
+ * Returns whether this field is set.
3574
+ * @return {boolean}
3575
+ */
3576
+ proto.user.UserRequest.prototype.hasBalanceReal = function() {
3577
+ return jspb.Message.getField(this, 12) != null;
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * optional float balance_bonus = 13;
3583
+ * @return {number}
3584
+ */
3585
+ proto.user.UserRequest.prototype.getBalanceBonus = function() {
3586
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
3587
+ };
3588
+
3589
+
3590
+ /**
3591
+ * @param {number} value
3592
+ * @return {!proto.user.UserRequest} returns this
3593
+ */
3594
+ proto.user.UserRequest.prototype.setBalanceBonus = function(value) {
3595
+ return jspb.Message.setField(this, 13, value);
3596
+ };
3597
+
3598
+
3599
+ /**
3600
+ * Clears the field making it undefined.
3601
+ * @return {!proto.user.UserRequest} returns this
3602
+ */
3603
+ proto.user.UserRequest.prototype.clearBalanceBonus = function() {
3604
+ return jspb.Message.setField(this, 13, undefined);
3605
+ };
3606
+
3607
+
3608
+ /**
3609
+ * Returns whether this field is set.
3610
+ * @return {boolean}
3611
+ */
3612
+ proto.user.UserRequest.prototype.hasBalanceBonus = function() {
3613
+ return jspb.Message.getField(this, 13) != null;
3614
+ };
3615
+
3616
+
3617
+ /**
3618
+ * optional string balance_type = 14;
3619
+ * @return {string}
3620
+ */
3621
+ proto.user.UserRequest.prototype.getBalanceType = function() {
3622
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * @param {string} value
3628
+ * @return {!proto.user.UserRequest} returns this
3629
+ */
3630
+ proto.user.UserRequest.prototype.setBalanceType = function(value) {
3631
+ return jspb.Message.setField(this, 14, value);
3632
+ };
3633
+
3634
+
3635
+ /**
3636
+ * Clears the field making it undefined.
3637
+ * @return {!proto.user.UserRequest} returns this
3638
+ */
3639
+ proto.user.UserRequest.prototype.clearBalanceType = function() {
3640
+ return jspb.Message.setField(this, 14, undefined);
3641
+ };
3642
+
3643
+
3644
+ /**
3645
+ * Returns whether this field is set.
3646
+ * @return {boolean}
3647
+ */
3648
+ proto.user.UserRequest.prototype.hasBalanceType = function() {
3649
+ return jspb.Message.getField(this, 14) != null;
3650
+ };
3651
+
3652
+
3653
+ /**
3654
+ * optional int32 affiliate_id = 15;
3655
+ * @return {number}
3656
+ */
3657
+ proto.user.UserRequest.prototype.getAffiliateId = function() {
3658
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
3659
+ };
3660
+
3661
+
3662
+ /**
3663
+ * @param {number} value
3664
+ * @return {!proto.user.UserRequest} returns this
3665
+ */
3666
+ proto.user.UserRequest.prototype.setAffiliateId = function(value) {
3667
+ return jspb.Message.setField(this, 15, value);
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * Clears the field making it undefined.
3673
+ * @return {!proto.user.UserRequest} returns this
3674
+ */
3675
+ proto.user.UserRequest.prototype.clearAffiliateId = function() {
3676
+ return jspb.Message.setField(this, 15, undefined);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Returns whether this field is set.
3682
+ * @return {boolean}
3683
+ */
3684
+ proto.user.UserRequest.prototype.hasAffiliateId = function() {
3685
+ return jspb.Message.getField(this, 15) != null;
3686
+ };
3687
+
3688
+
3689
+ /**
3690
+ * optional string timezone = 16;
3691
+ * @return {string}
3692
+ */
3693
+ proto.user.UserRequest.prototype.getTimezone = function() {
3694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3695
+ };
3696
+
3697
+
3698
+ /**
3699
+ * @param {string} value
3700
+ * @return {!proto.user.UserRequest} returns this
3701
+ */
3702
+ proto.user.UserRequest.prototype.setTimezone = function(value) {
3703
+ return jspb.Message.setField(this, 16, value);
3704
+ };
3705
+
3706
+
3707
+ /**
3708
+ * Clears the field making it undefined.
3709
+ * @return {!proto.user.UserRequest} returns this
3710
+ */
3711
+ proto.user.UserRequest.prototype.clearTimezone = function() {
3712
+ return jspb.Message.setField(this, 16, undefined);
3713
+ };
3714
+
3715
+
3716
+ /**
3717
+ * Returns whether this field is set.
3718
+ * @return {boolean}
3719
+ */
3720
+ proto.user.UserRequest.prototype.hasTimezone = function() {
3721
+ return jspb.Message.getField(this, 16) != null;
3722
+ };
3723
+
3724
+
3725
+ /**
3726
+ * optional int32 risk_status_id = 17;
3727
+ * @return {number}
3728
+ */
3729
+ proto.user.UserRequest.prototype.getRiskStatusId = function() {
3730
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
3731
+ };
3732
+
3733
+
3734
+ /**
3735
+ * @param {number} value
3736
+ * @return {!proto.user.UserRequest} returns this
3737
+ */
3738
+ proto.user.UserRequest.prototype.setRiskStatusId = function(value) {
3739
+ return jspb.Message.setField(this, 17, value);
3740
+ };
3741
+
3742
+
3743
+ /**
3744
+ * Clears the field making it undefined.
3745
+ * @return {!proto.user.UserRequest} returns this
3746
+ */
3747
+ proto.user.UserRequest.prototype.clearRiskStatusId = function() {
3748
+ return jspb.Message.setField(this, 17, undefined);
3749
+ };
3750
+
3751
+
3752
+ /**
3753
+ * Returns whether this field is set.
3754
+ * @return {boolean}
3755
+ */
3756
+ proto.user.UserRequest.prototype.hasRiskStatusId = function() {
3757
+ return jspb.Message.getField(this, 17) != null;
3758
+ };
3759
+
3760
+
3761
+ /**
3762
+ * optional int32 category_id = 18;
3763
+ * @return {number}
3764
+ */
3765
+ proto.user.UserRequest.prototype.getCategoryId = function() {
3766
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
3767
+ };
3768
+
3769
+
3770
+ /**
3771
+ * @param {number} value
3772
+ * @return {!proto.user.UserRequest} returns this
3773
+ */
3774
+ proto.user.UserRequest.prototype.setCategoryId = function(value) {
3775
+ return jspb.Message.setField(this, 18, value);
3776
+ };
3777
+
3778
+
3779
+ /**
3780
+ * Clears the field making it undefined.
3781
+ * @return {!proto.user.UserRequest} returns this
3782
+ */
3783
+ proto.user.UserRequest.prototype.clearCategoryId = function() {
3784
+ return jspb.Message.setField(this, 18, undefined);
3785
+ };
3786
+
3787
+
3788
+ /**
3789
+ * Returns whether this field is set.
3790
+ * @return {boolean}
3791
+ */
3792
+ proto.user.UserRequest.prototype.hasCategoryId = function() {
3793
+ return jspb.Message.getField(this, 18) != null;
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * optional int32 block_user = 19;
3799
+ * @return {number}
3800
+ */
3801
+ proto.user.UserRequest.prototype.getBlockUser = function() {
3802
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * @param {number} value
3808
+ * @return {!proto.user.UserRequest} returns this
3809
+ */
3810
+ proto.user.UserRequest.prototype.setBlockUser = function(value) {
3811
+ return jspb.Message.setField(this, 19, value);
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * Clears the field making it undefined.
3817
+ * @return {!proto.user.UserRequest} returns this
3818
+ */
3819
+ proto.user.UserRequest.prototype.clearBlockUser = function() {
3820
+ return jspb.Message.setField(this, 19, undefined);
3821
+ };
3822
+
3823
+
3824
+ /**
3825
+ * Returns whether this field is set.
3826
+ * @return {boolean}
3827
+ */
3828
+ proto.user.UserRequest.prototype.hasBlockUser = function() {
3829
+ return jspb.Message.getField(this, 19) != null;
3830
+ };
3831
+
3832
+
3833
+ /**
3834
+ * optional int32 block_deposit = 20;
3835
+ * @return {number}
3836
+ */
3837
+ proto.user.UserRequest.prototype.getBlockDeposit = function() {
3838
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
3839
+ };
3840
+
3841
+
3842
+ /**
3843
+ * @param {number} value
3844
+ * @return {!proto.user.UserRequest} returns this
3845
+ */
3846
+ proto.user.UserRequest.prototype.setBlockDeposit = function(value) {
3847
+ return jspb.Message.setField(this, 20, value);
3848
+ };
3849
+
3850
+
3851
+ /**
3852
+ * Clears the field making it undefined.
3853
+ * @return {!proto.user.UserRequest} returns this
3854
+ */
3855
+ proto.user.UserRequest.prototype.clearBlockDeposit = function() {
3856
+ return jspb.Message.setField(this, 20, undefined);
3857
+ };
3858
+
3859
+
3860
+ /**
3861
+ * Returns whether this field is set.
3862
+ * @return {boolean}
3863
+ */
3864
+ proto.user.UserRequest.prototype.hasBlockDeposit = function() {
3865
+ return jspb.Message.getField(this, 20) != null;
3866
+ };
3867
+
3868
+
3869
+ /**
3870
+ * optional int32 block_bet = 21;
3871
+ * @return {number}
3872
+ */
3873
+ proto.user.UserRequest.prototype.getBlockBet = function() {
3874
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
3875
+ };
3876
+
3877
+
3878
+ /**
3879
+ * @param {number} value
3880
+ * @return {!proto.user.UserRequest} returns this
3881
+ */
3882
+ proto.user.UserRequest.prototype.setBlockBet = function(value) {
3883
+ return jspb.Message.setField(this, 21, value);
3884
+ };
3885
+
3886
+
3887
+ /**
3888
+ * Clears the field making it undefined.
3889
+ * @return {!proto.user.UserRequest} returns this
3890
+ */
3891
+ proto.user.UserRequest.prototype.clearBlockBet = function() {
3892
+ return jspb.Message.setField(this, 21, undefined);
3893
+ };
3894
+
3895
+
3896
+ /**
3897
+ * Returns whether this field is set.
3898
+ * @return {boolean}
3899
+ */
3900
+ proto.user.UserRequest.prototype.hasBlockBet = function() {
3901
+ return jspb.Message.getField(this, 21) != null;
3902
+ };
3903
+
3904
+
3905
+
3906
+
3907
+
2796
3908
  if (jspb.Message.GENERATE_TO_OBJECT) {
2797
3909
  /**
2798
3910
  * Creates an object representation of this proto.