protobuf-platform 1.2.323 → 1.2.325

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,12 @@ 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.ReadUserKycDocumentOptionsRequest', null, global);
69
+ goog.exportSymbol('proto.user.ReadUserKycDocumentRequest', null, global);
67
70
  goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
68
71
  goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
69
72
  goog.exportSymbol('proto.user.ReadUserManualRestrictionsRequest', null, global);
@@ -129,6 +132,10 @@ goog.exportSymbol('proto.user.UserGameIdsFilterResponse', null, global);
129
132
  goog.exportSymbol('proto.user.UserGameIdsResponse', null, global);
130
133
  goog.exportSymbol('proto.user.UserGameRequest', null, global);
131
134
  goog.exportSymbol('proto.user.UserKycDocumentItem', null, global);
135
+ goog.exportSymbol('proto.user.UserKycDocumentListItem', null, global);
136
+ goog.exportSymbol('proto.user.UserKycDocumentListResponse', null, global);
137
+ goog.exportSymbol('proto.user.UserKycDocumentOptionItem', null, global);
138
+ goog.exportSymbol('proto.user.UserKycDocumentOptionsResponse', null, global);
132
139
  goog.exportSymbol('proto.user.UserKycDocumentsResponse', null, global);
133
140
  goog.exportSymbol('proto.user.UserKycProfileResponse', null, global);
134
141
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
@@ -2206,6 +2213,153 @@ if (goog.DEBUG && !COMPILED) {
2206
2213
  */
2207
2214
  proto.user.UserKycDocumentsResponse.displayName = 'proto.user.UserKycDocumentsResponse';
2208
2215
  }
2216
+ /**
2217
+ * Generated by JsPbCodeGenerator.
2218
+ * @param {Array=} opt_data Optional initial data array, typically from a
2219
+ * server response, or constructed directly in Javascript. The array is used
2220
+ * in place and becomes part of the constructed object. It is not cloned.
2221
+ * If no data is provided, the constructed object will be empty, but still
2222
+ * valid.
2223
+ * @extends {jspb.Message}
2224
+ * @constructor
2225
+ */
2226
+ proto.user.ReadUserKycDocumentRequest = function(opt_data) {
2227
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2228
+ };
2229
+ goog.inherits(proto.user.ReadUserKycDocumentRequest, jspb.Message);
2230
+ if (goog.DEBUG && !COMPILED) {
2231
+ /**
2232
+ * @public
2233
+ * @override
2234
+ */
2235
+ proto.user.ReadUserKycDocumentRequest.displayName = 'proto.user.ReadUserKycDocumentRequest';
2236
+ }
2237
+ /**
2238
+ * Generated by JsPbCodeGenerator.
2239
+ * @param {Array=} opt_data Optional initial data array, typically from a
2240
+ * server response, or constructed directly in Javascript. The array is used
2241
+ * in place and becomes part of the constructed object. It is not cloned.
2242
+ * If no data is provided, the constructed object will be empty, but still
2243
+ * valid.
2244
+ * @extends {jspb.Message}
2245
+ * @constructor
2246
+ */
2247
+ proto.user.ReadListUserKycDocumentsRequest = function(opt_data) {
2248
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2249
+ };
2250
+ goog.inherits(proto.user.ReadListUserKycDocumentsRequest, jspb.Message);
2251
+ if (goog.DEBUG && !COMPILED) {
2252
+ /**
2253
+ * @public
2254
+ * @override
2255
+ */
2256
+ proto.user.ReadListUserKycDocumentsRequest.displayName = 'proto.user.ReadListUserKycDocumentsRequest';
2257
+ }
2258
+ /**
2259
+ * Generated by JsPbCodeGenerator.
2260
+ * @param {Array=} opt_data Optional initial data array, typically from a
2261
+ * server response, or constructed directly in Javascript. The array is used
2262
+ * in place and becomes part of the constructed object. It is not cloned.
2263
+ * If no data is provided, the constructed object will be empty, but still
2264
+ * valid.
2265
+ * @extends {jspb.Message}
2266
+ * @constructor
2267
+ */
2268
+ proto.user.UserKycDocumentListItem = function(opt_data) {
2269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2270
+ };
2271
+ goog.inherits(proto.user.UserKycDocumentListItem, jspb.Message);
2272
+ if (goog.DEBUG && !COMPILED) {
2273
+ /**
2274
+ * @public
2275
+ * @override
2276
+ */
2277
+ proto.user.UserKycDocumentListItem.displayName = 'proto.user.UserKycDocumentListItem';
2278
+ }
2279
+ /**
2280
+ * Generated by JsPbCodeGenerator.
2281
+ * @param {Array=} opt_data Optional initial data array, typically from a
2282
+ * server response, or constructed directly in Javascript. The array is used
2283
+ * in place and becomes part of the constructed object. It is not cloned.
2284
+ * If no data is provided, the constructed object will be empty, but still
2285
+ * valid.
2286
+ * @extends {jspb.Message}
2287
+ * @constructor
2288
+ */
2289
+ proto.user.UserKycDocumentListResponse = function(opt_data) {
2290
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycDocumentListResponse.repeatedFields_, null);
2291
+ };
2292
+ goog.inherits(proto.user.UserKycDocumentListResponse, jspb.Message);
2293
+ if (goog.DEBUG && !COMPILED) {
2294
+ /**
2295
+ * @public
2296
+ * @override
2297
+ */
2298
+ proto.user.UserKycDocumentListResponse.displayName = 'proto.user.UserKycDocumentListResponse';
2299
+ }
2300
+ /**
2301
+ * Generated by JsPbCodeGenerator.
2302
+ * @param {Array=} opt_data Optional initial data array, typically from a
2303
+ * server response, or constructed directly in Javascript. The array is used
2304
+ * in place and becomes part of the constructed object. It is not cloned.
2305
+ * If no data is provided, the constructed object will be empty, but still
2306
+ * valid.
2307
+ * @extends {jspb.Message}
2308
+ * @constructor
2309
+ */
2310
+ proto.user.ReadUserKycDocumentOptionsRequest = function(opt_data) {
2311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2312
+ };
2313
+ goog.inherits(proto.user.ReadUserKycDocumentOptionsRequest, jspb.Message);
2314
+ if (goog.DEBUG && !COMPILED) {
2315
+ /**
2316
+ * @public
2317
+ * @override
2318
+ */
2319
+ proto.user.ReadUserKycDocumentOptionsRequest.displayName = 'proto.user.ReadUserKycDocumentOptionsRequest';
2320
+ }
2321
+ /**
2322
+ * Generated by JsPbCodeGenerator.
2323
+ * @param {Array=} opt_data Optional initial data array, typically from a
2324
+ * server response, or constructed directly in Javascript. The array is used
2325
+ * in place and becomes part of the constructed object. It is not cloned.
2326
+ * If no data is provided, the constructed object will be empty, but still
2327
+ * valid.
2328
+ * @extends {jspb.Message}
2329
+ * @constructor
2330
+ */
2331
+ proto.user.UserKycDocumentOptionItem = function(opt_data) {
2332
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2333
+ };
2334
+ goog.inherits(proto.user.UserKycDocumentOptionItem, jspb.Message);
2335
+ if (goog.DEBUG && !COMPILED) {
2336
+ /**
2337
+ * @public
2338
+ * @override
2339
+ */
2340
+ proto.user.UserKycDocumentOptionItem.displayName = 'proto.user.UserKycDocumentOptionItem';
2341
+ }
2342
+ /**
2343
+ * Generated by JsPbCodeGenerator.
2344
+ * @param {Array=} opt_data Optional initial data array, typically from a
2345
+ * server response, or constructed directly in Javascript. The array is used
2346
+ * in place and becomes part of the constructed object. It is not cloned.
2347
+ * If no data is provided, the constructed object will be empty, but still
2348
+ * valid.
2349
+ * @extends {jspb.Message}
2350
+ * @constructor
2351
+ */
2352
+ proto.user.UserKycDocumentOptionsResponse = function(opt_data) {
2353
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycDocumentOptionsResponse.repeatedFields_, null);
2354
+ };
2355
+ goog.inherits(proto.user.UserKycDocumentOptionsResponse, jspb.Message);
2356
+ if (goog.DEBUG && !COMPILED) {
2357
+ /**
2358
+ * @public
2359
+ * @override
2360
+ */
2361
+ proto.user.UserKycDocumentOptionsResponse.displayName = 'proto.user.UserKycDocumentOptionsResponse';
2362
+ }
2209
2363
  /**
2210
2364
  * Generated by JsPbCodeGenerator.
2211
2365
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -38176,6 +38330,2769 @@ proto.user.UserKycDocumentsResponse.prototype.clearDocumentsList = function() {
38176
38330
 
38177
38331
 
38178
38332
 
38333
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38334
+ /**
38335
+ * Creates an object representation of this proto.
38336
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38337
+ * Optional fields that are not set will be set to undefined.
38338
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38339
+ * For the list of reserved names please see:
38340
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38341
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38342
+ * JSPB instance for transitional soy proto support:
38343
+ * http://goto/soy-param-migration
38344
+ * @return {!Object}
38345
+ */
38346
+ proto.user.ReadUserKycDocumentRequest.prototype.toObject = function(opt_includeInstance) {
38347
+ return proto.user.ReadUserKycDocumentRequest.toObject(opt_includeInstance, this);
38348
+ };
38349
+
38350
+
38351
+ /**
38352
+ * Static version of the {@see toObject} method.
38353
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38354
+ * the JSPB instance for transitional soy proto support:
38355
+ * http://goto/soy-param-migration
38356
+ * @param {!proto.user.ReadUserKycDocumentRequest} msg The msg instance to transform.
38357
+ * @return {!Object}
38358
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38359
+ */
38360
+ proto.user.ReadUserKycDocumentRequest.toObject = function(includeInstance, msg) {
38361
+ var f, obj = {
38362
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
38363
+ };
38364
+
38365
+ if (includeInstance) {
38366
+ obj.$jspbMessageInstance = msg;
38367
+ }
38368
+ return obj;
38369
+ };
38370
+ }
38371
+
38372
+
38373
+ /**
38374
+ * Deserializes binary data (in protobuf wire format).
38375
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38376
+ * @return {!proto.user.ReadUserKycDocumentRequest}
38377
+ */
38378
+ proto.user.ReadUserKycDocumentRequest.deserializeBinary = function(bytes) {
38379
+ var reader = new jspb.BinaryReader(bytes);
38380
+ var msg = new proto.user.ReadUserKycDocumentRequest;
38381
+ return proto.user.ReadUserKycDocumentRequest.deserializeBinaryFromReader(msg, reader);
38382
+ };
38383
+
38384
+
38385
+ /**
38386
+ * Deserializes binary data (in protobuf wire format) from the
38387
+ * given reader into the given message object.
38388
+ * @param {!proto.user.ReadUserKycDocumentRequest} msg The message object to deserialize into.
38389
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38390
+ * @return {!proto.user.ReadUserKycDocumentRequest}
38391
+ */
38392
+ proto.user.ReadUserKycDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
38393
+ while (reader.nextField()) {
38394
+ if (reader.isEndGroup()) {
38395
+ break;
38396
+ }
38397
+ var field = reader.getFieldNumber();
38398
+ switch (field) {
38399
+ case 1:
38400
+ var value = /** @type {number} */ (reader.readInt32());
38401
+ msg.setId(value);
38402
+ break;
38403
+ default:
38404
+ reader.skipField();
38405
+ break;
38406
+ }
38407
+ }
38408
+ return msg;
38409
+ };
38410
+
38411
+
38412
+ /**
38413
+ * Serializes the message to binary data (in protobuf wire format).
38414
+ * @return {!Uint8Array}
38415
+ */
38416
+ proto.user.ReadUserKycDocumentRequest.prototype.serializeBinary = function() {
38417
+ var writer = new jspb.BinaryWriter();
38418
+ proto.user.ReadUserKycDocumentRequest.serializeBinaryToWriter(this, writer);
38419
+ return writer.getResultBuffer();
38420
+ };
38421
+
38422
+
38423
+ /**
38424
+ * Serializes the given message to binary data (in protobuf wire
38425
+ * format), writing to the given BinaryWriter.
38426
+ * @param {!proto.user.ReadUserKycDocumentRequest} message
38427
+ * @param {!jspb.BinaryWriter} writer
38428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38429
+ */
38430
+ proto.user.ReadUserKycDocumentRequest.serializeBinaryToWriter = function(message, writer) {
38431
+ var f = undefined;
38432
+ f = message.getId();
38433
+ if (f !== 0) {
38434
+ writer.writeInt32(
38435
+ 1,
38436
+ f
38437
+ );
38438
+ }
38439
+ };
38440
+
38441
+
38442
+ /**
38443
+ * optional int32 id = 1;
38444
+ * @return {number}
38445
+ */
38446
+ proto.user.ReadUserKycDocumentRequest.prototype.getId = function() {
38447
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38448
+ };
38449
+
38450
+
38451
+ /**
38452
+ * @param {number} value
38453
+ * @return {!proto.user.ReadUserKycDocumentRequest} returns this
38454
+ */
38455
+ proto.user.ReadUserKycDocumentRequest.prototype.setId = function(value) {
38456
+ return jspb.Message.setProto3IntField(this, 1, value);
38457
+ };
38458
+
38459
+
38460
+
38461
+
38462
+
38463
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38464
+ /**
38465
+ * Creates an object representation of this proto.
38466
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38467
+ * Optional fields that are not set will be set to undefined.
38468
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38469
+ * For the list of reserved names please see:
38470
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38471
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38472
+ * JSPB instance for transitional soy proto support:
38473
+ * http://goto/soy-param-migration
38474
+ * @return {!Object}
38475
+ */
38476
+ proto.user.ReadListUserKycDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
38477
+ return proto.user.ReadListUserKycDocumentsRequest.toObject(opt_includeInstance, this);
38478
+ };
38479
+
38480
+
38481
+ /**
38482
+ * Static version of the {@see toObject} method.
38483
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38484
+ * the JSPB instance for transitional soy proto support:
38485
+ * http://goto/soy-param-migration
38486
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} msg The msg instance to transform.
38487
+ * @return {!Object}
38488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38489
+ */
38490
+ proto.user.ReadListUserKycDocumentsRequest.toObject = function(includeInstance, msg) {
38491
+ var f, obj = {
38492
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
38493
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
38494
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
38495
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
38496
+ documentType: jspb.Message.getFieldWithDefault(msg, 5, ""),
38497
+ documentSide: jspb.Message.getFieldWithDefault(msg, 6, ""),
38498
+ userId: jspb.Message.getFieldWithDefault(msg, 7, 0),
38499
+ source: jspb.Message.getFieldWithDefault(msg, 8, ""),
38500
+ reviewerId: jspb.Message.getFieldWithDefault(msg, 9, 0),
38501
+ uploadedBy: jspb.Message.getFieldWithDefault(msg, 10, 0),
38502
+ country: jspb.Message.getFieldWithDefault(msg, 11, ""),
38503
+ currency: jspb.Message.getFieldWithDefault(msg, 12, ""),
38504
+ email: jspb.Message.getFieldWithDefault(msg, 13, "")
38505
+ };
38506
+
38507
+ if (includeInstance) {
38508
+ obj.$jspbMessageInstance = msg;
38509
+ }
38510
+ return obj;
38511
+ };
38512
+ }
38513
+
38514
+
38515
+ /**
38516
+ * Deserializes binary data (in protobuf wire format).
38517
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38518
+ * @return {!proto.user.ReadListUserKycDocumentsRequest}
38519
+ */
38520
+ proto.user.ReadListUserKycDocumentsRequest.deserializeBinary = function(bytes) {
38521
+ var reader = new jspb.BinaryReader(bytes);
38522
+ var msg = new proto.user.ReadListUserKycDocumentsRequest;
38523
+ return proto.user.ReadListUserKycDocumentsRequest.deserializeBinaryFromReader(msg, reader);
38524
+ };
38525
+
38526
+
38527
+ /**
38528
+ * Deserializes binary data (in protobuf wire format) from the
38529
+ * given reader into the given message object.
38530
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} msg The message object to deserialize into.
38531
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38532
+ * @return {!proto.user.ReadListUserKycDocumentsRequest}
38533
+ */
38534
+ proto.user.ReadListUserKycDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
38535
+ while (reader.nextField()) {
38536
+ if (reader.isEndGroup()) {
38537
+ break;
38538
+ }
38539
+ var field = reader.getFieldNumber();
38540
+ switch (field) {
38541
+ case 1:
38542
+ var value = /** @type {number} */ (reader.readInt32());
38543
+ msg.setLimit(value);
38544
+ break;
38545
+ case 2:
38546
+ var value = /** @type {number} */ (reader.readInt32());
38547
+ msg.setOffset(value);
38548
+ break;
38549
+ case 3:
38550
+ var value = /** @type {string} */ (reader.readString());
38551
+ msg.setOrder(value);
38552
+ break;
38553
+ case 4:
38554
+ var value = /** @type {string} */ (reader.readString());
38555
+ msg.setStatus(value);
38556
+ break;
38557
+ case 5:
38558
+ var value = /** @type {string} */ (reader.readString());
38559
+ msg.setDocumentType(value);
38560
+ break;
38561
+ case 6:
38562
+ var value = /** @type {string} */ (reader.readString());
38563
+ msg.setDocumentSide(value);
38564
+ break;
38565
+ case 7:
38566
+ var value = /** @type {number} */ (reader.readInt32());
38567
+ msg.setUserId(value);
38568
+ break;
38569
+ case 8:
38570
+ var value = /** @type {string} */ (reader.readString());
38571
+ msg.setSource(value);
38572
+ break;
38573
+ case 9:
38574
+ var value = /** @type {number} */ (reader.readInt32());
38575
+ msg.setReviewerId(value);
38576
+ break;
38577
+ case 10:
38578
+ var value = /** @type {number} */ (reader.readInt32());
38579
+ msg.setUploadedBy(value);
38580
+ break;
38581
+ case 11:
38582
+ var value = /** @type {string} */ (reader.readString());
38583
+ msg.setCountry(value);
38584
+ break;
38585
+ case 12:
38586
+ var value = /** @type {string} */ (reader.readString());
38587
+ msg.setCurrency(value);
38588
+ break;
38589
+ case 13:
38590
+ var value = /** @type {string} */ (reader.readString());
38591
+ msg.setEmail(value);
38592
+ break;
38593
+ default:
38594
+ reader.skipField();
38595
+ break;
38596
+ }
38597
+ }
38598
+ return msg;
38599
+ };
38600
+
38601
+
38602
+ /**
38603
+ * Serializes the message to binary data (in protobuf wire format).
38604
+ * @return {!Uint8Array}
38605
+ */
38606
+ proto.user.ReadListUserKycDocumentsRequest.prototype.serializeBinary = function() {
38607
+ var writer = new jspb.BinaryWriter();
38608
+ proto.user.ReadListUserKycDocumentsRequest.serializeBinaryToWriter(this, writer);
38609
+ return writer.getResultBuffer();
38610
+ };
38611
+
38612
+
38613
+ /**
38614
+ * Serializes the given message to binary data (in protobuf wire
38615
+ * format), writing to the given BinaryWriter.
38616
+ * @param {!proto.user.ReadListUserKycDocumentsRequest} message
38617
+ * @param {!jspb.BinaryWriter} writer
38618
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38619
+ */
38620
+ proto.user.ReadListUserKycDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
38621
+ var f = undefined;
38622
+ f = message.getLimit();
38623
+ if (f !== 0) {
38624
+ writer.writeInt32(
38625
+ 1,
38626
+ f
38627
+ );
38628
+ }
38629
+ f = message.getOffset();
38630
+ if (f !== 0) {
38631
+ writer.writeInt32(
38632
+ 2,
38633
+ f
38634
+ );
38635
+ }
38636
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
38637
+ if (f != null) {
38638
+ writer.writeString(
38639
+ 3,
38640
+ f
38641
+ );
38642
+ }
38643
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
38644
+ if (f != null) {
38645
+ writer.writeString(
38646
+ 4,
38647
+ f
38648
+ );
38649
+ }
38650
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
38651
+ if (f != null) {
38652
+ writer.writeString(
38653
+ 5,
38654
+ f
38655
+ );
38656
+ }
38657
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
38658
+ if (f != null) {
38659
+ writer.writeString(
38660
+ 6,
38661
+ f
38662
+ );
38663
+ }
38664
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
38665
+ if (f != null) {
38666
+ writer.writeInt32(
38667
+ 7,
38668
+ f
38669
+ );
38670
+ }
38671
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
38672
+ if (f != null) {
38673
+ writer.writeString(
38674
+ 8,
38675
+ f
38676
+ );
38677
+ }
38678
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
38679
+ if (f != null) {
38680
+ writer.writeInt32(
38681
+ 9,
38682
+ f
38683
+ );
38684
+ }
38685
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
38686
+ if (f != null) {
38687
+ writer.writeInt32(
38688
+ 10,
38689
+ f
38690
+ );
38691
+ }
38692
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
38693
+ if (f != null) {
38694
+ writer.writeString(
38695
+ 11,
38696
+ f
38697
+ );
38698
+ }
38699
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
38700
+ if (f != null) {
38701
+ writer.writeString(
38702
+ 12,
38703
+ f
38704
+ );
38705
+ }
38706
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
38707
+ if (f != null) {
38708
+ writer.writeString(
38709
+ 13,
38710
+ f
38711
+ );
38712
+ }
38713
+ };
38714
+
38715
+
38716
+ /**
38717
+ * optional int32 limit = 1;
38718
+ * @return {number}
38719
+ */
38720
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getLimit = function() {
38721
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38722
+ };
38723
+
38724
+
38725
+ /**
38726
+ * @param {number} value
38727
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38728
+ */
38729
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setLimit = function(value) {
38730
+ return jspb.Message.setProto3IntField(this, 1, value);
38731
+ };
38732
+
38733
+
38734
+ /**
38735
+ * optional int32 offset = 2;
38736
+ * @return {number}
38737
+ */
38738
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getOffset = function() {
38739
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
38740
+ };
38741
+
38742
+
38743
+ /**
38744
+ * @param {number} value
38745
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38746
+ */
38747
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setOffset = function(value) {
38748
+ return jspb.Message.setProto3IntField(this, 2, value);
38749
+ };
38750
+
38751
+
38752
+ /**
38753
+ * optional string order = 3;
38754
+ * @return {string}
38755
+ */
38756
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getOrder = function() {
38757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
38758
+ };
38759
+
38760
+
38761
+ /**
38762
+ * @param {string} value
38763
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38764
+ */
38765
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setOrder = function(value) {
38766
+ return jspb.Message.setField(this, 3, value);
38767
+ };
38768
+
38769
+
38770
+ /**
38771
+ * Clears the field making it undefined.
38772
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38773
+ */
38774
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearOrder = function() {
38775
+ return jspb.Message.setField(this, 3, undefined);
38776
+ };
38777
+
38778
+
38779
+ /**
38780
+ * Returns whether this field is set.
38781
+ * @return {boolean}
38782
+ */
38783
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasOrder = function() {
38784
+ return jspb.Message.getField(this, 3) != null;
38785
+ };
38786
+
38787
+
38788
+ /**
38789
+ * optional string status = 4;
38790
+ * @return {string}
38791
+ */
38792
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getStatus = function() {
38793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
38794
+ };
38795
+
38796
+
38797
+ /**
38798
+ * @param {string} value
38799
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38800
+ */
38801
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setStatus = function(value) {
38802
+ return jspb.Message.setField(this, 4, value);
38803
+ };
38804
+
38805
+
38806
+ /**
38807
+ * Clears the field making it undefined.
38808
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38809
+ */
38810
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearStatus = function() {
38811
+ return jspb.Message.setField(this, 4, undefined);
38812
+ };
38813
+
38814
+
38815
+ /**
38816
+ * Returns whether this field is set.
38817
+ * @return {boolean}
38818
+ */
38819
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasStatus = function() {
38820
+ return jspb.Message.getField(this, 4) != null;
38821
+ };
38822
+
38823
+
38824
+ /**
38825
+ * optional string document_type = 5;
38826
+ * @return {string}
38827
+ */
38828
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getDocumentType = function() {
38829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
38830
+ };
38831
+
38832
+
38833
+ /**
38834
+ * @param {string} value
38835
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38836
+ */
38837
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setDocumentType = function(value) {
38838
+ return jspb.Message.setField(this, 5, value);
38839
+ };
38840
+
38841
+
38842
+ /**
38843
+ * Clears the field making it undefined.
38844
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38845
+ */
38846
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearDocumentType = function() {
38847
+ return jspb.Message.setField(this, 5, undefined);
38848
+ };
38849
+
38850
+
38851
+ /**
38852
+ * Returns whether this field is set.
38853
+ * @return {boolean}
38854
+ */
38855
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasDocumentType = function() {
38856
+ return jspb.Message.getField(this, 5) != null;
38857
+ };
38858
+
38859
+
38860
+ /**
38861
+ * optional string document_side = 6;
38862
+ * @return {string}
38863
+ */
38864
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getDocumentSide = function() {
38865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
38866
+ };
38867
+
38868
+
38869
+ /**
38870
+ * @param {string} value
38871
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38872
+ */
38873
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setDocumentSide = function(value) {
38874
+ return jspb.Message.setField(this, 6, value);
38875
+ };
38876
+
38877
+
38878
+ /**
38879
+ * Clears the field making it undefined.
38880
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38881
+ */
38882
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearDocumentSide = function() {
38883
+ return jspb.Message.setField(this, 6, undefined);
38884
+ };
38885
+
38886
+
38887
+ /**
38888
+ * Returns whether this field is set.
38889
+ * @return {boolean}
38890
+ */
38891
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasDocumentSide = function() {
38892
+ return jspb.Message.getField(this, 6) != null;
38893
+ };
38894
+
38895
+
38896
+ /**
38897
+ * optional int32 user_id = 7;
38898
+ * @return {number}
38899
+ */
38900
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getUserId = function() {
38901
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
38902
+ };
38903
+
38904
+
38905
+ /**
38906
+ * @param {number} value
38907
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38908
+ */
38909
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setUserId = function(value) {
38910
+ return jspb.Message.setField(this, 7, value);
38911
+ };
38912
+
38913
+
38914
+ /**
38915
+ * Clears the field making it undefined.
38916
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38917
+ */
38918
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearUserId = function() {
38919
+ return jspb.Message.setField(this, 7, undefined);
38920
+ };
38921
+
38922
+
38923
+ /**
38924
+ * Returns whether this field is set.
38925
+ * @return {boolean}
38926
+ */
38927
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasUserId = function() {
38928
+ return jspb.Message.getField(this, 7) != null;
38929
+ };
38930
+
38931
+
38932
+ /**
38933
+ * optional string source = 8;
38934
+ * @return {string}
38935
+ */
38936
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getSource = function() {
38937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
38938
+ };
38939
+
38940
+
38941
+ /**
38942
+ * @param {string} value
38943
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38944
+ */
38945
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setSource = function(value) {
38946
+ return jspb.Message.setField(this, 8, value);
38947
+ };
38948
+
38949
+
38950
+ /**
38951
+ * Clears the field making it undefined.
38952
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38953
+ */
38954
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearSource = function() {
38955
+ return jspb.Message.setField(this, 8, undefined);
38956
+ };
38957
+
38958
+
38959
+ /**
38960
+ * Returns whether this field is set.
38961
+ * @return {boolean}
38962
+ */
38963
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasSource = function() {
38964
+ return jspb.Message.getField(this, 8) != null;
38965
+ };
38966
+
38967
+
38968
+ /**
38969
+ * optional int32 reviewer_id = 9;
38970
+ * @return {number}
38971
+ */
38972
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getReviewerId = function() {
38973
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
38974
+ };
38975
+
38976
+
38977
+ /**
38978
+ * @param {number} value
38979
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38980
+ */
38981
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setReviewerId = function(value) {
38982
+ return jspb.Message.setField(this, 9, value);
38983
+ };
38984
+
38985
+
38986
+ /**
38987
+ * Clears the field making it undefined.
38988
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
38989
+ */
38990
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearReviewerId = function() {
38991
+ return jspb.Message.setField(this, 9, undefined);
38992
+ };
38993
+
38994
+
38995
+ /**
38996
+ * Returns whether this field is set.
38997
+ * @return {boolean}
38998
+ */
38999
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasReviewerId = function() {
39000
+ return jspb.Message.getField(this, 9) != null;
39001
+ };
39002
+
39003
+
39004
+ /**
39005
+ * optional int32 uploaded_by = 10;
39006
+ * @return {number}
39007
+ */
39008
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getUploadedBy = function() {
39009
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
39010
+ };
39011
+
39012
+
39013
+ /**
39014
+ * @param {number} value
39015
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39016
+ */
39017
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setUploadedBy = function(value) {
39018
+ return jspb.Message.setField(this, 10, value);
39019
+ };
39020
+
39021
+
39022
+ /**
39023
+ * Clears the field making it undefined.
39024
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39025
+ */
39026
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearUploadedBy = function() {
39027
+ return jspb.Message.setField(this, 10, undefined);
39028
+ };
39029
+
39030
+
39031
+ /**
39032
+ * Returns whether this field is set.
39033
+ * @return {boolean}
39034
+ */
39035
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasUploadedBy = function() {
39036
+ return jspb.Message.getField(this, 10) != null;
39037
+ };
39038
+
39039
+
39040
+ /**
39041
+ * optional string country = 11;
39042
+ * @return {string}
39043
+ */
39044
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getCountry = function() {
39045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
39046
+ };
39047
+
39048
+
39049
+ /**
39050
+ * @param {string} value
39051
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39052
+ */
39053
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setCountry = function(value) {
39054
+ return jspb.Message.setField(this, 11, value);
39055
+ };
39056
+
39057
+
39058
+ /**
39059
+ * Clears the field making it undefined.
39060
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39061
+ */
39062
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearCountry = function() {
39063
+ return jspb.Message.setField(this, 11, undefined);
39064
+ };
39065
+
39066
+
39067
+ /**
39068
+ * Returns whether this field is set.
39069
+ * @return {boolean}
39070
+ */
39071
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasCountry = function() {
39072
+ return jspb.Message.getField(this, 11) != null;
39073
+ };
39074
+
39075
+
39076
+ /**
39077
+ * optional string currency = 12;
39078
+ * @return {string}
39079
+ */
39080
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getCurrency = function() {
39081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
39082
+ };
39083
+
39084
+
39085
+ /**
39086
+ * @param {string} value
39087
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39088
+ */
39089
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setCurrency = function(value) {
39090
+ return jspb.Message.setField(this, 12, value);
39091
+ };
39092
+
39093
+
39094
+ /**
39095
+ * Clears the field making it undefined.
39096
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39097
+ */
39098
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearCurrency = function() {
39099
+ return jspb.Message.setField(this, 12, undefined);
39100
+ };
39101
+
39102
+
39103
+ /**
39104
+ * Returns whether this field is set.
39105
+ * @return {boolean}
39106
+ */
39107
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasCurrency = function() {
39108
+ return jspb.Message.getField(this, 12) != null;
39109
+ };
39110
+
39111
+
39112
+ /**
39113
+ * optional string email = 13;
39114
+ * @return {string}
39115
+ */
39116
+ proto.user.ReadListUserKycDocumentsRequest.prototype.getEmail = function() {
39117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
39118
+ };
39119
+
39120
+
39121
+ /**
39122
+ * @param {string} value
39123
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39124
+ */
39125
+ proto.user.ReadListUserKycDocumentsRequest.prototype.setEmail = function(value) {
39126
+ return jspb.Message.setField(this, 13, value);
39127
+ };
39128
+
39129
+
39130
+ /**
39131
+ * Clears the field making it undefined.
39132
+ * @return {!proto.user.ReadListUserKycDocumentsRequest} returns this
39133
+ */
39134
+ proto.user.ReadListUserKycDocumentsRequest.prototype.clearEmail = function() {
39135
+ return jspb.Message.setField(this, 13, undefined);
39136
+ };
39137
+
39138
+
39139
+ /**
39140
+ * Returns whether this field is set.
39141
+ * @return {boolean}
39142
+ */
39143
+ proto.user.ReadListUserKycDocumentsRequest.prototype.hasEmail = function() {
39144
+ return jspb.Message.getField(this, 13) != null;
39145
+ };
39146
+
39147
+
39148
+
39149
+
39150
+
39151
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39152
+ /**
39153
+ * Creates an object representation of this proto.
39154
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39155
+ * Optional fields that are not set will be set to undefined.
39156
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39157
+ * For the list of reserved names please see:
39158
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39159
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39160
+ * JSPB instance for transitional soy proto support:
39161
+ * http://goto/soy-param-migration
39162
+ * @return {!Object}
39163
+ */
39164
+ proto.user.UserKycDocumentListItem.prototype.toObject = function(opt_includeInstance) {
39165
+ return proto.user.UserKycDocumentListItem.toObject(opt_includeInstance, this);
39166
+ };
39167
+
39168
+
39169
+ /**
39170
+ * Static version of the {@see toObject} method.
39171
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39172
+ * the JSPB instance for transitional soy proto support:
39173
+ * http://goto/soy-param-migration
39174
+ * @param {!proto.user.UserKycDocumentListItem} msg The msg instance to transform.
39175
+ * @return {!Object}
39176
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39177
+ */
39178
+ proto.user.UserKycDocumentListItem.toObject = function(includeInstance, msg) {
39179
+ var f, obj = {
39180
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
39181
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
39182
+ documentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
39183
+ documentSide: jspb.Message.getFieldWithDefault(msg, 4, ""),
39184
+ status: jspb.Message.getFieldWithDefault(msg, 5, ""),
39185
+ reason: jspb.Message.getFieldWithDefault(msg, 6, ""),
39186
+ source: jspb.Message.getFieldWithDefault(msg, 7, ""),
39187
+ reviewerId: jspb.Message.getFieldWithDefault(msg, 8, 0),
39188
+ uploadedBy: jspb.Message.getFieldWithDefault(msg, 9, 0),
39189
+ storageProvider: jspb.Message.getFieldWithDefault(msg, 10, ""),
39190
+ storageRef: jspb.Message.getFieldWithDefault(msg, 11, ""),
39191
+ fileName: jspb.Message.getFieldWithDefault(msg, 12, ""),
39192
+ mimeType: jspb.Message.getFieldWithDefault(msg, 13, ""),
39193
+ fileSize: jspb.Message.getFieldWithDefault(msg, 14, 0),
39194
+ createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
39195
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
39196
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 17, ""),
39197
+ email: jspb.Message.getFieldWithDefault(msg, 18, ""),
39198
+ country: jspb.Message.getFieldWithDefault(msg, 19, ""),
39199
+ currency: jspb.Message.getFieldWithDefault(msg, 20, ""),
39200
+ kycStatus: jspb.Message.getFieldWithDefault(msg, 21, ""),
39201
+ riskLevel: jspb.Message.getFieldWithDefault(msg, 22, ""),
39202
+ uploadedByEmail: jspb.Message.getFieldWithDefault(msg, 23, ""),
39203
+ reviewerEmail: jspb.Message.getFieldWithDefault(msg, 24, "")
39204
+ };
39205
+
39206
+ if (includeInstance) {
39207
+ obj.$jspbMessageInstance = msg;
39208
+ }
39209
+ return obj;
39210
+ };
39211
+ }
39212
+
39213
+
39214
+ /**
39215
+ * Deserializes binary data (in protobuf wire format).
39216
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39217
+ * @return {!proto.user.UserKycDocumentListItem}
39218
+ */
39219
+ proto.user.UserKycDocumentListItem.deserializeBinary = function(bytes) {
39220
+ var reader = new jspb.BinaryReader(bytes);
39221
+ var msg = new proto.user.UserKycDocumentListItem;
39222
+ return proto.user.UserKycDocumentListItem.deserializeBinaryFromReader(msg, reader);
39223
+ };
39224
+
39225
+
39226
+ /**
39227
+ * Deserializes binary data (in protobuf wire format) from the
39228
+ * given reader into the given message object.
39229
+ * @param {!proto.user.UserKycDocumentListItem} msg The message object to deserialize into.
39230
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39231
+ * @return {!proto.user.UserKycDocumentListItem}
39232
+ */
39233
+ proto.user.UserKycDocumentListItem.deserializeBinaryFromReader = function(msg, reader) {
39234
+ while (reader.nextField()) {
39235
+ if (reader.isEndGroup()) {
39236
+ break;
39237
+ }
39238
+ var field = reader.getFieldNumber();
39239
+ switch (field) {
39240
+ case 1:
39241
+ var value = /** @type {number} */ (reader.readInt32());
39242
+ msg.setId(value);
39243
+ break;
39244
+ case 2:
39245
+ var value = /** @type {number} */ (reader.readInt32());
39246
+ msg.setUserId(value);
39247
+ break;
39248
+ case 3:
39249
+ var value = /** @type {string} */ (reader.readString());
39250
+ msg.setDocumentType(value);
39251
+ break;
39252
+ case 4:
39253
+ var value = /** @type {string} */ (reader.readString());
39254
+ msg.setDocumentSide(value);
39255
+ break;
39256
+ case 5:
39257
+ var value = /** @type {string} */ (reader.readString());
39258
+ msg.setStatus(value);
39259
+ break;
39260
+ case 6:
39261
+ var value = /** @type {string} */ (reader.readString());
39262
+ msg.setReason(value);
39263
+ break;
39264
+ case 7:
39265
+ var value = /** @type {string} */ (reader.readString());
39266
+ msg.setSource(value);
39267
+ break;
39268
+ case 8:
39269
+ var value = /** @type {number} */ (reader.readInt32());
39270
+ msg.setReviewerId(value);
39271
+ break;
39272
+ case 9:
39273
+ var value = /** @type {number} */ (reader.readInt32());
39274
+ msg.setUploadedBy(value);
39275
+ break;
39276
+ case 10:
39277
+ var value = /** @type {string} */ (reader.readString());
39278
+ msg.setStorageProvider(value);
39279
+ break;
39280
+ case 11:
39281
+ var value = /** @type {string} */ (reader.readString());
39282
+ msg.setStorageRef(value);
39283
+ break;
39284
+ case 12:
39285
+ var value = /** @type {string} */ (reader.readString());
39286
+ msg.setFileName(value);
39287
+ break;
39288
+ case 13:
39289
+ var value = /** @type {string} */ (reader.readString());
39290
+ msg.setMimeType(value);
39291
+ break;
39292
+ case 14:
39293
+ var value = /** @type {number} */ (reader.readInt64());
39294
+ msg.setFileSize(value);
39295
+ break;
39296
+ case 15:
39297
+ var value = /** @type {string} */ (reader.readString());
39298
+ msg.setCreatedAt(value);
39299
+ break;
39300
+ case 16:
39301
+ var value = /** @type {string} */ (reader.readString());
39302
+ msg.setUpdatedAt(value);
39303
+ break;
39304
+ case 17:
39305
+ var value = /** @type {string} */ (reader.readString());
39306
+ msg.setUserPublicId(value);
39307
+ break;
39308
+ case 18:
39309
+ var value = /** @type {string} */ (reader.readString());
39310
+ msg.setEmail(value);
39311
+ break;
39312
+ case 19:
39313
+ var value = /** @type {string} */ (reader.readString());
39314
+ msg.setCountry(value);
39315
+ break;
39316
+ case 20:
39317
+ var value = /** @type {string} */ (reader.readString());
39318
+ msg.setCurrency(value);
39319
+ break;
39320
+ case 21:
39321
+ var value = /** @type {string} */ (reader.readString());
39322
+ msg.setKycStatus(value);
39323
+ break;
39324
+ case 22:
39325
+ var value = /** @type {string} */ (reader.readString());
39326
+ msg.setRiskLevel(value);
39327
+ break;
39328
+ case 23:
39329
+ var value = /** @type {string} */ (reader.readString());
39330
+ msg.setUploadedByEmail(value);
39331
+ break;
39332
+ case 24:
39333
+ var value = /** @type {string} */ (reader.readString());
39334
+ msg.setReviewerEmail(value);
39335
+ break;
39336
+ default:
39337
+ reader.skipField();
39338
+ break;
39339
+ }
39340
+ }
39341
+ return msg;
39342
+ };
39343
+
39344
+
39345
+ /**
39346
+ * Serializes the message to binary data (in protobuf wire format).
39347
+ * @return {!Uint8Array}
39348
+ */
39349
+ proto.user.UserKycDocumentListItem.prototype.serializeBinary = function() {
39350
+ var writer = new jspb.BinaryWriter();
39351
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter(this, writer);
39352
+ return writer.getResultBuffer();
39353
+ };
39354
+
39355
+
39356
+ /**
39357
+ * Serializes the given message to binary data (in protobuf wire
39358
+ * format), writing to the given BinaryWriter.
39359
+ * @param {!proto.user.UserKycDocumentListItem} message
39360
+ * @param {!jspb.BinaryWriter} writer
39361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39362
+ */
39363
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter = function(message, writer) {
39364
+ var f = undefined;
39365
+ f = message.getId();
39366
+ if (f !== 0) {
39367
+ writer.writeInt32(
39368
+ 1,
39369
+ f
39370
+ );
39371
+ }
39372
+ f = message.getUserId();
39373
+ if (f !== 0) {
39374
+ writer.writeInt32(
39375
+ 2,
39376
+ f
39377
+ );
39378
+ }
39379
+ f = message.getDocumentType();
39380
+ if (f.length > 0) {
39381
+ writer.writeString(
39382
+ 3,
39383
+ f
39384
+ );
39385
+ }
39386
+ f = message.getDocumentSide();
39387
+ if (f.length > 0) {
39388
+ writer.writeString(
39389
+ 4,
39390
+ f
39391
+ );
39392
+ }
39393
+ f = message.getStatus();
39394
+ if (f.length > 0) {
39395
+ writer.writeString(
39396
+ 5,
39397
+ f
39398
+ );
39399
+ }
39400
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
39401
+ if (f != null) {
39402
+ writer.writeString(
39403
+ 6,
39404
+ f
39405
+ );
39406
+ }
39407
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
39408
+ if (f != null) {
39409
+ writer.writeString(
39410
+ 7,
39411
+ f
39412
+ );
39413
+ }
39414
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
39415
+ if (f != null) {
39416
+ writer.writeInt32(
39417
+ 8,
39418
+ f
39419
+ );
39420
+ }
39421
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
39422
+ if (f != null) {
39423
+ writer.writeInt32(
39424
+ 9,
39425
+ f
39426
+ );
39427
+ }
39428
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
39429
+ if (f != null) {
39430
+ writer.writeString(
39431
+ 10,
39432
+ f
39433
+ );
39434
+ }
39435
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
39436
+ if (f != null) {
39437
+ writer.writeString(
39438
+ 11,
39439
+ f
39440
+ );
39441
+ }
39442
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
39443
+ if (f != null) {
39444
+ writer.writeString(
39445
+ 12,
39446
+ f
39447
+ );
39448
+ }
39449
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
39450
+ if (f != null) {
39451
+ writer.writeString(
39452
+ 13,
39453
+ f
39454
+ );
39455
+ }
39456
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
39457
+ if (f != null) {
39458
+ writer.writeInt64(
39459
+ 14,
39460
+ f
39461
+ );
39462
+ }
39463
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
39464
+ if (f != null) {
39465
+ writer.writeString(
39466
+ 15,
39467
+ f
39468
+ );
39469
+ }
39470
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
39471
+ if (f != null) {
39472
+ writer.writeString(
39473
+ 16,
39474
+ f
39475
+ );
39476
+ }
39477
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
39478
+ if (f != null) {
39479
+ writer.writeString(
39480
+ 17,
39481
+ f
39482
+ );
39483
+ }
39484
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
39485
+ if (f != null) {
39486
+ writer.writeString(
39487
+ 18,
39488
+ f
39489
+ );
39490
+ }
39491
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
39492
+ if (f != null) {
39493
+ writer.writeString(
39494
+ 19,
39495
+ f
39496
+ );
39497
+ }
39498
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
39499
+ if (f != null) {
39500
+ writer.writeString(
39501
+ 20,
39502
+ f
39503
+ );
39504
+ }
39505
+ f = /** @type {string} */ (jspb.Message.getField(message, 21));
39506
+ if (f != null) {
39507
+ writer.writeString(
39508
+ 21,
39509
+ f
39510
+ );
39511
+ }
39512
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
39513
+ if (f != null) {
39514
+ writer.writeString(
39515
+ 22,
39516
+ f
39517
+ );
39518
+ }
39519
+ f = /** @type {string} */ (jspb.Message.getField(message, 23));
39520
+ if (f != null) {
39521
+ writer.writeString(
39522
+ 23,
39523
+ f
39524
+ );
39525
+ }
39526
+ f = /** @type {string} */ (jspb.Message.getField(message, 24));
39527
+ if (f != null) {
39528
+ writer.writeString(
39529
+ 24,
39530
+ f
39531
+ );
39532
+ }
39533
+ };
39534
+
39535
+
39536
+ /**
39537
+ * optional int32 id = 1;
39538
+ * @return {number}
39539
+ */
39540
+ proto.user.UserKycDocumentListItem.prototype.getId = function() {
39541
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39542
+ };
39543
+
39544
+
39545
+ /**
39546
+ * @param {number} value
39547
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39548
+ */
39549
+ proto.user.UserKycDocumentListItem.prototype.setId = function(value) {
39550
+ return jspb.Message.setProto3IntField(this, 1, value);
39551
+ };
39552
+
39553
+
39554
+ /**
39555
+ * optional int32 user_id = 2;
39556
+ * @return {number}
39557
+ */
39558
+ proto.user.UserKycDocumentListItem.prototype.getUserId = function() {
39559
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
39560
+ };
39561
+
39562
+
39563
+ /**
39564
+ * @param {number} value
39565
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39566
+ */
39567
+ proto.user.UserKycDocumentListItem.prototype.setUserId = function(value) {
39568
+ return jspb.Message.setProto3IntField(this, 2, value);
39569
+ };
39570
+
39571
+
39572
+ /**
39573
+ * optional string document_type = 3;
39574
+ * @return {string}
39575
+ */
39576
+ proto.user.UserKycDocumentListItem.prototype.getDocumentType = function() {
39577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
39578
+ };
39579
+
39580
+
39581
+ /**
39582
+ * @param {string} value
39583
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39584
+ */
39585
+ proto.user.UserKycDocumentListItem.prototype.setDocumentType = function(value) {
39586
+ return jspb.Message.setProto3StringField(this, 3, value);
39587
+ };
39588
+
39589
+
39590
+ /**
39591
+ * optional string document_side = 4;
39592
+ * @return {string}
39593
+ */
39594
+ proto.user.UserKycDocumentListItem.prototype.getDocumentSide = function() {
39595
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
39596
+ };
39597
+
39598
+
39599
+ /**
39600
+ * @param {string} value
39601
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39602
+ */
39603
+ proto.user.UserKycDocumentListItem.prototype.setDocumentSide = function(value) {
39604
+ return jspb.Message.setProto3StringField(this, 4, value);
39605
+ };
39606
+
39607
+
39608
+ /**
39609
+ * optional string status = 5;
39610
+ * @return {string}
39611
+ */
39612
+ proto.user.UserKycDocumentListItem.prototype.getStatus = function() {
39613
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
39614
+ };
39615
+
39616
+
39617
+ /**
39618
+ * @param {string} value
39619
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39620
+ */
39621
+ proto.user.UserKycDocumentListItem.prototype.setStatus = function(value) {
39622
+ return jspb.Message.setProto3StringField(this, 5, value);
39623
+ };
39624
+
39625
+
39626
+ /**
39627
+ * optional string reason = 6;
39628
+ * @return {string}
39629
+ */
39630
+ proto.user.UserKycDocumentListItem.prototype.getReason = function() {
39631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
39632
+ };
39633
+
39634
+
39635
+ /**
39636
+ * @param {string} value
39637
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39638
+ */
39639
+ proto.user.UserKycDocumentListItem.prototype.setReason = function(value) {
39640
+ return jspb.Message.setField(this, 6, value);
39641
+ };
39642
+
39643
+
39644
+ /**
39645
+ * Clears the field making it undefined.
39646
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39647
+ */
39648
+ proto.user.UserKycDocumentListItem.prototype.clearReason = function() {
39649
+ return jspb.Message.setField(this, 6, undefined);
39650
+ };
39651
+
39652
+
39653
+ /**
39654
+ * Returns whether this field is set.
39655
+ * @return {boolean}
39656
+ */
39657
+ proto.user.UserKycDocumentListItem.prototype.hasReason = function() {
39658
+ return jspb.Message.getField(this, 6) != null;
39659
+ };
39660
+
39661
+
39662
+ /**
39663
+ * optional string source = 7;
39664
+ * @return {string}
39665
+ */
39666
+ proto.user.UserKycDocumentListItem.prototype.getSource = function() {
39667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
39668
+ };
39669
+
39670
+
39671
+ /**
39672
+ * @param {string} value
39673
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39674
+ */
39675
+ proto.user.UserKycDocumentListItem.prototype.setSource = function(value) {
39676
+ return jspb.Message.setField(this, 7, value);
39677
+ };
39678
+
39679
+
39680
+ /**
39681
+ * Clears the field making it undefined.
39682
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39683
+ */
39684
+ proto.user.UserKycDocumentListItem.prototype.clearSource = function() {
39685
+ return jspb.Message.setField(this, 7, undefined);
39686
+ };
39687
+
39688
+
39689
+ /**
39690
+ * Returns whether this field is set.
39691
+ * @return {boolean}
39692
+ */
39693
+ proto.user.UserKycDocumentListItem.prototype.hasSource = function() {
39694
+ return jspb.Message.getField(this, 7) != null;
39695
+ };
39696
+
39697
+
39698
+ /**
39699
+ * optional int32 reviewer_id = 8;
39700
+ * @return {number}
39701
+ */
39702
+ proto.user.UserKycDocumentListItem.prototype.getReviewerId = function() {
39703
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
39704
+ };
39705
+
39706
+
39707
+ /**
39708
+ * @param {number} value
39709
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39710
+ */
39711
+ proto.user.UserKycDocumentListItem.prototype.setReviewerId = function(value) {
39712
+ return jspb.Message.setField(this, 8, value);
39713
+ };
39714
+
39715
+
39716
+ /**
39717
+ * Clears the field making it undefined.
39718
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39719
+ */
39720
+ proto.user.UserKycDocumentListItem.prototype.clearReviewerId = function() {
39721
+ return jspb.Message.setField(this, 8, undefined);
39722
+ };
39723
+
39724
+
39725
+ /**
39726
+ * Returns whether this field is set.
39727
+ * @return {boolean}
39728
+ */
39729
+ proto.user.UserKycDocumentListItem.prototype.hasReviewerId = function() {
39730
+ return jspb.Message.getField(this, 8) != null;
39731
+ };
39732
+
39733
+
39734
+ /**
39735
+ * optional int32 uploaded_by = 9;
39736
+ * @return {number}
39737
+ */
39738
+ proto.user.UserKycDocumentListItem.prototype.getUploadedBy = function() {
39739
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
39740
+ };
39741
+
39742
+
39743
+ /**
39744
+ * @param {number} value
39745
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39746
+ */
39747
+ proto.user.UserKycDocumentListItem.prototype.setUploadedBy = function(value) {
39748
+ return jspb.Message.setField(this, 9, value);
39749
+ };
39750
+
39751
+
39752
+ /**
39753
+ * Clears the field making it undefined.
39754
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39755
+ */
39756
+ proto.user.UserKycDocumentListItem.prototype.clearUploadedBy = function() {
39757
+ return jspb.Message.setField(this, 9, undefined);
39758
+ };
39759
+
39760
+
39761
+ /**
39762
+ * Returns whether this field is set.
39763
+ * @return {boolean}
39764
+ */
39765
+ proto.user.UserKycDocumentListItem.prototype.hasUploadedBy = function() {
39766
+ return jspb.Message.getField(this, 9) != null;
39767
+ };
39768
+
39769
+
39770
+ /**
39771
+ * optional string storage_provider = 10;
39772
+ * @return {string}
39773
+ */
39774
+ proto.user.UserKycDocumentListItem.prototype.getStorageProvider = function() {
39775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
39776
+ };
39777
+
39778
+
39779
+ /**
39780
+ * @param {string} value
39781
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39782
+ */
39783
+ proto.user.UserKycDocumentListItem.prototype.setStorageProvider = function(value) {
39784
+ return jspb.Message.setField(this, 10, value);
39785
+ };
39786
+
39787
+
39788
+ /**
39789
+ * Clears the field making it undefined.
39790
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39791
+ */
39792
+ proto.user.UserKycDocumentListItem.prototype.clearStorageProvider = function() {
39793
+ return jspb.Message.setField(this, 10, undefined);
39794
+ };
39795
+
39796
+
39797
+ /**
39798
+ * Returns whether this field is set.
39799
+ * @return {boolean}
39800
+ */
39801
+ proto.user.UserKycDocumentListItem.prototype.hasStorageProvider = function() {
39802
+ return jspb.Message.getField(this, 10) != null;
39803
+ };
39804
+
39805
+
39806
+ /**
39807
+ * optional string storage_ref = 11;
39808
+ * @return {string}
39809
+ */
39810
+ proto.user.UserKycDocumentListItem.prototype.getStorageRef = function() {
39811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
39812
+ };
39813
+
39814
+
39815
+ /**
39816
+ * @param {string} value
39817
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39818
+ */
39819
+ proto.user.UserKycDocumentListItem.prototype.setStorageRef = function(value) {
39820
+ return jspb.Message.setField(this, 11, value);
39821
+ };
39822
+
39823
+
39824
+ /**
39825
+ * Clears the field making it undefined.
39826
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39827
+ */
39828
+ proto.user.UserKycDocumentListItem.prototype.clearStorageRef = function() {
39829
+ return jspb.Message.setField(this, 11, undefined);
39830
+ };
39831
+
39832
+
39833
+ /**
39834
+ * Returns whether this field is set.
39835
+ * @return {boolean}
39836
+ */
39837
+ proto.user.UserKycDocumentListItem.prototype.hasStorageRef = function() {
39838
+ return jspb.Message.getField(this, 11) != null;
39839
+ };
39840
+
39841
+
39842
+ /**
39843
+ * optional string file_name = 12;
39844
+ * @return {string}
39845
+ */
39846
+ proto.user.UserKycDocumentListItem.prototype.getFileName = function() {
39847
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
39848
+ };
39849
+
39850
+
39851
+ /**
39852
+ * @param {string} value
39853
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39854
+ */
39855
+ proto.user.UserKycDocumentListItem.prototype.setFileName = function(value) {
39856
+ return jspb.Message.setField(this, 12, value);
39857
+ };
39858
+
39859
+
39860
+ /**
39861
+ * Clears the field making it undefined.
39862
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39863
+ */
39864
+ proto.user.UserKycDocumentListItem.prototype.clearFileName = function() {
39865
+ return jspb.Message.setField(this, 12, undefined);
39866
+ };
39867
+
39868
+
39869
+ /**
39870
+ * Returns whether this field is set.
39871
+ * @return {boolean}
39872
+ */
39873
+ proto.user.UserKycDocumentListItem.prototype.hasFileName = function() {
39874
+ return jspb.Message.getField(this, 12) != null;
39875
+ };
39876
+
39877
+
39878
+ /**
39879
+ * optional string mime_type = 13;
39880
+ * @return {string}
39881
+ */
39882
+ proto.user.UserKycDocumentListItem.prototype.getMimeType = function() {
39883
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
39884
+ };
39885
+
39886
+
39887
+ /**
39888
+ * @param {string} value
39889
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39890
+ */
39891
+ proto.user.UserKycDocumentListItem.prototype.setMimeType = function(value) {
39892
+ return jspb.Message.setField(this, 13, value);
39893
+ };
39894
+
39895
+
39896
+ /**
39897
+ * Clears the field making it undefined.
39898
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39899
+ */
39900
+ proto.user.UserKycDocumentListItem.prototype.clearMimeType = function() {
39901
+ return jspb.Message.setField(this, 13, undefined);
39902
+ };
39903
+
39904
+
39905
+ /**
39906
+ * Returns whether this field is set.
39907
+ * @return {boolean}
39908
+ */
39909
+ proto.user.UserKycDocumentListItem.prototype.hasMimeType = function() {
39910
+ return jspb.Message.getField(this, 13) != null;
39911
+ };
39912
+
39913
+
39914
+ /**
39915
+ * optional int64 file_size = 14;
39916
+ * @return {number}
39917
+ */
39918
+ proto.user.UserKycDocumentListItem.prototype.getFileSize = function() {
39919
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
39920
+ };
39921
+
39922
+
39923
+ /**
39924
+ * @param {number} value
39925
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39926
+ */
39927
+ proto.user.UserKycDocumentListItem.prototype.setFileSize = function(value) {
39928
+ return jspb.Message.setField(this, 14, value);
39929
+ };
39930
+
39931
+
39932
+ /**
39933
+ * Clears the field making it undefined.
39934
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39935
+ */
39936
+ proto.user.UserKycDocumentListItem.prototype.clearFileSize = function() {
39937
+ return jspb.Message.setField(this, 14, undefined);
39938
+ };
39939
+
39940
+
39941
+ /**
39942
+ * Returns whether this field is set.
39943
+ * @return {boolean}
39944
+ */
39945
+ proto.user.UserKycDocumentListItem.prototype.hasFileSize = function() {
39946
+ return jspb.Message.getField(this, 14) != null;
39947
+ };
39948
+
39949
+
39950
+ /**
39951
+ * optional string created_at = 15;
39952
+ * @return {string}
39953
+ */
39954
+ proto.user.UserKycDocumentListItem.prototype.getCreatedAt = function() {
39955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
39956
+ };
39957
+
39958
+
39959
+ /**
39960
+ * @param {string} value
39961
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39962
+ */
39963
+ proto.user.UserKycDocumentListItem.prototype.setCreatedAt = function(value) {
39964
+ return jspb.Message.setField(this, 15, value);
39965
+ };
39966
+
39967
+
39968
+ /**
39969
+ * Clears the field making it undefined.
39970
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39971
+ */
39972
+ proto.user.UserKycDocumentListItem.prototype.clearCreatedAt = function() {
39973
+ return jspb.Message.setField(this, 15, undefined);
39974
+ };
39975
+
39976
+
39977
+ /**
39978
+ * Returns whether this field is set.
39979
+ * @return {boolean}
39980
+ */
39981
+ proto.user.UserKycDocumentListItem.prototype.hasCreatedAt = function() {
39982
+ return jspb.Message.getField(this, 15) != null;
39983
+ };
39984
+
39985
+
39986
+ /**
39987
+ * optional string updated_at = 16;
39988
+ * @return {string}
39989
+ */
39990
+ proto.user.UserKycDocumentListItem.prototype.getUpdatedAt = function() {
39991
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
39992
+ };
39993
+
39994
+
39995
+ /**
39996
+ * @param {string} value
39997
+ * @return {!proto.user.UserKycDocumentListItem} returns this
39998
+ */
39999
+ proto.user.UserKycDocumentListItem.prototype.setUpdatedAt = function(value) {
40000
+ return jspb.Message.setField(this, 16, value);
40001
+ };
40002
+
40003
+
40004
+ /**
40005
+ * Clears the field making it undefined.
40006
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40007
+ */
40008
+ proto.user.UserKycDocumentListItem.prototype.clearUpdatedAt = function() {
40009
+ return jspb.Message.setField(this, 16, undefined);
40010
+ };
40011
+
40012
+
40013
+ /**
40014
+ * Returns whether this field is set.
40015
+ * @return {boolean}
40016
+ */
40017
+ proto.user.UserKycDocumentListItem.prototype.hasUpdatedAt = function() {
40018
+ return jspb.Message.getField(this, 16) != null;
40019
+ };
40020
+
40021
+
40022
+ /**
40023
+ * optional string user_public_id = 17;
40024
+ * @return {string}
40025
+ */
40026
+ proto.user.UserKycDocumentListItem.prototype.getUserPublicId = function() {
40027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
40028
+ };
40029
+
40030
+
40031
+ /**
40032
+ * @param {string} value
40033
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40034
+ */
40035
+ proto.user.UserKycDocumentListItem.prototype.setUserPublicId = function(value) {
40036
+ return jspb.Message.setField(this, 17, value);
40037
+ };
40038
+
40039
+
40040
+ /**
40041
+ * Clears the field making it undefined.
40042
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40043
+ */
40044
+ proto.user.UserKycDocumentListItem.prototype.clearUserPublicId = function() {
40045
+ return jspb.Message.setField(this, 17, undefined);
40046
+ };
40047
+
40048
+
40049
+ /**
40050
+ * Returns whether this field is set.
40051
+ * @return {boolean}
40052
+ */
40053
+ proto.user.UserKycDocumentListItem.prototype.hasUserPublicId = function() {
40054
+ return jspb.Message.getField(this, 17) != null;
40055
+ };
40056
+
40057
+
40058
+ /**
40059
+ * optional string email = 18;
40060
+ * @return {string}
40061
+ */
40062
+ proto.user.UserKycDocumentListItem.prototype.getEmail = function() {
40063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
40064
+ };
40065
+
40066
+
40067
+ /**
40068
+ * @param {string} value
40069
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40070
+ */
40071
+ proto.user.UserKycDocumentListItem.prototype.setEmail = function(value) {
40072
+ return jspb.Message.setField(this, 18, value);
40073
+ };
40074
+
40075
+
40076
+ /**
40077
+ * Clears the field making it undefined.
40078
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40079
+ */
40080
+ proto.user.UserKycDocumentListItem.prototype.clearEmail = function() {
40081
+ return jspb.Message.setField(this, 18, undefined);
40082
+ };
40083
+
40084
+
40085
+ /**
40086
+ * Returns whether this field is set.
40087
+ * @return {boolean}
40088
+ */
40089
+ proto.user.UserKycDocumentListItem.prototype.hasEmail = function() {
40090
+ return jspb.Message.getField(this, 18) != null;
40091
+ };
40092
+
40093
+
40094
+ /**
40095
+ * optional string country = 19;
40096
+ * @return {string}
40097
+ */
40098
+ proto.user.UserKycDocumentListItem.prototype.getCountry = function() {
40099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
40100
+ };
40101
+
40102
+
40103
+ /**
40104
+ * @param {string} value
40105
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40106
+ */
40107
+ proto.user.UserKycDocumentListItem.prototype.setCountry = function(value) {
40108
+ return jspb.Message.setField(this, 19, value);
40109
+ };
40110
+
40111
+
40112
+ /**
40113
+ * Clears the field making it undefined.
40114
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40115
+ */
40116
+ proto.user.UserKycDocumentListItem.prototype.clearCountry = function() {
40117
+ return jspb.Message.setField(this, 19, undefined);
40118
+ };
40119
+
40120
+
40121
+ /**
40122
+ * Returns whether this field is set.
40123
+ * @return {boolean}
40124
+ */
40125
+ proto.user.UserKycDocumentListItem.prototype.hasCountry = function() {
40126
+ return jspb.Message.getField(this, 19) != null;
40127
+ };
40128
+
40129
+
40130
+ /**
40131
+ * optional string currency = 20;
40132
+ * @return {string}
40133
+ */
40134
+ proto.user.UserKycDocumentListItem.prototype.getCurrency = function() {
40135
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
40136
+ };
40137
+
40138
+
40139
+ /**
40140
+ * @param {string} value
40141
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40142
+ */
40143
+ proto.user.UserKycDocumentListItem.prototype.setCurrency = function(value) {
40144
+ return jspb.Message.setField(this, 20, value);
40145
+ };
40146
+
40147
+
40148
+ /**
40149
+ * Clears the field making it undefined.
40150
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40151
+ */
40152
+ proto.user.UserKycDocumentListItem.prototype.clearCurrency = function() {
40153
+ return jspb.Message.setField(this, 20, undefined);
40154
+ };
40155
+
40156
+
40157
+ /**
40158
+ * Returns whether this field is set.
40159
+ * @return {boolean}
40160
+ */
40161
+ proto.user.UserKycDocumentListItem.prototype.hasCurrency = function() {
40162
+ return jspb.Message.getField(this, 20) != null;
40163
+ };
40164
+
40165
+
40166
+ /**
40167
+ * optional string kyc_status = 21;
40168
+ * @return {string}
40169
+ */
40170
+ proto.user.UserKycDocumentListItem.prototype.getKycStatus = function() {
40171
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
40172
+ };
40173
+
40174
+
40175
+ /**
40176
+ * @param {string} value
40177
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40178
+ */
40179
+ proto.user.UserKycDocumentListItem.prototype.setKycStatus = function(value) {
40180
+ return jspb.Message.setField(this, 21, value);
40181
+ };
40182
+
40183
+
40184
+ /**
40185
+ * Clears the field making it undefined.
40186
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40187
+ */
40188
+ proto.user.UserKycDocumentListItem.prototype.clearKycStatus = function() {
40189
+ return jspb.Message.setField(this, 21, undefined);
40190
+ };
40191
+
40192
+
40193
+ /**
40194
+ * Returns whether this field is set.
40195
+ * @return {boolean}
40196
+ */
40197
+ proto.user.UserKycDocumentListItem.prototype.hasKycStatus = function() {
40198
+ return jspb.Message.getField(this, 21) != null;
40199
+ };
40200
+
40201
+
40202
+ /**
40203
+ * optional string risk_level = 22;
40204
+ * @return {string}
40205
+ */
40206
+ proto.user.UserKycDocumentListItem.prototype.getRiskLevel = function() {
40207
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
40208
+ };
40209
+
40210
+
40211
+ /**
40212
+ * @param {string} value
40213
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40214
+ */
40215
+ proto.user.UserKycDocumentListItem.prototype.setRiskLevel = function(value) {
40216
+ return jspb.Message.setField(this, 22, value);
40217
+ };
40218
+
40219
+
40220
+ /**
40221
+ * Clears the field making it undefined.
40222
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40223
+ */
40224
+ proto.user.UserKycDocumentListItem.prototype.clearRiskLevel = function() {
40225
+ return jspb.Message.setField(this, 22, undefined);
40226
+ };
40227
+
40228
+
40229
+ /**
40230
+ * Returns whether this field is set.
40231
+ * @return {boolean}
40232
+ */
40233
+ proto.user.UserKycDocumentListItem.prototype.hasRiskLevel = function() {
40234
+ return jspb.Message.getField(this, 22) != null;
40235
+ };
40236
+
40237
+
40238
+ /**
40239
+ * optional string uploaded_by_email = 23;
40240
+ * @return {string}
40241
+ */
40242
+ proto.user.UserKycDocumentListItem.prototype.getUploadedByEmail = function() {
40243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
40244
+ };
40245
+
40246
+
40247
+ /**
40248
+ * @param {string} value
40249
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40250
+ */
40251
+ proto.user.UserKycDocumentListItem.prototype.setUploadedByEmail = function(value) {
40252
+ return jspb.Message.setField(this, 23, value);
40253
+ };
40254
+
40255
+
40256
+ /**
40257
+ * Clears the field making it undefined.
40258
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40259
+ */
40260
+ proto.user.UserKycDocumentListItem.prototype.clearUploadedByEmail = function() {
40261
+ return jspb.Message.setField(this, 23, undefined);
40262
+ };
40263
+
40264
+
40265
+ /**
40266
+ * Returns whether this field is set.
40267
+ * @return {boolean}
40268
+ */
40269
+ proto.user.UserKycDocumentListItem.prototype.hasUploadedByEmail = function() {
40270
+ return jspb.Message.getField(this, 23) != null;
40271
+ };
40272
+
40273
+
40274
+ /**
40275
+ * optional string reviewer_email = 24;
40276
+ * @return {string}
40277
+ */
40278
+ proto.user.UserKycDocumentListItem.prototype.getReviewerEmail = function() {
40279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
40280
+ };
40281
+
40282
+
40283
+ /**
40284
+ * @param {string} value
40285
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40286
+ */
40287
+ proto.user.UserKycDocumentListItem.prototype.setReviewerEmail = function(value) {
40288
+ return jspb.Message.setField(this, 24, value);
40289
+ };
40290
+
40291
+
40292
+ /**
40293
+ * Clears the field making it undefined.
40294
+ * @return {!proto.user.UserKycDocumentListItem} returns this
40295
+ */
40296
+ proto.user.UserKycDocumentListItem.prototype.clearReviewerEmail = function() {
40297
+ return jspb.Message.setField(this, 24, undefined);
40298
+ };
40299
+
40300
+
40301
+ /**
40302
+ * Returns whether this field is set.
40303
+ * @return {boolean}
40304
+ */
40305
+ proto.user.UserKycDocumentListItem.prototype.hasReviewerEmail = function() {
40306
+ return jspb.Message.getField(this, 24) != null;
40307
+ };
40308
+
40309
+
40310
+
40311
+ /**
40312
+ * List of repeated fields within this message type.
40313
+ * @private {!Array<number>}
40314
+ * @const
40315
+ */
40316
+ proto.user.UserKycDocumentListResponse.repeatedFields_ = [1];
40317
+
40318
+
40319
+
40320
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40321
+ /**
40322
+ * Creates an object representation of this proto.
40323
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40324
+ * Optional fields that are not set will be set to undefined.
40325
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40326
+ * For the list of reserved names please see:
40327
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40328
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40329
+ * JSPB instance for transitional soy proto support:
40330
+ * http://goto/soy-param-migration
40331
+ * @return {!Object}
40332
+ */
40333
+ proto.user.UserKycDocumentListResponse.prototype.toObject = function(opt_includeInstance) {
40334
+ return proto.user.UserKycDocumentListResponse.toObject(opt_includeInstance, this);
40335
+ };
40336
+
40337
+
40338
+ /**
40339
+ * Static version of the {@see toObject} method.
40340
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40341
+ * the JSPB instance for transitional soy proto support:
40342
+ * http://goto/soy-param-migration
40343
+ * @param {!proto.user.UserKycDocumentListResponse} msg The msg instance to transform.
40344
+ * @return {!Object}
40345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40346
+ */
40347
+ proto.user.UserKycDocumentListResponse.toObject = function(includeInstance, msg) {
40348
+ var f, obj = {
40349
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
40350
+ proto.user.UserKycDocumentListItem.toObject, includeInstance),
40351
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
40352
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
40353
+ };
40354
+
40355
+ if (includeInstance) {
40356
+ obj.$jspbMessageInstance = msg;
40357
+ }
40358
+ return obj;
40359
+ };
40360
+ }
40361
+
40362
+
40363
+ /**
40364
+ * Deserializes binary data (in protobuf wire format).
40365
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40366
+ * @return {!proto.user.UserKycDocumentListResponse}
40367
+ */
40368
+ proto.user.UserKycDocumentListResponse.deserializeBinary = function(bytes) {
40369
+ var reader = new jspb.BinaryReader(bytes);
40370
+ var msg = new proto.user.UserKycDocumentListResponse;
40371
+ return proto.user.UserKycDocumentListResponse.deserializeBinaryFromReader(msg, reader);
40372
+ };
40373
+
40374
+
40375
+ /**
40376
+ * Deserializes binary data (in protobuf wire format) from the
40377
+ * given reader into the given message object.
40378
+ * @param {!proto.user.UserKycDocumentListResponse} msg The message object to deserialize into.
40379
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40380
+ * @return {!proto.user.UserKycDocumentListResponse}
40381
+ */
40382
+ proto.user.UserKycDocumentListResponse.deserializeBinaryFromReader = function(msg, reader) {
40383
+ while (reader.nextField()) {
40384
+ if (reader.isEndGroup()) {
40385
+ break;
40386
+ }
40387
+ var field = reader.getFieldNumber();
40388
+ switch (field) {
40389
+ case 1:
40390
+ var value = new proto.user.UserKycDocumentListItem;
40391
+ reader.readMessage(value,proto.user.UserKycDocumentListItem.deserializeBinaryFromReader);
40392
+ msg.addItems(value);
40393
+ break;
40394
+ case 2:
40395
+ var value = /** @type {number} */ (reader.readInt32());
40396
+ msg.setTotalPages(value);
40397
+ break;
40398
+ case 3:
40399
+ var value = /** @type {number} */ (reader.readInt32());
40400
+ msg.setTotalItems(value);
40401
+ break;
40402
+ default:
40403
+ reader.skipField();
40404
+ break;
40405
+ }
40406
+ }
40407
+ return msg;
40408
+ };
40409
+
40410
+
40411
+ /**
40412
+ * Serializes the message to binary data (in protobuf wire format).
40413
+ * @return {!Uint8Array}
40414
+ */
40415
+ proto.user.UserKycDocumentListResponse.prototype.serializeBinary = function() {
40416
+ var writer = new jspb.BinaryWriter();
40417
+ proto.user.UserKycDocumentListResponse.serializeBinaryToWriter(this, writer);
40418
+ return writer.getResultBuffer();
40419
+ };
40420
+
40421
+
40422
+ /**
40423
+ * Serializes the given message to binary data (in protobuf wire
40424
+ * format), writing to the given BinaryWriter.
40425
+ * @param {!proto.user.UserKycDocumentListResponse} message
40426
+ * @param {!jspb.BinaryWriter} writer
40427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40428
+ */
40429
+ proto.user.UserKycDocumentListResponse.serializeBinaryToWriter = function(message, writer) {
40430
+ var f = undefined;
40431
+ f = message.getItemsList();
40432
+ if (f.length > 0) {
40433
+ writer.writeRepeatedMessage(
40434
+ 1,
40435
+ f,
40436
+ proto.user.UserKycDocumentListItem.serializeBinaryToWriter
40437
+ );
40438
+ }
40439
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
40440
+ if (f != null) {
40441
+ writer.writeInt32(
40442
+ 2,
40443
+ f
40444
+ );
40445
+ }
40446
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
40447
+ if (f != null) {
40448
+ writer.writeInt32(
40449
+ 3,
40450
+ f
40451
+ );
40452
+ }
40453
+ };
40454
+
40455
+
40456
+ /**
40457
+ * repeated UserKycDocumentListItem items = 1;
40458
+ * @return {!Array<!proto.user.UserKycDocumentListItem>}
40459
+ */
40460
+ proto.user.UserKycDocumentListResponse.prototype.getItemsList = function() {
40461
+ return /** @type{!Array<!proto.user.UserKycDocumentListItem>} */ (
40462
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentListItem, 1));
40463
+ };
40464
+
40465
+
40466
+ /**
40467
+ * @param {!Array<!proto.user.UserKycDocumentListItem>} value
40468
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40469
+ */
40470
+ proto.user.UserKycDocumentListResponse.prototype.setItemsList = function(value) {
40471
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
40472
+ };
40473
+
40474
+
40475
+ /**
40476
+ * @param {!proto.user.UserKycDocumentListItem=} opt_value
40477
+ * @param {number=} opt_index
40478
+ * @return {!proto.user.UserKycDocumentListItem}
40479
+ */
40480
+ proto.user.UserKycDocumentListResponse.prototype.addItems = function(opt_value, opt_index) {
40481
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserKycDocumentListItem, opt_index);
40482
+ };
40483
+
40484
+
40485
+ /**
40486
+ * Clears the list making it empty but non-null.
40487
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40488
+ */
40489
+ proto.user.UserKycDocumentListResponse.prototype.clearItemsList = function() {
40490
+ return this.setItemsList([]);
40491
+ };
40492
+
40493
+
40494
+ /**
40495
+ * optional int32 total_pages = 2;
40496
+ * @return {number}
40497
+ */
40498
+ proto.user.UserKycDocumentListResponse.prototype.getTotalPages = function() {
40499
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40500
+ };
40501
+
40502
+
40503
+ /**
40504
+ * @param {number} value
40505
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40506
+ */
40507
+ proto.user.UserKycDocumentListResponse.prototype.setTotalPages = function(value) {
40508
+ return jspb.Message.setField(this, 2, value);
40509
+ };
40510
+
40511
+
40512
+ /**
40513
+ * Clears the field making it undefined.
40514
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40515
+ */
40516
+ proto.user.UserKycDocumentListResponse.prototype.clearTotalPages = function() {
40517
+ return jspb.Message.setField(this, 2, undefined);
40518
+ };
40519
+
40520
+
40521
+ /**
40522
+ * Returns whether this field is set.
40523
+ * @return {boolean}
40524
+ */
40525
+ proto.user.UserKycDocumentListResponse.prototype.hasTotalPages = function() {
40526
+ return jspb.Message.getField(this, 2) != null;
40527
+ };
40528
+
40529
+
40530
+ /**
40531
+ * optional int32 total_items = 3;
40532
+ * @return {number}
40533
+ */
40534
+ proto.user.UserKycDocumentListResponse.prototype.getTotalItems = function() {
40535
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
40536
+ };
40537
+
40538
+
40539
+ /**
40540
+ * @param {number} value
40541
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40542
+ */
40543
+ proto.user.UserKycDocumentListResponse.prototype.setTotalItems = function(value) {
40544
+ return jspb.Message.setField(this, 3, value);
40545
+ };
40546
+
40547
+
40548
+ /**
40549
+ * Clears the field making it undefined.
40550
+ * @return {!proto.user.UserKycDocumentListResponse} returns this
40551
+ */
40552
+ proto.user.UserKycDocumentListResponse.prototype.clearTotalItems = function() {
40553
+ return jspb.Message.setField(this, 3, undefined);
40554
+ };
40555
+
40556
+
40557
+ /**
40558
+ * Returns whether this field is set.
40559
+ * @return {boolean}
40560
+ */
40561
+ proto.user.UserKycDocumentListResponse.prototype.hasTotalItems = function() {
40562
+ return jspb.Message.getField(this, 3) != null;
40563
+ };
40564
+
40565
+
40566
+
40567
+
40568
+
40569
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40570
+ /**
40571
+ * Creates an object representation of this proto.
40572
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40573
+ * Optional fields that are not set will be set to undefined.
40574
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40575
+ * For the list of reserved names please see:
40576
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40577
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40578
+ * JSPB instance for transitional soy proto support:
40579
+ * http://goto/soy-param-migration
40580
+ * @return {!Object}
40581
+ */
40582
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.toObject = function(opt_includeInstance) {
40583
+ return proto.user.ReadUserKycDocumentOptionsRequest.toObject(opt_includeInstance, this);
40584
+ };
40585
+
40586
+
40587
+ /**
40588
+ * Static version of the {@see toObject} method.
40589
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40590
+ * the JSPB instance for transitional soy proto support:
40591
+ * http://goto/soy-param-migration
40592
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The msg instance to transform.
40593
+ * @return {!Object}
40594
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40595
+ */
40596
+ proto.user.ReadUserKycDocumentOptionsRequest.toObject = function(includeInstance, msg) {
40597
+ var f, obj = {
40598
+
40599
+ };
40600
+
40601
+ if (includeInstance) {
40602
+ obj.$jspbMessageInstance = msg;
40603
+ }
40604
+ return obj;
40605
+ };
40606
+ }
40607
+
40608
+
40609
+ /**
40610
+ * Deserializes binary data (in protobuf wire format).
40611
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40612
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40613
+ */
40614
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinary = function(bytes) {
40615
+ var reader = new jspb.BinaryReader(bytes);
40616
+ var msg = new proto.user.ReadUserKycDocumentOptionsRequest;
40617
+ return proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader(msg, reader);
40618
+ };
40619
+
40620
+
40621
+ /**
40622
+ * Deserializes binary data (in protobuf wire format) from the
40623
+ * given reader into the given message object.
40624
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The message object to deserialize into.
40625
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40626
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40627
+ */
40628
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader = function(msg, reader) {
40629
+ while (reader.nextField()) {
40630
+ if (reader.isEndGroup()) {
40631
+ break;
40632
+ }
40633
+ var field = reader.getFieldNumber();
40634
+ switch (field) {
40635
+ default:
40636
+ reader.skipField();
40637
+ break;
40638
+ }
40639
+ }
40640
+ return msg;
40641
+ };
40642
+
40643
+
40644
+ /**
40645
+ * Serializes the message to binary data (in protobuf wire format).
40646
+ * @return {!Uint8Array}
40647
+ */
40648
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.serializeBinary = function() {
40649
+ var writer = new jspb.BinaryWriter();
40650
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter(this, writer);
40651
+ return writer.getResultBuffer();
40652
+ };
40653
+
40654
+
40655
+ /**
40656
+ * Serializes the given message to binary data (in protobuf wire
40657
+ * format), writing to the given BinaryWriter.
40658
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} message
40659
+ * @param {!jspb.BinaryWriter} writer
40660
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40661
+ */
40662
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter = function(message, writer) {
40663
+ var f = undefined;
40664
+ };
40665
+
40666
+
40667
+
40668
+
40669
+
40670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40671
+ /**
40672
+ * Creates an object representation of this proto.
40673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40674
+ * Optional fields that are not set will be set to undefined.
40675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40676
+ * For the list of reserved names please see:
40677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40679
+ * JSPB instance for transitional soy proto support:
40680
+ * http://goto/soy-param-migration
40681
+ * @return {!Object}
40682
+ */
40683
+ proto.user.UserKycDocumentOptionItem.prototype.toObject = function(opt_includeInstance) {
40684
+ return proto.user.UserKycDocumentOptionItem.toObject(opt_includeInstance, this);
40685
+ };
40686
+
40687
+
40688
+ /**
40689
+ * Static version of the {@see toObject} method.
40690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40691
+ * the JSPB instance for transitional soy proto support:
40692
+ * http://goto/soy-param-migration
40693
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The msg instance to transform.
40694
+ * @return {!Object}
40695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40696
+ */
40697
+ proto.user.UserKycDocumentOptionItem.toObject = function(includeInstance, msg) {
40698
+ var f, obj = {
40699
+ value: jspb.Message.getFieldWithDefault(msg, 1, ""),
40700
+ title: jspb.Message.getFieldWithDefault(msg, 2, "")
40701
+ };
40702
+
40703
+ if (includeInstance) {
40704
+ obj.$jspbMessageInstance = msg;
40705
+ }
40706
+ return obj;
40707
+ };
40708
+ }
40709
+
40710
+
40711
+ /**
40712
+ * Deserializes binary data (in protobuf wire format).
40713
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40714
+ * @return {!proto.user.UserKycDocumentOptionItem}
40715
+ */
40716
+ proto.user.UserKycDocumentOptionItem.deserializeBinary = function(bytes) {
40717
+ var reader = new jspb.BinaryReader(bytes);
40718
+ var msg = new proto.user.UserKycDocumentOptionItem;
40719
+ return proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader(msg, reader);
40720
+ };
40721
+
40722
+
40723
+ /**
40724
+ * Deserializes binary data (in protobuf wire format) from the
40725
+ * given reader into the given message object.
40726
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The message object to deserialize into.
40727
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40728
+ * @return {!proto.user.UserKycDocumentOptionItem}
40729
+ */
40730
+ proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader = function(msg, reader) {
40731
+ while (reader.nextField()) {
40732
+ if (reader.isEndGroup()) {
40733
+ break;
40734
+ }
40735
+ var field = reader.getFieldNumber();
40736
+ switch (field) {
40737
+ case 1:
40738
+ var value = /** @type {string} */ (reader.readString());
40739
+ msg.setValue(value);
40740
+ break;
40741
+ case 2:
40742
+ var value = /** @type {string} */ (reader.readString());
40743
+ msg.setTitle(value);
40744
+ break;
40745
+ default:
40746
+ reader.skipField();
40747
+ break;
40748
+ }
40749
+ }
40750
+ return msg;
40751
+ };
40752
+
40753
+
40754
+ /**
40755
+ * Serializes the message to binary data (in protobuf wire format).
40756
+ * @return {!Uint8Array}
40757
+ */
40758
+ proto.user.UserKycDocumentOptionItem.prototype.serializeBinary = function() {
40759
+ var writer = new jspb.BinaryWriter();
40760
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter(this, writer);
40761
+ return writer.getResultBuffer();
40762
+ };
40763
+
40764
+
40765
+ /**
40766
+ * Serializes the given message to binary data (in protobuf wire
40767
+ * format), writing to the given BinaryWriter.
40768
+ * @param {!proto.user.UserKycDocumentOptionItem} message
40769
+ * @param {!jspb.BinaryWriter} writer
40770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40771
+ */
40772
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter = function(message, writer) {
40773
+ var f = undefined;
40774
+ f = message.getValue();
40775
+ if (f.length > 0) {
40776
+ writer.writeString(
40777
+ 1,
40778
+ f
40779
+ );
40780
+ }
40781
+ f = message.getTitle();
40782
+ if (f.length > 0) {
40783
+ writer.writeString(
40784
+ 2,
40785
+ f
40786
+ );
40787
+ }
40788
+ };
40789
+
40790
+
40791
+ /**
40792
+ * optional string value = 1;
40793
+ * @return {string}
40794
+ */
40795
+ proto.user.UserKycDocumentOptionItem.prototype.getValue = function() {
40796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
40797
+ };
40798
+
40799
+
40800
+ /**
40801
+ * @param {string} value
40802
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40803
+ */
40804
+ proto.user.UserKycDocumentOptionItem.prototype.setValue = function(value) {
40805
+ return jspb.Message.setProto3StringField(this, 1, value);
40806
+ };
40807
+
40808
+
40809
+ /**
40810
+ * optional string title = 2;
40811
+ * @return {string}
40812
+ */
40813
+ proto.user.UserKycDocumentOptionItem.prototype.getTitle = function() {
40814
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40815
+ };
40816
+
40817
+
40818
+ /**
40819
+ * @param {string} value
40820
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40821
+ */
40822
+ proto.user.UserKycDocumentOptionItem.prototype.setTitle = function(value) {
40823
+ return jspb.Message.setProto3StringField(this, 2, value);
40824
+ };
40825
+
40826
+
40827
+
40828
+ /**
40829
+ * List of repeated fields within this message type.
40830
+ * @private {!Array<number>}
40831
+ * @const
40832
+ */
40833
+ proto.user.UserKycDocumentOptionsResponse.repeatedFields_ = [1,2,3];
40834
+
40835
+
40836
+
40837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40838
+ /**
40839
+ * Creates an object representation of this proto.
40840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40841
+ * Optional fields that are not set will be set to undefined.
40842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40843
+ * For the list of reserved names please see:
40844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40846
+ * JSPB instance for transitional soy proto support:
40847
+ * http://goto/soy-param-migration
40848
+ * @return {!Object}
40849
+ */
40850
+ proto.user.UserKycDocumentOptionsResponse.prototype.toObject = function(opt_includeInstance) {
40851
+ return proto.user.UserKycDocumentOptionsResponse.toObject(opt_includeInstance, this);
40852
+ };
40853
+
40854
+
40855
+ /**
40856
+ * Static version of the {@see toObject} method.
40857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40858
+ * the JSPB instance for transitional soy proto support:
40859
+ * http://goto/soy-param-migration
40860
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The msg instance to transform.
40861
+ * @return {!Object}
40862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40863
+ */
40864
+ proto.user.UserKycDocumentOptionsResponse.toObject = function(includeInstance, msg) {
40865
+ var f, obj = {
40866
+ documentTypesList: jspb.Message.toObjectList(msg.getDocumentTypesList(),
40867
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40868
+ documentSidesList: jspb.Message.toObjectList(msg.getDocumentSidesList(),
40869
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40870
+ documentStatusesList: jspb.Message.toObjectList(msg.getDocumentStatusesList(),
40871
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance)
40872
+ };
40873
+
40874
+ if (includeInstance) {
40875
+ obj.$jspbMessageInstance = msg;
40876
+ }
40877
+ return obj;
40878
+ };
40879
+ }
40880
+
40881
+
40882
+ /**
40883
+ * Deserializes binary data (in protobuf wire format).
40884
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40885
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40886
+ */
40887
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinary = function(bytes) {
40888
+ var reader = new jspb.BinaryReader(bytes);
40889
+ var msg = new proto.user.UserKycDocumentOptionsResponse;
40890
+ return proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader(msg, reader);
40891
+ };
40892
+
40893
+
40894
+ /**
40895
+ * Deserializes binary data (in protobuf wire format) from the
40896
+ * given reader into the given message object.
40897
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The message object to deserialize into.
40898
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40899
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40900
+ */
40901
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader = function(msg, reader) {
40902
+ while (reader.nextField()) {
40903
+ if (reader.isEndGroup()) {
40904
+ break;
40905
+ }
40906
+ var field = reader.getFieldNumber();
40907
+ switch (field) {
40908
+ case 1:
40909
+ var value = new proto.user.UserKycDocumentOptionItem;
40910
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40911
+ msg.addDocumentTypes(value);
40912
+ break;
40913
+ case 2:
40914
+ var value = new proto.user.UserKycDocumentOptionItem;
40915
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40916
+ msg.addDocumentSides(value);
40917
+ break;
40918
+ case 3:
40919
+ var value = new proto.user.UserKycDocumentOptionItem;
40920
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40921
+ msg.addDocumentStatuses(value);
40922
+ break;
40923
+ default:
40924
+ reader.skipField();
40925
+ break;
40926
+ }
40927
+ }
40928
+ return msg;
40929
+ };
40930
+
40931
+
40932
+ /**
40933
+ * Serializes the message to binary data (in protobuf wire format).
40934
+ * @return {!Uint8Array}
40935
+ */
40936
+ proto.user.UserKycDocumentOptionsResponse.prototype.serializeBinary = function() {
40937
+ var writer = new jspb.BinaryWriter();
40938
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter(this, writer);
40939
+ return writer.getResultBuffer();
40940
+ };
40941
+
40942
+
40943
+ /**
40944
+ * Serializes the given message to binary data (in protobuf wire
40945
+ * format), writing to the given BinaryWriter.
40946
+ * @param {!proto.user.UserKycDocumentOptionsResponse} message
40947
+ * @param {!jspb.BinaryWriter} writer
40948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40949
+ */
40950
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter = function(message, writer) {
40951
+ var f = undefined;
40952
+ f = message.getDocumentTypesList();
40953
+ if (f.length > 0) {
40954
+ writer.writeRepeatedMessage(
40955
+ 1,
40956
+ f,
40957
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40958
+ );
40959
+ }
40960
+ f = message.getDocumentSidesList();
40961
+ if (f.length > 0) {
40962
+ writer.writeRepeatedMessage(
40963
+ 2,
40964
+ f,
40965
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40966
+ );
40967
+ }
40968
+ f = message.getDocumentStatusesList();
40969
+ if (f.length > 0) {
40970
+ writer.writeRepeatedMessage(
40971
+ 3,
40972
+ f,
40973
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40974
+ );
40975
+ }
40976
+ };
40977
+
40978
+
40979
+ /**
40980
+ * repeated UserKycDocumentOptionItem document_types = 1;
40981
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
40982
+ */
40983
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentTypesList = function() {
40984
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
40985
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 1));
40986
+ };
40987
+
40988
+
40989
+ /**
40990
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
40991
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
40992
+ */
40993
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentTypesList = function(value) {
40994
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
40995
+ };
40996
+
40997
+
40998
+ /**
40999
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41000
+ * @param {number=} opt_index
41001
+ * @return {!proto.user.UserKycDocumentOptionItem}
41002
+ */
41003
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentTypes = function(opt_value, opt_index) {
41004
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41005
+ };
41006
+
41007
+
41008
+ /**
41009
+ * Clears the list making it empty but non-null.
41010
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41011
+ */
41012
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentTypesList = function() {
41013
+ return this.setDocumentTypesList([]);
41014
+ };
41015
+
41016
+
41017
+ /**
41018
+ * repeated UserKycDocumentOptionItem document_sides = 2;
41019
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41020
+ */
41021
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentSidesList = function() {
41022
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41023
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 2));
41024
+ };
41025
+
41026
+
41027
+ /**
41028
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41029
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41030
+ */
41031
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentSidesList = function(value) {
41032
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
41033
+ };
41034
+
41035
+
41036
+ /**
41037
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41038
+ * @param {number=} opt_index
41039
+ * @return {!proto.user.UserKycDocumentOptionItem}
41040
+ */
41041
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentSides = function(opt_value, opt_index) {
41042
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41043
+ };
41044
+
41045
+
41046
+ /**
41047
+ * Clears the list making it empty but non-null.
41048
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41049
+ */
41050
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentSidesList = function() {
41051
+ return this.setDocumentSidesList([]);
41052
+ };
41053
+
41054
+
41055
+ /**
41056
+ * repeated UserKycDocumentOptionItem document_statuses = 3;
41057
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41058
+ */
41059
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentStatusesList = function() {
41060
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41061
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 3));
41062
+ };
41063
+
41064
+
41065
+ /**
41066
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41067
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41068
+ */
41069
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentStatusesList = function(value) {
41070
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
41071
+ };
41072
+
41073
+
41074
+ /**
41075
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41076
+ * @param {number=} opt_index
41077
+ * @return {!proto.user.UserKycDocumentOptionItem}
41078
+ */
41079
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentStatuses = function(opt_value, opt_index) {
41080
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41081
+ };
41082
+
41083
+
41084
+ /**
41085
+ * Clears the list making it empty but non-null.
41086
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41087
+ */
41088
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentStatusesList = function() {
41089
+ return this.setDocumentStatusesList([]);
41090
+ };
41091
+
41092
+
41093
+
41094
+
41095
+
38179
41096
  if (jspb.Message.GENERATE_TO_OBJECT) {
38180
41097
  /**
38181
41098
  * Creates an object representation of this proto.