protobuf-platform 1.2.325 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.325",
3
+ "version": "1.2.327",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
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;
@@ -884,6 +905,10 @@ message UserKycDocumentItem {
884
905
  optional int64 file_size = 14;
885
906
  optional string created_at = 15;
886
907
  optional string updated_at = 16;
908
+ // Backend-derived actor email resolved from uploaded_by; omitted when user-service cannot resolve.
909
+ optional string uploaded_by_email = 17;
910
+ // Backend-derived actor email resolved from reviewer_id; omitted when user-service cannot resolve.
911
+ optional string reviewer_email = 18;
887
912
  }
888
913
  message UserKycDocumentsResponse {
889
914
  int32 user_id = 1;
@@ -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
@@ -36223,8 +36289,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
36223
36289
  * http://goto/soy-param-migration
36224
36290
  * @return {!Object}
36225
36291
  */
36226
- proto.user.ReadUserKycDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
36227
- return proto.user.ReadUserKycDocumentsRequest.toObject(opt_includeInstance, this);
36292
+ proto.user.ReadListRiskPlayersRequest.prototype.toObject = function(opt_includeInstance) {
36293
+ return proto.user.ReadListRiskPlayersRequest.toObject(opt_includeInstance, this);
36228
36294
  };
36229
36295
 
36230
36296
 
@@ -36233,16 +36299,416 @@ proto.user.ReadUserKycDocumentsRequest.prototype.toObject = function(opt_include
36233
36299
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36234
36300
  * the JSPB instance for transitional soy proto support:
36235
36301
  * http://goto/soy-param-migration
36236
- * @param {!proto.user.ReadUserKycDocumentsRequest} msg The msg instance to transform.
36302
+ * @param {!proto.user.ReadListRiskPlayersRequest} msg The msg instance to transform.
36237
36303
  * @return {!Object}
36238
36304
  * @suppress {unusedLocalVariables} f is only used for nested messages
36239
36305
  */
36240
- proto.user.ReadUserKycDocumentsRequest.toObject = function(includeInstance, msg) {
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) {
36241
36707
  var f, obj = {
36242
36708
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
36243
- documentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
36244
- documentSide: jspb.Message.getFieldWithDefault(msg, 3, ""),
36245
- status: jspb.Message.getFieldWithDefault(msg, 4, "")
36709
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
36710
+ riskLevel: jspb.Message.getFieldWithDefault(msg, 3, ""),
36711
+ kycStatus: jspb.Message.getFieldWithDefault(msg, 4, "")
36246
36712
  };
36247
36713
 
36248
36714
  if (includeInstance) {
@@ -36256,23 +36722,23 @@ proto.user.ReadUserKycDocumentsRequest.toObject = function(includeInstance, msg)
36256
36722
  /**
36257
36723
  * Deserializes binary data (in protobuf wire format).
36258
36724
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
36259
- * @return {!proto.user.ReadUserKycDocumentsRequest}
36725
+ * @return {!proto.user.RiskPlayerItem}
36260
36726
  */
36261
- proto.user.ReadUserKycDocumentsRequest.deserializeBinary = function(bytes) {
36727
+ proto.user.RiskPlayerItem.deserializeBinary = function(bytes) {
36262
36728
  var reader = new jspb.BinaryReader(bytes);
36263
- var msg = new proto.user.ReadUserKycDocumentsRequest;
36264
- return proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader(msg, reader);
36729
+ var msg = new proto.user.RiskPlayerItem;
36730
+ return proto.user.RiskPlayerItem.deserializeBinaryFromReader(msg, reader);
36265
36731
  };
36266
36732
 
36267
36733
 
36268
36734
  /**
36269
36735
  * Deserializes binary data (in protobuf wire format) from the
36270
36736
  * given reader into the given message object.
36271
- * @param {!proto.user.ReadUserKycDocumentsRequest} msg The message object to deserialize into.
36737
+ * @param {!proto.user.RiskPlayerItem} msg The message object to deserialize into.
36272
36738
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36273
- * @return {!proto.user.ReadUserKycDocumentsRequest}
36739
+ * @return {!proto.user.RiskPlayerItem}
36274
36740
  */
36275
- proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
36741
+ proto.user.RiskPlayerItem.deserializeBinaryFromReader = function(msg, reader) {
36276
36742
  while (reader.nextField()) {
36277
36743
  if (reader.isEndGroup()) {
36278
36744
  break;
@@ -36285,15 +36751,15 @@ proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader = function(ms
36285
36751
  break;
36286
36752
  case 2:
36287
36753
  var value = /** @type {string} */ (reader.readString());
36288
- msg.setDocumentType(value);
36754
+ msg.setEmail(value);
36289
36755
  break;
36290
36756
  case 3:
36291
36757
  var value = /** @type {string} */ (reader.readString());
36292
- msg.setDocumentSide(value);
36758
+ msg.setRiskLevel(value);
36293
36759
  break;
36294
36760
  case 4:
36295
36761
  var value = /** @type {string} */ (reader.readString());
36296
- msg.setStatus(value);
36762
+ msg.setKycStatus(value);
36297
36763
  break;
36298
36764
  default:
36299
36765
  reader.skipField();
@@ -36308,9 +36774,9 @@ proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader = function(ms
36308
36774
  * Serializes the message to binary data (in protobuf wire format).
36309
36775
  * @return {!Uint8Array}
36310
36776
  */
36311
- proto.user.ReadUserKycDocumentsRequest.prototype.serializeBinary = function() {
36777
+ proto.user.RiskPlayerItem.prototype.serializeBinary = function() {
36312
36778
  var writer = new jspb.BinaryWriter();
36313
- proto.user.ReadUserKycDocumentsRequest.serializeBinaryToWriter(this, writer);
36779
+ proto.user.RiskPlayerItem.serializeBinaryToWriter(this, writer);
36314
36780
  return writer.getResultBuffer();
36315
36781
  };
36316
36782
 
@@ -36318,11 +36784,11 @@ proto.user.ReadUserKycDocumentsRequest.prototype.serializeBinary = function() {
36318
36784
  /**
36319
36785
  * Serializes the given message to binary data (in protobuf wire
36320
36786
  * format), writing to the given BinaryWriter.
36321
- * @param {!proto.user.ReadUserKycDocumentsRequest} message
36787
+ * @param {!proto.user.RiskPlayerItem} message
36322
36788
  * @param {!jspb.BinaryWriter} writer
36323
36789
  * @suppress {unusedLocalVariables} f is only used for nested messages
36324
36790
  */
36325
- proto.user.ReadUserKycDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
36791
+ proto.user.RiskPlayerItem.serializeBinaryToWriter = function(message, writer) {
36326
36792
  var f = undefined;
36327
36793
  f = message.getUserId();
36328
36794
  if (f !== 0) {
@@ -36331,8 +36797,520 @@ proto.user.ReadUserKycDocumentsRequest.serializeBinaryToWriter = function(messag
36331
36797
  f
36332
36798
  );
36333
36799
  }
36334
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
36335
- if (f != null) {
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
+
37191
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37192
+ /**
37193
+ * Creates an object representation of this proto.
37194
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37195
+ * Optional fields that are not set will be set to undefined.
37196
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37197
+ * For the list of reserved names please see:
37198
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37199
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37200
+ * JSPB instance for transitional soy proto support:
37201
+ * http://goto/soy-param-migration
37202
+ * @return {!Object}
37203
+ */
37204
+ proto.user.ReadUserKycDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
37205
+ return proto.user.ReadUserKycDocumentsRequest.toObject(opt_includeInstance, this);
37206
+ };
37207
+
37208
+
37209
+ /**
37210
+ * Static version of the {@see toObject} method.
37211
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37212
+ * the JSPB instance for transitional soy proto support:
37213
+ * http://goto/soy-param-migration
37214
+ * @param {!proto.user.ReadUserKycDocumentsRequest} msg The msg instance to transform.
37215
+ * @return {!Object}
37216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37217
+ */
37218
+ proto.user.ReadUserKycDocumentsRequest.toObject = function(includeInstance, msg) {
37219
+ var f, obj = {
37220
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
37221
+ documentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
37222
+ documentSide: jspb.Message.getFieldWithDefault(msg, 3, ""),
37223
+ status: jspb.Message.getFieldWithDefault(msg, 4, "")
37224
+ };
37225
+
37226
+ if (includeInstance) {
37227
+ obj.$jspbMessageInstance = msg;
37228
+ }
37229
+ return obj;
37230
+ };
37231
+ }
37232
+
37233
+
37234
+ /**
37235
+ * Deserializes binary data (in protobuf wire format).
37236
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37237
+ * @return {!proto.user.ReadUserKycDocumentsRequest}
37238
+ */
37239
+ proto.user.ReadUserKycDocumentsRequest.deserializeBinary = function(bytes) {
37240
+ var reader = new jspb.BinaryReader(bytes);
37241
+ var msg = new proto.user.ReadUserKycDocumentsRequest;
37242
+ return proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader(msg, reader);
37243
+ };
37244
+
37245
+
37246
+ /**
37247
+ * Deserializes binary data (in protobuf wire format) from the
37248
+ * given reader into the given message object.
37249
+ * @param {!proto.user.ReadUserKycDocumentsRequest} msg The message object to deserialize into.
37250
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37251
+ * @return {!proto.user.ReadUserKycDocumentsRequest}
37252
+ */
37253
+ proto.user.ReadUserKycDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
37254
+ while (reader.nextField()) {
37255
+ if (reader.isEndGroup()) {
37256
+ break;
37257
+ }
37258
+ var field = reader.getFieldNumber();
37259
+ switch (field) {
37260
+ case 1:
37261
+ var value = /** @type {number} */ (reader.readInt32());
37262
+ msg.setUserId(value);
37263
+ break;
37264
+ case 2:
37265
+ var value = /** @type {string} */ (reader.readString());
37266
+ msg.setDocumentType(value);
37267
+ break;
37268
+ case 3:
37269
+ var value = /** @type {string} */ (reader.readString());
37270
+ msg.setDocumentSide(value);
37271
+ break;
37272
+ case 4:
37273
+ var value = /** @type {string} */ (reader.readString());
37274
+ msg.setStatus(value);
37275
+ break;
37276
+ default:
37277
+ reader.skipField();
37278
+ break;
37279
+ }
37280
+ }
37281
+ return msg;
37282
+ };
37283
+
37284
+
37285
+ /**
37286
+ * Serializes the message to binary data (in protobuf wire format).
37287
+ * @return {!Uint8Array}
37288
+ */
37289
+ proto.user.ReadUserKycDocumentsRequest.prototype.serializeBinary = function() {
37290
+ var writer = new jspb.BinaryWriter();
37291
+ proto.user.ReadUserKycDocumentsRequest.serializeBinaryToWriter(this, writer);
37292
+ return writer.getResultBuffer();
37293
+ };
37294
+
37295
+
37296
+ /**
37297
+ * Serializes the given message to binary data (in protobuf wire
37298
+ * format), writing to the given BinaryWriter.
37299
+ * @param {!proto.user.ReadUserKycDocumentsRequest} message
37300
+ * @param {!jspb.BinaryWriter} writer
37301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37302
+ */
37303
+ proto.user.ReadUserKycDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
37304
+ var f = undefined;
37305
+ f = message.getUserId();
37306
+ if (f !== 0) {
37307
+ writer.writeInt32(
37308
+ 1,
37309
+ f
37310
+ );
37311
+ }
37312
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
37313
+ if (f != null) {
36336
37314
  writer.writeString(
36337
37315
  2,
36338
37316
  f
@@ -37406,7 +38384,9 @@ proto.user.UserKycDocumentItem.toObject = function(includeInstance, msg) {
37406
38384
  mimeType: jspb.Message.getFieldWithDefault(msg, 13, ""),
37407
38385
  fileSize: jspb.Message.getFieldWithDefault(msg, 14, 0),
37408
38386
  createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
37409
- updatedAt: jspb.Message.getFieldWithDefault(msg, 16, "")
38387
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
38388
+ uploadedByEmail: jspb.Message.getFieldWithDefault(msg, 17, ""),
38389
+ reviewerEmail: jspb.Message.getFieldWithDefault(msg, 18, "")
37410
38390
  };
37411
38391
 
37412
38392
  if (includeInstance) {
@@ -37507,6 +38487,14 @@ proto.user.UserKycDocumentItem.deserializeBinaryFromReader = function(msg, reade
37507
38487
  var value = /** @type {string} */ (reader.readString());
37508
38488
  msg.setUpdatedAt(value);
37509
38489
  break;
38490
+ case 17:
38491
+ var value = /** @type {string} */ (reader.readString());
38492
+ msg.setUploadedByEmail(value);
38493
+ break;
38494
+ case 18:
38495
+ var value = /** @type {string} */ (reader.readString());
38496
+ msg.setReviewerEmail(value);
38497
+ break;
37510
38498
  default:
37511
38499
  reader.skipField();
37512
38500
  break;
@@ -37648,6 +38636,20 @@ proto.user.UserKycDocumentItem.serializeBinaryToWriter = function(message, write
37648
38636
  f
37649
38637
  );
37650
38638
  }
38639
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
38640
+ if (f != null) {
38641
+ writer.writeString(
38642
+ 17,
38643
+ f
38644
+ );
38645
+ }
38646
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
38647
+ if (f != null) {
38648
+ writer.writeString(
38649
+ 18,
38650
+ f
38651
+ );
38652
+ }
37651
38653
  };
37652
38654
 
37653
38655
 
@@ -38137,6 +39139,78 @@ proto.user.UserKycDocumentItem.prototype.hasUpdatedAt = function() {
38137
39139
  };
38138
39140
 
38139
39141
 
39142
+ /**
39143
+ * optional string uploaded_by_email = 17;
39144
+ * @return {string}
39145
+ */
39146
+ proto.user.UserKycDocumentItem.prototype.getUploadedByEmail = function() {
39147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
39148
+ };
39149
+
39150
+
39151
+ /**
39152
+ * @param {string} value
39153
+ * @return {!proto.user.UserKycDocumentItem} returns this
39154
+ */
39155
+ proto.user.UserKycDocumentItem.prototype.setUploadedByEmail = function(value) {
39156
+ return jspb.Message.setField(this, 17, value);
39157
+ };
39158
+
39159
+
39160
+ /**
39161
+ * Clears the field making it undefined.
39162
+ * @return {!proto.user.UserKycDocumentItem} returns this
39163
+ */
39164
+ proto.user.UserKycDocumentItem.prototype.clearUploadedByEmail = function() {
39165
+ return jspb.Message.setField(this, 17, undefined);
39166
+ };
39167
+
39168
+
39169
+ /**
39170
+ * Returns whether this field is set.
39171
+ * @return {boolean}
39172
+ */
39173
+ proto.user.UserKycDocumentItem.prototype.hasUploadedByEmail = function() {
39174
+ return jspb.Message.getField(this, 17) != null;
39175
+ };
39176
+
39177
+
39178
+ /**
39179
+ * optional string reviewer_email = 18;
39180
+ * @return {string}
39181
+ */
39182
+ proto.user.UserKycDocumentItem.prototype.getReviewerEmail = function() {
39183
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
39184
+ };
39185
+
39186
+
39187
+ /**
39188
+ * @param {string} value
39189
+ * @return {!proto.user.UserKycDocumentItem} returns this
39190
+ */
39191
+ proto.user.UserKycDocumentItem.prototype.setReviewerEmail = function(value) {
39192
+ return jspb.Message.setField(this, 18, value);
39193
+ };
39194
+
39195
+
39196
+ /**
39197
+ * Clears the field making it undefined.
39198
+ * @return {!proto.user.UserKycDocumentItem} returns this
39199
+ */
39200
+ proto.user.UserKycDocumentItem.prototype.clearReviewerEmail = function() {
39201
+ return jspb.Message.setField(this, 18, undefined);
39202
+ };
39203
+
39204
+
39205
+ /**
39206
+ * Returns whether this field is set.
39207
+ * @return {boolean}
39208
+ */
39209
+ proto.user.UserKycDocumentItem.prototype.hasReviewerEmail = function() {
39210
+ return jspb.Message.getField(this, 18) != null;
39211
+ };
39212
+
39213
+
38140
39214
 
38141
39215
  /**
38142
39216
  * List of repeated fields within this message type.