protobuf-platform 1.2.326 → 1.2.327
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 +21 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +978 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -70,6 +70,7 @@ service User {
|
|
|
70
70
|
//User KYC profile
|
|
71
71
|
rpc readUserKycProfile(ReadUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
72
72
|
rpc updateUserKycProfile(UpdateUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
73
|
+
rpc readListRiskPlayers(ReadListRiskPlayersRequest) returns (RiskPlayersResponse);
|
|
73
74
|
//User KYC documents
|
|
74
75
|
rpc readUserKycDocuments(ReadUserKycDocumentsRequest) returns (UserKycDocumentsResponse);
|
|
75
76
|
rpc createUserKycDocumentMetadata(CreateUserKycDocumentMetadataRequest) returns (UserKycDocumentItem);
|
|
@@ -841,6 +842,26 @@ message UserKycProfileResponse {
|
|
|
841
842
|
optional string created_at = 6;
|
|
842
843
|
optional string updated_at = 7;
|
|
843
844
|
}
|
|
845
|
+
message ReadListRiskPlayersRequest {
|
|
846
|
+
int32 limit = 1;
|
|
847
|
+
int32 offset = 2;
|
|
848
|
+
optional string order = 3;
|
|
849
|
+
optional string email = 4;
|
|
850
|
+
optional int32 user_id = 5;
|
|
851
|
+
optional string risk_level = 6;
|
|
852
|
+
optional string kyc_status = 7;
|
|
853
|
+
}
|
|
854
|
+
message RiskPlayerItem {
|
|
855
|
+
int32 user_id = 1;
|
|
856
|
+
string email = 2;
|
|
857
|
+
optional string risk_level = 3;
|
|
858
|
+
optional string kyc_status = 4;
|
|
859
|
+
}
|
|
860
|
+
message RiskPlayersResponse {
|
|
861
|
+
repeated RiskPlayerItem items = 1;
|
|
862
|
+
optional int32 total_pages = 2;
|
|
863
|
+
optional int32 total_items = 3;
|
|
864
|
+
}
|
|
844
865
|
message ReadUserKycDocumentsRequest {
|
|
845
866
|
int32 user_id = 1;
|
|
846
867
|
optional string document_type = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -389,6 +389,17 @@ function deserialize_user_PongResponse(buffer_arg) {
|
|
|
389
389
|
return user_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
+
function serialize_user_ReadListRiskPlayersRequest(arg) {
|
|
393
|
+
if (!(arg instanceof user_pb.ReadListRiskPlayersRequest)) {
|
|
394
|
+
throw new Error('Expected argument of type user.ReadListRiskPlayersRequest');
|
|
395
|
+
}
|
|
396
|
+
return Buffer.from(arg.serializeBinary());
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function deserialize_user_ReadListRiskPlayersRequest(buffer_arg) {
|
|
400
|
+
return user_pb.ReadListRiskPlayersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
401
|
+
}
|
|
402
|
+
|
|
392
403
|
function serialize_user_ReadListUserKycDocumentsRequest(arg) {
|
|
393
404
|
if (!(arg instanceof user_pb.ReadListUserKycDocumentsRequest)) {
|
|
394
405
|
throw new Error('Expected argument of type user.ReadListUserKycDocumentsRequest');
|
|
@@ -565,6 +576,17 @@ function deserialize_user_RiskPermissionMatrixLimitsResponse(buffer_arg) {
|
|
|
565
576
|
return user_pb.RiskPermissionMatrixLimitsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
566
577
|
}
|
|
567
578
|
|
|
579
|
+
function serialize_user_RiskPlayersResponse(arg) {
|
|
580
|
+
if (!(arg instanceof user_pb.RiskPlayersResponse)) {
|
|
581
|
+
throw new Error('Expected argument of type user.RiskPlayersResponse');
|
|
582
|
+
}
|
|
583
|
+
return Buffer.from(arg.serializeBinary());
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function deserialize_user_RiskPlayersResponse(buffer_arg) {
|
|
587
|
+
return user_pb.RiskPlayersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
588
|
+
}
|
|
589
|
+
|
|
568
590
|
function serialize_user_RiskStatusItemsResponse(arg) {
|
|
569
591
|
if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
|
|
570
592
|
throw new Error('Expected argument of type user.RiskStatusItemsResponse');
|
|
@@ -1800,6 +1822,17 @@ readUserKycProfile: {
|
|
|
1800
1822
|
responseSerialize: serialize_user_UserKycProfileResponse,
|
|
1801
1823
|
responseDeserialize: deserialize_user_UserKycProfileResponse,
|
|
1802
1824
|
},
|
|
1825
|
+
readListRiskPlayers: {
|
|
1826
|
+
path: '/user.User/readListRiskPlayers',
|
|
1827
|
+
requestStream: false,
|
|
1828
|
+
responseStream: false,
|
|
1829
|
+
requestType: user_pb.ReadListRiskPlayersRequest,
|
|
1830
|
+
responseType: user_pb.RiskPlayersResponse,
|
|
1831
|
+
requestSerialize: serialize_user_ReadListRiskPlayersRequest,
|
|
1832
|
+
requestDeserialize: deserialize_user_ReadListRiskPlayersRequest,
|
|
1833
|
+
responseSerialize: serialize_user_RiskPlayersResponse,
|
|
1834
|
+
responseDeserialize: deserialize_user_RiskPlayersResponse,
|
|
1835
|
+
},
|
|
1803
1836
|
// User KYC documents
|
|
1804
1837
|
readUserKycDocuments: {
|
|
1805
1838
|
path: '/user.User/readUserKycDocuments',
|
package/user/user_pb.js
CHANGED
|
@@ -61,6 +61,7 @@ goog.exportSymbol('proto.user.NoteStatusResponse', null, global);
|
|
|
61
61
|
goog.exportSymbol('proto.user.PaginationRequest', null, global);
|
|
62
62
|
goog.exportSymbol('proto.user.PingRequest', null, global);
|
|
63
63
|
goog.exportSymbol('proto.user.PongResponse', null, global);
|
|
64
|
+
goog.exportSymbol('proto.user.ReadListRiskPlayersRequest', null, global);
|
|
64
65
|
goog.exportSymbol('proto.user.ReadListUserKycDocumentsRequest', null, global);
|
|
65
66
|
goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, global);
|
|
66
67
|
goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
|
|
@@ -77,6 +78,8 @@ goog.exportSymbol('proto.user.RiskPermissionMatricesResponse', null, global);
|
|
|
77
78
|
goog.exportSymbol('proto.user.RiskPermissionMatrixItem', null, global);
|
|
78
79
|
goog.exportSymbol('proto.user.RiskPermissionMatrixLimitItem', null, global);
|
|
79
80
|
goog.exportSymbol('proto.user.RiskPermissionMatrixLimitsResponse', null, global);
|
|
81
|
+
goog.exportSymbol('proto.user.RiskPlayerItem', null, global);
|
|
82
|
+
goog.exportSymbol('proto.user.RiskPlayersResponse', null, global);
|
|
80
83
|
goog.exportSymbol('proto.user.RiskStatus', null, global);
|
|
81
84
|
goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
|
|
82
85
|
goog.exportSymbol('proto.user.Role', null, global);
|
|
@@ -2108,6 +2111,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2108
2111
|
*/
|
|
2109
2112
|
proto.user.UserKycProfileResponse.displayName = 'proto.user.UserKycProfileResponse';
|
|
2110
2113
|
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Generated by JsPbCodeGenerator.
|
|
2116
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2117
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2118
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2119
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2120
|
+
* valid.
|
|
2121
|
+
* @extends {jspb.Message}
|
|
2122
|
+
* @constructor
|
|
2123
|
+
*/
|
|
2124
|
+
proto.user.ReadListRiskPlayersRequest = function(opt_data) {
|
|
2125
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2126
|
+
};
|
|
2127
|
+
goog.inherits(proto.user.ReadListRiskPlayersRequest, jspb.Message);
|
|
2128
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2129
|
+
/**
|
|
2130
|
+
* @public
|
|
2131
|
+
* @override
|
|
2132
|
+
*/
|
|
2133
|
+
proto.user.ReadListRiskPlayersRequest.displayName = 'proto.user.ReadListRiskPlayersRequest';
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Generated by JsPbCodeGenerator.
|
|
2137
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2138
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2139
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2140
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2141
|
+
* valid.
|
|
2142
|
+
* @extends {jspb.Message}
|
|
2143
|
+
* @constructor
|
|
2144
|
+
*/
|
|
2145
|
+
proto.user.RiskPlayerItem = function(opt_data) {
|
|
2146
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2147
|
+
};
|
|
2148
|
+
goog.inherits(proto.user.RiskPlayerItem, jspb.Message);
|
|
2149
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2150
|
+
/**
|
|
2151
|
+
* @public
|
|
2152
|
+
* @override
|
|
2153
|
+
*/
|
|
2154
|
+
proto.user.RiskPlayerItem.displayName = 'proto.user.RiskPlayerItem';
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Generated by JsPbCodeGenerator.
|
|
2158
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2159
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2160
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2161
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2162
|
+
* valid.
|
|
2163
|
+
* @extends {jspb.Message}
|
|
2164
|
+
* @constructor
|
|
2165
|
+
*/
|
|
2166
|
+
proto.user.RiskPlayersResponse = function(opt_data) {
|
|
2167
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskPlayersResponse.repeatedFields_, null);
|
|
2168
|
+
};
|
|
2169
|
+
goog.inherits(proto.user.RiskPlayersResponse, jspb.Message);
|
|
2170
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2171
|
+
/**
|
|
2172
|
+
* @public
|
|
2173
|
+
* @override
|
|
2174
|
+
*/
|
|
2175
|
+
proto.user.RiskPlayersResponse.displayName = 'proto.user.RiskPlayersResponse';
|
|
2176
|
+
}
|
|
2111
2177
|
/**
|
|
2112
2178
|
* Generated by JsPbCodeGenerator.
|
|
2113
2179
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -36210,6 +36276,918 @@ proto.user.UserKycProfileResponse.prototype.hasUpdatedAt = function() {
|
|
|
36210
36276
|
|
|
36211
36277
|
|
|
36212
36278
|
|
|
36279
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
36280
|
+
/**
|
|
36281
|
+
* Creates an object representation of this proto.
|
|
36282
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
36283
|
+
* Optional fields that are not set will be set to undefined.
|
|
36284
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
36285
|
+
* For the list of reserved names please see:
|
|
36286
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
36287
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
36288
|
+
* JSPB instance for transitional soy proto support:
|
|
36289
|
+
* http://goto/soy-param-migration
|
|
36290
|
+
* @return {!Object}
|
|
36291
|
+
*/
|
|
36292
|
+
proto.user.ReadListRiskPlayersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
36293
|
+
return proto.user.ReadListRiskPlayersRequest.toObject(opt_includeInstance, this);
|
|
36294
|
+
};
|
|
36295
|
+
|
|
36296
|
+
|
|
36297
|
+
/**
|
|
36298
|
+
* Static version of the {@see toObject} method.
|
|
36299
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
36300
|
+
* the JSPB instance for transitional soy proto support:
|
|
36301
|
+
* http://goto/soy-param-migration
|
|
36302
|
+
* @param {!proto.user.ReadListRiskPlayersRequest} msg The msg instance to transform.
|
|
36303
|
+
* @return {!Object}
|
|
36304
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36305
|
+
*/
|
|
36306
|
+
proto.user.ReadListRiskPlayersRequest.toObject = function(includeInstance, msg) {
|
|
36307
|
+
var f, obj = {
|
|
36308
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
36309
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
36310
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
36311
|
+
email: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
36312
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
36313
|
+
riskLevel: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
36314
|
+
kycStatus: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
36315
|
+
};
|
|
36316
|
+
|
|
36317
|
+
if (includeInstance) {
|
|
36318
|
+
obj.$jspbMessageInstance = msg;
|
|
36319
|
+
}
|
|
36320
|
+
return obj;
|
|
36321
|
+
};
|
|
36322
|
+
}
|
|
36323
|
+
|
|
36324
|
+
|
|
36325
|
+
/**
|
|
36326
|
+
* Deserializes binary data (in protobuf wire format).
|
|
36327
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
36328
|
+
* @return {!proto.user.ReadListRiskPlayersRequest}
|
|
36329
|
+
*/
|
|
36330
|
+
proto.user.ReadListRiskPlayersRequest.deserializeBinary = function(bytes) {
|
|
36331
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
36332
|
+
var msg = new proto.user.ReadListRiskPlayersRequest;
|
|
36333
|
+
return proto.user.ReadListRiskPlayersRequest.deserializeBinaryFromReader(msg, reader);
|
|
36334
|
+
};
|
|
36335
|
+
|
|
36336
|
+
|
|
36337
|
+
/**
|
|
36338
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
36339
|
+
* given reader into the given message object.
|
|
36340
|
+
* @param {!proto.user.ReadListRiskPlayersRequest} msg The message object to deserialize into.
|
|
36341
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
36342
|
+
* @return {!proto.user.ReadListRiskPlayersRequest}
|
|
36343
|
+
*/
|
|
36344
|
+
proto.user.ReadListRiskPlayersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
36345
|
+
while (reader.nextField()) {
|
|
36346
|
+
if (reader.isEndGroup()) {
|
|
36347
|
+
break;
|
|
36348
|
+
}
|
|
36349
|
+
var field = reader.getFieldNumber();
|
|
36350
|
+
switch (field) {
|
|
36351
|
+
case 1:
|
|
36352
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36353
|
+
msg.setLimit(value);
|
|
36354
|
+
break;
|
|
36355
|
+
case 2:
|
|
36356
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36357
|
+
msg.setOffset(value);
|
|
36358
|
+
break;
|
|
36359
|
+
case 3:
|
|
36360
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36361
|
+
msg.setOrder(value);
|
|
36362
|
+
break;
|
|
36363
|
+
case 4:
|
|
36364
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36365
|
+
msg.setEmail(value);
|
|
36366
|
+
break;
|
|
36367
|
+
case 5:
|
|
36368
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36369
|
+
msg.setUserId(value);
|
|
36370
|
+
break;
|
|
36371
|
+
case 6:
|
|
36372
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36373
|
+
msg.setRiskLevel(value);
|
|
36374
|
+
break;
|
|
36375
|
+
case 7:
|
|
36376
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36377
|
+
msg.setKycStatus(value);
|
|
36378
|
+
break;
|
|
36379
|
+
default:
|
|
36380
|
+
reader.skipField();
|
|
36381
|
+
break;
|
|
36382
|
+
}
|
|
36383
|
+
}
|
|
36384
|
+
return msg;
|
|
36385
|
+
};
|
|
36386
|
+
|
|
36387
|
+
|
|
36388
|
+
/**
|
|
36389
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
36390
|
+
* @return {!Uint8Array}
|
|
36391
|
+
*/
|
|
36392
|
+
proto.user.ReadListRiskPlayersRequest.prototype.serializeBinary = function() {
|
|
36393
|
+
var writer = new jspb.BinaryWriter();
|
|
36394
|
+
proto.user.ReadListRiskPlayersRequest.serializeBinaryToWriter(this, writer);
|
|
36395
|
+
return writer.getResultBuffer();
|
|
36396
|
+
};
|
|
36397
|
+
|
|
36398
|
+
|
|
36399
|
+
/**
|
|
36400
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
36401
|
+
* format), writing to the given BinaryWriter.
|
|
36402
|
+
* @param {!proto.user.ReadListRiskPlayersRequest} message
|
|
36403
|
+
* @param {!jspb.BinaryWriter} writer
|
|
36404
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36405
|
+
*/
|
|
36406
|
+
proto.user.ReadListRiskPlayersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
36407
|
+
var f = undefined;
|
|
36408
|
+
f = message.getLimit();
|
|
36409
|
+
if (f !== 0) {
|
|
36410
|
+
writer.writeInt32(
|
|
36411
|
+
1,
|
|
36412
|
+
f
|
|
36413
|
+
);
|
|
36414
|
+
}
|
|
36415
|
+
f = message.getOffset();
|
|
36416
|
+
if (f !== 0) {
|
|
36417
|
+
writer.writeInt32(
|
|
36418
|
+
2,
|
|
36419
|
+
f
|
|
36420
|
+
);
|
|
36421
|
+
}
|
|
36422
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
36423
|
+
if (f != null) {
|
|
36424
|
+
writer.writeString(
|
|
36425
|
+
3,
|
|
36426
|
+
f
|
|
36427
|
+
);
|
|
36428
|
+
}
|
|
36429
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
36430
|
+
if (f != null) {
|
|
36431
|
+
writer.writeString(
|
|
36432
|
+
4,
|
|
36433
|
+
f
|
|
36434
|
+
);
|
|
36435
|
+
}
|
|
36436
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
36437
|
+
if (f != null) {
|
|
36438
|
+
writer.writeInt32(
|
|
36439
|
+
5,
|
|
36440
|
+
f
|
|
36441
|
+
);
|
|
36442
|
+
}
|
|
36443
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
36444
|
+
if (f != null) {
|
|
36445
|
+
writer.writeString(
|
|
36446
|
+
6,
|
|
36447
|
+
f
|
|
36448
|
+
);
|
|
36449
|
+
}
|
|
36450
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
36451
|
+
if (f != null) {
|
|
36452
|
+
writer.writeString(
|
|
36453
|
+
7,
|
|
36454
|
+
f
|
|
36455
|
+
);
|
|
36456
|
+
}
|
|
36457
|
+
};
|
|
36458
|
+
|
|
36459
|
+
|
|
36460
|
+
/**
|
|
36461
|
+
* optional int32 limit = 1;
|
|
36462
|
+
* @return {number}
|
|
36463
|
+
*/
|
|
36464
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getLimit = function() {
|
|
36465
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
36466
|
+
};
|
|
36467
|
+
|
|
36468
|
+
|
|
36469
|
+
/**
|
|
36470
|
+
* @param {number} value
|
|
36471
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36472
|
+
*/
|
|
36473
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setLimit = function(value) {
|
|
36474
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
36475
|
+
};
|
|
36476
|
+
|
|
36477
|
+
|
|
36478
|
+
/**
|
|
36479
|
+
* optional int32 offset = 2;
|
|
36480
|
+
* @return {number}
|
|
36481
|
+
*/
|
|
36482
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getOffset = function() {
|
|
36483
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
36484
|
+
};
|
|
36485
|
+
|
|
36486
|
+
|
|
36487
|
+
/**
|
|
36488
|
+
* @param {number} value
|
|
36489
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36490
|
+
*/
|
|
36491
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setOffset = function(value) {
|
|
36492
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
36493
|
+
};
|
|
36494
|
+
|
|
36495
|
+
|
|
36496
|
+
/**
|
|
36497
|
+
* optional string order = 3;
|
|
36498
|
+
* @return {string}
|
|
36499
|
+
*/
|
|
36500
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getOrder = function() {
|
|
36501
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
36502
|
+
};
|
|
36503
|
+
|
|
36504
|
+
|
|
36505
|
+
/**
|
|
36506
|
+
* @param {string} value
|
|
36507
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36508
|
+
*/
|
|
36509
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setOrder = function(value) {
|
|
36510
|
+
return jspb.Message.setField(this, 3, value);
|
|
36511
|
+
};
|
|
36512
|
+
|
|
36513
|
+
|
|
36514
|
+
/**
|
|
36515
|
+
* Clears the field making it undefined.
|
|
36516
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36517
|
+
*/
|
|
36518
|
+
proto.user.ReadListRiskPlayersRequest.prototype.clearOrder = function() {
|
|
36519
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
36520
|
+
};
|
|
36521
|
+
|
|
36522
|
+
|
|
36523
|
+
/**
|
|
36524
|
+
* Returns whether this field is set.
|
|
36525
|
+
* @return {boolean}
|
|
36526
|
+
*/
|
|
36527
|
+
proto.user.ReadListRiskPlayersRequest.prototype.hasOrder = function() {
|
|
36528
|
+
return jspb.Message.getField(this, 3) != null;
|
|
36529
|
+
};
|
|
36530
|
+
|
|
36531
|
+
|
|
36532
|
+
/**
|
|
36533
|
+
* optional string email = 4;
|
|
36534
|
+
* @return {string}
|
|
36535
|
+
*/
|
|
36536
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getEmail = function() {
|
|
36537
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
36538
|
+
};
|
|
36539
|
+
|
|
36540
|
+
|
|
36541
|
+
/**
|
|
36542
|
+
* @param {string} value
|
|
36543
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36544
|
+
*/
|
|
36545
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setEmail = function(value) {
|
|
36546
|
+
return jspb.Message.setField(this, 4, value);
|
|
36547
|
+
};
|
|
36548
|
+
|
|
36549
|
+
|
|
36550
|
+
/**
|
|
36551
|
+
* Clears the field making it undefined.
|
|
36552
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36553
|
+
*/
|
|
36554
|
+
proto.user.ReadListRiskPlayersRequest.prototype.clearEmail = function() {
|
|
36555
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
36556
|
+
};
|
|
36557
|
+
|
|
36558
|
+
|
|
36559
|
+
/**
|
|
36560
|
+
* Returns whether this field is set.
|
|
36561
|
+
* @return {boolean}
|
|
36562
|
+
*/
|
|
36563
|
+
proto.user.ReadListRiskPlayersRequest.prototype.hasEmail = function() {
|
|
36564
|
+
return jspb.Message.getField(this, 4) != null;
|
|
36565
|
+
};
|
|
36566
|
+
|
|
36567
|
+
|
|
36568
|
+
/**
|
|
36569
|
+
* optional int32 user_id = 5;
|
|
36570
|
+
* @return {number}
|
|
36571
|
+
*/
|
|
36572
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getUserId = function() {
|
|
36573
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
36574
|
+
};
|
|
36575
|
+
|
|
36576
|
+
|
|
36577
|
+
/**
|
|
36578
|
+
* @param {number} value
|
|
36579
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36580
|
+
*/
|
|
36581
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setUserId = function(value) {
|
|
36582
|
+
return jspb.Message.setField(this, 5, value);
|
|
36583
|
+
};
|
|
36584
|
+
|
|
36585
|
+
|
|
36586
|
+
/**
|
|
36587
|
+
* Clears the field making it undefined.
|
|
36588
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36589
|
+
*/
|
|
36590
|
+
proto.user.ReadListRiskPlayersRequest.prototype.clearUserId = function() {
|
|
36591
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
36592
|
+
};
|
|
36593
|
+
|
|
36594
|
+
|
|
36595
|
+
/**
|
|
36596
|
+
* Returns whether this field is set.
|
|
36597
|
+
* @return {boolean}
|
|
36598
|
+
*/
|
|
36599
|
+
proto.user.ReadListRiskPlayersRequest.prototype.hasUserId = function() {
|
|
36600
|
+
return jspb.Message.getField(this, 5) != null;
|
|
36601
|
+
};
|
|
36602
|
+
|
|
36603
|
+
|
|
36604
|
+
/**
|
|
36605
|
+
* optional string risk_level = 6;
|
|
36606
|
+
* @return {string}
|
|
36607
|
+
*/
|
|
36608
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getRiskLevel = function() {
|
|
36609
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
36610
|
+
};
|
|
36611
|
+
|
|
36612
|
+
|
|
36613
|
+
/**
|
|
36614
|
+
* @param {string} value
|
|
36615
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36616
|
+
*/
|
|
36617
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setRiskLevel = function(value) {
|
|
36618
|
+
return jspb.Message.setField(this, 6, value);
|
|
36619
|
+
};
|
|
36620
|
+
|
|
36621
|
+
|
|
36622
|
+
/**
|
|
36623
|
+
* Clears the field making it undefined.
|
|
36624
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36625
|
+
*/
|
|
36626
|
+
proto.user.ReadListRiskPlayersRequest.prototype.clearRiskLevel = function() {
|
|
36627
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
36628
|
+
};
|
|
36629
|
+
|
|
36630
|
+
|
|
36631
|
+
/**
|
|
36632
|
+
* Returns whether this field is set.
|
|
36633
|
+
* @return {boolean}
|
|
36634
|
+
*/
|
|
36635
|
+
proto.user.ReadListRiskPlayersRequest.prototype.hasRiskLevel = function() {
|
|
36636
|
+
return jspb.Message.getField(this, 6) != null;
|
|
36637
|
+
};
|
|
36638
|
+
|
|
36639
|
+
|
|
36640
|
+
/**
|
|
36641
|
+
* optional string kyc_status = 7;
|
|
36642
|
+
* @return {string}
|
|
36643
|
+
*/
|
|
36644
|
+
proto.user.ReadListRiskPlayersRequest.prototype.getKycStatus = function() {
|
|
36645
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
36646
|
+
};
|
|
36647
|
+
|
|
36648
|
+
|
|
36649
|
+
/**
|
|
36650
|
+
* @param {string} value
|
|
36651
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36652
|
+
*/
|
|
36653
|
+
proto.user.ReadListRiskPlayersRequest.prototype.setKycStatus = function(value) {
|
|
36654
|
+
return jspb.Message.setField(this, 7, value);
|
|
36655
|
+
};
|
|
36656
|
+
|
|
36657
|
+
|
|
36658
|
+
/**
|
|
36659
|
+
* Clears the field making it undefined.
|
|
36660
|
+
* @return {!proto.user.ReadListRiskPlayersRequest} returns this
|
|
36661
|
+
*/
|
|
36662
|
+
proto.user.ReadListRiskPlayersRequest.prototype.clearKycStatus = function() {
|
|
36663
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
36664
|
+
};
|
|
36665
|
+
|
|
36666
|
+
|
|
36667
|
+
/**
|
|
36668
|
+
* Returns whether this field is set.
|
|
36669
|
+
* @return {boolean}
|
|
36670
|
+
*/
|
|
36671
|
+
proto.user.ReadListRiskPlayersRequest.prototype.hasKycStatus = function() {
|
|
36672
|
+
return jspb.Message.getField(this, 7) != null;
|
|
36673
|
+
};
|
|
36674
|
+
|
|
36675
|
+
|
|
36676
|
+
|
|
36677
|
+
|
|
36678
|
+
|
|
36679
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
36680
|
+
/**
|
|
36681
|
+
* Creates an object representation of this proto.
|
|
36682
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
36683
|
+
* Optional fields that are not set will be set to undefined.
|
|
36684
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
36685
|
+
* For the list of reserved names please see:
|
|
36686
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
36687
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
36688
|
+
* JSPB instance for transitional soy proto support:
|
|
36689
|
+
* http://goto/soy-param-migration
|
|
36690
|
+
* @return {!Object}
|
|
36691
|
+
*/
|
|
36692
|
+
proto.user.RiskPlayerItem.prototype.toObject = function(opt_includeInstance) {
|
|
36693
|
+
return proto.user.RiskPlayerItem.toObject(opt_includeInstance, this);
|
|
36694
|
+
};
|
|
36695
|
+
|
|
36696
|
+
|
|
36697
|
+
/**
|
|
36698
|
+
* Static version of the {@see toObject} method.
|
|
36699
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
36700
|
+
* the JSPB instance for transitional soy proto support:
|
|
36701
|
+
* http://goto/soy-param-migration
|
|
36702
|
+
* @param {!proto.user.RiskPlayerItem} msg The msg instance to transform.
|
|
36703
|
+
* @return {!Object}
|
|
36704
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36705
|
+
*/
|
|
36706
|
+
proto.user.RiskPlayerItem.toObject = function(includeInstance, msg) {
|
|
36707
|
+
var f, obj = {
|
|
36708
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
36709
|
+
email: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
36710
|
+
riskLevel: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
36711
|
+
kycStatus: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
36712
|
+
};
|
|
36713
|
+
|
|
36714
|
+
if (includeInstance) {
|
|
36715
|
+
obj.$jspbMessageInstance = msg;
|
|
36716
|
+
}
|
|
36717
|
+
return obj;
|
|
36718
|
+
};
|
|
36719
|
+
}
|
|
36720
|
+
|
|
36721
|
+
|
|
36722
|
+
/**
|
|
36723
|
+
* Deserializes binary data (in protobuf wire format).
|
|
36724
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
36725
|
+
* @return {!proto.user.RiskPlayerItem}
|
|
36726
|
+
*/
|
|
36727
|
+
proto.user.RiskPlayerItem.deserializeBinary = function(bytes) {
|
|
36728
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
36729
|
+
var msg = new proto.user.RiskPlayerItem;
|
|
36730
|
+
return proto.user.RiskPlayerItem.deserializeBinaryFromReader(msg, reader);
|
|
36731
|
+
};
|
|
36732
|
+
|
|
36733
|
+
|
|
36734
|
+
/**
|
|
36735
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
36736
|
+
* given reader into the given message object.
|
|
36737
|
+
* @param {!proto.user.RiskPlayerItem} msg The message object to deserialize into.
|
|
36738
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
36739
|
+
* @return {!proto.user.RiskPlayerItem}
|
|
36740
|
+
*/
|
|
36741
|
+
proto.user.RiskPlayerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
36742
|
+
while (reader.nextField()) {
|
|
36743
|
+
if (reader.isEndGroup()) {
|
|
36744
|
+
break;
|
|
36745
|
+
}
|
|
36746
|
+
var field = reader.getFieldNumber();
|
|
36747
|
+
switch (field) {
|
|
36748
|
+
case 1:
|
|
36749
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36750
|
+
msg.setUserId(value);
|
|
36751
|
+
break;
|
|
36752
|
+
case 2:
|
|
36753
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36754
|
+
msg.setEmail(value);
|
|
36755
|
+
break;
|
|
36756
|
+
case 3:
|
|
36757
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36758
|
+
msg.setRiskLevel(value);
|
|
36759
|
+
break;
|
|
36760
|
+
case 4:
|
|
36761
|
+
var value = /** @type {string} */ (reader.readString());
|
|
36762
|
+
msg.setKycStatus(value);
|
|
36763
|
+
break;
|
|
36764
|
+
default:
|
|
36765
|
+
reader.skipField();
|
|
36766
|
+
break;
|
|
36767
|
+
}
|
|
36768
|
+
}
|
|
36769
|
+
return msg;
|
|
36770
|
+
};
|
|
36771
|
+
|
|
36772
|
+
|
|
36773
|
+
/**
|
|
36774
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
36775
|
+
* @return {!Uint8Array}
|
|
36776
|
+
*/
|
|
36777
|
+
proto.user.RiskPlayerItem.prototype.serializeBinary = function() {
|
|
36778
|
+
var writer = new jspb.BinaryWriter();
|
|
36779
|
+
proto.user.RiskPlayerItem.serializeBinaryToWriter(this, writer);
|
|
36780
|
+
return writer.getResultBuffer();
|
|
36781
|
+
};
|
|
36782
|
+
|
|
36783
|
+
|
|
36784
|
+
/**
|
|
36785
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
36786
|
+
* format), writing to the given BinaryWriter.
|
|
36787
|
+
* @param {!proto.user.RiskPlayerItem} message
|
|
36788
|
+
* @param {!jspb.BinaryWriter} writer
|
|
36789
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36790
|
+
*/
|
|
36791
|
+
proto.user.RiskPlayerItem.serializeBinaryToWriter = function(message, writer) {
|
|
36792
|
+
var f = undefined;
|
|
36793
|
+
f = message.getUserId();
|
|
36794
|
+
if (f !== 0) {
|
|
36795
|
+
writer.writeInt32(
|
|
36796
|
+
1,
|
|
36797
|
+
f
|
|
36798
|
+
);
|
|
36799
|
+
}
|
|
36800
|
+
f = message.getEmail();
|
|
36801
|
+
if (f.length > 0) {
|
|
36802
|
+
writer.writeString(
|
|
36803
|
+
2,
|
|
36804
|
+
f
|
|
36805
|
+
);
|
|
36806
|
+
}
|
|
36807
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
36808
|
+
if (f != null) {
|
|
36809
|
+
writer.writeString(
|
|
36810
|
+
3,
|
|
36811
|
+
f
|
|
36812
|
+
);
|
|
36813
|
+
}
|
|
36814
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
36815
|
+
if (f != null) {
|
|
36816
|
+
writer.writeString(
|
|
36817
|
+
4,
|
|
36818
|
+
f
|
|
36819
|
+
);
|
|
36820
|
+
}
|
|
36821
|
+
};
|
|
36822
|
+
|
|
36823
|
+
|
|
36824
|
+
/**
|
|
36825
|
+
* optional int32 user_id = 1;
|
|
36826
|
+
* @return {number}
|
|
36827
|
+
*/
|
|
36828
|
+
proto.user.RiskPlayerItem.prototype.getUserId = function() {
|
|
36829
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
36830
|
+
};
|
|
36831
|
+
|
|
36832
|
+
|
|
36833
|
+
/**
|
|
36834
|
+
* @param {number} value
|
|
36835
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36836
|
+
*/
|
|
36837
|
+
proto.user.RiskPlayerItem.prototype.setUserId = function(value) {
|
|
36838
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
36839
|
+
};
|
|
36840
|
+
|
|
36841
|
+
|
|
36842
|
+
/**
|
|
36843
|
+
* optional string email = 2;
|
|
36844
|
+
* @return {string}
|
|
36845
|
+
*/
|
|
36846
|
+
proto.user.RiskPlayerItem.prototype.getEmail = function() {
|
|
36847
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
36848
|
+
};
|
|
36849
|
+
|
|
36850
|
+
|
|
36851
|
+
/**
|
|
36852
|
+
* @param {string} value
|
|
36853
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36854
|
+
*/
|
|
36855
|
+
proto.user.RiskPlayerItem.prototype.setEmail = function(value) {
|
|
36856
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
36857
|
+
};
|
|
36858
|
+
|
|
36859
|
+
|
|
36860
|
+
/**
|
|
36861
|
+
* optional string risk_level = 3;
|
|
36862
|
+
* @return {string}
|
|
36863
|
+
*/
|
|
36864
|
+
proto.user.RiskPlayerItem.prototype.getRiskLevel = function() {
|
|
36865
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
36866
|
+
};
|
|
36867
|
+
|
|
36868
|
+
|
|
36869
|
+
/**
|
|
36870
|
+
* @param {string} value
|
|
36871
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36872
|
+
*/
|
|
36873
|
+
proto.user.RiskPlayerItem.prototype.setRiskLevel = function(value) {
|
|
36874
|
+
return jspb.Message.setField(this, 3, value);
|
|
36875
|
+
};
|
|
36876
|
+
|
|
36877
|
+
|
|
36878
|
+
/**
|
|
36879
|
+
* Clears the field making it undefined.
|
|
36880
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36881
|
+
*/
|
|
36882
|
+
proto.user.RiskPlayerItem.prototype.clearRiskLevel = function() {
|
|
36883
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
36884
|
+
};
|
|
36885
|
+
|
|
36886
|
+
|
|
36887
|
+
/**
|
|
36888
|
+
* Returns whether this field is set.
|
|
36889
|
+
* @return {boolean}
|
|
36890
|
+
*/
|
|
36891
|
+
proto.user.RiskPlayerItem.prototype.hasRiskLevel = function() {
|
|
36892
|
+
return jspb.Message.getField(this, 3) != null;
|
|
36893
|
+
};
|
|
36894
|
+
|
|
36895
|
+
|
|
36896
|
+
/**
|
|
36897
|
+
* optional string kyc_status = 4;
|
|
36898
|
+
* @return {string}
|
|
36899
|
+
*/
|
|
36900
|
+
proto.user.RiskPlayerItem.prototype.getKycStatus = function() {
|
|
36901
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
36902
|
+
};
|
|
36903
|
+
|
|
36904
|
+
|
|
36905
|
+
/**
|
|
36906
|
+
* @param {string} value
|
|
36907
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36908
|
+
*/
|
|
36909
|
+
proto.user.RiskPlayerItem.prototype.setKycStatus = function(value) {
|
|
36910
|
+
return jspb.Message.setField(this, 4, value);
|
|
36911
|
+
};
|
|
36912
|
+
|
|
36913
|
+
|
|
36914
|
+
/**
|
|
36915
|
+
* Clears the field making it undefined.
|
|
36916
|
+
* @return {!proto.user.RiskPlayerItem} returns this
|
|
36917
|
+
*/
|
|
36918
|
+
proto.user.RiskPlayerItem.prototype.clearKycStatus = function() {
|
|
36919
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
36920
|
+
};
|
|
36921
|
+
|
|
36922
|
+
|
|
36923
|
+
/**
|
|
36924
|
+
* Returns whether this field is set.
|
|
36925
|
+
* @return {boolean}
|
|
36926
|
+
*/
|
|
36927
|
+
proto.user.RiskPlayerItem.prototype.hasKycStatus = function() {
|
|
36928
|
+
return jspb.Message.getField(this, 4) != null;
|
|
36929
|
+
};
|
|
36930
|
+
|
|
36931
|
+
|
|
36932
|
+
|
|
36933
|
+
/**
|
|
36934
|
+
* List of repeated fields within this message type.
|
|
36935
|
+
* @private {!Array<number>}
|
|
36936
|
+
* @const
|
|
36937
|
+
*/
|
|
36938
|
+
proto.user.RiskPlayersResponse.repeatedFields_ = [1];
|
|
36939
|
+
|
|
36940
|
+
|
|
36941
|
+
|
|
36942
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
36943
|
+
/**
|
|
36944
|
+
* Creates an object representation of this proto.
|
|
36945
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
36946
|
+
* Optional fields that are not set will be set to undefined.
|
|
36947
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
36948
|
+
* For the list of reserved names please see:
|
|
36949
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
36950
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
36951
|
+
* JSPB instance for transitional soy proto support:
|
|
36952
|
+
* http://goto/soy-param-migration
|
|
36953
|
+
* @return {!Object}
|
|
36954
|
+
*/
|
|
36955
|
+
proto.user.RiskPlayersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
36956
|
+
return proto.user.RiskPlayersResponse.toObject(opt_includeInstance, this);
|
|
36957
|
+
};
|
|
36958
|
+
|
|
36959
|
+
|
|
36960
|
+
/**
|
|
36961
|
+
* Static version of the {@see toObject} method.
|
|
36962
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
36963
|
+
* the JSPB instance for transitional soy proto support:
|
|
36964
|
+
* http://goto/soy-param-migration
|
|
36965
|
+
* @param {!proto.user.RiskPlayersResponse} msg The msg instance to transform.
|
|
36966
|
+
* @return {!Object}
|
|
36967
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36968
|
+
*/
|
|
36969
|
+
proto.user.RiskPlayersResponse.toObject = function(includeInstance, msg) {
|
|
36970
|
+
var f, obj = {
|
|
36971
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
36972
|
+
proto.user.RiskPlayerItem.toObject, includeInstance),
|
|
36973
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
36974
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
36975
|
+
};
|
|
36976
|
+
|
|
36977
|
+
if (includeInstance) {
|
|
36978
|
+
obj.$jspbMessageInstance = msg;
|
|
36979
|
+
}
|
|
36980
|
+
return obj;
|
|
36981
|
+
};
|
|
36982
|
+
}
|
|
36983
|
+
|
|
36984
|
+
|
|
36985
|
+
/**
|
|
36986
|
+
* Deserializes binary data (in protobuf wire format).
|
|
36987
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
36988
|
+
* @return {!proto.user.RiskPlayersResponse}
|
|
36989
|
+
*/
|
|
36990
|
+
proto.user.RiskPlayersResponse.deserializeBinary = function(bytes) {
|
|
36991
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
36992
|
+
var msg = new proto.user.RiskPlayersResponse;
|
|
36993
|
+
return proto.user.RiskPlayersResponse.deserializeBinaryFromReader(msg, reader);
|
|
36994
|
+
};
|
|
36995
|
+
|
|
36996
|
+
|
|
36997
|
+
/**
|
|
36998
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
36999
|
+
* given reader into the given message object.
|
|
37000
|
+
* @param {!proto.user.RiskPlayersResponse} msg The message object to deserialize into.
|
|
37001
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
37002
|
+
* @return {!proto.user.RiskPlayersResponse}
|
|
37003
|
+
*/
|
|
37004
|
+
proto.user.RiskPlayersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
37005
|
+
while (reader.nextField()) {
|
|
37006
|
+
if (reader.isEndGroup()) {
|
|
37007
|
+
break;
|
|
37008
|
+
}
|
|
37009
|
+
var field = reader.getFieldNumber();
|
|
37010
|
+
switch (field) {
|
|
37011
|
+
case 1:
|
|
37012
|
+
var value = new proto.user.RiskPlayerItem;
|
|
37013
|
+
reader.readMessage(value,proto.user.RiskPlayerItem.deserializeBinaryFromReader);
|
|
37014
|
+
msg.addItems(value);
|
|
37015
|
+
break;
|
|
37016
|
+
case 2:
|
|
37017
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
37018
|
+
msg.setTotalPages(value);
|
|
37019
|
+
break;
|
|
37020
|
+
case 3:
|
|
37021
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
37022
|
+
msg.setTotalItems(value);
|
|
37023
|
+
break;
|
|
37024
|
+
default:
|
|
37025
|
+
reader.skipField();
|
|
37026
|
+
break;
|
|
37027
|
+
}
|
|
37028
|
+
}
|
|
37029
|
+
return msg;
|
|
37030
|
+
};
|
|
37031
|
+
|
|
37032
|
+
|
|
37033
|
+
/**
|
|
37034
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
37035
|
+
* @return {!Uint8Array}
|
|
37036
|
+
*/
|
|
37037
|
+
proto.user.RiskPlayersResponse.prototype.serializeBinary = function() {
|
|
37038
|
+
var writer = new jspb.BinaryWriter();
|
|
37039
|
+
proto.user.RiskPlayersResponse.serializeBinaryToWriter(this, writer);
|
|
37040
|
+
return writer.getResultBuffer();
|
|
37041
|
+
};
|
|
37042
|
+
|
|
37043
|
+
|
|
37044
|
+
/**
|
|
37045
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
37046
|
+
* format), writing to the given BinaryWriter.
|
|
37047
|
+
* @param {!proto.user.RiskPlayersResponse} message
|
|
37048
|
+
* @param {!jspb.BinaryWriter} writer
|
|
37049
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
37050
|
+
*/
|
|
37051
|
+
proto.user.RiskPlayersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
37052
|
+
var f = undefined;
|
|
37053
|
+
f = message.getItemsList();
|
|
37054
|
+
if (f.length > 0) {
|
|
37055
|
+
writer.writeRepeatedMessage(
|
|
37056
|
+
1,
|
|
37057
|
+
f,
|
|
37058
|
+
proto.user.RiskPlayerItem.serializeBinaryToWriter
|
|
37059
|
+
);
|
|
37060
|
+
}
|
|
37061
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
37062
|
+
if (f != null) {
|
|
37063
|
+
writer.writeInt32(
|
|
37064
|
+
2,
|
|
37065
|
+
f
|
|
37066
|
+
);
|
|
37067
|
+
}
|
|
37068
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
37069
|
+
if (f != null) {
|
|
37070
|
+
writer.writeInt32(
|
|
37071
|
+
3,
|
|
37072
|
+
f
|
|
37073
|
+
);
|
|
37074
|
+
}
|
|
37075
|
+
};
|
|
37076
|
+
|
|
37077
|
+
|
|
37078
|
+
/**
|
|
37079
|
+
* repeated RiskPlayerItem items = 1;
|
|
37080
|
+
* @return {!Array<!proto.user.RiskPlayerItem>}
|
|
37081
|
+
*/
|
|
37082
|
+
proto.user.RiskPlayersResponse.prototype.getItemsList = function() {
|
|
37083
|
+
return /** @type{!Array<!proto.user.RiskPlayerItem>} */ (
|
|
37084
|
+
jspb.Message.getRepeatedWrapperField(this, proto.user.RiskPlayerItem, 1));
|
|
37085
|
+
};
|
|
37086
|
+
|
|
37087
|
+
|
|
37088
|
+
/**
|
|
37089
|
+
* @param {!Array<!proto.user.RiskPlayerItem>} value
|
|
37090
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37091
|
+
*/
|
|
37092
|
+
proto.user.RiskPlayersResponse.prototype.setItemsList = function(value) {
|
|
37093
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
37094
|
+
};
|
|
37095
|
+
|
|
37096
|
+
|
|
37097
|
+
/**
|
|
37098
|
+
* @param {!proto.user.RiskPlayerItem=} opt_value
|
|
37099
|
+
* @param {number=} opt_index
|
|
37100
|
+
* @return {!proto.user.RiskPlayerItem}
|
|
37101
|
+
*/
|
|
37102
|
+
proto.user.RiskPlayersResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
37103
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.RiskPlayerItem, opt_index);
|
|
37104
|
+
};
|
|
37105
|
+
|
|
37106
|
+
|
|
37107
|
+
/**
|
|
37108
|
+
* Clears the list making it empty but non-null.
|
|
37109
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37110
|
+
*/
|
|
37111
|
+
proto.user.RiskPlayersResponse.prototype.clearItemsList = function() {
|
|
37112
|
+
return this.setItemsList([]);
|
|
37113
|
+
};
|
|
37114
|
+
|
|
37115
|
+
|
|
37116
|
+
/**
|
|
37117
|
+
* optional int32 total_pages = 2;
|
|
37118
|
+
* @return {number}
|
|
37119
|
+
*/
|
|
37120
|
+
proto.user.RiskPlayersResponse.prototype.getTotalPages = function() {
|
|
37121
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
37122
|
+
};
|
|
37123
|
+
|
|
37124
|
+
|
|
37125
|
+
/**
|
|
37126
|
+
* @param {number} value
|
|
37127
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37128
|
+
*/
|
|
37129
|
+
proto.user.RiskPlayersResponse.prototype.setTotalPages = function(value) {
|
|
37130
|
+
return jspb.Message.setField(this, 2, value);
|
|
37131
|
+
};
|
|
37132
|
+
|
|
37133
|
+
|
|
37134
|
+
/**
|
|
37135
|
+
* Clears the field making it undefined.
|
|
37136
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37137
|
+
*/
|
|
37138
|
+
proto.user.RiskPlayersResponse.prototype.clearTotalPages = function() {
|
|
37139
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
37140
|
+
};
|
|
37141
|
+
|
|
37142
|
+
|
|
37143
|
+
/**
|
|
37144
|
+
* Returns whether this field is set.
|
|
37145
|
+
* @return {boolean}
|
|
37146
|
+
*/
|
|
37147
|
+
proto.user.RiskPlayersResponse.prototype.hasTotalPages = function() {
|
|
37148
|
+
return jspb.Message.getField(this, 2) != null;
|
|
37149
|
+
};
|
|
37150
|
+
|
|
37151
|
+
|
|
37152
|
+
/**
|
|
37153
|
+
* optional int32 total_items = 3;
|
|
37154
|
+
* @return {number}
|
|
37155
|
+
*/
|
|
37156
|
+
proto.user.RiskPlayersResponse.prototype.getTotalItems = function() {
|
|
37157
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
37158
|
+
};
|
|
37159
|
+
|
|
37160
|
+
|
|
37161
|
+
/**
|
|
37162
|
+
* @param {number} value
|
|
37163
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37164
|
+
*/
|
|
37165
|
+
proto.user.RiskPlayersResponse.prototype.setTotalItems = function(value) {
|
|
37166
|
+
return jspb.Message.setField(this, 3, value);
|
|
37167
|
+
};
|
|
37168
|
+
|
|
37169
|
+
|
|
37170
|
+
/**
|
|
37171
|
+
* Clears the field making it undefined.
|
|
37172
|
+
* @return {!proto.user.RiskPlayersResponse} returns this
|
|
37173
|
+
*/
|
|
37174
|
+
proto.user.RiskPlayersResponse.prototype.clearTotalItems = function() {
|
|
37175
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
37176
|
+
};
|
|
37177
|
+
|
|
37178
|
+
|
|
37179
|
+
/**
|
|
37180
|
+
* Returns whether this field is set.
|
|
37181
|
+
* @return {boolean}
|
|
37182
|
+
*/
|
|
37183
|
+
proto.user.RiskPlayersResponse.prototype.hasTotalItems = function() {
|
|
37184
|
+
return jspb.Message.getField(this, 3) != null;
|
|
37185
|
+
};
|
|
37186
|
+
|
|
37187
|
+
|
|
37188
|
+
|
|
37189
|
+
|
|
37190
|
+
|
|
36213
37191
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
36214
37192
|
/**
|
|
36215
37193
|
* Creates an object representation of this proto.
|