protobuf-platform 1.0.209 → 1.0.211
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 +1 -1
- package/user/user.proto +16 -0
- package/user/user_grpc_pb.js +23 -0
- package/user/user_pb.js +653 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -24,6 +24,8 @@ service User {
|
|
24
24
|
rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
25
25
|
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
26
26
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
27
|
+
//Risk Status
|
28
|
+
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
27
29
|
}
|
28
30
|
|
29
31
|
message PingRequest { string ping = 1; }
|
@@ -126,6 +128,9 @@ message UserDataResponse {
|
|
126
128
|
optional string created = 22;
|
127
129
|
optional UserLoyaltyItem loyalty = 23;
|
128
130
|
optional int32 notifications_count = 24;
|
131
|
+
optional int32 block_user = 25;
|
132
|
+
optional int32 block_deposit = 26;
|
133
|
+
optional int32 block_bet = 27;
|
129
134
|
}
|
130
135
|
message UsersResponse {
|
131
136
|
repeated UserDataResponse items = 1;
|
@@ -196,3 +201,14 @@ message SegmentItemsResponse {
|
|
196
201
|
optional int32 total_pages = 2;
|
197
202
|
optional int32 total_items = 3;
|
198
203
|
}
|
204
|
+
//Risk Status
|
205
|
+
message RiskStatus {
|
206
|
+
int32 id = 1;
|
207
|
+
string title = 2;
|
208
|
+
optional string description = 3;
|
209
|
+
}
|
210
|
+
message RiskStatusItemsResponse {
|
211
|
+
repeated RiskStatus items = 1;
|
212
|
+
optional int32 total_pages = 2;
|
213
|
+
optional int32 total_items = 3;
|
214
|
+
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -92,6 +92,17 @@ function deserialize_user_RegistrationRequest(buffer_arg) {
|
|
92
92
|
return user_pb.RegistrationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
93
|
}
|
94
94
|
|
95
|
+
function serialize_user_RiskStatusItemsResponse(arg) {
|
96
|
+
if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
|
97
|
+
throw new Error('Expected argument of type user.RiskStatusItemsResponse');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_user_RiskStatusItemsResponse(buffer_arg) {
|
103
|
+
return user_pb.RiskStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
95
106
|
function serialize_user_Role(arg) {
|
96
107
|
if (!(arg instanceof user_pb.Role)) {
|
97
108
|
throw new Error('Expected argument of type user.Role');
|
@@ -417,6 +428,18 @@ createSingleSegment: {
|
|
417
428
|
responseSerialize: serialize_user_SegmentStatusResponse,
|
418
429
|
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
419
430
|
},
|
431
|
+
// Risk Status
|
432
|
+
readListRiskStatuses: {
|
433
|
+
path: '/user.User/readListRiskStatuses',
|
434
|
+
requestStream: false,
|
435
|
+
responseStream: false,
|
436
|
+
requestType: user_pb.PaginationRequest,
|
437
|
+
responseType: user_pb.RiskStatusItemsResponse,
|
438
|
+
requestSerialize: serialize_user_PaginationRequest,
|
439
|
+
requestDeserialize: deserialize_user_PaginationRequest,
|
440
|
+
responseSerialize: serialize_user_RiskStatusItemsResponse,
|
441
|
+
responseDeserialize: deserialize_user_RiskStatusItemsResponse,
|
442
|
+
},
|
420
443
|
};
|
421
444
|
|
422
445
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|
package/user/user_pb.js
CHANGED
@@ -29,6 +29,8 @@ goog.exportSymbol('proto.user.PaginationRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.user.PingRequest', null, global);
|
30
30
|
goog.exportSymbol('proto.user.PongResponse', null, global);
|
31
31
|
goog.exportSymbol('proto.user.RegistrationRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.user.RiskStatus', null, global);
|
33
|
+
goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
|
32
34
|
goog.exportSymbol('proto.user.Role', null, global);
|
33
35
|
goog.exportSymbol('proto.user.RolePermissionRequest', null, global);
|
34
36
|
goog.exportSymbol('proto.user.RolePermissionStatusResponse', null, global);
|
@@ -527,6 +529,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
527
529
|
*/
|
528
530
|
proto.user.SegmentItemsResponse.displayName = 'proto.user.SegmentItemsResponse';
|
529
531
|
}
|
532
|
+
/**
|
533
|
+
* Generated by JsPbCodeGenerator.
|
534
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
535
|
+
* server response, or constructed directly in Javascript. The array is used
|
536
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
537
|
+
* If no data is provided, the constructed object will be empty, but still
|
538
|
+
* valid.
|
539
|
+
* @extends {jspb.Message}
|
540
|
+
* @constructor
|
541
|
+
*/
|
542
|
+
proto.user.RiskStatus = function(opt_data) {
|
543
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
544
|
+
};
|
545
|
+
goog.inherits(proto.user.RiskStatus, jspb.Message);
|
546
|
+
if (goog.DEBUG && !COMPILED) {
|
547
|
+
/**
|
548
|
+
* @public
|
549
|
+
* @override
|
550
|
+
*/
|
551
|
+
proto.user.RiskStatus.displayName = 'proto.user.RiskStatus';
|
552
|
+
}
|
553
|
+
/**
|
554
|
+
* Generated by JsPbCodeGenerator.
|
555
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
556
|
+
* server response, or constructed directly in Javascript. The array is used
|
557
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
558
|
+
* If no data is provided, the constructed object will be empty, but still
|
559
|
+
* valid.
|
560
|
+
* @extends {jspb.Message}
|
561
|
+
* @constructor
|
562
|
+
*/
|
563
|
+
proto.user.RiskStatusItemsResponse = function(opt_data) {
|
564
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskStatusItemsResponse.repeatedFields_, null);
|
565
|
+
};
|
566
|
+
goog.inherits(proto.user.RiskStatusItemsResponse, jspb.Message);
|
567
|
+
if (goog.DEBUG && !COMPILED) {
|
568
|
+
/**
|
569
|
+
* @public
|
570
|
+
* @override
|
571
|
+
*/
|
572
|
+
proto.user.RiskStatusItemsResponse.displayName = 'proto.user.RiskStatusItemsResponse';
|
573
|
+
}
|
530
574
|
|
531
575
|
|
532
576
|
|
@@ -3957,7 +4001,10 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
|
|
3957
4001
|
category: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
3958
4002
|
created: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
3959
4003
|
loyalty: (f = msg.getLoyalty()) && proto.user.UserLoyaltyItem.toObject(includeInstance, f),
|
3960
|
-
notificationsCount: jspb.Message.getFieldWithDefault(msg, 24, 0)
|
4004
|
+
notificationsCount: jspb.Message.getFieldWithDefault(msg, 24, 0),
|
4005
|
+
blockUser: jspb.Message.getFieldWithDefault(msg, 25, 0),
|
4006
|
+
blockDeposit: jspb.Message.getFieldWithDefault(msg, 26, 0),
|
4007
|
+
blockBet: jspb.Message.getFieldWithDefault(msg, 27, 0)
|
3961
4008
|
};
|
3962
4009
|
|
3963
4010
|
if (includeInstance) {
|
@@ -4091,6 +4138,18 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
4091
4138
|
var value = /** @type {number} */ (reader.readInt32());
|
4092
4139
|
msg.setNotificationsCount(value);
|
4093
4140
|
break;
|
4141
|
+
case 25:
|
4142
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4143
|
+
msg.setBlockUser(value);
|
4144
|
+
break;
|
4145
|
+
case 26:
|
4146
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4147
|
+
msg.setBlockDeposit(value);
|
4148
|
+
break;
|
4149
|
+
case 27:
|
4150
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4151
|
+
msg.setBlockBet(value);
|
4152
|
+
break;
|
4094
4153
|
default:
|
4095
4154
|
reader.skipField();
|
4096
4155
|
break;
|
@@ -4289,6 +4348,27 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
|
|
4289
4348
|
f
|
4290
4349
|
);
|
4291
4350
|
}
|
4351
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 25));
|
4352
|
+
if (f != null) {
|
4353
|
+
writer.writeInt32(
|
4354
|
+
25,
|
4355
|
+
f
|
4356
|
+
);
|
4357
|
+
}
|
4358
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 26));
|
4359
|
+
if (f != null) {
|
4360
|
+
writer.writeInt32(
|
4361
|
+
26,
|
4362
|
+
f
|
4363
|
+
);
|
4364
|
+
}
|
4365
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 27));
|
4366
|
+
if (f != null) {
|
4367
|
+
writer.writeInt32(
|
4368
|
+
27,
|
4369
|
+
f
|
4370
|
+
);
|
4371
|
+
}
|
4292
4372
|
};
|
4293
4373
|
|
4294
4374
|
|
@@ -5121,6 +5201,114 @@ proto.user.UserDataResponse.prototype.hasNotificationsCount = function() {
|
|
5121
5201
|
};
|
5122
5202
|
|
5123
5203
|
|
5204
|
+
/**
|
5205
|
+
* optional int32 block_user = 25;
|
5206
|
+
* @return {number}
|
5207
|
+
*/
|
5208
|
+
proto.user.UserDataResponse.prototype.getBlockUser = function() {
|
5209
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
|
5210
|
+
};
|
5211
|
+
|
5212
|
+
|
5213
|
+
/**
|
5214
|
+
* @param {number} value
|
5215
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5216
|
+
*/
|
5217
|
+
proto.user.UserDataResponse.prototype.setBlockUser = function(value) {
|
5218
|
+
return jspb.Message.setField(this, 25, value);
|
5219
|
+
};
|
5220
|
+
|
5221
|
+
|
5222
|
+
/**
|
5223
|
+
* Clears the field making it undefined.
|
5224
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5225
|
+
*/
|
5226
|
+
proto.user.UserDataResponse.prototype.clearBlockUser = function() {
|
5227
|
+
return jspb.Message.setField(this, 25, undefined);
|
5228
|
+
};
|
5229
|
+
|
5230
|
+
|
5231
|
+
/**
|
5232
|
+
* Returns whether this field is set.
|
5233
|
+
* @return {boolean}
|
5234
|
+
*/
|
5235
|
+
proto.user.UserDataResponse.prototype.hasBlockUser = function() {
|
5236
|
+
return jspb.Message.getField(this, 25) != null;
|
5237
|
+
};
|
5238
|
+
|
5239
|
+
|
5240
|
+
/**
|
5241
|
+
* optional int32 block_deposit = 26;
|
5242
|
+
* @return {number}
|
5243
|
+
*/
|
5244
|
+
proto.user.UserDataResponse.prototype.getBlockDeposit = function() {
|
5245
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
|
5246
|
+
};
|
5247
|
+
|
5248
|
+
|
5249
|
+
/**
|
5250
|
+
* @param {number} value
|
5251
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5252
|
+
*/
|
5253
|
+
proto.user.UserDataResponse.prototype.setBlockDeposit = function(value) {
|
5254
|
+
return jspb.Message.setField(this, 26, value);
|
5255
|
+
};
|
5256
|
+
|
5257
|
+
|
5258
|
+
/**
|
5259
|
+
* Clears the field making it undefined.
|
5260
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5261
|
+
*/
|
5262
|
+
proto.user.UserDataResponse.prototype.clearBlockDeposit = function() {
|
5263
|
+
return jspb.Message.setField(this, 26, undefined);
|
5264
|
+
};
|
5265
|
+
|
5266
|
+
|
5267
|
+
/**
|
5268
|
+
* Returns whether this field is set.
|
5269
|
+
* @return {boolean}
|
5270
|
+
*/
|
5271
|
+
proto.user.UserDataResponse.prototype.hasBlockDeposit = function() {
|
5272
|
+
return jspb.Message.getField(this, 26) != null;
|
5273
|
+
};
|
5274
|
+
|
5275
|
+
|
5276
|
+
/**
|
5277
|
+
* optional int32 block_bet = 27;
|
5278
|
+
* @return {number}
|
5279
|
+
*/
|
5280
|
+
proto.user.UserDataResponse.prototype.getBlockBet = function() {
|
5281
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0));
|
5282
|
+
};
|
5283
|
+
|
5284
|
+
|
5285
|
+
/**
|
5286
|
+
* @param {number} value
|
5287
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5288
|
+
*/
|
5289
|
+
proto.user.UserDataResponse.prototype.setBlockBet = function(value) {
|
5290
|
+
return jspb.Message.setField(this, 27, value);
|
5291
|
+
};
|
5292
|
+
|
5293
|
+
|
5294
|
+
/**
|
5295
|
+
* Clears the field making it undefined.
|
5296
|
+
* @return {!proto.user.UserDataResponse} returns this
|
5297
|
+
*/
|
5298
|
+
proto.user.UserDataResponse.prototype.clearBlockBet = function() {
|
5299
|
+
return jspb.Message.setField(this, 27, undefined);
|
5300
|
+
};
|
5301
|
+
|
5302
|
+
|
5303
|
+
/**
|
5304
|
+
* Returns whether this field is set.
|
5305
|
+
* @return {boolean}
|
5306
|
+
*/
|
5307
|
+
proto.user.UserDataResponse.prototype.hasBlockBet = function() {
|
5308
|
+
return jspb.Message.getField(this, 27) != null;
|
5309
|
+
};
|
5310
|
+
|
5311
|
+
|
5124
5312
|
|
5125
5313
|
/**
|
5126
5314
|
* List of repeated fields within this message type.
|
@@ -8236,4 +8424,468 @@ proto.user.SegmentItemsResponse.prototype.hasTotalItems = function() {
|
|
8236
8424
|
};
|
8237
8425
|
|
8238
8426
|
|
8427
|
+
|
8428
|
+
|
8429
|
+
|
8430
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8431
|
+
/**
|
8432
|
+
* Creates an object representation of this proto.
|
8433
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8434
|
+
* Optional fields that are not set will be set to undefined.
|
8435
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8436
|
+
* For the list of reserved names please see:
|
8437
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8438
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8439
|
+
* JSPB instance for transitional soy proto support:
|
8440
|
+
* http://goto/soy-param-migration
|
8441
|
+
* @return {!Object}
|
8442
|
+
*/
|
8443
|
+
proto.user.RiskStatus.prototype.toObject = function(opt_includeInstance) {
|
8444
|
+
return proto.user.RiskStatus.toObject(opt_includeInstance, this);
|
8445
|
+
};
|
8446
|
+
|
8447
|
+
|
8448
|
+
/**
|
8449
|
+
* Static version of the {@see toObject} method.
|
8450
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8451
|
+
* the JSPB instance for transitional soy proto support:
|
8452
|
+
* http://goto/soy-param-migration
|
8453
|
+
* @param {!proto.user.RiskStatus} msg The msg instance to transform.
|
8454
|
+
* @return {!Object}
|
8455
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8456
|
+
*/
|
8457
|
+
proto.user.RiskStatus.toObject = function(includeInstance, msg) {
|
8458
|
+
var f, obj = {
|
8459
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
8460
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
8461
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, "")
|
8462
|
+
};
|
8463
|
+
|
8464
|
+
if (includeInstance) {
|
8465
|
+
obj.$jspbMessageInstance = msg;
|
8466
|
+
}
|
8467
|
+
return obj;
|
8468
|
+
};
|
8469
|
+
}
|
8470
|
+
|
8471
|
+
|
8472
|
+
/**
|
8473
|
+
* Deserializes binary data (in protobuf wire format).
|
8474
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8475
|
+
* @return {!proto.user.RiskStatus}
|
8476
|
+
*/
|
8477
|
+
proto.user.RiskStatus.deserializeBinary = function(bytes) {
|
8478
|
+
var reader = new jspb.BinaryReader(bytes);
|
8479
|
+
var msg = new proto.user.RiskStatus;
|
8480
|
+
return proto.user.RiskStatus.deserializeBinaryFromReader(msg, reader);
|
8481
|
+
};
|
8482
|
+
|
8483
|
+
|
8484
|
+
/**
|
8485
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8486
|
+
* given reader into the given message object.
|
8487
|
+
* @param {!proto.user.RiskStatus} msg The message object to deserialize into.
|
8488
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8489
|
+
* @return {!proto.user.RiskStatus}
|
8490
|
+
*/
|
8491
|
+
proto.user.RiskStatus.deserializeBinaryFromReader = function(msg, reader) {
|
8492
|
+
while (reader.nextField()) {
|
8493
|
+
if (reader.isEndGroup()) {
|
8494
|
+
break;
|
8495
|
+
}
|
8496
|
+
var field = reader.getFieldNumber();
|
8497
|
+
switch (field) {
|
8498
|
+
case 1:
|
8499
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8500
|
+
msg.setId(value);
|
8501
|
+
break;
|
8502
|
+
case 2:
|
8503
|
+
var value = /** @type {string} */ (reader.readString());
|
8504
|
+
msg.setTitle(value);
|
8505
|
+
break;
|
8506
|
+
case 3:
|
8507
|
+
var value = /** @type {string} */ (reader.readString());
|
8508
|
+
msg.setDescription(value);
|
8509
|
+
break;
|
8510
|
+
default:
|
8511
|
+
reader.skipField();
|
8512
|
+
break;
|
8513
|
+
}
|
8514
|
+
}
|
8515
|
+
return msg;
|
8516
|
+
};
|
8517
|
+
|
8518
|
+
|
8519
|
+
/**
|
8520
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8521
|
+
* @return {!Uint8Array}
|
8522
|
+
*/
|
8523
|
+
proto.user.RiskStatus.prototype.serializeBinary = function() {
|
8524
|
+
var writer = new jspb.BinaryWriter();
|
8525
|
+
proto.user.RiskStatus.serializeBinaryToWriter(this, writer);
|
8526
|
+
return writer.getResultBuffer();
|
8527
|
+
};
|
8528
|
+
|
8529
|
+
|
8530
|
+
/**
|
8531
|
+
* Serializes the given message to binary data (in protobuf wire
|
8532
|
+
* format), writing to the given BinaryWriter.
|
8533
|
+
* @param {!proto.user.RiskStatus} message
|
8534
|
+
* @param {!jspb.BinaryWriter} writer
|
8535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8536
|
+
*/
|
8537
|
+
proto.user.RiskStatus.serializeBinaryToWriter = function(message, writer) {
|
8538
|
+
var f = undefined;
|
8539
|
+
f = message.getId();
|
8540
|
+
if (f !== 0) {
|
8541
|
+
writer.writeInt32(
|
8542
|
+
1,
|
8543
|
+
f
|
8544
|
+
);
|
8545
|
+
}
|
8546
|
+
f = message.getTitle();
|
8547
|
+
if (f.length > 0) {
|
8548
|
+
writer.writeString(
|
8549
|
+
2,
|
8550
|
+
f
|
8551
|
+
);
|
8552
|
+
}
|
8553
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
8554
|
+
if (f != null) {
|
8555
|
+
writer.writeString(
|
8556
|
+
3,
|
8557
|
+
f
|
8558
|
+
);
|
8559
|
+
}
|
8560
|
+
};
|
8561
|
+
|
8562
|
+
|
8563
|
+
/**
|
8564
|
+
* optional int32 id = 1;
|
8565
|
+
* @return {number}
|
8566
|
+
*/
|
8567
|
+
proto.user.RiskStatus.prototype.getId = function() {
|
8568
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
8569
|
+
};
|
8570
|
+
|
8571
|
+
|
8572
|
+
/**
|
8573
|
+
* @param {number} value
|
8574
|
+
* @return {!proto.user.RiskStatus} returns this
|
8575
|
+
*/
|
8576
|
+
proto.user.RiskStatus.prototype.setId = function(value) {
|
8577
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
8578
|
+
};
|
8579
|
+
|
8580
|
+
|
8581
|
+
/**
|
8582
|
+
* optional string title = 2;
|
8583
|
+
* @return {string}
|
8584
|
+
*/
|
8585
|
+
proto.user.RiskStatus.prototype.getTitle = function() {
|
8586
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
8587
|
+
};
|
8588
|
+
|
8589
|
+
|
8590
|
+
/**
|
8591
|
+
* @param {string} value
|
8592
|
+
* @return {!proto.user.RiskStatus} returns this
|
8593
|
+
*/
|
8594
|
+
proto.user.RiskStatus.prototype.setTitle = function(value) {
|
8595
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
8596
|
+
};
|
8597
|
+
|
8598
|
+
|
8599
|
+
/**
|
8600
|
+
* optional string description = 3;
|
8601
|
+
* @return {string}
|
8602
|
+
*/
|
8603
|
+
proto.user.RiskStatus.prototype.getDescription = function() {
|
8604
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
8605
|
+
};
|
8606
|
+
|
8607
|
+
|
8608
|
+
/**
|
8609
|
+
* @param {string} value
|
8610
|
+
* @return {!proto.user.RiskStatus} returns this
|
8611
|
+
*/
|
8612
|
+
proto.user.RiskStatus.prototype.setDescription = function(value) {
|
8613
|
+
return jspb.Message.setField(this, 3, value);
|
8614
|
+
};
|
8615
|
+
|
8616
|
+
|
8617
|
+
/**
|
8618
|
+
* Clears the field making it undefined.
|
8619
|
+
* @return {!proto.user.RiskStatus} returns this
|
8620
|
+
*/
|
8621
|
+
proto.user.RiskStatus.prototype.clearDescription = function() {
|
8622
|
+
return jspb.Message.setField(this, 3, undefined);
|
8623
|
+
};
|
8624
|
+
|
8625
|
+
|
8626
|
+
/**
|
8627
|
+
* Returns whether this field is set.
|
8628
|
+
* @return {boolean}
|
8629
|
+
*/
|
8630
|
+
proto.user.RiskStatus.prototype.hasDescription = function() {
|
8631
|
+
return jspb.Message.getField(this, 3) != null;
|
8632
|
+
};
|
8633
|
+
|
8634
|
+
|
8635
|
+
|
8636
|
+
/**
|
8637
|
+
* List of repeated fields within this message type.
|
8638
|
+
* @private {!Array<number>}
|
8639
|
+
* @const
|
8640
|
+
*/
|
8641
|
+
proto.user.RiskStatusItemsResponse.repeatedFields_ = [1];
|
8642
|
+
|
8643
|
+
|
8644
|
+
|
8645
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8646
|
+
/**
|
8647
|
+
* Creates an object representation of this proto.
|
8648
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8649
|
+
* Optional fields that are not set will be set to undefined.
|
8650
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8651
|
+
* For the list of reserved names please see:
|
8652
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8653
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8654
|
+
* JSPB instance for transitional soy proto support:
|
8655
|
+
* http://goto/soy-param-migration
|
8656
|
+
* @return {!Object}
|
8657
|
+
*/
|
8658
|
+
proto.user.RiskStatusItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
8659
|
+
return proto.user.RiskStatusItemsResponse.toObject(opt_includeInstance, this);
|
8660
|
+
};
|
8661
|
+
|
8662
|
+
|
8663
|
+
/**
|
8664
|
+
* Static version of the {@see toObject} method.
|
8665
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8666
|
+
* the JSPB instance for transitional soy proto support:
|
8667
|
+
* http://goto/soy-param-migration
|
8668
|
+
* @param {!proto.user.RiskStatusItemsResponse} msg The msg instance to transform.
|
8669
|
+
* @return {!Object}
|
8670
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8671
|
+
*/
|
8672
|
+
proto.user.RiskStatusItemsResponse.toObject = function(includeInstance, msg) {
|
8673
|
+
var f, obj = {
|
8674
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
8675
|
+
proto.user.RiskStatus.toObject, includeInstance),
|
8676
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
8677
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
8678
|
+
};
|
8679
|
+
|
8680
|
+
if (includeInstance) {
|
8681
|
+
obj.$jspbMessageInstance = msg;
|
8682
|
+
}
|
8683
|
+
return obj;
|
8684
|
+
};
|
8685
|
+
}
|
8686
|
+
|
8687
|
+
|
8688
|
+
/**
|
8689
|
+
* Deserializes binary data (in protobuf wire format).
|
8690
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8691
|
+
* @return {!proto.user.RiskStatusItemsResponse}
|
8692
|
+
*/
|
8693
|
+
proto.user.RiskStatusItemsResponse.deserializeBinary = function(bytes) {
|
8694
|
+
var reader = new jspb.BinaryReader(bytes);
|
8695
|
+
var msg = new proto.user.RiskStatusItemsResponse;
|
8696
|
+
return proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader(msg, reader);
|
8697
|
+
};
|
8698
|
+
|
8699
|
+
|
8700
|
+
/**
|
8701
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8702
|
+
* given reader into the given message object.
|
8703
|
+
* @param {!proto.user.RiskStatusItemsResponse} msg The message object to deserialize into.
|
8704
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8705
|
+
* @return {!proto.user.RiskStatusItemsResponse}
|
8706
|
+
*/
|
8707
|
+
proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
8708
|
+
while (reader.nextField()) {
|
8709
|
+
if (reader.isEndGroup()) {
|
8710
|
+
break;
|
8711
|
+
}
|
8712
|
+
var field = reader.getFieldNumber();
|
8713
|
+
switch (field) {
|
8714
|
+
case 1:
|
8715
|
+
var value = new proto.user.RiskStatus;
|
8716
|
+
reader.readMessage(value,proto.user.RiskStatus.deserializeBinaryFromReader);
|
8717
|
+
msg.addItems(value);
|
8718
|
+
break;
|
8719
|
+
case 2:
|
8720
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8721
|
+
msg.setTotalPages(value);
|
8722
|
+
break;
|
8723
|
+
case 3:
|
8724
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8725
|
+
msg.setTotalItems(value);
|
8726
|
+
break;
|
8727
|
+
default:
|
8728
|
+
reader.skipField();
|
8729
|
+
break;
|
8730
|
+
}
|
8731
|
+
}
|
8732
|
+
return msg;
|
8733
|
+
};
|
8734
|
+
|
8735
|
+
|
8736
|
+
/**
|
8737
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8738
|
+
* @return {!Uint8Array}
|
8739
|
+
*/
|
8740
|
+
proto.user.RiskStatusItemsResponse.prototype.serializeBinary = function() {
|
8741
|
+
var writer = new jspb.BinaryWriter();
|
8742
|
+
proto.user.RiskStatusItemsResponse.serializeBinaryToWriter(this, writer);
|
8743
|
+
return writer.getResultBuffer();
|
8744
|
+
};
|
8745
|
+
|
8746
|
+
|
8747
|
+
/**
|
8748
|
+
* Serializes the given message to binary data (in protobuf wire
|
8749
|
+
* format), writing to the given BinaryWriter.
|
8750
|
+
* @param {!proto.user.RiskStatusItemsResponse} message
|
8751
|
+
* @param {!jspb.BinaryWriter} writer
|
8752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8753
|
+
*/
|
8754
|
+
proto.user.RiskStatusItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
8755
|
+
var f = undefined;
|
8756
|
+
f = message.getItemsList();
|
8757
|
+
if (f.length > 0) {
|
8758
|
+
writer.writeRepeatedMessage(
|
8759
|
+
1,
|
8760
|
+
f,
|
8761
|
+
proto.user.RiskStatus.serializeBinaryToWriter
|
8762
|
+
);
|
8763
|
+
}
|
8764
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
8765
|
+
if (f != null) {
|
8766
|
+
writer.writeInt32(
|
8767
|
+
2,
|
8768
|
+
f
|
8769
|
+
);
|
8770
|
+
}
|
8771
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
8772
|
+
if (f != null) {
|
8773
|
+
writer.writeInt32(
|
8774
|
+
3,
|
8775
|
+
f
|
8776
|
+
);
|
8777
|
+
}
|
8778
|
+
};
|
8779
|
+
|
8780
|
+
|
8781
|
+
/**
|
8782
|
+
* repeated RiskStatus items = 1;
|
8783
|
+
* @return {!Array<!proto.user.RiskStatus>}
|
8784
|
+
*/
|
8785
|
+
proto.user.RiskStatusItemsResponse.prototype.getItemsList = function() {
|
8786
|
+
return /** @type{!Array<!proto.user.RiskStatus>} */ (
|
8787
|
+
jspb.Message.getRepeatedWrapperField(this, proto.user.RiskStatus, 1));
|
8788
|
+
};
|
8789
|
+
|
8790
|
+
|
8791
|
+
/**
|
8792
|
+
* @param {!Array<!proto.user.RiskStatus>} value
|
8793
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8794
|
+
*/
|
8795
|
+
proto.user.RiskStatusItemsResponse.prototype.setItemsList = function(value) {
|
8796
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
8797
|
+
};
|
8798
|
+
|
8799
|
+
|
8800
|
+
/**
|
8801
|
+
* @param {!proto.user.RiskStatus=} opt_value
|
8802
|
+
* @param {number=} opt_index
|
8803
|
+
* @return {!proto.user.RiskStatus}
|
8804
|
+
*/
|
8805
|
+
proto.user.RiskStatusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
8806
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.RiskStatus, opt_index);
|
8807
|
+
};
|
8808
|
+
|
8809
|
+
|
8810
|
+
/**
|
8811
|
+
* Clears the list making it empty but non-null.
|
8812
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8813
|
+
*/
|
8814
|
+
proto.user.RiskStatusItemsResponse.prototype.clearItemsList = function() {
|
8815
|
+
return this.setItemsList([]);
|
8816
|
+
};
|
8817
|
+
|
8818
|
+
|
8819
|
+
/**
|
8820
|
+
* optional int32 total_pages = 2;
|
8821
|
+
* @return {number}
|
8822
|
+
*/
|
8823
|
+
proto.user.RiskStatusItemsResponse.prototype.getTotalPages = function() {
|
8824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
8825
|
+
};
|
8826
|
+
|
8827
|
+
|
8828
|
+
/**
|
8829
|
+
* @param {number} value
|
8830
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8831
|
+
*/
|
8832
|
+
proto.user.RiskStatusItemsResponse.prototype.setTotalPages = function(value) {
|
8833
|
+
return jspb.Message.setField(this, 2, value);
|
8834
|
+
};
|
8835
|
+
|
8836
|
+
|
8837
|
+
/**
|
8838
|
+
* Clears the field making it undefined.
|
8839
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8840
|
+
*/
|
8841
|
+
proto.user.RiskStatusItemsResponse.prototype.clearTotalPages = function() {
|
8842
|
+
return jspb.Message.setField(this, 2, undefined);
|
8843
|
+
};
|
8844
|
+
|
8845
|
+
|
8846
|
+
/**
|
8847
|
+
* Returns whether this field is set.
|
8848
|
+
* @return {boolean}
|
8849
|
+
*/
|
8850
|
+
proto.user.RiskStatusItemsResponse.prototype.hasTotalPages = function() {
|
8851
|
+
return jspb.Message.getField(this, 2) != null;
|
8852
|
+
};
|
8853
|
+
|
8854
|
+
|
8855
|
+
/**
|
8856
|
+
* optional int32 total_items = 3;
|
8857
|
+
* @return {number}
|
8858
|
+
*/
|
8859
|
+
proto.user.RiskStatusItemsResponse.prototype.getTotalItems = function() {
|
8860
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
8861
|
+
};
|
8862
|
+
|
8863
|
+
|
8864
|
+
/**
|
8865
|
+
* @param {number} value
|
8866
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8867
|
+
*/
|
8868
|
+
proto.user.RiskStatusItemsResponse.prototype.setTotalItems = function(value) {
|
8869
|
+
return jspb.Message.setField(this, 3, value);
|
8870
|
+
};
|
8871
|
+
|
8872
|
+
|
8873
|
+
/**
|
8874
|
+
* Clears the field making it undefined.
|
8875
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8876
|
+
*/
|
8877
|
+
proto.user.RiskStatusItemsResponse.prototype.clearTotalItems = function() {
|
8878
|
+
return jspb.Message.setField(this, 3, undefined);
|
8879
|
+
};
|
8880
|
+
|
8881
|
+
|
8882
|
+
/**
|
8883
|
+
* Returns whether this field is set.
|
8884
|
+
* @return {boolean}
|
8885
|
+
*/
|
8886
|
+
proto.user.RiskStatusItemsResponse.prototype.hasTotalItems = function() {
|
8887
|
+
return jspb.Message.getField(this, 3) != null;
|
8888
|
+
};
|
8889
|
+
|
8890
|
+
|
8239
8891
|
goog.object.extend(exports, proto.user);
|