protobuf-platform 1.2.323 → 1.2.324

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/user/user_pb.js CHANGED
@@ -61,9 +61,11 @@ 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.ReadListUserKycDocumentsRequest', null, global);
64
65
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, global);
65
66
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
66
67
  goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
68
+ goog.exportSymbol('proto.user.ReadUserKycDocumentRequest', null, global);
67
69
  goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
68
70
  goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
69
71
  goog.exportSymbol('proto.user.ReadUserManualRestrictionsRequest', null, global);
@@ -129,6 +131,8 @@ goog.exportSymbol('proto.user.UserGameIdsFilterResponse', null, global);
129
131
  goog.exportSymbol('proto.user.UserGameIdsResponse', null, global);
130
132
  goog.exportSymbol('proto.user.UserGameRequest', null, global);
131
133
  goog.exportSymbol('proto.user.UserKycDocumentItem', null, global);
134
+ goog.exportSymbol('proto.user.UserKycDocumentListItem', null, global);
135
+ goog.exportSymbol('proto.user.UserKycDocumentListResponse', null, global);
132
136
  goog.exportSymbol('proto.user.UserKycDocumentsResponse', null, global);
133
137
  goog.exportSymbol('proto.user.UserKycProfileResponse', null, global);
134
138
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
@@ -2206,6 +2210,90 @@ if (goog.DEBUG && !COMPILED) {
2206
2210
  */
2207
2211
  proto.user.UserKycDocumentsResponse.displayName = 'proto.user.UserKycDocumentsResponse';
2208
2212
  }
2213
+ /**
2214
+ * Generated by JsPbCodeGenerator.
2215
+ * @param {Array=} opt_data Optional initial data array, typically from a
2216
+ * server response, or constructed directly in Javascript. The array is used
2217
+ * in place and becomes part of the constructed object. It is not cloned.
2218
+ * If no data is provided, the constructed object will be empty, but still
2219
+ * valid.
2220
+ * @extends {jspb.Message}
2221
+ * @constructor
2222
+ */
2223
+ proto.user.ReadUserKycDocumentRequest = function(opt_data) {
2224
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2225
+ };
2226
+ goog.inherits(proto.user.ReadUserKycDocumentRequest, jspb.Message);
2227
+ if (goog.DEBUG && !COMPILED) {
2228
+ /**
2229
+ * @public
2230
+ * @override
2231
+ */
2232
+ proto.user.ReadUserKycDocumentRequest.displayName = 'proto.user.ReadUserKycDocumentRequest';
2233
+ }
2234
+ /**
2235
+ * Generated by JsPbCodeGenerator.
2236
+ * @param {Array=} opt_data Optional initial data array, typically from a
2237
+ * server response, or constructed directly in Javascript. The array is used
2238
+ * in place and becomes part of the constructed object. It is not cloned.
2239
+ * If no data is provided, the constructed object will be empty, but still
2240
+ * valid.
2241
+ * @extends {jspb.Message}
2242
+ * @constructor
2243
+ */
2244
+ proto.user.ReadListUserKycDocumentsRequest = function(opt_data) {
2245
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2246
+ };
2247
+ goog.inherits(proto.user.ReadListUserKycDocumentsRequest, jspb.Message);
2248
+ if (goog.DEBUG && !COMPILED) {
2249
+ /**
2250
+ * @public
2251
+ * @override
2252
+ */
2253
+ proto.user.ReadListUserKycDocumentsRequest.displayName = 'proto.user.ReadListUserKycDocumentsRequest';
2254
+ }
2255
+ /**
2256
+ * Generated by JsPbCodeGenerator.
2257
+ * @param {Array=} opt_data Optional initial data array, typically from a
2258
+ * server response, or constructed directly in Javascript. The array is used
2259
+ * in place and becomes part of the constructed object. It is not cloned.
2260
+ * If no data is provided, the constructed object will be empty, but still
2261
+ * valid.
2262
+ * @extends {jspb.Message}
2263
+ * @constructor
2264
+ */
2265
+ proto.user.UserKycDocumentListItem = function(opt_data) {
2266
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2267
+ };
2268
+ goog.inherits(proto.user.UserKycDocumentListItem, jspb.Message);
2269
+ if (goog.DEBUG && !COMPILED) {
2270
+ /**
2271
+ * @public
2272
+ * @override
2273
+ */
2274
+ proto.user.UserKycDocumentListItem.displayName = 'proto.user.UserKycDocumentListItem';
2275
+ }
2276
+ /**
2277
+ * Generated by JsPbCodeGenerator.
2278
+ * @param {Array=} opt_data Optional initial data array, typically from a
2279
+ * server response, or constructed directly in Javascript. The array is used
2280
+ * in place and becomes part of the constructed object. It is not cloned.
2281
+ * If no data is provided, the constructed object will be empty, but still
2282
+ * valid.
2283
+ * @extends {jspb.Message}
2284
+ * @constructor
2285
+ */
2286
+ proto.user.UserKycDocumentListResponse = function(opt_data) {
2287
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycDocumentListResponse.repeatedFields_, null);
2288
+ };
2289
+ goog.inherits(proto.user.UserKycDocumentListResponse, jspb.Message);
2290
+ if (goog.DEBUG && !COMPILED) {
2291
+ /**
2292
+ * @public
2293
+ * @override
2294
+ */
2295
+ proto.user.UserKycDocumentListResponse.displayName = 'proto.user.UserKycDocumentListResponse';
2296
+ }
2209
2297
  /**
2210
2298
  * Generated by JsPbCodeGenerator.
2211
2299
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -38176,6 +38264,2242 @@ proto.user.UserKycDocumentsResponse.prototype.clearDocumentsList = function() {
38176
38264
 
38177
38265
 
38178
38266
 
38267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38268
+ /**
38269
+ * Creates an object representation of this proto.
38270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38271
+ * Optional fields that are not set will be set to undefined.
38272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38273
+ * For the list of reserved names please see:
38274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38276
+ * JSPB instance for transitional soy proto support:
38277
+ * http://goto/soy-param-migration
38278
+ * @return {!Object}
38279
+ */
38280
+ proto.user.ReadUserKycDocumentRequest.prototype.toObject = function(opt_includeInstance) {
38281
+ return proto.user.ReadUserKycDocumentRequest.toObject(opt_includeInstance, this);
38282
+ };
38283
+
38284
+
38285
+ /**
38286
+ * Static version of the {@see toObject} method.
38287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38288
+ * the JSPB instance for transitional soy proto support:
38289
+ * http://goto/soy-param-migration
38290
+ * @param {!proto.user.ReadUserKycDocumentRequest} msg The msg instance to transform.
38291
+ * @return {!Object}
38292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38293
+ */
38294
+ proto.user.ReadUserKycDocumentRequest.toObject = function(includeInstance, msg) {
38295
+ var f, obj = {
38296
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
38297
+ };
38298
+
38299
+ if (includeInstance) {
38300
+ obj.$jspbMessageInstance = msg;
38301
+ }
38302
+ return obj;
38303
+ };
38304
+ }
38305
+
38306
+
38307
+ /**
38308
+ * Deserializes binary data (in protobuf wire format).
38309
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38310
+ * @return {!proto.user.ReadUserKycDocumentRequest}
38311
+ */
38312
+ proto.user.ReadUserKycDocumentRequest.deserializeBinary = function(bytes) {
38313
+ var reader = new jspb.BinaryReader(bytes);
38314
+ var msg = new proto.user.ReadUserKycDocumentRequest;
38315
+ return proto.user.ReadUserKycDocumentRequest.deserializeBinaryFromReader(msg, reader);
38316
+ };
38317
+
38318
+
38319
+ /**
38320
+ * Deserializes binary data (in protobuf wire format) from the
38321
+ * given reader into the given message object.
38322
+ * @param {!proto.user.ReadUserKycDocumentRequest} msg The message object to deserialize into.
38323
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38324
+ * @return {!proto.user.ReadUserKycDocumentRequest}
38325
+ */
38326
+ proto.user.ReadUserKycDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
38327
+ while (reader.nextField()) {
38328
+ if (reader.isEndGroup()) {
38329
+ break;
38330
+ }
38331
+ var field = reader.getFieldNumber();
38332
+ switch (field) {
38333
+ case 1:
38334
+ var value = /** @type {number} */ (reader.readInt32());
38335
+ msg.setId(value);
38336
+ break;
38337
+ default:
38338
+ reader.skipField();
38339
+ break;
38340
+ }
38341
+ }
38342
+ return msg;
38343
+ };
38344
+
38345
+
38346
+ /**
38347
+ * Serializes the message to binary data (in protobuf wire format).
38348
+ * @return {!Uint8Array}
38349
+ */
38350
+ proto.user.ReadUserKycDocumentRequest.prototype.serializeBinary = function() {
38351
+ var writer = new jspb.BinaryWriter();
38352
+ proto.user.ReadUserKycDocumentRequest.serializeBinaryToWriter(this, writer);
38353
+ return writer.getResultBuffer();
38354
+ };
38355
+
38356
+
38357
+ /**
38358
+ * Serializes the given message to binary data (in protobuf wire
38359
+ * format), writing to the given BinaryWriter.
38360
+ * @param {!proto.user.ReadUserKycDocumentRequest} message
38361
+ * @param {!jspb.BinaryWriter} writer
38362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38363
+ */
38364
+ proto.user.ReadUserKycDocumentRequest.serializeBinaryToWriter = function(message, writer) {
38365
+ var f = undefined;
38366
+ f = message.getId();
38367
+ if (f !== 0) {
38368
+ writer.writeInt32(
38369
+ 1,
38370
+ f
38371
+ );
38372
+ }
38373
+ };
38374
+
38375
+
38376
+ /**
38377
+ * optional int32 id = 1;
38378
+ * @return {number}
38379
+ */
38380
+ proto.user.ReadUserKycDocumentRequest.prototype.getId = function() {
38381
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38382
+ };
38383
+
38384
+
38385
+ /**
38386
+ * @param {number} value
38387
+ * @return {!proto.user.ReadUserKycDocumentRequest} returns this
38388
+ */
38389
+ proto.user.ReadUserKycDocumentRequest.prototype.setId = function(value) {
38390
+ return jspb.Message.setProto3IntField(this, 1, value);
38391
+ };
38392
+
38393
+
38394
+
38395
+
38396
+
38397
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38398
+ /**
38399
+ * Creates an object representation of this proto.
38400
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38401
+ * Optional fields that are not set will be set to undefined.
38402
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38403
+ * For the list of reserved names please see:
38404
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38405
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38406
+ * JSPB instance for transitional soy proto support:
38407
+ * http://goto/soy-param-migration
38408
+ * @return {!Object}
38409
+ */
38410
+ proto.user.ReadListUserKycDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
38411
+ return proto.user.ReadListUserKycDocumentsRequest.toObject(opt_includeInstance, this);
38412
+ };
38413
+
38414
+
38415
+ /**
38416
+ * Static version of the {@see toObject} method.
38417
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38418
+ * the JSPB instance for transitional soy proto support:
38419
+ * http://goto/soy-param-migration
38420
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} msg The msg instance to transform.
38421
+ * @return {!Object}
38422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38423
+ */
38424
+ proto.user.ReadListUserKycDocumentsRequest.toObject = function(includeInstance, msg) {
38425
+ var f, obj = {
38426
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
38427
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
38428
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
38429
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
38430
+ documentType: jspb.Message.getFieldWithDefault(msg, 5, ""),
38431
+ documentSide: jspb.Message.getFieldWithDefault(msg, 6, ""),
38432
+ userId: jspb.Message.getFieldWithDefault(msg, 7, 0),
38433
+ source: jspb.Message.getFieldWithDefault(msg, 8, ""),
38434
+ reviewerId: jspb.Message.getFieldWithDefault(msg, 9, 0),
38435
+ uploadedBy: jspb.Message.getFieldWithDefault(msg, 10, 0),
38436
+ country: jspb.Message.getFieldWithDefault(msg, 11, ""),
38437
+ currency: jspb.Message.getFieldWithDefault(msg, 12, ""),
38438
+ email: jspb.Message.getFieldWithDefault(msg, 13, "")
38439
+ };
38440
+
38441
+ if (includeInstance) {
38442
+ obj.$jspbMessageInstance = msg;
38443
+ }
38444
+ return obj;
38445
+ };
38446
+ }
38447
+
38448
+
38449
+ /**
38450
+ * Deserializes binary data (in protobuf wire format).
38451
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38452
+ * @return {!proto.user.ReadListUserKycDocumentsRequest}
38453
+ */
38454
+ proto.user.ReadListUserKycDocumentsRequest.deserializeBinary = function(bytes) {
38455
+ var reader = new jspb.BinaryReader(bytes);
38456
+ var msg = new proto.user.ReadListUserKycDocumentsRequest;
38457
+ return proto.user.ReadListUserKycDocumentsRequest.deserializeBinaryFromReader(msg, reader);
38458
+ };
38459
+
38460
+
38461
+ /**
38462
+ * Deserializes binary data (in protobuf wire format) from the
38463
+ * given reader into the given message object.
38464
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} msg The message object to deserialize into.
38465
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38466
+ * @return {!proto.user.ReadListUserKycDocumentsRequest}
38467
+ */
38468
+ proto.user.ReadListUserKycDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
38469
+ while (reader.nextField()) {
38470
+ if (reader.isEndGroup()) {
38471
+ break;
38472
+ }
38473
+ var field = reader.getFieldNumber();
38474
+ switch (field) {
38475
+ case 1:
38476
+ var value = /** @type {number} */ (reader.readInt32());
38477
+ msg.setLimit(value);
38478
+ break;
38479
+ case 2:
38480
+ var value = /** @type {number} */ (reader.readInt32());
38481
+ msg.setOffset(value);
38482
+ break;
38483
+ case 3:
38484
+ var value = /** @type {string} */ (reader.readString());
38485
+ msg.setOrder(value);
38486
+ break;
38487
+ case 4:
38488
+ var value = /** @type {string} */ (reader.readString());
38489
+ msg.setStatus(value);
38490
+ break;
38491
+ case 5:
38492
+ var value = /** @type {string} */ (reader.readString());
38493
+ msg.setDocumentType(value);
38494
+ break;
38495
+ case 6:
38496
+ var value = /** @type {string} */ (reader.readString());
38497
+ msg.setDocumentSide(value);
38498
+ break;
38499
+ case 7:
38500
+ var value = /** @type {number} */ (reader.readInt32());
38501
+ msg.setUserId(value);
38502
+ break;
38503
+ case 8:
38504
+ var value = /** @type {string} */ (reader.readString());
38505
+ msg.setSource(value);
38506
+ break;
38507
+ case 9:
38508
+ var value = /** @type {number} */ (reader.readInt32());
38509
+ msg.setReviewerId(value);
38510
+ break;
38511
+ case 10:
38512
+ var value = /** @type {number} */ (reader.readInt32());
38513
+ msg.setUploadedBy(value);
38514
+ break;
38515
+ case 11:
38516
+ var value = /** @type {string} */ (reader.readString());
38517
+ msg.setCountry(value);
38518
+ break;
38519
+ case 12:
38520
+ var value = /** @type {string} */ (reader.readString());
38521
+ msg.setCurrency(value);
38522
+ break;
38523
+ case 13:
38524
+ var value = /** @type {string} */ (reader.readString());
38525
+ msg.setEmail(value);
38526
+ break;
38527
+ default:
38528
+ reader.skipField();
38529
+ break;
38530
+ }
38531
+ }
38532
+ return msg;
38533
+ };
38534
+
38535
+
38536
+ /**
38537
+ * Serializes the message to binary data (in protobuf wire format).
38538
+ * @return {!Uint8Array}
38539
+ */
38540
+ proto.user.ReadListUserKycDocumentsRequest.prototype.serializeBinary = function() {
38541
+ var writer = new jspb.BinaryWriter();
38542
+ proto.user.ReadListUserKycDocumentsRequest.serializeBinaryToWriter(this, writer);
38543
+ return writer.getResultBuffer();
38544
+ };
38545
+
38546
+
38547
+ /**
38548
+ * Serializes the given message to binary data (in protobuf wire
38549
+ * format), writing to the given BinaryWriter.
38550
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} message
38551
+ * @param {!jspb.BinaryWriter} writer
38552
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38553
+ */
38554
+ proto.user.ReadListUserKycDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
38555
+ var f = undefined;
38556
+ f = message.getLimit();
38557
+ if (f !== 0) {
38558
+ writer.writeInt32(
38559
+ 1,
38560
+ f
38561
+ );
38562
+ }
38563
+ f = message.getOffset();
38564
+ if (f !== 0) {
38565
+ writer.writeInt32(
38566
+ 2,
38567
+ f
38568
+ );
38569
+ }
38570
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
38571
+ if (f != null) {
38572
+ writer.writeString(
38573
+ 3,
38574
+ f
38575
+ );
38576
+ }
38577
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
38578
+ if (f != null) {
38579
+ writer.writeString(
38580
+ 4,
38581
+ f
38582
+ );
38583
+ }
38584
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
38585
+ if (f != null) {
38586
+ writer.writeString(
38587
+ 5,
38588
+ f
38589
+ );
38590
+ }
38591
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
38592
+ if (f != null) {
38593
+ writer.writeString(
38594
+ 6,
38595
+ f
38596
+ );
38597
+ }
38598
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
38599
+ if (f != null) {
38600
+ writer.writeInt32(
38601
+ 7,
38602
+ f
38603
+ );
38604
+ }
38605
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
38606
+ if (f != null) {
38607
+ writer.writeString(
38608
+ 8,
38609
+ f
38610
+ );
38611
+ }
38612
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
38613
+ if (f != null) {
38614
+ writer.writeInt32(
38615
+ 9,
38616
+ f
38617
+ );
38618
+ }
38619
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
38620
+ if (f != null) {
38621
+ writer.writeInt32(
38622
+ 10,
38623
+ f
38624
+ );
38625
+ }
38626
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
38627
+ if (f != null) {
38628
+ writer.writeString(
38629
+ 11,
38630
+ f
38631
+ );
38632
+ }
38633
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
38634
+ if (f != null) {
38635
+ writer.writeString(
38636
+ 12,
38637
+ f
38638
+ );
38639
+ }
38640
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
38641
+ if (f != null) {
38642
+ writer.writeString(
38643
+ 13,
38644
+ f
38645
+ );
38646
+ }
38647
+ };
38648
+
38649
+
38650
+ /**
38651
+ * optional int32 limit = 1;
38652
+ * @return {number}
38653
+ */
38654
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getLimit = function() {
38655
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38656
+ };
38657
+
38658
+
38659
+ /**
38660
+ * @param {number} value
38661
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38662
+ */
38663
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setLimit = function(value) {
38664
+ return jspb.Message.setProto3IntField(this, 1, value);
38665
+ };
38666
+
38667
+
38668
+ /**
38669
+ * optional int32 offset = 2;
38670
+ * @return {number}
38671
+ */
38672
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getOffset = function() {
38673
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
38674
+ };
38675
+
38676
+
38677
+ /**
38678
+ * @param {number} value
38679
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38680
+ */
38681
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setOffset = function(value) {
38682
+ return jspb.Message.setProto3IntField(this, 2, value);
38683
+ };
38684
+
38685
+
38686
+ /**
38687
+ * optional string order = 3;
38688
+ * @return {string}
38689
+ */
38690
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getOrder = function() {
38691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
38692
+ };
38693
+
38694
+
38695
+ /**
38696
+ * @param {string} value
38697
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38698
+ */
38699
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setOrder = function(value) {
38700
+ return jspb.Message.setField(this, 3, value);
38701
+ };
38702
+
38703
+
38704
+ /**
38705
+ * Clears the field making it undefined.
38706
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38707
+ */
38708
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearOrder = function() {
38709
+ return jspb.Message.setField(this, 3, undefined);
38710
+ };
38711
+
38712
+
38713
+ /**
38714
+ * Returns whether this field is set.
38715
+ * @return {boolean}
38716
+ */
38717
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasOrder = function() {
38718
+ return jspb.Message.getField(this, 3) != null;
38719
+ };
38720
+
38721
+
38722
+ /**
38723
+ * optional string status = 4;
38724
+ * @return {string}
38725
+ */
38726
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getStatus = function() {
38727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
38728
+ };
38729
+
38730
+
38731
+ /**
38732
+ * @param {string} value
38733
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38734
+ */
38735
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setStatus = function(value) {
38736
+ return jspb.Message.setField(this, 4, value);
38737
+ };
38738
+
38739
+
38740
+ /**
38741
+ * Clears the field making it undefined.
38742
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38743
+ */
38744
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearStatus = function() {
38745
+ return jspb.Message.setField(this, 4, undefined);
38746
+ };
38747
+
38748
+
38749
+ /**
38750
+ * Returns whether this field is set.
38751
+ * @return {boolean}
38752
+ */
38753
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasStatus = function() {
38754
+ return jspb.Message.getField(this, 4) != null;
38755
+ };
38756
+
38757
+
38758
+ /**
38759
+ * optional string document_type = 5;
38760
+ * @return {string}
38761
+ */
38762
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getDocumentType = function() {
38763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
38764
+ };
38765
+
38766
+
38767
+ /**
38768
+ * @param {string} value
38769
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38770
+ */
38771
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setDocumentType = function(value) {
38772
+ return jspb.Message.setField(this, 5, value);
38773
+ };
38774
+
38775
+
38776
+ /**
38777
+ * Clears the field making it undefined.
38778
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38779
+ */
38780
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearDocumentType = function() {
38781
+ return jspb.Message.setField(this, 5, undefined);
38782
+ };
38783
+
38784
+
38785
+ /**
38786
+ * Returns whether this field is set.
38787
+ * @return {boolean}
38788
+ */
38789
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasDocumentType = function() {
38790
+ return jspb.Message.getField(this, 5) != null;
38791
+ };
38792
+
38793
+
38794
+ /**
38795
+ * optional string document_side = 6;
38796
+ * @return {string}
38797
+ */
38798
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getDocumentSide = function() {
38799
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
38800
+ };
38801
+
38802
+
38803
+ /**
38804
+ * @param {string} value
38805
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38806
+ */
38807
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setDocumentSide = function(value) {
38808
+ return jspb.Message.setField(this, 6, value);
38809
+ };
38810
+
38811
+
38812
+ /**
38813
+ * Clears the field making it undefined.
38814
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38815
+ */
38816
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearDocumentSide = function() {
38817
+ return jspb.Message.setField(this, 6, undefined);
38818
+ };
38819
+
38820
+
38821
+ /**
38822
+ * Returns whether this field is set.
38823
+ * @return {boolean}
38824
+ */
38825
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasDocumentSide = function() {
38826
+ return jspb.Message.getField(this, 6) != null;
38827
+ };
38828
+
38829
+
38830
+ /**
38831
+ * optional int32 user_id = 7;
38832
+ * @return {number}
38833
+ */
38834
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getUserId = function() {
38835
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
38836
+ };
38837
+
38838
+
38839
+ /**
38840
+ * @param {number} value
38841
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38842
+ */
38843
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setUserId = function(value) {
38844
+ return jspb.Message.setField(this, 7, value);
38845
+ };
38846
+
38847
+
38848
+ /**
38849
+ * Clears the field making it undefined.
38850
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38851
+ */
38852
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearUserId = function() {
38853
+ return jspb.Message.setField(this, 7, undefined);
38854
+ };
38855
+
38856
+
38857
+ /**
38858
+ * Returns whether this field is set.
38859
+ * @return {boolean}
38860
+ */
38861
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasUserId = function() {
38862
+ return jspb.Message.getField(this, 7) != null;
38863
+ };
38864
+
38865
+
38866
+ /**
38867
+ * optional string source = 8;
38868
+ * @return {string}
38869
+ */
38870
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getSource = function() {
38871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
38872
+ };
38873
+
38874
+
38875
+ /**
38876
+ * @param {string} value
38877
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38878
+ */
38879
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setSource = function(value) {
38880
+ return jspb.Message.setField(this, 8, value);
38881
+ };
38882
+
38883
+
38884
+ /**
38885
+ * Clears the field making it undefined.
38886
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38887
+ */
38888
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearSource = function() {
38889
+ return jspb.Message.setField(this, 8, undefined);
38890
+ };
38891
+
38892
+
38893
+ /**
38894
+ * Returns whether this field is set.
38895
+ * @return {boolean}
38896
+ */
38897
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasSource = function() {
38898
+ return jspb.Message.getField(this, 8) != null;
38899
+ };
38900
+
38901
+
38902
+ /**
38903
+ * optional int32 reviewer_id = 9;
38904
+ * @return {number}
38905
+ */
38906
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getReviewerId = function() {
38907
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
38908
+ };
38909
+
38910
+
38911
+ /**
38912
+ * @param {number} value
38913
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38914
+ */
38915
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setReviewerId = function(value) {
38916
+ return jspb.Message.setField(this, 9, value);
38917
+ };
38918
+
38919
+
38920
+ /**
38921
+ * Clears the field making it undefined.
38922
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38923
+ */
38924
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearReviewerId = function() {
38925
+ return jspb.Message.setField(this, 9, undefined);
38926
+ };
38927
+
38928
+
38929
+ /**
38930
+ * Returns whether this field is set.
38931
+ * @return {boolean}
38932
+ */
38933
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasReviewerId = function() {
38934
+ return jspb.Message.getField(this, 9) != null;
38935
+ };
38936
+
38937
+
38938
+ /**
38939
+ * optional int32 uploaded_by = 10;
38940
+ * @return {number}
38941
+ */
38942
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getUploadedBy = function() {
38943
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
38944
+ };
38945
+
38946
+
38947
+ /**
38948
+ * @param {number} value
38949
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38950
+ */
38951
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setUploadedBy = function(value) {
38952
+ return jspb.Message.setField(this, 10, value);
38953
+ };
38954
+
38955
+
38956
+ /**
38957
+ * Clears the field making it undefined.
38958
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38959
+ */
38960
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearUploadedBy = function() {
38961
+ return jspb.Message.setField(this, 10, undefined);
38962
+ };
38963
+
38964
+
38965
+ /**
38966
+ * Returns whether this field is set.
38967
+ * @return {boolean}
38968
+ */
38969
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasUploadedBy = function() {
38970
+ return jspb.Message.getField(this, 10) != null;
38971
+ };
38972
+
38973
+
38974
+ /**
38975
+ * optional string country = 11;
38976
+ * @return {string}
38977
+ */
38978
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getCountry = function() {
38979
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
38980
+ };
38981
+
38982
+
38983
+ /**
38984
+ * @param {string} value
38985
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38986
+ */
38987
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setCountry = function(value) {
38988
+ return jspb.Message.setField(this, 11, value);
38989
+ };
38990
+
38991
+
38992
+ /**
38993
+ * Clears the field making it undefined.
38994
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38995
+ */
38996
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearCountry = function() {
38997
+ return jspb.Message.setField(this, 11, undefined);
38998
+ };
38999
+
39000
+
39001
+ /**
39002
+ * Returns whether this field is set.
39003
+ * @return {boolean}
39004
+ */
39005
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasCountry = function() {
39006
+ return jspb.Message.getField(this, 11) != null;
39007
+ };
39008
+
39009
+
39010
+ /**
39011
+ * optional string currency = 12;
39012
+ * @return {string}
39013
+ */
39014
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getCurrency = function() {
39015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
39016
+ };
39017
+
39018
+
39019
+ /**
39020
+ * @param {string} value
39021
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39022
+ */
39023
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setCurrency = function(value) {
39024
+ return jspb.Message.setField(this, 12, value);
39025
+ };
39026
+
39027
+
39028
+ /**
39029
+ * Clears the field making it undefined.
39030
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39031
+ */
39032
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearCurrency = function() {
39033
+ return jspb.Message.setField(this, 12, undefined);
39034
+ };
39035
+
39036
+
39037
+ /**
39038
+ * Returns whether this field is set.
39039
+ * @return {boolean}
39040
+ */
39041
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasCurrency = function() {
39042
+ return jspb.Message.getField(this, 12) != null;
39043
+ };
39044
+
39045
+
39046
+ /**
39047
+ * optional string email = 13;
39048
+ * @return {string}
39049
+ */
39050
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getEmail = function() {
39051
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
39052
+ };
39053
+
39054
+
39055
+ /**
39056
+ * @param {string} value
39057
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39058
+ */
39059
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setEmail = function(value) {
39060
+ return jspb.Message.setField(this, 13, value);
39061
+ };
39062
+
39063
+
39064
+ /**
39065
+ * Clears the field making it undefined.
39066
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39067
+ */
39068
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearEmail = function() {
39069
+ return jspb.Message.setField(this, 13, undefined);
39070
+ };
39071
+
39072
+
39073
+ /**
39074
+ * Returns whether this field is set.
39075
+ * @return {boolean}
39076
+ */
39077
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasEmail = function() {
39078
+ return jspb.Message.getField(this, 13) != null;
39079
+ };
39080
+
39081
+
39082
+
39083
+
39084
+
39085
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39086
+ /**
39087
+ * Creates an object representation of this proto.
39088
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39089
+ * Optional fields that are not set will be set to undefined.
39090
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39091
+ * For the list of reserved names please see:
39092
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39093
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39094
+ * JSPB instance for transitional soy proto support:
39095
+ * http://goto/soy-param-migration
39096
+ * @return {!Object}
39097
+ */
39098
+ proto.user.UserKycDocumentListItem.prototype.toObject = function(opt_includeInstance) {
39099
+ return proto.user.UserKycDocumentListItem.toObject(opt_includeInstance, this);
39100
+ };
39101
+
39102
+
39103
+ /**
39104
+ * Static version of the {@see toObject} method.
39105
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39106
+ * the JSPB instance for transitional soy proto support:
39107
+ * http://goto/soy-param-migration
39108
+ * @param {!proto.user.UserKycDocumentListItem} msg The msg instance to transform.
39109
+ * @return {!Object}
39110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39111
+ */
39112
+ proto.user.UserKycDocumentListItem.toObject = function(includeInstance, msg) {
39113
+ var f, obj = {
39114
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
39115
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
39116
+ documentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
39117
+ documentSide: jspb.Message.getFieldWithDefault(msg, 4, ""),
39118
+ status: jspb.Message.getFieldWithDefault(msg, 5, ""),
39119
+ reason: jspb.Message.getFieldWithDefault(msg, 6, ""),
39120
+ source: jspb.Message.getFieldWithDefault(msg, 7, ""),
39121
+ reviewerId: jspb.Message.getFieldWithDefault(msg, 8, 0),
39122
+ uploadedBy: jspb.Message.getFieldWithDefault(msg, 9, 0),
39123
+ storageProvider: jspb.Message.getFieldWithDefault(msg, 10, ""),
39124
+ storageRef: jspb.Message.getFieldWithDefault(msg, 11, ""),
39125
+ fileName: jspb.Message.getFieldWithDefault(msg, 12, ""),
39126
+ mimeType: jspb.Message.getFieldWithDefault(msg, 13, ""),
39127
+ fileSize: jspb.Message.getFieldWithDefault(msg, 14, 0),
39128
+ createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
39129
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
39130
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 17, ""),
39131
+ email: jspb.Message.getFieldWithDefault(msg, 18, ""),
39132
+ country: jspb.Message.getFieldWithDefault(msg, 19, ""),
39133
+ currency: jspb.Message.getFieldWithDefault(msg, 20, ""),
39134
+ kycStatus: jspb.Message.getFieldWithDefault(msg, 21, ""),
39135
+ riskLevel: jspb.Message.getFieldWithDefault(msg, 22, ""),
39136
+ uploadedByEmail: jspb.Message.getFieldWithDefault(msg, 23, ""),
39137
+ reviewerEmail: jspb.Message.getFieldWithDefault(msg, 24, "")
39138
+ };
39139
+
39140
+ if (includeInstance) {
39141
+ obj.$jspbMessageInstance = msg;
39142
+ }
39143
+ return obj;
39144
+ };
39145
+ }
39146
+
39147
+
39148
+ /**
39149
+ * Deserializes binary data (in protobuf wire format).
39150
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39151
+ * @return {!proto.user.UserKycDocumentListItem}
39152
+ */
39153
+ proto.user.UserKycDocumentListItem.deserializeBinary = function(bytes) {
39154
+ var reader = new jspb.BinaryReader(bytes);
39155
+ var msg = new proto.user.UserKycDocumentListItem;
39156
+ return proto.user.UserKycDocumentListItem.deserializeBinaryFromReader(msg, reader);
39157
+ };
39158
+
39159
+
39160
+ /**
39161
+ * Deserializes binary data (in protobuf wire format) from the
39162
+ * given reader into the given message object.
39163
+ * @param {!proto.user.UserKycDocumentListItem} msg The message object to deserialize into.
39164
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39165
+ * @return {!proto.user.UserKycDocumentListItem}
39166
+ */
39167
+ proto.user.UserKycDocumentListItem.deserializeBinaryFromReader = function(msg, reader) {
39168
+ while (reader.nextField()) {
39169
+ if (reader.isEndGroup()) {
39170
+ break;
39171
+ }
39172
+ var field = reader.getFieldNumber();
39173
+ switch (field) {
39174
+ case 1:
39175
+ var value = /** @type {number} */ (reader.readInt32());
39176
+ msg.setId(value);
39177
+ break;
39178
+ case 2:
39179
+ var value = /** @type {number} */ (reader.readInt32());
39180
+ msg.setUserId(value);
39181
+ break;
39182
+ case 3:
39183
+ var value = /** @type {string} */ (reader.readString());
39184
+ msg.setDocumentType(value);
39185
+ break;
39186
+ case 4:
39187
+ var value = /** @type {string} */ (reader.readString());
39188
+ msg.setDocumentSide(value);
39189
+ break;
39190
+ case 5:
39191
+ var value = /** @type {string} */ (reader.readString());
39192
+ msg.setStatus(value);
39193
+ break;
39194
+ case 6:
39195
+ var value = /** @type {string} */ (reader.readString());
39196
+ msg.setReason(value);
39197
+ break;
39198
+ case 7:
39199
+ var value = /** @type {string} */ (reader.readString());
39200
+ msg.setSource(value);
39201
+ break;
39202
+ case 8:
39203
+ var value = /** @type {number} */ (reader.readInt32());
39204
+ msg.setReviewerId(value);
39205
+ break;
39206
+ case 9:
39207
+ var value = /** @type {number} */ (reader.readInt32());
39208
+ msg.setUploadedBy(value);
39209
+ break;
39210
+ case 10:
39211
+ var value = /** @type {string} */ (reader.readString());
39212
+ msg.setStorageProvider(value);
39213
+ break;
39214
+ case 11:
39215
+ var value = /** @type {string} */ (reader.readString());
39216
+ msg.setStorageRef(value);
39217
+ break;
39218
+ case 12:
39219
+ var value = /** @type {string} */ (reader.readString());
39220
+ msg.setFileName(value);
39221
+ break;
39222
+ case 13:
39223
+ var value = /** @type {string} */ (reader.readString());
39224
+ msg.setMimeType(value);
39225
+ break;
39226
+ case 14:
39227
+ var value = /** @type {number} */ (reader.readInt64());
39228
+ msg.setFileSize(value);
39229
+ break;
39230
+ case 15:
39231
+ var value = /** @type {string} */ (reader.readString());
39232
+ msg.setCreatedAt(value);
39233
+ break;
39234
+ case 16:
39235
+ var value = /** @type {string} */ (reader.readString());
39236
+ msg.setUpdatedAt(value);
39237
+ break;
39238
+ case 17:
39239
+ var value = /** @type {string} */ (reader.readString());
39240
+ msg.setUserPublicId(value);
39241
+ break;
39242
+ case 18:
39243
+ var value = /** @type {string} */ (reader.readString());
39244
+ msg.setEmail(value);
39245
+ break;
39246
+ case 19:
39247
+ var value = /** @type {string} */ (reader.readString());
39248
+ msg.setCountry(value);
39249
+ break;
39250
+ case 20:
39251
+ var value = /** @type {string} */ (reader.readString());
39252
+ msg.setCurrency(value);
39253
+ break;
39254
+ case 21:
39255
+ var value = /** @type {string} */ (reader.readString());
39256
+ msg.setKycStatus(value);
39257
+ break;
39258
+ case 22:
39259
+ var value = /** @type {string} */ (reader.readString());
39260
+ msg.setRiskLevel(value);
39261
+ break;
39262
+ case 23:
39263
+ var value = /** @type {string} */ (reader.readString());
39264
+ msg.setUploadedByEmail(value);
39265
+ break;
39266
+ case 24:
39267
+ var value = /** @type {string} */ (reader.readString());
39268
+ msg.setReviewerEmail(value);
39269
+ break;
39270
+ default:
39271
+ reader.skipField();
39272
+ break;
39273
+ }
39274
+ }
39275
+ return msg;
39276
+ };
39277
+
39278
+
39279
+ /**
39280
+ * Serializes the message to binary data (in protobuf wire format).
39281
+ * @return {!Uint8Array}
39282
+ */
39283
+ proto.user.UserKycDocumentListItem.prototype.serializeBinary = function() {
39284
+ var writer = new jspb.BinaryWriter();
39285
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter(this, writer);
39286
+ return writer.getResultBuffer();
39287
+ };
39288
+
39289
+
39290
+ /**
39291
+ * Serializes the given message to binary data (in protobuf wire
39292
+ * format), writing to the given BinaryWriter.
39293
+ * @param {!proto.user.UserKycDocumentListItem} message
39294
+ * @param {!jspb.BinaryWriter} writer
39295
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39296
+ */
39297
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter = function(message, writer) {
39298
+ var f = undefined;
39299
+ f = message.getId();
39300
+ if (f !== 0) {
39301
+ writer.writeInt32(
39302
+ 1,
39303
+ f
39304
+ );
39305
+ }
39306
+ f = message.getUserId();
39307
+ if (f !== 0) {
39308
+ writer.writeInt32(
39309
+ 2,
39310
+ f
39311
+ );
39312
+ }
39313
+ f = message.getDocumentType();
39314
+ if (f.length > 0) {
39315
+ writer.writeString(
39316
+ 3,
39317
+ f
39318
+ );
39319
+ }
39320
+ f = message.getDocumentSide();
39321
+ if (f.length > 0) {
39322
+ writer.writeString(
39323
+ 4,
39324
+ f
39325
+ );
39326
+ }
39327
+ f = message.getStatus();
39328
+ if (f.length > 0) {
39329
+ writer.writeString(
39330
+ 5,
39331
+ f
39332
+ );
39333
+ }
39334
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
39335
+ if (f != null) {
39336
+ writer.writeString(
39337
+ 6,
39338
+ f
39339
+ );
39340
+ }
39341
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
39342
+ if (f != null) {
39343
+ writer.writeString(
39344
+ 7,
39345
+ f
39346
+ );
39347
+ }
39348
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
39349
+ if (f != null) {
39350
+ writer.writeInt32(
39351
+ 8,
39352
+ f
39353
+ );
39354
+ }
39355
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
39356
+ if (f != null) {
39357
+ writer.writeInt32(
39358
+ 9,
39359
+ f
39360
+ );
39361
+ }
39362
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
39363
+ if (f != null) {
39364
+ writer.writeString(
39365
+ 10,
39366
+ f
39367
+ );
39368
+ }
39369
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
39370
+ if (f != null) {
39371
+ writer.writeString(
39372
+ 11,
39373
+ f
39374
+ );
39375
+ }
39376
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
39377
+ if (f != null) {
39378
+ writer.writeString(
39379
+ 12,
39380
+ f
39381
+ );
39382
+ }
39383
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
39384
+ if (f != null) {
39385
+ writer.writeString(
39386
+ 13,
39387
+ f
39388
+ );
39389
+ }
39390
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
39391
+ if (f != null) {
39392
+ writer.writeInt64(
39393
+ 14,
39394
+ f
39395
+ );
39396
+ }
39397
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
39398
+ if (f != null) {
39399
+ writer.writeString(
39400
+ 15,
39401
+ f
39402
+ );
39403
+ }
39404
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
39405
+ if (f != null) {
39406
+ writer.writeString(
39407
+ 16,
39408
+ f
39409
+ );
39410
+ }
39411
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
39412
+ if (f != null) {
39413
+ writer.writeString(
39414
+ 17,
39415
+ f
39416
+ );
39417
+ }
39418
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
39419
+ if (f != null) {
39420
+ writer.writeString(
39421
+ 18,
39422
+ f
39423
+ );
39424
+ }
39425
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
39426
+ if (f != null) {
39427
+ writer.writeString(
39428
+ 19,
39429
+ f
39430
+ );
39431
+ }
39432
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
39433
+ if (f != null) {
39434
+ writer.writeString(
39435
+ 20,
39436
+ f
39437
+ );
39438
+ }
39439
+ f = /** @type {string} */ (jspb.Message.getField(message, 21));
39440
+ if (f != null) {
39441
+ writer.writeString(
39442
+ 21,
39443
+ f
39444
+ );
39445
+ }
39446
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
39447
+ if (f != null) {
39448
+ writer.writeString(
39449
+ 22,
39450
+ f
39451
+ );
39452
+ }
39453
+ f = /** @type {string} */ (jspb.Message.getField(message, 23));
39454
+ if (f != null) {
39455
+ writer.writeString(
39456
+ 23,
39457
+ f
39458
+ );
39459
+ }
39460
+ f = /** @type {string} */ (jspb.Message.getField(message, 24));
39461
+ if (f != null) {
39462
+ writer.writeString(
39463
+ 24,
39464
+ f
39465
+ );
39466
+ }
39467
+ };
39468
+
39469
+
39470
+ /**
39471
+ * optional int32 id = 1;
39472
+ * @return {number}
39473
+ */
39474
+ proto.user.UserKycDocumentListItem.prototype.getId = function() {
39475
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39476
+ };
39477
+
39478
+
39479
+ /**
39480
+ * @param {number} value
39481
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39482
+ */
39483
+ proto.user.UserKycDocumentListItem.prototype.setId = function(value) {
39484
+ return jspb.Message.setProto3IntField(this, 1, value);
39485
+ };
39486
+
39487
+
39488
+ /**
39489
+ * optional int32 user_id = 2;
39490
+ * @return {number}
39491
+ */
39492
+ proto.user.UserKycDocumentListItem.prototype.getUserId = function() {
39493
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
39494
+ };
39495
+
39496
+
39497
+ /**
39498
+ * @param {number} value
39499
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39500
+ */
39501
+ proto.user.UserKycDocumentListItem.prototype.setUserId = function(value) {
39502
+ return jspb.Message.setProto3IntField(this, 2, value);
39503
+ };
39504
+
39505
+
39506
+ /**
39507
+ * optional string document_type = 3;
39508
+ * @return {string}
39509
+ */
39510
+ proto.user.UserKycDocumentListItem.prototype.getDocumentType = function() {
39511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
39512
+ };
39513
+
39514
+
39515
+ /**
39516
+ * @param {string} value
39517
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39518
+ */
39519
+ proto.user.UserKycDocumentListItem.prototype.setDocumentType = function(value) {
39520
+ return jspb.Message.setProto3StringField(this, 3, value);
39521
+ };
39522
+
39523
+
39524
+ /**
39525
+ * optional string document_side = 4;
39526
+ * @return {string}
39527
+ */
39528
+ proto.user.UserKycDocumentListItem.prototype.getDocumentSide = function() {
39529
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
39530
+ };
39531
+
39532
+
39533
+ /**
39534
+ * @param {string} value
39535
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39536
+ */
39537
+ proto.user.UserKycDocumentListItem.prototype.setDocumentSide = function(value) {
39538
+ return jspb.Message.setProto3StringField(this, 4, value);
39539
+ };
39540
+
39541
+
39542
+ /**
39543
+ * optional string status = 5;
39544
+ * @return {string}
39545
+ */
39546
+ proto.user.UserKycDocumentListItem.prototype.getStatus = function() {
39547
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
39548
+ };
39549
+
39550
+
39551
+ /**
39552
+ * @param {string} value
39553
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39554
+ */
39555
+ proto.user.UserKycDocumentListItem.prototype.setStatus = function(value) {
39556
+ return jspb.Message.setProto3StringField(this, 5, value);
39557
+ };
39558
+
39559
+
39560
+ /**
39561
+ * optional string reason = 6;
39562
+ * @return {string}
39563
+ */
39564
+ proto.user.UserKycDocumentListItem.prototype.getReason = function() {
39565
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
39566
+ };
39567
+
39568
+
39569
+ /**
39570
+ * @param {string} value
39571
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39572
+ */
39573
+ proto.user.UserKycDocumentListItem.prototype.setReason = function(value) {
39574
+ return jspb.Message.setField(this, 6, value);
39575
+ };
39576
+
39577
+
39578
+ /**
39579
+ * Clears the field making it undefined.
39580
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39581
+ */
39582
+ proto.user.UserKycDocumentListItem.prototype.clearReason = function() {
39583
+ return jspb.Message.setField(this, 6, undefined);
39584
+ };
39585
+
39586
+
39587
+ /**
39588
+ * Returns whether this field is set.
39589
+ * @return {boolean}
39590
+ */
39591
+ proto.user.UserKycDocumentListItem.prototype.hasReason = function() {
39592
+ return jspb.Message.getField(this, 6) != null;
39593
+ };
39594
+
39595
+
39596
+ /**
39597
+ * optional string source = 7;
39598
+ * @return {string}
39599
+ */
39600
+ proto.user.UserKycDocumentListItem.prototype.getSource = function() {
39601
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
39602
+ };
39603
+
39604
+
39605
+ /**
39606
+ * @param {string} value
39607
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39608
+ */
39609
+ proto.user.UserKycDocumentListItem.prototype.setSource = function(value) {
39610
+ return jspb.Message.setField(this, 7, value);
39611
+ };
39612
+
39613
+
39614
+ /**
39615
+ * Clears the field making it undefined.
39616
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39617
+ */
39618
+ proto.user.UserKycDocumentListItem.prototype.clearSource = function() {
39619
+ return jspb.Message.setField(this, 7, undefined);
39620
+ };
39621
+
39622
+
39623
+ /**
39624
+ * Returns whether this field is set.
39625
+ * @return {boolean}
39626
+ */
39627
+ proto.user.UserKycDocumentListItem.prototype.hasSource = function() {
39628
+ return jspb.Message.getField(this, 7) != null;
39629
+ };
39630
+
39631
+
39632
+ /**
39633
+ * optional int32 reviewer_id = 8;
39634
+ * @return {number}
39635
+ */
39636
+ proto.user.UserKycDocumentListItem.prototype.getReviewerId = function() {
39637
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
39638
+ };
39639
+
39640
+
39641
+ /**
39642
+ * @param {number} value
39643
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39644
+ */
39645
+ proto.user.UserKycDocumentListItem.prototype.setReviewerId = function(value) {
39646
+ return jspb.Message.setField(this, 8, value);
39647
+ };
39648
+
39649
+
39650
+ /**
39651
+ * Clears the field making it undefined.
39652
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39653
+ */
39654
+ proto.user.UserKycDocumentListItem.prototype.clearReviewerId = function() {
39655
+ return jspb.Message.setField(this, 8, undefined);
39656
+ };
39657
+
39658
+
39659
+ /**
39660
+ * Returns whether this field is set.
39661
+ * @return {boolean}
39662
+ */
39663
+ proto.user.UserKycDocumentListItem.prototype.hasReviewerId = function() {
39664
+ return jspb.Message.getField(this, 8) != null;
39665
+ };
39666
+
39667
+
39668
+ /**
39669
+ * optional int32 uploaded_by = 9;
39670
+ * @return {number}
39671
+ */
39672
+ proto.user.UserKycDocumentListItem.prototype.getUploadedBy = function() {
39673
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
39674
+ };
39675
+
39676
+
39677
+ /**
39678
+ * @param {number} value
39679
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39680
+ */
39681
+ proto.user.UserKycDocumentListItem.prototype.setUploadedBy = function(value) {
39682
+ return jspb.Message.setField(this, 9, value);
39683
+ };
39684
+
39685
+
39686
+ /**
39687
+ * Clears the field making it undefined.
39688
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39689
+ */
39690
+ proto.user.UserKycDocumentListItem.prototype.clearUploadedBy = function() {
39691
+ return jspb.Message.setField(this, 9, undefined);
39692
+ };
39693
+
39694
+
39695
+ /**
39696
+ * Returns whether this field is set.
39697
+ * @return {boolean}
39698
+ */
39699
+ proto.user.UserKycDocumentListItem.prototype.hasUploadedBy = function() {
39700
+ return jspb.Message.getField(this, 9) != null;
39701
+ };
39702
+
39703
+
39704
+ /**
39705
+ * optional string storage_provider = 10;
39706
+ * @return {string}
39707
+ */
39708
+ proto.user.UserKycDocumentListItem.prototype.getStorageProvider = function() {
39709
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
39710
+ };
39711
+
39712
+
39713
+ /**
39714
+ * @param {string} value
39715
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39716
+ */
39717
+ proto.user.UserKycDocumentListItem.prototype.setStorageProvider = function(value) {
39718
+ return jspb.Message.setField(this, 10, value);
39719
+ };
39720
+
39721
+
39722
+ /**
39723
+ * Clears the field making it undefined.
39724
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39725
+ */
39726
+ proto.user.UserKycDocumentListItem.prototype.clearStorageProvider = function() {
39727
+ return jspb.Message.setField(this, 10, undefined);
39728
+ };
39729
+
39730
+
39731
+ /**
39732
+ * Returns whether this field is set.
39733
+ * @return {boolean}
39734
+ */
39735
+ proto.user.UserKycDocumentListItem.prototype.hasStorageProvider = function() {
39736
+ return jspb.Message.getField(this, 10) != null;
39737
+ };
39738
+
39739
+
39740
+ /**
39741
+ * optional string storage_ref = 11;
39742
+ * @return {string}
39743
+ */
39744
+ proto.user.UserKycDocumentListItem.prototype.getStorageRef = function() {
39745
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
39746
+ };
39747
+
39748
+
39749
+ /**
39750
+ * @param {string} value
39751
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39752
+ */
39753
+ proto.user.UserKycDocumentListItem.prototype.setStorageRef = function(value) {
39754
+ return jspb.Message.setField(this, 11, value);
39755
+ };
39756
+
39757
+
39758
+ /**
39759
+ * Clears the field making it undefined.
39760
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39761
+ */
39762
+ proto.user.UserKycDocumentListItem.prototype.clearStorageRef = function() {
39763
+ return jspb.Message.setField(this, 11, undefined);
39764
+ };
39765
+
39766
+
39767
+ /**
39768
+ * Returns whether this field is set.
39769
+ * @return {boolean}
39770
+ */
39771
+ proto.user.UserKycDocumentListItem.prototype.hasStorageRef = function() {
39772
+ return jspb.Message.getField(this, 11) != null;
39773
+ };
39774
+
39775
+
39776
+ /**
39777
+ * optional string file_name = 12;
39778
+ * @return {string}
39779
+ */
39780
+ proto.user.UserKycDocumentListItem.prototype.getFileName = function() {
39781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
39782
+ };
39783
+
39784
+
39785
+ /**
39786
+ * @param {string} value
39787
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39788
+ */
39789
+ proto.user.UserKycDocumentListItem.prototype.setFileName = function(value) {
39790
+ return jspb.Message.setField(this, 12, value);
39791
+ };
39792
+
39793
+
39794
+ /**
39795
+ * Clears the field making it undefined.
39796
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39797
+ */
39798
+ proto.user.UserKycDocumentListItem.prototype.clearFileName = function() {
39799
+ return jspb.Message.setField(this, 12, undefined);
39800
+ };
39801
+
39802
+
39803
+ /**
39804
+ * Returns whether this field is set.
39805
+ * @return {boolean}
39806
+ */
39807
+ proto.user.UserKycDocumentListItem.prototype.hasFileName = function() {
39808
+ return jspb.Message.getField(this, 12) != null;
39809
+ };
39810
+
39811
+
39812
+ /**
39813
+ * optional string mime_type = 13;
39814
+ * @return {string}
39815
+ */
39816
+ proto.user.UserKycDocumentListItem.prototype.getMimeType = function() {
39817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
39818
+ };
39819
+
39820
+
39821
+ /**
39822
+ * @param {string} value
39823
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39824
+ */
39825
+ proto.user.UserKycDocumentListItem.prototype.setMimeType = function(value) {
39826
+ return jspb.Message.setField(this, 13, value);
39827
+ };
39828
+
39829
+
39830
+ /**
39831
+ * Clears the field making it undefined.
39832
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39833
+ */
39834
+ proto.user.UserKycDocumentListItem.prototype.clearMimeType = function() {
39835
+ return jspb.Message.setField(this, 13, undefined);
39836
+ };
39837
+
39838
+
39839
+ /**
39840
+ * Returns whether this field is set.
39841
+ * @return {boolean}
39842
+ */
39843
+ proto.user.UserKycDocumentListItem.prototype.hasMimeType = function() {
39844
+ return jspb.Message.getField(this, 13) != null;
39845
+ };
39846
+
39847
+
39848
+ /**
39849
+ * optional int64 file_size = 14;
39850
+ * @return {number}
39851
+ */
39852
+ proto.user.UserKycDocumentListItem.prototype.getFileSize = function() {
39853
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
39854
+ };
39855
+
39856
+
39857
+ /**
39858
+ * @param {number} value
39859
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39860
+ */
39861
+ proto.user.UserKycDocumentListItem.prototype.setFileSize = function(value) {
39862
+ return jspb.Message.setField(this, 14, value);
39863
+ };
39864
+
39865
+
39866
+ /**
39867
+ * Clears the field making it undefined.
39868
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39869
+ */
39870
+ proto.user.UserKycDocumentListItem.prototype.clearFileSize = function() {
39871
+ return jspb.Message.setField(this, 14, undefined);
39872
+ };
39873
+
39874
+
39875
+ /**
39876
+ * Returns whether this field is set.
39877
+ * @return {boolean}
39878
+ */
39879
+ proto.user.UserKycDocumentListItem.prototype.hasFileSize = function() {
39880
+ return jspb.Message.getField(this, 14) != null;
39881
+ };
39882
+
39883
+
39884
+ /**
39885
+ * optional string created_at = 15;
39886
+ * @return {string}
39887
+ */
39888
+ proto.user.UserKycDocumentListItem.prototype.getCreatedAt = function() {
39889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
39890
+ };
39891
+
39892
+
39893
+ /**
39894
+ * @param {string} value
39895
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39896
+ */
39897
+ proto.user.UserKycDocumentListItem.prototype.setCreatedAt = function(value) {
39898
+ return jspb.Message.setField(this, 15, value);
39899
+ };
39900
+
39901
+
39902
+ /**
39903
+ * Clears the field making it undefined.
39904
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39905
+ */
39906
+ proto.user.UserKycDocumentListItem.prototype.clearCreatedAt = function() {
39907
+ return jspb.Message.setField(this, 15, undefined);
39908
+ };
39909
+
39910
+
39911
+ /**
39912
+ * Returns whether this field is set.
39913
+ * @return {boolean}
39914
+ */
39915
+ proto.user.UserKycDocumentListItem.prototype.hasCreatedAt = function() {
39916
+ return jspb.Message.getField(this, 15) != null;
39917
+ };
39918
+
39919
+
39920
+ /**
39921
+ * optional string updated_at = 16;
39922
+ * @return {string}
39923
+ */
39924
+ proto.user.UserKycDocumentListItem.prototype.getUpdatedAt = function() {
39925
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
39926
+ };
39927
+
39928
+
39929
+ /**
39930
+ * @param {string} value
39931
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39932
+ */
39933
+ proto.user.UserKycDocumentListItem.prototype.setUpdatedAt = function(value) {
39934
+ return jspb.Message.setField(this, 16, value);
39935
+ };
39936
+
39937
+
39938
+ /**
39939
+ * Clears the field making it undefined.
39940
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39941
+ */
39942
+ proto.user.UserKycDocumentListItem.prototype.clearUpdatedAt = function() {
39943
+ return jspb.Message.setField(this, 16, undefined);
39944
+ };
39945
+
39946
+
39947
+ /**
39948
+ * Returns whether this field is set.
39949
+ * @return {boolean}
39950
+ */
39951
+ proto.user.UserKycDocumentListItem.prototype.hasUpdatedAt = function() {
39952
+ return jspb.Message.getField(this, 16) != null;
39953
+ };
39954
+
39955
+
39956
+ /**
39957
+ * optional string user_public_id = 17;
39958
+ * @return {string}
39959
+ */
39960
+ proto.user.UserKycDocumentListItem.prototype.getUserPublicId = function() {
39961
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
39962
+ };
39963
+
39964
+
39965
+ /**
39966
+ * @param {string} value
39967
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39968
+ */
39969
+ proto.user.UserKycDocumentListItem.prototype.setUserPublicId = function(value) {
39970
+ return jspb.Message.setField(this, 17, value);
39971
+ };
39972
+
39973
+
39974
+ /**
39975
+ * Clears the field making it undefined.
39976
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39977
+ */
39978
+ proto.user.UserKycDocumentListItem.prototype.clearUserPublicId = function() {
39979
+ return jspb.Message.setField(this, 17, undefined);
39980
+ };
39981
+
39982
+
39983
+ /**
39984
+ * Returns whether this field is set.
39985
+ * @return {boolean}
39986
+ */
39987
+ proto.user.UserKycDocumentListItem.prototype.hasUserPublicId = function() {
39988
+ return jspb.Message.getField(this, 17) != null;
39989
+ };
39990
+
39991
+
39992
+ /**
39993
+ * optional string email = 18;
39994
+ * @return {string}
39995
+ */
39996
+ proto.user.UserKycDocumentListItem.prototype.getEmail = function() {
39997
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
39998
+ };
39999
+
40000
+
40001
+ /**
40002
+ * @param {string} value
40003
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40004
+ */
40005
+ proto.user.UserKycDocumentListItem.prototype.setEmail = function(value) {
40006
+ return jspb.Message.setField(this, 18, value);
40007
+ };
40008
+
40009
+
40010
+ /**
40011
+ * Clears the field making it undefined.
40012
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40013
+ */
40014
+ proto.user.UserKycDocumentListItem.prototype.clearEmail = function() {
40015
+ return jspb.Message.setField(this, 18, undefined);
40016
+ };
40017
+
40018
+
40019
+ /**
40020
+ * Returns whether this field is set.
40021
+ * @return {boolean}
40022
+ */
40023
+ proto.user.UserKycDocumentListItem.prototype.hasEmail = function() {
40024
+ return jspb.Message.getField(this, 18) != null;
40025
+ };
40026
+
40027
+
40028
+ /**
40029
+ * optional string country = 19;
40030
+ * @return {string}
40031
+ */
40032
+ proto.user.UserKycDocumentListItem.prototype.getCountry = function() {
40033
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
40034
+ };
40035
+
40036
+
40037
+ /**
40038
+ * @param {string} value
40039
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40040
+ */
40041
+ proto.user.UserKycDocumentListItem.prototype.setCountry = function(value) {
40042
+ return jspb.Message.setField(this, 19, value);
40043
+ };
40044
+
40045
+
40046
+ /**
40047
+ * Clears the field making it undefined.
40048
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40049
+ */
40050
+ proto.user.UserKycDocumentListItem.prototype.clearCountry = function() {
40051
+ return jspb.Message.setField(this, 19, undefined);
40052
+ };
40053
+
40054
+
40055
+ /**
40056
+ * Returns whether this field is set.
40057
+ * @return {boolean}
40058
+ */
40059
+ proto.user.UserKycDocumentListItem.prototype.hasCountry = function() {
40060
+ return jspb.Message.getField(this, 19) != null;
40061
+ };
40062
+
40063
+
40064
+ /**
40065
+ * optional string currency = 20;
40066
+ * @return {string}
40067
+ */
40068
+ proto.user.UserKycDocumentListItem.prototype.getCurrency = function() {
40069
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
40070
+ };
40071
+
40072
+
40073
+ /**
40074
+ * @param {string} value
40075
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40076
+ */
40077
+ proto.user.UserKycDocumentListItem.prototype.setCurrency = function(value) {
40078
+ return jspb.Message.setField(this, 20, value);
40079
+ };
40080
+
40081
+
40082
+ /**
40083
+ * Clears the field making it undefined.
40084
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40085
+ */
40086
+ proto.user.UserKycDocumentListItem.prototype.clearCurrency = function() {
40087
+ return jspb.Message.setField(this, 20, undefined);
40088
+ };
40089
+
40090
+
40091
+ /**
40092
+ * Returns whether this field is set.
40093
+ * @return {boolean}
40094
+ */
40095
+ proto.user.UserKycDocumentListItem.prototype.hasCurrency = function() {
40096
+ return jspb.Message.getField(this, 20) != null;
40097
+ };
40098
+
40099
+
40100
+ /**
40101
+ * optional string kyc_status = 21;
40102
+ * @return {string}
40103
+ */
40104
+ proto.user.UserKycDocumentListItem.prototype.getKycStatus = function() {
40105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
40106
+ };
40107
+
40108
+
40109
+ /**
40110
+ * @param {string} value
40111
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40112
+ */
40113
+ proto.user.UserKycDocumentListItem.prototype.setKycStatus = function(value) {
40114
+ return jspb.Message.setField(this, 21, value);
40115
+ };
40116
+
40117
+
40118
+ /**
40119
+ * Clears the field making it undefined.
40120
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40121
+ */
40122
+ proto.user.UserKycDocumentListItem.prototype.clearKycStatus = function() {
40123
+ return jspb.Message.setField(this, 21, undefined);
40124
+ };
40125
+
40126
+
40127
+ /**
40128
+ * Returns whether this field is set.
40129
+ * @return {boolean}
40130
+ */
40131
+ proto.user.UserKycDocumentListItem.prototype.hasKycStatus = function() {
40132
+ return jspb.Message.getField(this, 21) != null;
40133
+ };
40134
+
40135
+
40136
+ /**
40137
+ * optional string risk_level = 22;
40138
+ * @return {string}
40139
+ */
40140
+ proto.user.UserKycDocumentListItem.prototype.getRiskLevel = function() {
40141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
40142
+ };
40143
+
40144
+
40145
+ /**
40146
+ * @param {string} value
40147
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40148
+ */
40149
+ proto.user.UserKycDocumentListItem.prototype.setRiskLevel = function(value) {
40150
+ return jspb.Message.setField(this, 22, value);
40151
+ };
40152
+
40153
+
40154
+ /**
40155
+ * Clears the field making it undefined.
40156
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40157
+ */
40158
+ proto.user.UserKycDocumentListItem.prototype.clearRiskLevel = function() {
40159
+ return jspb.Message.setField(this, 22, undefined);
40160
+ };
40161
+
40162
+
40163
+ /**
40164
+ * Returns whether this field is set.
40165
+ * @return {boolean}
40166
+ */
40167
+ proto.user.UserKycDocumentListItem.prototype.hasRiskLevel = function() {
40168
+ return jspb.Message.getField(this, 22) != null;
40169
+ };
40170
+
40171
+
40172
+ /**
40173
+ * optional string uploaded_by_email = 23;
40174
+ * @return {string}
40175
+ */
40176
+ proto.user.UserKycDocumentListItem.prototype.getUploadedByEmail = function() {
40177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
40178
+ };
40179
+
40180
+
40181
+ /**
40182
+ * @param {string} value
40183
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40184
+ */
40185
+ proto.user.UserKycDocumentListItem.prototype.setUploadedByEmail = function(value) {
40186
+ return jspb.Message.setField(this, 23, value);
40187
+ };
40188
+
40189
+
40190
+ /**
40191
+ * Clears the field making it undefined.
40192
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40193
+ */
40194
+ proto.user.UserKycDocumentListItem.prototype.clearUploadedByEmail = function() {
40195
+ return jspb.Message.setField(this, 23, undefined);
40196
+ };
40197
+
40198
+
40199
+ /**
40200
+ * Returns whether this field is set.
40201
+ * @return {boolean}
40202
+ */
40203
+ proto.user.UserKycDocumentListItem.prototype.hasUploadedByEmail = function() {
40204
+ return jspb.Message.getField(this, 23) != null;
40205
+ };
40206
+
40207
+
40208
+ /**
40209
+ * optional string reviewer_email = 24;
40210
+ * @return {string}
40211
+ */
40212
+ proto.user.UserKycDocumentListItem.prototype.getReviewerEmail = function() {
40213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
40214
+ };
40215
+
40216
+
40217
+ /**
40218
+ * @param {string} value
40219
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40220
+ */
40221
+ proto.user.UserKycDocumentListItem.prototype.setReviewerEmail = function(value) {
40222
+ return jspb.Message.setField(this, 24, value);
40223
+ };
40224
+
40225
+
40226
+ /**
40227
+ * Clears the field making it undefined.
40228
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40229
+ */
40230
+ proto.user.UserKycDocumentListItem.prototype.clearReviewerEmail = function() {
40231
+ return jspb.Message.setField(this, 24, undefined);
40232
+ };
40233
+
40234
+
40235
+ /**
40236
+ * Returns whether this field is set.
40237
+ * @return {boolean}
40238
+ */
40239
+ proto.user.UserKycDocumentListItem.prototype.hasReviewerEmail = function() {
40240
+ return jspb.Message.getField(this, 24) != null;
40241
+ };
40242
+
40243
+
40244
+
40245
+ /**
40246
+ * List of repeated fields within this message type.
40247
+ * @private {!Array<number>}
40248
+ * @const
40249
+ */
40250
+ proto.user.UserKycDocumentListResponse.repeatedFields_ = [1];
40251
+
40252
+
40253
+
40254
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40255
+ /**
40256
+ * Creates an object representation of this proto.
40257
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40258
+ * Optional fields that are not set will be set to undefined.
40259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40260
+ * For the list of reserved names please see:
40261
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40262
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40263
+ * JSPB instance for transitional soy proto support:
40264
+ * http://goto/soy-param-migration
40265
+ * @return {!Object}
40266
+ */
40267
+ proto.user.UserKycDocumentListResponse.prototype.toObject = function(opt_includeInstance) {
40268
+ return proto.user.UserKycDocumentListResponse.toObject(opt_includeInstance, this);
40269
+ };
40270
+
40271
+
40272
+ /**
40273
+ * Static version of the {@see toObject} method.
40274
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40275
+ * the JSPB instance for transitional soy proto support:
40276
+ * http://goto/soy-param-migration
40277
+ * @param {!proto.user.UserKycDocumentListResponse} msg The msg instance to transform.
40278
+ * @return {!Object}
40279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40280
+ */
40281
+ proto.user.UserKycDocumentListResponse.toObject = function(includeInstance, msg) {
40282
+ var f, obj = {
40283
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
40284
+ proto.user.UserKycDocumentListItem.toObject, includeInstance),
40285
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
40286
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
40287
+ };
40288
+
40289
+ if (includeInstance) {
40290
+ obj.$jspbMessageInstance = msg;
40291
+ }
40292
+ return obj;
40293
+ };
40294
+ }
40295
+
40296
+
40297
+ /**
40298
+ * Deserializes binary data (in protobuf wire format).
40299
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40300
+ * @return {!proto.user.UserKycDocumentListResponse}
40301
+ */
40302
+ proto.user.UserKycDocumentListResponse.deserializeBinary = function(bytes) {
40303
+ var reader = new jspb.BinaryReader(bytes);
40304
+ var msg = new proto.user.UserKycDocumentListResponse;
40305
+ return proto.user.UserKycDocumentListResponse.deserializeBinaryFromReader(msg, reader);
40306
+ };
40307
+
40308
+
40309
+ /**
40310
+ * Deserializes binary data (in protobuf wire format) from the
40311
+ * given reader into the given message object.
40312
+ * @param {!proto.user.UserKycDocumentListResponse} msg The message object to deserialize into.
40313
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40314
+ * @return {!proto.user.UserKycDocumentListResponse}
40315
+ */
40316
+ proto.user.UserKycDocumentListResponse.deserializeBinaryFromReader = function(msg, reader) {
40317
+ while (reader.nextField()) {
40318
+ if (reader.isEndGroup()) {
40319
+ break;
40320
+ }
40321
+ var field = reader.getFieldNumber();
40322
+ switch (field) {
40323
+ case 1:
40324
+ var value = new proto.user.UserKycDocumentListItem;
40325
+ reader.readMessage(value,proto.user.UserKycDocumentListItem.deserializeBinaryFromReader);
40326
+ msg.addItems(value);
40327
+ break;
40328
+ case 2:
40329
+ var value = /** @type {number} */ (reader.readInt32());
40330
+ msg.setTotalPages(value);
40331
+ break;
40332
+ case 3:
40333
+ var value = /** @type {number} */ (reader.readInt32());
40334
+ msg.setTotalItems(value);
40335
+ break;
40336
+ default:
40337
+ reader.skipField();
40338
+ break;
40339
+ }
40340
+ }
40341
+ return msg;
40342
+ };
40343
+
40344
+
40345
+ /**
40346
+ * Serializes the message to binary data (in protobuf wire format).
40347
+ * @return {!Uint8Array}
40348
+ */
40349
+ proto.user.UserKycDocumentListResponse.prototype.serializeBinary = function() {
40350
+ var writer = new jspb.BinaryWriter();
40351
+ proto.user.UserKycDocumentListResponse.serializeBinaryToWriter(this, writer);
40352
+ return writer.getResultBuffer();
40353
+ };
40354
+
40355
+
40356
+ /**
40357
+ * Serializes the given message to binary data (in protobuf wire
40358
+ * format), writing to the given BinaryWriter.
40359
+ * @param {!proto.user.UserKycDocumentListResponse} message
40360
+ * @param {!jspb.BinaryWriter} writer
40361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40362
+ */
40363
+ proto.user.UserKycDocumentListResponse.serializeBinaryToWriter = function(message, writer) {
40364
+ var f = undefined;
40365
+ f = message.getItemsList();
40366
+ if (f.length > 0) {
40367
+ writer.writeRepeatedMessage(
40368
+ 1,
40369
+ f,
40370
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter
40371
+ );
40372
+ }
40373
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
40374
+ if (f != null) {
40375
+ writer.writeInt32(
40376
+ 2,
40377
+ f
40378
+ );
40379
+ }
40380
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
40381
+ if (f != null) {
40382
+ writer.writeInt32(
40383
+ 3,
40384
+ f
40385
+ );
40386
+ }
40387
+ };
40388
+
40389
+
40390
+ /**
40391
+ * repeated UserKycDocumentListItem items = 1;
40392
+ * @return {!Array<!proto.user.UserKycDocumentListItem>}
40393
+ */
40394
+ proto.user.UserKycDocumentListResponse.prototype.getItemsList = function() {
40395
+ return /** @type{!Array<!proto.user.UserKycDocumentListItem>} */ (
40396
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentListItem, 1));
40397
+ };
40398
+
40399
+
40400
+ /**
40401
+ * @param {!Array<!proto.user.UserKycDocumentListItem>} value
40402
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40403
+ */
40404
+ proto.user.UserKycDocumentListResponse.prototype.setItemsList = function(value) {
40405
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
40406
+ };
40407
+
40408
+
40409
+ /**
40410
+ * @param {!proto.user.UserKycDocumentListItem=} opt_value
40411
+ * @param {number=} opt_index
40412
+ * @return {!proto.user.UserKycDocumentListItem}
40413
+ */
40414
+ proto.user.UserKycDocumentListResponse.prototype.addItems = function(opt_value, opt_index) {
40415
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserKycDocumentListItem, opt_index);
40416
+ };
40417
+
40418
+
40419
+ /**
40420
+ * Clears the list making it empty but non-null.
40421
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40422
+ */
40423
+ proto.user.UserKycDocumentListResponse.prototype.clearItemsList = function() {
40424
+ return this.setItemsList([]);
40425
+ };
40426
+
40427
+
40428
+ /**
40429
+ * optional int32 total_pages = 2;
40430
+ * @return {number}
40431
+ */
40432
+ proto.user.UserKycDocumentListResponse.prototype.getTotalPages = function() {
40433
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40434
+ };
40435
+
40436
+
40437
+ /**
40438
+ * @param {number} value
40439
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40440
+ */
40441
+ proto.user.UserKycDocumentListResponse.prototype.setTotalPages = function(value) {
40442
+ return jspb.Message.setField(this, 2, value);
40443
+ };
40444
+
40445
+
40446
+ /**
40447
+ * Clears the field making it undefined.
40448
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40449
+ */
40450
+ proto.user.UserKycDocumentListResponse.prototype.clearTotalPages = function() {
40451
+ return jspb.Message.setField(this, 2, undefined);
40452
+ };
40453
+
40454
+
40455
+ /**
40456
+ * Returns whether this field is set.
40457
+ * @return {boolean}
40458
+ */
40459
+ proto.user.UserKycDocumentListResponse.prototype.hasTotalPages = function() {
40460
+ return jspb.Message.getField(this, 2) != null;
40461
+ };
40462
+
40463
+
40464
+ /**
40465
+ * optional int32 total_items = 3;
40466
+ * @return {number}
40467
+ */
40468
+ proto.user.UserKycDocumentListResponse.prototype.getTotalItems = function() {
40469
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
40470
+ };
40471
+
40472
+
40473
+ /**
40474
+ * @param {number} value
40475
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40476
+ */
40477
+ proto.user.UserKycDocumentListResponse.prototype.setTotalItems = function(value) {
40478
+ return jspb.Message.setField(this, 3, value);
40479
+ };
40480
+
40481
+
40482
+ /**
40483
+ * Clears the field making it undefined.
40484
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40485
+ */
40486
+ proto.user.UserKycDocumentListResponse.prototype.clearTotalItems = function() {
40487
+ return jspb.Message.setField(this, 3, undefined);
40488
+ };
40489
+
40490
+
40491
+ /**
40492
+ * Returns whether this field is set.
40493
+ * @return {boolean}
40494
+ */
40495
+ proto.user.UserKycDocumentListResponse.prototype.hasTotalItems = function() {
40496
+ return jspb.Message.getField(this, 3) != null;
40497
+ };
40498
+
40499
+
40500
+
40501
+
40502
+
38179
40503
  if (jspb.Message.GENERATE_TO_OBJECT) {
38180
40504
  /**
38181
40505
  * Creates an object representation of this proto.