protobuf-platform 1.2.490 → 1.2.494
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/bonus/bonus.proto +14 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +642 -0
- package/package.json +1 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +44 -0
- package/user/user_pb.js +497 -1
package/bonus/bonus.proto
CHANGED
|
@@ -15,6 +15,7 @@ service Bonus {
|
|
|
15
15
|
rpc deleteSingleBonus(GetBonusRequest) returns (BonusStatusResponse);
|
|
16
16
|
rpc readListBonuses(PaginationRequest) returns (BonusItemsResponse);
|
|
17
17
|
rpc readListPublicBonuses(PaginationRequest) returns (BonusItemsResponse);
|
|
18
|
+
rpc listSignUpBonuses(ListSignUpBonusesRequest) returns (ListSignUpBonusesResponse);
|
|
18
19
|
// Flat paginated wager games for all wager lists attached to a bonus.
|
|
19
20
|
rpc getBonusWagerGames(GetBonusWagerGamesRequest) returns (game.GameItemsResponse);
|
|
20
21
|
rpc setBonusActivationRules(BonusActivationRulesRequest) returns (BonusStatusResponse);
|
|
@@ -243,6 +244,19 @@ message BonusItemsResponse {
|
|
|
243
244
|
optional int32 total_pages = 2;
|
|
244
245
|
optional int32 total_items = 3;
|
|
245
246
|
}
|
|
247
|
+
message ListSignUpBonusesRequest {
|
|
248
|
+
string currency = 1;
|
|
249
|
+
optional string locale = 2;
|
|
250
|
+
}
|
|
251
|
+
message SignUpBonusListItem {
|
|
252
|
+
int32 id = 1;
|
|
253
|
+
string title = 2;
|
|
254
|
+
optional string image = 3;
|
|
255
|
+
string currency = 4;
|
|
256
|
+
}
|
|
257
|
+
message ListSignUpBonusesResponse {
|
|
258
|
+
repeated SignUpBonusListItem items = 1;
|
|
259
|
+
}
|
|
246
260
|
message GetBonusSnapshotsByIdsRequest {
|
|
247
261
|
repeated int32 ids = 1;
|
|
248
262
|
optional string locale = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -379,6 +379,28 @@ function deserialize_bonus_ItemsBunchRequest(buffer_arg) {
|
|
|
379
379
|
return bonus_bonus_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
function serialize_bonus_ListSignUpBonusesRequest(arg) {
|
|
383
|
+
if (!(arg instanceof bonus_bonus_pb.ListSignUpBonusesRequest)) {
|
|
384
|
+
throw new Error('Expected argument of type bonus.ListSignUpBonusesRequest');
|
|
385
|
+
}
|
|
386
|
+
return Buffer.from(arg.serializeBinary());
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function deserialize_bonus_ListSignUpBonusesRequest(buffer_arg) {
|
|
390
|
+
return bonus_bonus_pb.ListSignUpBonusesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function serialize_bonus_ListSignUpBonusesResponse(arg) {
|
|
394
|
+
if (!(arg instanceof bonus_bonus_pb.ListSignUpBonusesResponse)) {
|
|
395
|
+
throw new Error('Expected argument of type bonus.ListSignUpBonusesResponse');
|
|
396
|
+
}
|
|
397
|
+
return Buffer.from(arg.serializeBinary());
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function deserialize_bonus_ListSignUpBonusesResponse(buffer_arg) {
|
|
401
|
+
return bonus_bonus_pb.ListSignUpBonusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
402
|
+
}
|
|
403
|
+
|
|
382
404
|
function serialize_bonus_PaginationRequest(arg) {
|
|
383
405
|
if (!(arg instanceof bonus_bonus_pb.PaginationRequest)) {
|
|
384
406
|
throw new Error('Expected argument of type bonus.PaginationRequest');
|
|
@@ -580,6 +602,17 @@ createSingleBonus: {
|
|
|
580
602
|
responseSerialize: serialize_bonus_BonusItemsResponse,
|
|
581
603
|
responseDeserialize: deserialize_bonus_BonusItemsResponse,
|
|
582
604
|
},
|
|
605
|
+
listSignUpBonuses: {
|
|
606
|
+
path: '/bonus.Bonus/listSignUpBonuses',
|
|
607
|
+
requestStream: false,
|
|
608
|
+
responseStream: false,
|
|
609
|
+
requestType: bonus_bonus_pb.ListSignUpBonusesRequest,
|
|
610
|
+
responseType: bonus_bonus_pb.ListSignUpBonusesResponse,
|
|
611
|
+
requestSerialize: serialize_bonus_ListSignUpBonusesRequest,
|
|
612
|
+
requestDeserialize: deserialize_bonus_ListSignUpBonusesRequest,
|
|
613
|
+
responseSerialize: serialize_bonus_ListSignUpBonusesResponse,
|
|
614
|
+
responseDeserialize: deserialize_bonus_ListSignUpBonusesResponse,
|
|
615
|
+
},
|
|
583
616
|
// Flat paginated wager games for all wager lists attached to a bonus.
|
|
584
617
|
getBonusWagerGames: {
|
|
585
618
|
path: '/bonus.Bonus/getBonusWagerGames',
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -75,10 +75,13 @@ goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
|
75
75
|
goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
|
|
76
76
|
goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
|
|
77
77
|
goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
|
|
78
|
+
goog.exportSymbol('proto.bonus.ListSignUpBonusesRequest', null, global);
|
|
79
|
+
goog.exportSymbol('proto.bonus.ListSignUpBonusesResponse', null, global);
|
|
78
80
|
goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
|
|
79
81
|
goog.exportSymbol('proto.bonus.PingRequest', null, global);
|
|
80
82
|
goog.exportSymbol('proto.bonus.PongResponse', null, global);
|
|
81
83
|
goog.exportSymbol('proto.bonus.SearchBonusRequest', null, global);
|
|
84
|
+
goog.exportSymbol('proto.bonus.SignUpBonusListItem', null, global);
|
|
82
85
|
goog.exportSymbol('proto.bonus.UserBonusHistoryResponse', null, global);
|
|
83
86
|
goog.exportSymbol('proto.bonus.UserBonusItem', null, global);
|
|
84
87
|
goog.exportSymbol('proto.bonus.UserBonusItemsResponse', null, global);
|
|
@@ -546,6 +549,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
546
549
|
*/
|
|
547
550
|
proto.bonus.BonusItemsResponse.displayName = 'proto.bonus.BonusItemsResponse';
|
|
548
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Generated by JsPbCodeGenerator.
|
|
554
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
555
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
556
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
557
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
558
|
+
* valid.
|
|
559
|
+
* @extends {jspb.Message}
|
|
560
|
+
* @constructor
|
|
561
|
+
*/
|
|
562
|
+
proto.bonus.ListSignUpBonusesRequest = function(opt_data) {
|
|
563
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
564
|
+
};
|
|
565
|
+
goog.inherits(proto.bonus.ListSignUpBonusesRequest, jspb.Message);
|
|
566
|
+
if (goog.DEBUG && !COMPILED) {
|
|
567
|
+
/**
|
|
568
|
+
* @public
|
|
569
|
+
* @override
|
|
570
|
+
*/
|
|
571
|
+
proto.bonus.ListSignUpBonusesRequest.displayName = 'proto.bonus.ListSignUpBonusesRequest';
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Generated by JsPbCodeGenerator.
|
|
575
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
576
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
577
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
578
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
579
|
+
* valid.
|
|
580
|
+
* @extends {jspb.Message}
|
|
581
|
+
* @constructor
|
|
582
|
+
*/
|
|
583
|
+
proto.bonus.SignUpBonusListItem = function(opt_data) {
|
|
584
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
585
|
+
};
|
|
586
|
+
goog.inherits(proto.bonus.SignUpBonusListItem, jspb.Message);
|
|
587
|
+
if (goog.DEBUG && !COMPILED) {
|
|
588
|
+
/**
|
|
589
|
+
* @public
|
|
590
|
+
* @override
|
|
591
|
+
*/
|
|
592
|
+
proto.bonus.SignUpBonusListItem.displayName = 'proto.bonus.SignUpBonusListItem';
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Generated by JsPbCodeGenerator.
|
|
596
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
597
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
598
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
599
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
600
|
+
* valid.
|
|
601
|
+
* @extends {jspb.Message}
|
|
602
|
+
* @constructor
|
|
603
|
+
*/
|
|
604
|
+
proto.bonus.ListSignUpBonusesResponse = function(opt_data) {
|
|
605
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.ListSignUpBonusesResponse.repeatedFields_, null);
|
|
606
|
+
};
|
|
607
|
+
goog.inherits(proto.bonus.ListSignUpBonusesResponse, jspb.Message);
|
|
608
|
+
if (goog.DEBUG && !COMPILED) {
|
|
609
|
+
/**
|
|
610
|
+
* @public
|
|
611
|
+
* @override
|
|
612
|
+
*/
|
|
613
|
+
proto.bonus.ListSignUpBonusesResponse.displayName = 'proto.bonus.ListSignUpBonusesResponse';
|
|
614
|
+
}
|
|
549
615
|
/**
|
|
550
616
|
* Generated by JsPbCodeGenerator.
|
|
551
617
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10044,6 +10110,582 @@ proto.bonus.BonusItemsResponse.prototype.hasTotalItems = function() {
|
|
|
10044
10110
|
|
|
10045
10111
|
|
|
10046
10112
|
|
|
10113
|
+
|
|
10114
|
+
|
|
10115
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10116
|
+
/**
|
|
10117
|
+
* Creates an object representation of this proto.
|
|
10118
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10119
|
+
* Optional fields that are not set will be set to undefined.
|
|
10120
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10121
|
+
* For the list of reserved names please see:
|
|
10122
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10123
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10124
|
+
* JSPB instance for transitional soy proto support:
|
|
10125
|
+
* http://goto/soy-param-migration
|
|
10126
|
+
* @return {!Object}
|
|
10127
|
+
*/
|
|
10128
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
10129
|
+
return proto.bonus.ListSignUpBonusesRequest.toObject(opt_includeInstance, this);
|
|
10130
|
+
};
|
|
10131
|
+
|
|
10132
|
+
|
|
10133
|
+
/**
|
|
10134
|
+
* Static version of the {@see toObject} method.
|
|
10135
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10136
|
+
* the JSPB instance for transitional soy proto support:
|
|
10137
|
+
* http://goto/soy-param-migration
|
|
10138
|
+
* @param {!proto.bonus.ListSignUpBonusesRequest} msg The msg instance to transform.
|
|
10139
|
+
* @return {!Object}
|
|
10140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10141
|
+
*/
|
|
10142
|
+
proto.bonus.ListSignUpBonusesRequest.toObject = function(includeInstance, msg) {
|
|
10143
|
+
var f, obj = {
|
|
10144
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10145
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
10146
|
+
};
|
|
10147
|
+
|
|
10148
|
+
if (includeInstance) {
|
|
10149
|
+
obj.$jspbMessageInstance = msg;
|
|
10150
|
+
}
|
|
10151
|
+
return obj;
|
|
10152
|
+
};
|
|
10153
|
+
}
|
|
10154
|
+
|
|
10155
|
+
|
|
10156
|
+
/**
|
|
10157
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10158
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10159
|
+
* @return {!proto.bonus.ListSignUpBonusesRequest}
|
|
10160
|
+
*/
|
|
10161
|
+
proto.bonus.ListSignUpBonusesRequest.deserializeBinary = function(bytes) {
|
|
10162
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10163
|
+
var msg = new proto.bonus.ListSignUpBonusesRequest;
|
|
10164
|
+
return proto.bonus.ListSignUpBonusesRequest.deserializeBinaryFromReader(msg, reader);
|
|
10165
|
+
};
|
|
10166
|
+
|
|
10167
|
+
|
|
10168
|
+
/**
|
|
10169
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10170
|
+
* given reader into the given message object.
|
|
10171
|
+
* @param {!proto.bonus.ListSignUpBonusesRequest} msg The message object to deserialize into.
|
|
10172
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10173
|
+
* @return {!proto.bonus.ListSignUpBonusesRequest}
|
|
10174
|
+
*/
|
|
10175
|
+
proto.bonus.ListSignUpBonusesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
10176
|
+
while (reader.nextField()) {
|
|
10177
|
+
if (reader.isEndGroup()) {
|
|
10178
|
+
break;
|
|
10179
|
+
}
|
|
10180
|
+
var field = reader.getFieldNumber();
|
|
10181
|
+
switch (field) {
|
|
10182
|
+
case 1:
|
|
10183
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10184
|
+
msg.setCurrency(value);
|
|
10185
|
+
break;
|
|
10186
|
+
case 2:
|
|
10187
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10188
|
+
msg.setLocale(value);
|
|
10189
|
+
break;
|
|
10190
|
+
default:
|
|
10191
|
+
reader.skipField();
|
|
10192
|
+
break;
|
|
10193
|
+
}
|
|
10194
|
+
}
|
|
10195
|
+
return msg;
|
|
10196
|
+
};
|
|
10197
|
+
|
|
10198
|
+
|
|
10199
|
+
/**
|
|
10200
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10201
|
+
* @return {!Uint8Array}
|
|
10202
|
+
*/
|
|
10203
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.serializeBinary = function() {
|
|
10204
|
+
var writer = new jspb.BinaryWriter();
|
|
10205
|
+
proto.bonus.ListSignUpBonusesRequest.serializeBinaryToWriter(this, writer);
|
|
10206
|
+
return writer.getResultBuffer();
|
|
10207
|
+
};
|
|
10208
|
+
|
|
10209
|
+
|
|
10210
|
+
/**
|
|
10211
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10212
|
+
* format), writing to the given BinaryWriter.
|
|
10213
|
+
* @param {!proto.bonus.ListSignUpBonusesRequest} message
|
|
10214
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10215
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10216
|
+
*/
|
|
10217
|
+
proto.bonus.ListSignUpBonusesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
10218
|
+
var f = undefined;
|
|
10219
|
+
f = message.getCurrency();
|
|
10220
|
+
if (f.length > 0) {
|
|
10221
|
+
writer.writeString(
|
|
10222
|
+
1,
|
|
10223
|
+
f
|
|
10224
|
+
);
|
|
10225
|
+
}
|
|
10226
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
10227
|
+
if (f != null) {
|
|
10228
|
+
writer.writeString(
|
|
10229
|
+
2,
|
|
10230
|
+
f
|
|
10231
|
+
);
|
|
10232
|
+
}
|
|
10233
|
+
};
|
|
10234
|
+
|
|
10235
|
+
|
|
10236
|
+
/**
|
|
10237
|
+
* optional string currency = 1;
|
|
10238
|
+
* @return {string}
|
|
10239
|
+
*/
|
|
10240
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.getCurrency = function() {
|
|
10241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10242
|
+
};
|
|
10243
|
+
|
|
10244
|
+
|
|
10245
|
+
/**
|
|
10246
|
+
* @param {string} value
|
|
10247
|
+
* @return {!proto.bonus.ListSignUpBonusesRequest} returns this
|
|
10248
|
+
*/
|
|
10249
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.setCurrency = function(value) {
|
|
10250
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10251
|
+
};
|
|
10252
|
+
|
|
10253
|
+
|
|
10254
|
+
/**
|
|
10255
|
+
* optional string locale = 2;
|
|
10256
|
+
* @return {string}
|
|
10257
|
+
*/
|
|
10258
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.getLocale = function() {
|
|
10259
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10260
|
+
};
|
|
10261
|
+
|
|
10262
|
+
|
|
10263
|
+
/**
|
|
10264
|
+
* @param {string} value
|
|
10265
|
+
* @return {!proto.bonus.ListSignUpBonusesRequest} returns this
|
|
10266
|
+
*/
|
|
10267
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.setLocale = function(value) {
|
|
10268
|
+
return jspb.Message.setField(this, 2, value);
|
|
10269
|
+
};
|
|
10270
|
+
|
|
10271
|
+
|
|
10272
|
+
/**
|
|
10273
|
+
* Clears the field making it undefined.
|
|
10274
|
+
* @return {!proto.bonus.ListSignUpBonusesRequest} returns this
|
|
10275
|
+
*/
|
|
10276
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.clearLocale = function() {
|
|
10277
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
10278
|
+
};
|
|
10279
|
+
|
|
10280
|
+
|
|
10281
|
+
/**
|
|
10282
|
+
* Returns whether this field is set.
|
|
10283
|
+
* @return {boolean}
|
|
10284
|
+
*/
|
|
10285
|
+
proto.bonus.ListSignUpBonusesRequest.prototype.hasLocale = function() {
|
|
10286
|
+
return jspb.Message.getField(this, 2) != null;
|
|
10287
|
+
};
|
|
10288
|
+
|
|
10289
|
+
|
|
10290
|
+
|
|
10291
|
+
|
|
10292
|
+
|
|
10293
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10294
|
+
/**
|
|
10295
|
+
* Creates an object representation of this proto.
|
|
10296
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10297
|
+
* Optional fields that are not set will be set to undefined.
|
|
10298
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10299
|
+
* For the list of reserved names please see:
|
|
10300
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10301
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10302
|
+
* JSPB instance for transitional soy proto support:
|
|
10303
|
+
* http://goto/soy-param-migration
|
|
10304
|
+
* @return {!Object}
|
|
10305
|
+
*/
|
|
10306
|
+
proto.bonus.SignUpBonusListItem.prototype.toObject = function(opt_includeInstance) {
|
|
10307
|
+
return proto.bonus.SignUpBonusListItem.toObject(opt_includeInstance, this);
|
|
10308
|
+
};
|
|
10309
|
+
|
|
10310
|
+
|
|
10311
|
+
/**
|
|
10312
|
+
* Static version of the {@see toObject} method.
|
|
10313
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10314
|
+
* the JSPB instance for transitional soy proto support:
|
|
10315
|
+
* http://goto/soy-param-migration
|
|
10316
|
+
* @param {!proto.bonus.SignUpBonusListItem} msg The msg instance to transform.
|
|
10317
|
+
* @return {!Object}
|
|
10318
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10319
|
+
*/
|
|
10320
|
+
proto.bonus.SignUpBonusListItem.toObject = function(includeInstance, msg) {
|
|
10321
|
+
var f, obj = {
|
|
10322
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
10323
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10324
|
+
image: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10325
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
10326
|
+
};
|
|
10327
|
+
|
|
10328
|
+
if (includeInstance) {
|
|
10329
|
+
obj.$jspbMessageInstance = msg;
|
|
10330
|
+
}
|
|
10331
|
+
return obj;
|
|
10332
|
+
};
|
|
10333
|
+
}
|
|
10334
|
+
|
|
10335
|
+
|
|
10336
|
+
/**
|
|
10337
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10338
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10339
|
+
* @return {!proto.bonus.SignUpBonusListItem}
|
|
10340
|
+
*/
|
|
10341
|
+
proto.bonus.SignUpBonusListItem.deserializeBinary = function(bytes) {
|
|
10342
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10343
|
+
var msg = new proto.bonus.SignUpBonusListItem;
|
|
10344
|
+
return proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader(msg, reader);
|
|
10345
|
+
};
|
|
10346
|
+
|
|
10347
|
+
|
|
10348
|
+
/**
|
|
10349
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10350
|
+
* given reader into the given message object.
|
|
10351
|
+
* @param {!proto.bonus.SignUpBonusListItem} msg The message object to deserialize into.
|
|
10352
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10353
|
+
* @return {!proto.bonus.SignUpBonusListItem}
|
|
10354
|
+
*/
|
|
10355
|
+
proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
10356
|
+
while (reader.nextField()) {
|
|
10357
|
+
if (reader.isEndGroup()) {
|
|
10358
|
+
break;
|
|
10359
|
+
}
|
|
10360
|
+
var field = reader.getFieldNumber();
|
|
10361
|
+
switch (field) {
|
|
10362
|
+
case 1:
|
|
10363
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
10364
|
+
msg.setId(value);
|
|
10365
|
+
break;
|
|
10366
|
+
case 2:
|
|
10367
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10368
|
+
msg.setTitle(value);
|
|
10369
|
+
break;
|
|
10370
|
+
case 3:
|
|
10371
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10372
|
+
msg.setImage(value);
|
|
10373
|
+
break;
|
|
10374
|
+
case 4:
|
|
10375
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10376
|
+
msg.setCurrency(value);
|
|
10377
|
+
break;
|
|
10378
|
+
default:
|
|
10379
|
+
reader.skipField();
|
|
10380
|
+
break;
|
|
10381
|
+
}
|
|
10382
|
+
}
|
|
10383
|
+
return msg;
|
|
10384
|
+
};
|
|
10385
|
+
|
|
10386
|
+
|
|
10387
|
+
/**
|
|
10388
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10389
|
+
* @return {!Uint8Array}
|
|
10390
|
+
*/
|
|
10391
|
+
proto.bonus.SignUpBonusListItem.prototype.serializeBinary = function() {
|
|
10392
|
+
var writer = new jspb.BinaryWriter();
|
|
10393
|
+
proto.bonus.SignUpBonusListItem.serializeBinaryToWriter(this, writer);
|
|
10394
|
+
return writer.getResultBuffer();
|
|
10395
|
+
};
|
|
10396
|
+
|
|
10397
|
+
|
|
10398
|
+
/**
|
|
10399
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10400
|
+
* format), writing to the given BinaryWriter.
|
|
10401
|
+
* @param {!proto.bonus.SignUpBonusListItem} message
|
|
10402
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10403
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10404
|
+
*/
|
|
10405
|
+
proto.bonus.SignUpBonusListItem.serializeBinaryToWriter = function(message, writer) {
|
|
10406
|
+
var f = undefined;
|
|
10407
|
+
f = message.getId();
|
|
10408
|
+
if (f !== 0) {
|
|
10409
|
+
writer.writeInt32(
|
|
10410
|
+
1,
|
|
10411
|
+
f
|
|
10412
|
+
);
|
|
10413
|
+
}
|
|
10414
|
+
f = message.getTitle();
|
|
10415
|
+
if (f.length > 0) {
|
|
10416
|
+
writer.writeString(
|
|
10417
|
+
2,
|
|
10418
|
+
f
|
|
10419
|
+
);
|
|
10420
|
+
}
|
|
10421
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
10422
|
+
if (f != null) {
|
|
10423
|
+
writer.writeString(
|
|
10424
|
+
3,
|
|
10425
|
+
f
|
|
10426
|
+
);
|
|
10427
|
+
}
|
|
10428
|
+
f = message.getCurrency();
|
|
10429
|
+
if (f.length > 0) {
|
|
10430
|
+
writer.writeString(
|
|
10431
|
+
4,
|
|
10432
|
+
f
|
|
10433
|
+
);
|
|
10434
|
+
}
|
|
10435
|
+
};
|
|
10436
|
+
|
|
10437
|
+
|
|
10438
|
+
/**
|
|
10439
|
+
* optional int32 id = 1;
|
|
10440
|
+
* @return {number}
|
|
10441
|
+
*/
|
|
10442
|
+
proto.bonus.SignUpBonusListItem.prototype.getId = function() {
|
|
10443
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
10444
|
+
};
|
|
10445
|
+
|
|
10446
|
+
|
|
10447
|
+
/**
|
|
10448
|
+
* @param {number} value
|
|
10449
|
+
* @return {!proto.bonus.SignUpBonusListItem} returns this
|
|
10450
|
+
*/
|
|
10451
|
+
proto.bonus.SignUpBonusListItem.prototype.setId = function(value) {
|
|
10452
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
10453
|
+
};
|
|
10454
|
+
|
|
10455
|
+
|
|
10456
|
+
/**
|
|
10457
|
+
* optional string title = 2;
|
|
10458
|
+
* @return {string}
|
|
10459
|
+
*/
|
|
10460
|
+
proto.bonus.SignUpBonusListItem.prototype.getTitle = function() {
|
|
10461
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10462
|
+
};
|
|
10463
|
+
|
|
10464
|
+
|
|
10465
|
+
/**
|
|
10466
|
+
* @param {string} value
|
|
10467
|
+
* @return {!proto.bonus.SignUpBonusListItem} returns this
|
|
10468
|
+
*/
|
|
10469
|
+
proto.bonus.SignUpBonusListItem.prototype.setTitle = function(value) {
|
|
10470
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10471
|
+
};
|
|
10472
|
+
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* optional string image = 3;
|
|
10476
|
+
* @return {string}
|
|
10477
|
+
*/
|
|
10478
|
+
proto.bonus.SignUpBonusListItem.prototype.getImage = function() {
|
|
10479
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
10480
|
+
};
|
|
10481
|
+
|
|
10482
|
+
|
|
10483
|
+
/**
|
|
10484
|
+
* @param {string} value
|
|
10485
|
+
* @return {!proto.bonus.SignUpBonusListItem} returns this
|
|
10486
|
+
*/
|
|
10487
|
+
proto.bonus.SignUpBonusListItem.prototype.setImage = function(value) {
|
|
10488
|
+
return jspb.Message.setField(this, 3, value);
|
|
10489
|
+
};
|
|
10490
|
+
|
|
10491
|
+
|
|
10492
|
+
/**
|
|
10493
|
+
* Clears the field making it undefined.
|
|
10494
|
+
* @return {!proto.bonus.SignUpBonusListItem} returns this
|
|
10495
|
+
*/
|
|
10496
|
+
proto.bonus.SignUpBonusListItem.prototype.clearImage = function() {
|
|
10497
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
10498
|
+
};
|
|
10499
|
+
|
|
10500
|
+
|
|
10501
|
+
/**
|
|
10502
|
+
* Returns whether this field is set.
|
|
10503
|
+
* @return {boolean}
|
|
10504
|
+
*/
|
|
10505
|
+
proto.bonus.SignUpBonusListItem.prototype.hasImage = function() {
|
|
10506
|
+
return jspb.Message.getField(this, 3) != null;
|
|
10507
|
+
};
|
|
10508
|
+
|
|
10509
|
+
|
|
10510
|
+
/**
|
|
10511
|
+
* optional string currency = 4;
|
|
10512
|
+
* @return {string}
|
|
10513
|
+
*/
|
|
10514
|
+
proto.bonus.SignUpBonusListItem.prototype.getCurrency = function() {
|
|
10515
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
10516
|
+
};
|
|
10517
|
+
|
|
10518
|
+
|
|
10519
|
+
/**
|
|
10520
|
+
* @param {string} value
|
|
10521
|
+
* @return {!proto.bonus.SignUpBonusListItem} returns this
|
|
10522
|
+
*/
|
|
10523
|
+
proto.bonus.SignUpBonusListItem.prototype.setCurrency = function(value) {
|
|
10524
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
10525
|
+
};
|
|
10526
|
+
|
|
10527
|
+
|
|
10528
|
+
|
|
10529
|
+
/**
|
|
10530
|
+
* List of repeated fields within this message type.
|
|
10531
|
+
* @private {!Array<number>}
|
|
10532
|
+
* @const
|
|
10533
|
+
*/
|
|
10534
|
+
proto.bonus.ListSignUpBonusesResponse.repeatedFields_ = [1];
|
|
10535
|
+
|
|
10536
|
+
|
|
10537
|
+
|
|
10538
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10539
|
+
/**
|
|
10540
|
+
* Creates an object representation of this proto.
|
|
10541
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10542
|
+
* Optional fields that are not set will be set to undefined.
|
|
10543
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10544
|
+
* For the list of reserved names please see:
|
|
10545
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10546
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10547
|
+
* JSPB instance for transitional soy proto support:
|
|
10548
|
+
* http://goto/soy-param-migration
|
|
10549
|
+
* @return {!Object}
|
|
10550
|
+
*/
|
|
10551
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
10552
|
+
return proto.bonus.ListSignUpBonusesResponse.toObject(opt_includeInstance, this);
|
|
10553
|
+
};
|
|
10554
|
+
|
|
10555
|
+
|
|
10556
|
+
/**
|
|
10557
|
+
* Static version of the {@see toObject} method.
|
|
10558
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10559
|
+
* the JSPB instance for transitional soy proto support:
|
|
10560
|
+
* http://goto/soy-param-migration
|
|
10561
|
+
* @param {!proto.bonus.ListSignUpBonusesResponse} msg The msg instance to transform.
|
|
10562
|
+
* @return {!Object}
|
|
10563
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10564
|
+
*/
|
|
10565
|
+
proto.bonus.ListSignUpBonusesResponse.toObject = function(includeInstance, msg) {
|
|
10566
|
+
var f, obj = {
|
|
10567
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
10568
|
+
proto.bonus.SignUpBonusListItem.toObject, includeInstance)
|
|
10569
|
+
};
|
|
10570
|
+
|
|
10571
|
+
if (includeInstance) {
|
|
10572
|
+
obj.$jspbMessageInstance = msg;
|
|
10573
|
+
}
|
|
10574
|
+
return obj;
|
|
10575
|
+
};
|
|
10576
|
+
}
|
|
10577
|
+
|
|
10578
|
+
|
|
10579
|
+
/**
|
|
10580
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10581
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10582
|
+
* @return {!proto.bonus.ListSignUpBonusesResponse}
|
|
10583
|
+
*/
|
|
10584
|
+
proto.bonus.ListSignUpBonusesResponse.deserializeBinary = function(bytes) {
|
|
10585
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10586
|
+
var msg = new proto.bonus.ListSignUpBonusesResponse;
|
|
10587
|
+
return proto.bonus.ListSignUpBonusesResponse.deserializeBinaryFromReader(msg, reader);
|
|
10588
|
+
};
|
|
10589
|
+
|
|
10590
|
+
|
|
10591
|
+
/**
|
|
10592
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10593
|
+
* given reader into the given message object.
|
|
10594
|
+
* @param {!proto.bonus.ListSignUpBonusesResponse} msg The message object to deserialize into.
|
|
10595
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10596
|
+
* @return {!proto.bonus.ListSignUpBonusesResponse}
|
|
10597
|
+
*/
|
|
10598
|
+
proto.bonus.ListSignUpBonusesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
10599
|
+
while (reader.nextField()) {
|
|
10600
|
+
if (reader.isEndGroup()) {
|
|
10601
|
+
break;
|
|
10602
|
+
}
|
|
10603
|
+
var field = reader.getFieldNumber();
|
|
10604
|
+
switch (field) {
|
|
10605
|
+
case 1:
|
|
10606
|
+
var value = new proto.bonus.SignUpBonusListItem;
|
|
10607
|
+
reader.readMessage(value,proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader);
|
|
10608
|
+
msg.addItems(value);
|
|
10609
|
+
break;
|
|
10610
|
+
default:
|
|
10611
|
+
reader.skipField();
|
|
10612
|
+
break;
|
|
10613
|
+
}
|
|
10614
|
+
}
|
|
10615
|
+
return msg;
|
|
10616
|
+
};
|
|
10617
|
+
|
|
10618
|
+
|
|
10619
|
+
/**
|
|
10620
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10621
|
+
* @return {!Uint8Array}
|
|
10622
|
+
*/
|
|
10623
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.serializeBinary = function() {
|
|
10624
|
+
var writer = new jspb.BinaryWriter();
|
|
10625
|
+
proto.bonus.ListSignUpBonusesResponse.serializeBinaryToWriter(this, writer);
|
|
10626
|
+
return writer.getResultBuffer();
|
|
10627
|
+
};
|
|
10628
|
+
|
|
10629
|
+
|
|
10630
|
+
/**
|
|
10631
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10632
|
+
* format), writing to the given BinaryWriter.
|
|
10633
|
+
* @param {!proto.bonus.ListSignUpBonusesResponse} message
|
|
10634
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10635
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10636
|
+
*/
|
|
10637
|
+
proto.bonus.ListSignUpBonusesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
10638
|
+
var f = undefined;
|
|
10639
|
+
f = message.getItemsList();
|
|
10640
|
+
if (f.length > 0) {
|
|
10641
|
+
writer.writeRepeatedMessage(
|
|
10642
|
+
1,
|
|
10643
|
+
f,
|
|
10644
|
+
proto.bonus.SignUpBonusListItem.serializeBinaryToWriter
|
|
10645
|
+
);
|
|
10646
|
+
}
|
|
10647
|
+
};
|
|
10648
|
+
|
|
10649
|
+
|
|
10650
|
+
/**
|
|
10651
|
+
* repeated SignUpBonusListItem items = 1;
|
|
10652
|
+
* @return {!Array<!proto.bonus.SignUpBonusListItem>}
|
|
10653
|
+
*/
|
|
10654
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.getItemsList = function() {
|
|
10655
|
+
return /** @type{!Array<!proto.bonus.SignUpBonusListItem>} */ (
|
|
10656
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.SignUpBonusListItem, 1));
|
|
10657
|
+
};
|
|
10658
|
+
|
|
10659
|
+
|
|
10660
|
+
/**
|
|
10661
|
+
* @param {!Array<!proto.bonus.SignUpBonusListItem>} value
|
|
10662
|
+
* @return {!proto.bonus.ListSignUpBonusesResponse} returns this
|
|
10663
|
+
*/
|
|
10664
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.setItemsList = function(value) {
|
|
10665
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
10666
|
+
};
|
|
10667
|
+
|
|
10668
|
+
|
|
10669
|
+
/**
|
|
10670
|
+
* @param {!proto.bonus.SignUpBonusListItem=} opt_value
|
|
10671
|
+
* @param {number=} opt_index
|
|
10672
|
+
* @return {!proto.bonus.SignUpBonusListItem}
|
|
10673
|
+
*/
|
|
10674
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
10675
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.SignUpBonusListItem, opt_index);
|
|
10676
|
+
};
|
|
10677
|
+
|
|
10678
|
+
|
|
10679
|
+
/**
|
|
10680
|
+
* Clears the list making it empty but non-null.
|
|
10681
|
+
* @return {!proto.bonus.ListSignUpBonusesResponse} returns this
|
|
10682
|
+
*/
|
|
10683
|
+
proto.bonus.ListSignUpBonusesResponse.prototype.clearItemsList = function() {
|
|
10684
|
+
return this.setItemsList([]);
|
|
10685
|
+
};
|
|
10686
|
+
|
|
10687
|
+
|
|
10688
|
+
|
|
10047
10689
|
/**
|
|
10048
10690
|
* List of repeated fields within this message type.
|
|
10049
10691
|
* @private {!Array<number>}
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -29,6 +29,8 @@ service User {
|
|
|
29
29
|
rpc addPermissionToUserRole(RolePermissionRequest) returns (RolePermissionStatusResponse);
|
|
30
30
|
rpc rolesList(PaginationRequest) returns (RolesItemsResponse);
|
|
31
31
|
rpc getSingleRole(GetRoleRequest) returns (Role);
|
|
32
|
+
rpc createSingleRole(CreateRoleRequest) returns (Role);
|
|
33
|
+
rpc updateSingleRole(UpdateRoleRequest) returns (Role);
|
|
32
34
|
//CRUD
|
|
33
35
|
rpc readListUsers(PaginationRequest) returns (UsersResponse);
|
|
34
36
|
rpc updateSingleUser(UserRequest) returns (UserDataResponse);
|
|
@@ -232,6 +234,7 @@ message RegistrationRequest {
|
|
|
232
234
|
optional string fraudnetic_token = 27;
|
|
233
235
|
// Gateway IP-derived country; distinct from profile country.
|
|
234
236
|
optional string ip_country = 28;
|
|
237
|
+
optional int32 bonus_id = 29;
|
|
235
238
|
}
|
|
236
239
|
message LoggedInResponse {
|
|
237
240
|
int32 id = 1;
|
|
@@ -690,6 +693,15 @@ message Role {
|
|
|
690
693
|
optional string permissions = 4;
|
|
691
694
|
}
|
|
692
695
|
message GetRoleRequest { int32 id = 1; }
|
|
696
|
+
message CreateRoleRequest {
|
|
697
|
+
string title = 1;
|
|
698
|
+
optional string description = 2;
|
|
699
|
+
}
|
|
700
|
+
message UpdateRoleRequest {
|
|
701
|
+
int32 id = 1;
|
|
702
|
+
optional string title = 2;
|
|
703
|
+
optional string description = 3;
|
|
704
|
+
}
|
|
693
705
|
message RolesItemsResponse {
|
|
694
706
|
repeated Role items = 1;
|
|
695
707
|
int32 total_items = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -246,6 +246,17 @@ function deserialize_user_CreatePresetResponse(buffer_arg) {
|
|
|
246
246
|
return user_pb.CreatePresetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
function serialize_user_CreateRoleRequest(arg) {
|
|
250
|
+
if (!(arg instanceof user_pb.CreateRoleRequest)) {
|
|
251
|
+
throw new Error('Expected argument of type user.CreateRoleRequest');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_user_CreateRoleRequest(buffer_arg) {
|
|
257
|
+
return user_pb.CreateRoleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
249
260
|
function serialize_user_CreateUserKycDocumentMetadataRequest(arg) {
|
|
250
261
|
if (!(arg instanceof user_pb.CreateUserKycDocumentMetadataRequest)) {
|
|
251
262
|
throw new Error('Expected argument of type user.CreateUserKycDocumentMetadataRequest');
|
|
@@ -1401,6 +1412,17 @@ function deserialize_user_UpdateRiskPermissionMatrixRequest(buffer_arg) {
|
|
|
1401
1412
|
return user_pb.UpdateRiskPermissionMatrixRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1402
1413
|
}
|
|
1403
1414
|
|
|
1415
|
+
function serialize_user_UpdateRoleRequest(arg) {
|
|
1416
|
+
if (!(arg instanceof user_pb.UpdateRoleRequest)) {
|
|
1417
|
+
throw new Error('Expected argument of type user.UpdateRoleRequest');
|
|
1418
|
+
}
|
|
1419
|
+
return Buffer.from(arg.serializeBinary());
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
function deserialize_user_UpdateRoleRequest(buffer_arg) {
|
|
1423
|
+
return user_pb.UpdateRoleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1404
1426
|
function serialize_user_UpdateUserKycDocumentReviewRequest(arg) {
|
|
1405
1427
|
if (!(arg instanceof user_pb.UpdateUserKycDocumentReviewRequest)) {
|
|
1406
1428
|
throw new Error('Expected argument of type user.UpdateUserKycDocumentReviewRequest');
|
|
@@ -2131,6 +2153,28 @@ addPermissionToUserRole: {
|
|
|
2131
2153
|
responseSerialize: serialize_user_Role,
|
|
2132
2154
|
responseDeserialize: deserialize_user_Role,
|
|
2133
2155
|
},
|
|
2156
|
+
createSingleRole: {
|
|
2157
|
+
path: '/user.User/createSingleRole',
|
|
2158
|
+
requestStream: false,
|
|
2159
|
+
responseStream: false,
|
|
2160
|
+
requestType: user_pb.CreateRoleRequest,
|
|
2161
|
+
responseType: user_pb.Role,
|
|
2162
|
+
requestSerialize: serialize_user_CreateRoleRequest,
|
|
2163
|
+
requestDeserialize: deserialize_user_CreateRoleRequest,
|
|
2164
|
+
responseSerialize: serialize_user_Role,
|
|
2165
|
+
responseDeserialize: deserialize_user_Role,
|
|
2166
|
+
},
|
|
2167
|
+
updateSingleRole: {
|
|
2168
|
+
path: '/user.User/updateSingleRole',
|
|
2169
|
+
requestStream: false,
|
|
2170
|
+
responseStream: false,
|
|
2171
|
+
requestType: user_pb.UpdateRoleRequest,
|
|
2172
|
+
responseType: user_pb.Role,
|
|
2173
|
+
requestSerialize: serialize_user_UpdateRoleRequest,
|
|
2174
|
+
requestDeserialize: deserialize_user_UpdateRoleRequest,
|
|
2175
|
+
responseSerialize: serialize_user_Role,
|
|
2176
|
+
responseDeserialize: deserialize_user_Role,
|
|
2177
|
+
},
|
|
2134
2178
|
// CRUD
|
|
2135
2179
|
readListUsers: {
|
|
2136
2180
|
path: '/user.User/readListUsers',
|
package/user/user_pb.js
CHANGED
|
@@ -46,6 +46,7 @@ goog.exportSymbol('proto.user.CreateKycRequirementPresetRequest', null, global);
|
|
|
46
46
|
goog.exportSymbol('proto.user.CreateKycRuleDefinitionRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.user.CreatePresetRequest', null, global);
|
|
48
48
|
goog.exportSymbol('proto.user.CreatePresetResponse', null, global);
|
|
49
|
+
goog.exportSymbol('proto.user.CreateRoleRequest', null, global);
|
|
49
50
|
goog.exportSymbol('proto.user.CreateUserKycDocumentMetadataRequest', null, global);
|
|
50
51
|
goog.exportSymbol('proto.user.DashboardRequest', null, global);
|
|
51
52
|
goog.exportSymbol('proto.user.DashboardResponse', null, global);
|
|
@@ -174,6 +175,7 @@ goog.exportSymbol('proto.user.UpdatePresetRequest', null, global);
|
|
|
174
175
|
goog.exportSymbol('proto.user.UpdatePresetResponse', null, global);
|
|
175
176
|
goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixLimitRequest', null, global);
|
|
176
177
|
goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixRequest', null, global);
|
|
178
|
+
goog.exportSymbol('proto.user.UpdateRoleRequest', null, global);
|
|
177
179
|
goog.exportSymbol('proto.user.UpdateUserKycDocumentReviewRequest', null, global);
|
|
178
180
|
goog.exportSymbol('proto.user.UpdateUserKycProfileRequest', null, global);
|
|
179
181
|
goog.exportSymbol('proto.user.UpdateUserManualRestrictionInBunchItem', null, global);
|
|
@@ -1317,6 +1319,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1317
1319
|
*/
|
|
1318
1320
|
proto.user.GetRoleRequest.displayName = 'proto.user.GetRoleRequest';
|
|
1319
1321
|
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Generated by JsPbCodeGenerator.
|
|
1324
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1325
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1326
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1327
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1328
|
+
* valid.
|
|
1329
|
+
* @extends {jspb.Message}
|
|
1330
|
+
* @constructor
|
|
1331
|
+
*/
|
|
1332
|
+
proto.user.CreateRoleRequest = function(opt_data) {
|
|
1333
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1334
|
+
};
|
|
1335
|
+
goog.inherits(proto.user.CreateRoleRequest, jspb.Message);
|
|
1336
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1337
|
+
/**
|
|
1338
|
+
* @public
|
|
1339
|
+
* @override
|
|
1340
|
+
*/
|
|
1341
|
+
proto.user.CreateRoleRequest.displayName = 'proto.user.CreateRoleRequest';
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Generated by JsPbCodeGenerator.
|
|
1345
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1346
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1347
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1348
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1349
|
+
* valid.
|
|
1350
|
+
* @extends {jspb.Message}
|
|
1351
|
+
* @constructor
|
|
1352
|
+
*/
|
|
1353
|
+
proto.user.UpdateRoleRequest = function(opt_data) {
|
|
1354
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1355
|
+
};
|
|
1356
|
+
goog.inherits(proto.user.UpdateRoleRequest, jspb.Message);
|
|
1357
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1358
|
+
/**
|
|
1359
|
+
* @public
|
|
1360
|
+
* @override
|
|
1361
|
+
*/
|
|
1362
|
+
proto.user.UpdateRoleRequest.displayName = 'proto.user.UpdateRoleRequest';
|
|
1363
|
+
}
|
|
1320
1364
|
/**
|
|
1321
1365
|
* Generated by JsPbCodeGenerator.
|
|
1322
1366
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6665,7 +6709,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
|
6665
6709
|
presetCode: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
6666
6710
|
antifraudSession: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
6667
6711
|
fraudneticToken: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
6668
|
-
ipCountry: jspb.Message.getFieldWithDefault(msg, 28, "")
|
|
6712
|
+
ipCountry: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
6713
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 29, 0)
|
|
6669
6714
|
};
|
|
6670
6715
|
|
|
6671
6716
|
if (includeInstance) {
|
|
@@ -6814,6 +6859,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
6814
6859
|
var value = /** @type {string} */ (reader.readString());
|
|
6815
6860
|
msg.setIpCountry(value);
|
|
6816
6861
|
break;
|
|
6862
|
+
case 29:
|
|
6863
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6864
|
+
msg.setBonusId(value);
|
|
6865
|
+
break;
|
|
6817
6866
|
default:
|
|
6818
6867
|
reader.skipField();
|
|
6819
6868
|
break;
|
|
@@ -7039,6 +7088,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
|
7039
7088
|
f
|
|
7040
7089
|
);
|
|
7041
7090
|
}
|
|
7091
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 29));
|
|
7092
|
+
if (f != null) {
|
|
7093
|
+
writer.writeInt32(
|
|
7094
|
+
29,
|
|
7095
|
+
f
|
|
7096
|
+
);
|
|
7097
|
+
}
|
|
7042
7098
|
};
|
|
7043
7099
|
|
|
7044
7100
|
|
|
@@ -7996,6 +8052,42 @@ proto.user.RegistrationRequest.prototype.hasIpCountry = function() {
|
|
|
7996
8052
|
};
|
|
7997
8053
|
|
|
7998
8054
|
|
|
8055
|
+
/**
|
|
8056
|
+
* optional int32 bonus_id = 29;
|
|
8057
|
+
* @return {number}
|
|
8058
|
+
*/
|
|
8059
|
+
proto.user.RegistrationRequest.prototype.getBonusId = function() {
|
|
8060
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 0));
|
|
8061
|
+
};
|
|
8062
|
+
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* @param {number} value
|
|
8066
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
|
8067
|
+
*/
|
|
8068
|
+
proto.user.RegistrationRequest.prototype.setBonusId = function(value) {
|
|
8069
|
+
return jspb.Message.setField(this, 29, value);
|
|
8070
|
+
};
|
|
8071
|
+
|
|
8072
|
+
|
|
8073
|
+
/**
|
|
8074
|
+
* Clears the field making it undefined.
|
|
8075
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
|
8076
|
+
*/
|
|
8077
|
+
proto.user.RegistrationRequest.prototype.clearBonusId = function() {
|
|
8078
|
+
return jspb.Message.setField(this, 29, undefined);
|
|
8079
|
+
};
|
|
8080
|
+
|
|
8081
|
+
|
|
8082
|
+
/**
|
|
8083
|
+
* Returns whether this field is set.
|
|
8084
|
+
* @return {boolean}
|
|
8085
|
+
*/
|
|
8086
|
+
proto.user.RegistrationRequest.prototype.hasBonusId = function() {
|
|
8087
|
+
return jspb.Message.getField(this, 29) != null;
|
|
8088
|
+
};
|
|
8089
|
+
|
|
8090
|
+
|
|
7999
8091
|
|
|
8000
8092
|
|
|
8001
8093
|
|
|
@@ -28095,6 +28187,410 @@ proto.user.GetRoleRequest.prototype.setId = function(value) {
|
|
|
28095
28187
|
|
|
28096
28188
|
|
|
28097
28189
|
|
|
28190
|
+
|
|
28191
|
+
|
|
28192
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
28193
|
+
/**
|
|
28194
|
+
* Creates an object representation of this proto.
|
|
28195
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
28196
|
+
* Optional fields that are not set will be set to undefined.
|
|
28197
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
28198
|
+
* For the list of reserved names please see:
|
|
28199
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
28200
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
28201
|
+
* JSPB instance for transitional soy proto support:
|
|
28202
|
+
* http://goto/soy-param-migration
|
|
28203
|
+
* @return {!Object}
|
|
28204
|
+
*/
|
|
28205
|
+
proto.user.CreateRoleRequest.prototype.toObject = function(opt_includeInstance) {
|
|
28206
|
+
return proto.user.CreateRoleRequest.toObject(opt_includeInstance, this);
|
|
28207
|
+
};
|
|
28208
|
+
|
|
28209
|
+
|
|
28210
|
+
/**
|
|
28211
|
+
* Static version of the {@see toObject} method.
|
|
28212
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
28213
|
+
* the JSPB instance for transitional soy proto support:
|
|
28214
|
+
* http://goto/soy-param-migration
|
|
28215
|
+
* @param {!proto.user.CreateRoleRequest} msg The msg instance to transform.
|
|
28216
|
+
* @return {!Object}
|
|
28217
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
28218
|
+
*/
|
|
28219
|
+
proto.user.CreateRoleRequest.toObject = function(includeInstance, msg) {
|
|
28220
|
+
var f, obj = {
|
|
28221
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
28222
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
28223
|
+
};
|
|
28224
|
+
|
|
28225
|
+
if (includeInstance) {
|
|
28226
|
+
obj.$jspbMessageInstance = msg;
|
|
28227
|
+
}
|
|
28228
|
+
return obj;
|
|
28229
|
+
};
|
|
28230
|
+
}
|
|
28231
|
+
|
|
28232
|
+
|
|
28233
|
+
/**
|
|
28234
|
+
* Deserializes binary data (in protobuf wire format).
|
|
28235
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
28236
|
+
* @return {!proto.user.CreateRoleRequest}
|
|
28237
|
+
*/
|
|
28238
|
+
proto.user.CreateRoleRequest.deserializeBinary = function(bytes) {
|
|
28239
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
28240
|
+
var msg = new proto.user.CreateRoleRequest;
|
|
28241
|
+
return proto.user.CreateRoleRequest.deserializeBinaryFromReader(msg, reader);
|
|
28242
|
+
};
|
|
28243
|
+
|
|
28244
|
+
|
|
28245
|
+
/**
|
|
28246
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
28247
|
+
* given reader into the given message object.
|
|
28248
|
+
* @param {!proto.user.CreateRoleRequest} msg The message object to deserialize into.
|
|
28249
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
28250
|
+
* @return {!proto.user.CreateRoleRequest}
|
|
28251
|
+
*/
|
|
28252
|
+
proto.user.CreateRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
28253
|
+
while (reader.nextField()) {
|
|
28254
|
+
if (reader.isEndGroup()) {
|
|
28255
|
+
break;
|
|
28256
|
+
}
|
|
28257
|
+
var field = reader.getFieldNumber();
|
|
28258
|
+
switch (field) {
|
|
28259
|
+
case 1:
|
|
28260
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28261
|
+
msg.setTitle(value);
|
|
28262
|
+
break;
|
|
28263
|
+
case 2:
|
|
28264
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28265
|
+
msg.setDescription(value);
|
|
28266
|
+
break;
|
|
28267
|
+
default:
|
|
28268
|
+
reader.skipField();
|
|
28269
|
+
break;
|
|
28270
|
+
}
|
|
28271
|
+
}
|
|
28272
|
+
return msg;
|
|
28273
|
+
};
|
|
28274
|
+
|
|
28275
|
+
|
|
28276
|
+
/**
|
|
28277
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
28278
|
+
* @return {!Uint8Array}
|
|
28279
|
+
*/
|
|
28280
|
+
proto.user.CreateRoleRequest.prototype.serializeBinary = function() {
|
|
28281
|
+
var writer = new jspb.BinaryWriter();
|
|
28282
|
+
proto.user.CreateRoleRequest.serializeBinaryToWriter(this, writer);
|
|
28283
|
+
return writer.getResultBuffer();
|
|
28284
|
+
};
|
|
28285
|
+
|
|
28286
|
+
|
|
28287
|
+
/**
|
|
28288
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
28289
|
+
* format), writing to the given BinaryWriter.
|
|
28290
|
+
* @param {!proto.user.CreateRoleRequest} message
|
|
28291
|
+
* @param {!jspb.BinaryWriter} writer
|
|
28292
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
28293
|
+
*/
|
|
28294
|
+
proto.user.CreateRoleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
28295
|
+
var f = undefined;
|
|
28296
|
+
f = message.getTitle();
|
|
28297
|
+
if (f.length > 0) {
|
|
28298
|
+
writer.writeString(
|
|
28299
|
+
1,
|
|
28300
|
+
f
|
|
28301
|
+
);
|
|
28302
|
+
}
|
|
28303
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
28304
|
+
if (f != null) {
|
|
28305
|
+
writer.writeString(
|
|
28306
|
+
2,
|
|
28307
|
+
f
|
|
28308
|
+
);
|
|
28309
|
+
}
|
|
28310
|
+
};
|
|
28311
|
+
|
|
28312
|
+
|
|
28313
|
+
/**
|
|
28314
|
+
* optional string title = 1;
|
|
28315
|
+
* @return {string}
|
|
28316
|
+
*/
|
|
28317
|
+
proto.user.CreateRoleRequest.prototype.getTitle = function() {
|
|
28318
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
28319
|
+
};
|
|
28320
|
+
|
|
28321
|
+
|
|
28322
|
+
/**
|
|
28323
|
+
* @param {string} value
|
|
28324
|
+
* @return {!proto.user.CreateRoleRequest} returns this
|
|
28325
|
+
*/
|
|
28326
|
+
proto.user.CreateRoleRequest.prototype.setTitle = function(value) {
|
|
28327
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
28328
|
+
};
|
|
28329
|
+
|
|
28330
|
+
|
|
28331
|
+
/**
|
|
28332
|
+
* optional string description = 2;
|
|
28333
|
+
* @return {string}
|
|
28334
|
+
*/
|
|
28335
|
+
proto.user.CreateRoleRequest.prototype.getDescription = function() {
|
|
28336
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
28337
|
+
};
|
|
28338
|
+
|
|
28339
|
+
|
|
28340
|
+
/**
|
|
28341
|
+
* @param {string} value
|
|
28342
|
+
* @return {!proto.user.CreateRoleRequest} returns this
|
|
28343
|
+
*/
|
|
28344
|
+
proto.user.CreateRoleRequest.prototype.setDescription = function(value) {
|
|
28345
|
+
return jspb.Message.setField(this, 2, value);
|
|
28346
|
+
};
|
|
28347
|
+
|
|
28348
|
+
|
|
28349
|
+
/**
|
|
28350
|
+
* Clears the field making it undefined.
|
|
28351
|
+
* @return {!proto.user.CreateRoleRequest} returns this
|
|
28352
|
+
*/
|
|
28353
|
+
proto.user.CreateRoleRequest.prototype.clearDescription = function() {
|
|
28354
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
28355
|
+
};
|
|
28356
|
+
|
|
28357
|
+
|
|
28358
|
+
/**
|
|
28359
|
+
* Returns whether this field is set.
|
|
28360
|
+
* @return {boolean}
|
|
28361
|
+
*/
|
|
28362
|
+
proto.user.CreateRoleRequest.prototype.hasDescription = function() {
|
|
28363
|
+
return jspb.Message.getField(this, 2) != null;
|
|
28364
|
+
};
|
|
28365
|
+
|
|
28366
|
+
|
|
28367
|
+
|
|
28368
|
+
|
|
28369
|
+
|
|
28370
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
28371
|
+
/**
|
|
28372
|
+
* Creates an object representation of this proto.
|
|
28373
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
28374
|
+
* Optional fields that are not set will be set to undefined.
|
|
28375
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
28376
|
+
* For the list of reserved names please see:
|
|
28377
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
28378
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
28379
|
+
* JSPB instance for transitional soy proto support:
|
|
28380
|
+
* http://goto/soy-param-migration
|
|
28381
|
+
* @return {!Object}
|
|
28382
|
+
*/
|
|
28383
|
+
proto.user.UpdateRoleRequest.prototype.toObject = function(opt_includeInstance) {
|
|
28384
|
+
return proto.user.UpdateRoleRequest.toObject(opt_includeInstance, this);
|
|
28385
|
+
};
|
|
28386
|
+
|
|
28387
|
+
|
|
28388
|
+
/**
|
|
28389
|
+
* Static version of the {@see toObject} method.
|
|
28390
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
28391
|
+
* the JSPB instance for transitional soy proto support:
|
|
28392
|
+
* http://goto/soy-param-migration
|
|
28393
|
+
* @param {!proto.user.UpdateRoleRequest} msg The msg instance to transform.
|
|
28394
|
+
* @return {!Object}
|
|
28395
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
28396
|
+
*/
|
|
28397
|
+
proto.user.UpdateRoleRequest.toObject = function(includeInstance, msg) {
|
|
28398
|
+
var f, obj = {
|
|
28399
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
28400
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
28401
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
28402
|
+
};
|
|
28403
|
+
|
|
28404
|
+
if (includeInstance) {
|
|
28405
|
+
obj.$jspbMessageInstance = msg;
|
|
28406
|
+
}
|
|
28407
|
+
return obj;
|
|
28408
|
+
};
|
|
28409
|
+
}
|
|
28410
|
+
|
|
28411
|
+
|
|
28412
|
+
/**
|
|
28413
|
+
* Deserializes binary data (in protobuf wire format).
|
|
28414
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
28415
|
+
* @return {!proto.user.UpdateRoleRequest}
|
|
28416
|
+
*/
|
|
28417
|
+
proto.user.UpdateRoleRequest.deserializeBinary = function(bytes) {
|
|
28418
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
28419
|
+
var msg = new proto.user.UpdateRoleRequest;
|
|
28420
|
+
return proto.user.UpdateRoleRequest.deserializeBinaryFromReader(msg, reader);
|
|
28421
|
+
};
|
|
28422
|
+
|
|
28423
|
+
|
|
28424
|
+
/**
|
|
28425
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
28426
|
+
* given reader into the given message object.
|
|
28427
|
+
* @param {!proto.user.UpdateRoleRequest} msg The message object to deserialize into.
|
|
28428
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
28429
|
+
* @return {!proto.user.UpdateRoleRequest}
|
|
28430
|
+
*/
|
|
28431
|
+
proto.user.UpdateRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
28432
|
+
while (reader.nextField()) {
|
|
28433
|
+
if (reader.isEndGroup()) {
|
|
28434
|
+
break;
|
|
28435
|
+
}
|
|
28436
|
+
var field = reader.getFieldNumber();
|
|
28437
|
+
switch (field) {
|
|
28438
|
+
case 1:
|
|
28439
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
28440
|
+
msg.setId(value);
|
|
28441
|
+
break;
|
|
28442
|
+
case 2:
|
|
28443
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28444
|
+
msg.setTitle(value);
|
|
28445
|
+
break;
|
|
28446
|
+
case 3:
|
|
28447
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28448
|
+
msg.setDescription(value);
|
|
28449
|
+
break;
|
|
28450
|
+
default:
|
|
28451
|
+
reader.skipField();
|
|
28452
|
+
break;
|
|
28453
|
+
}
|
|
28454
|
+
}
|
|
28455
|
+
return msg;
|
|
28456
|
+
};
|
|
28457
|
+
|
|
28458
|
+
|
|
28459
|
+
/**
|
|
28460
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
28461
|
+
* @return {!Uint8Array}
|
|
28462
|
+
*/
|
|
28463
|
+
proto.user.UpdateRoleRequest.prototype.serializeBinary = function() {
|
|
28464
|
+
var writer = new jspb.BinaryWriter();
|
|
28465
|
+
proto.user.UpdateRoleRequest.serializeBinaryToWriter(this, writer);
|
|
28466
|
+
return writer.getResultBuffer();
|
|
28467
|
+
};
|
|
28468
|
+
|
|
28469
|
+
|
|
28470
|
+
/**
|
|
28471
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
28472
|
+
* format), writing to the given BinaryWriter.
|
|
28473
|
+
* @param {!proto.user.UpdateRoleRequest} message
|
|
28474
|
+
* @param {!jspb.BinaryWriter} writer
|
|
28475
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
28476
|
+
*/
|
|
28477
|
+
proto.user.UpdateRoleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
28478
|
+
var f = undefined;
|
|
28479
|
+
f = message.getId();
|
|
28480
|
+
if (f !== 0) {
|
|
28481
|
+
writer.writeInt32(
|
|
28482
|
+
1,
|
|
28483
|
+
f
|
|
28484
|
+
);
|
|
28485
|
+
}
|
|
28486
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
28487
|
+
if (f != null) {
|
|
28488
|
+
writer.writeString(
|
|
28489
|
+
2,
|
|
28490
|
+
f
|
|
28491
|
+
);
|
|
28492
|
+
}
|
|
28493
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
28494
|
+
if (f != null) {
|
|
28495
|
+
writer.writeString(
|
|
28496
|
+
3,
|
|
28497
|
+
f
|
|
28498
|
+
);
|
|
28499
|
+
}
|
|
28500
|
+
};
|
|
28501
|
+
|
|
28502
|
+
|
|
28503
|
+
/**
|
|
28504
|
+
* optional int32 id = 1;
|
|
28505
|
+
* @return {number}
|
|
28506
|
+
*/
|
|
28507
|
+
proto.user.UpdateRoleRequest.prototype.getId = function() {
|
|
28508
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
28509
|
+
};
|
|
28510
|
+
|
|
28511
|
+
|
|
28512
|
+
/**
|
|
28513
|
+
* @param {number} value
|
|
28514
|
+
* @return {!proto.user.UpdateRoleRequest} returns this
|
|
28515
|
+
*/
|
|
28516
|
+
proto.user.UpdateRoleRequest.prototype.setId = function(value) {
|
|
28517
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
28518
|
+
};
|
|
28519
|
+
|
|
28520
|
+
|
|
28521
|
+
/**
|
|
28522
|
+
* optional string title = 2;
|
|
28523
|
+
* @return {string}
|
|
28524
|
+
*/
|
|
28525
|
+
proto.user.UpdateRoleRequest.prototype.getTitle = function() {
|
|
28526
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
28527
|
+
};
|
|
28528
|
+
|
|
28529
|
+
|
|
28530
|
+
/**
|
|
28531
|
+
* @param {string} value
|
|
28532
|
+
* @return {!proto.user.UpdateRoleRequest} returns this
|
|
28533
|
+
*/
|
|
28534
|
+
proto.user.UpdateRoleRequest.prototype.setTitle = function(value) {
|
|
28535
|
+
return jspb.Message.setField(this, 2, value);
|
|
28536
|
+
};
|
|
28537
|
+
|
|
28538
|
+
|
|
28539
|
+
/**
|
|
28540
|
+
* Clears the field making it undefined.
|
|
28541
|
+
* @return {!proto.user.UpdateRoleRequest} returns this
|
|
28542
|
+
*/
|
|
28543
|
+
proto.user.UpdateRoleRequest.prototype.clearTitle = function() {
|
|
28544
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
28545
|
+
};
|
|
28546
|
+
|
|
28547
|
+
|
|
28548
|
+
/**
|
|
28549
|
+
* Returns whether this field is set.
|
|
28550
|
+
* @return {boolean}
|
|
28551
|
+
*/
|
|
28552
|
+
proto.user.UpdateRoleRequest.prototype.hasTitle = function() {
|
|
28553
|
+
return jspb.Message.getField(this, 2) != null;
|
|
28554
|
+
};
|
|
28555
|
+
|
|
28556
|
+
|
|
28557
|
+
/**
|
|
28558
|
+
* optional string description = 3;
|
|
28559
|
+
* @return {string}
|
|
28560
|
+
*/
|
|
28561
|
+
proto.user.UpdateRoleRequest.prototype.getDescription = function() {
|
|
28562
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
28563
|
+
};
|
|
28564
|
+
|
|
28565
|
+
|
|
28566
|
+
/**
|
|
28567
|
+
* @param {string} value
|
|
28568
|
+
* @return {!proto.user.UpdateRoleRequest} returns this
|
|
28569
|
+
*/
|
|
28570
|
+
proto.user.UpdateRoleRequest.prototype.setDescription = function(value) {
|
|
28571
|
+
return jspb.Message.setField(this, 3, value);
|
|
28572
|
+
};
|
|
28573
|
+
|
|
28574
|
+
|
|
28575
|
+
/**
|
|
28576
|
+
* Clears the field making it undefined.
|
|
28577
|
+
* @return {!proto.user.UpdateRoleRequest} returns this
|
|
28578
|
+
*/
|
|
28579
|
+
proto.user.UpdateRoleRequest.prototype.clearDescription = function() {
|
|
28580
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
28581
|
+
};
|
|
28582
|
+
|
|
28583
|
+
|
|
28584
|
+
/**
|
|
28585
|
+
* Returns whether this field is set.
|
|
28586
|
+
* @return {boolean}
|
|
28587
|
+
*/
|
|
28588
|
+
proto.user.UpdateRoleRequest.prototype.hasDescription = function() {
|
|
28589
|
+
return jspb.Message.getField(this, 3) != null;
|
|
28590
|
+
};
|
|
28591
|
+
|
|
28592
|
+
|
|
28593
|
+
|
|
28098
28594
|
/**
|
|
28099
28595
|
* List of repeated fields within this message type.
|
|
28100
28596
|
* @private {!Array<number>}
|