protobuf-platform 1.2.531 → 1.2.533

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
@@ -118,6 +118,8 @@ goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
118
118
  goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
119
119
  goog.exportSymbol('proto.user.ReadUserKycRequirementRequest', null, global);
120
120
  goog.exportSymbol('proto.user.ReadUserKycRequirementStatusRequest', null, global);
121
+ goog.exportSymbol('proto.user.ReadUserKycVerificationDocumentPreviewRequest', null, global);
122
+ goog.exportSymbol('proto.user.ReadUserKycVerificationDocumentsRequest', null, global);
121
123
  goog.exportSymbol('proto.user.ReadUserManualRestrictionsRequest', null, global);
122
124
  goog.exportSymbol('proto.user.ReadUserRiskProfileRequest', null, global);
123
125
  goog.exportSymbol('proto.user.RegistrationRequest', null, global);
@@ -209,6 +211,10 @@ goog.exportSymbol('proto.user.UserKycProfileResponse', null, global);
209
211
  goog.exportSymbol('proto.user.UserKycRequirementItem', null, global);
210
212
  goog.exportSymbol('proto.user.UserKycRequirementResponse', null, global);
211
213
  goog.exportSymbol('proto.user.UserKycRequirementStatusResponse', null, global);
214
+ goog.exportSymbol('proto.user.UserKycVerificationDocumentItem', null, global);
215
+ goog.exportSymbol('proto.user.UserKycVerificationDocumentPreviewResponse', null, global);
216
+ goog.exportSymbol('proto.user.UserKycVerificationDocumentSide', null, global);
217
+ goog.exportSymbol('proto.user.UserKycVerificationDocumentsResponse', null, global);
212
218
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
213
219
  goog.exportSymbol('proto.user.UserLimitsResponse', null, global);
214
220
  goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
@@ -2917,6 +2923,132 @@ if (goog.DEBUG && !COMPILED) {
2917
2923
  */
2918
2924
  proto.user.SyncUserKycProviderStatusRequest.displayName = 'proto.user.SyncUserKycProviderStatusRequest';
2919
2925
  }
2926
+ /**
2927
+ * Generated by JsPbCodeGenerator.
2928
+ * @param {Array=} opt_data Optional initial data array, typically from a
2929
+ * server response, or constructed directly in Javascript. The array is used
2930
+ * in place and becomes part of the constructed object. It is not cloned.
2931
+ * If no data is provided, the constructed object will be empty, but still
2932
+ * valid.
2933
+ * @extends {jspb.Message}
2934
+ * @constructor
2935
+ */
2936
+ proto.user.ReadUserKycVerificationDocumentsRequest = function(opt_data) {
2937
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2938
+ };
2939
+ goog.inherits(proto.user.ReadUserKycVerificationDocumentsRequest, jspb.Message);
2940
+ if (goog.DEBUG && !COMPILED) {
2941
+ /**
2942
+ * @public
2943
+ * @override
2944
+ */
2945
+ proto.user.ReadUserKycVerificationDocumentsRequest.displayName = 'proto.user.ReadUserKycVerificationDocumentsRequest';
2946
+ }
2947
+ /**
2948
+ * Generated by JsPbCodeGenerator.
2949
+ * @param {Array=} opt_data Optional initial data array, typically from a
2950
+ * server response, or constructed directly in Javascript. The array is used
2951
+ * in place and becomes part of the constructed object. It is not cloned.
2952
+ * If no data is provided, the constructed object will be empty, but still
2953
+ * valid.
2954
+ * @extends {jspb.Message}
2955
+ * @constructor
2956
+ */
2957
+ proto.user.UserKycVerificationDocumentSide = function(opt_data) {
2958
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2959
+ };
2960
+ goog.inherits(proto.user.UserKycVerificationDocumentSide, jspb.Message);
2961
+ if (goog.DEBUG && !COMPILED) {
2962
+ /**
2963
+ * @public
2964
+ * @override
2965
+ */
2966
+ proto.user.UserKycVerificationDocumentSide.displayName = 'proto.user.UserKycVerificationDocumentSide';
2967
+ }
2968
+ /**
2969
+ * Generated by JsPbCodeGenerator.
2970
+ * @param {Array=} opt_data Optional initial data array, typically from a
2971
+ * server response, or constructed directly in Javascript. The array is used
2972
+ * in place and becomes part of the constructed object. It is not cloned.
2973
+ * If no data is provided, the constructed object will be empty, but still
2974
+ * valid.
2975
+ * @extends {jspb.Message}
2976
+ * @constructor
2977
+ */
2978
+ proto.user.UserKycVerificationDocumentItem = function(opt_data) {
2979
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycVerificationDocumentItem.repeatedFields_, null);
2980
+ };
2981
+ goog.inherits(proto.user.UserKycVerificationDocumentItem, jspb.Message);
2982
+ if (goog.DEBUG && !COMPILED) {
2983
+ /**
2984
+ * @public
2985
+ * @override
2986
+ */
2987
+ proto.user.UserKycVerificationDocumentItem.displayName = 'proto.user.UserKycVerificationDocumentItem';
2988
+ }
2989
+ /**
2990
+ * Generated by JsPbCodeGenerator.
2991
+ * @param {Array=} opt_data Optional initial data array, typically from a
2992
+ * server response, or constructed directly in Javascript. The array is used
2993
+ * in place and becomes part of the constructed object. It is not cloned.
2994
+ * If no data is provided, the constructed object will be empty, but still
2995
+ * valid.
2996
+ * @extends {jspb.Message}
2997
+ * @constructor
2998
+ */
2999
+ proto.user.UserKycVerificationDocumentsResponse = function(opt_data) {
3000
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycVerificationDocumentsResponse.repeatedFields_, null);
3001
+ };
3002
+ goog.inherits(proto.user.UserKycVerificationDocumentsResponse, jspb.Message);
3003
+ if (goog.DEBUG && !COMPILED) {
3004
+ /**
3005
+ * @public
3006
+ * @override
3007
+ */
3008
+ proto.user.UserKycVerificationDocumentsResponse.displayName = 'proto.user.UserKycVerificationDocumentsResponse';
3009
+ }
3010
+ /**
3011
+ * Generated by JsPbCodeGenerator.
3012
+ * @param {Array=} opt_data Optional initial data array, typically from a
3013
+ * server response, or constructed directly in Javascript. The array is used
3014
+ * in place and becomes part of the constructed object. It is not cloned.
3015
+ * If no data is provided, the constructed object will be empty, but still
3016
+ * valid.
3017
+ * @extends {jspb.Message}
3018
+ * @constructor
3019
+ */
3020
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest = function(opt_data) {
3021
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3022
+ };
3023
+ goog.inherits(proto.user.ReadUserKycVerificationDocumentPreviewRequest, jspb.Message);
3024
+ if (goog.DEBUG && !COMPILED) {
3025
+ /**
3026
+ * @public
3027
+ * @override
3028
+ */
3029
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.displayName = 'proto.user.ReadUserKycVerificationDocumentPreviewRequest';
3030
+ }
3031
+ /**
3032
+ * Generated by JsPbCodeGenerator.
3033
+ * @param {Array=} opt_data Optional initial data array, typically from a
3034
+ * server response, or constructed directly in Javascript. The array is used
3035
+ * in place and becomes part of the constructed object. It is not cloned.
3036
+ * If no data is provided, the constructed object will be empty, but still
3037
+ * valid.
3038
+ * @extends {jspb.Message}
3039
+ * @constructor
3040
+ */
3041
+ proto.user.UserKycVerificationDocumentPreviewResponse = function(opt_data) {
3042
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3043
+ };
3044
+ goog.inherits(proto.user.UserKycVerificationDocumentPreviewResponse, jspb.Message);
3045
+ if (goog.DEBUG && !COMPILED) {
3046
+ /**
3047
+ * @public
3048
+ * @override
3049
+ */
3050
+ proto.user.UserKycVerificationDocumentPreviewResponse.displayName = 'proto.user.UserKycVerificationDocumentPreviewResponse';
3051
+ }
2920
3052
  /**
2921
3053
  * Generated by JsPbCodeGenerator.
2922
3054
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -54122,6 +54254,1278 @@ proto.user.SyncUserKycProviderStatusRequest.prototype.hasCorrelationId = functio
54122
54254
 
54123
54255
 
54124
54256
 
54257
+
54258
+
54259
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54260
+ /**
54261
+ * Creates an object representation of this proto.
54262
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
54263
+ * Optional fields that are not set will be set to undefined.
54264
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
54265
+ * For the list of reserved names please see:
54266
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
54267
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
54268
+ * JSPB instance for transitional soy proto support:
54269
+ * http://goto/soy-param-migration
54270
+ * @return {!Object}
54271
+ */
54272
+ proto.user.ReadUserKycVerificationDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
54273
+ return proto.user.ReadUserKycVerificationDocumentsRequest.toObject(opt_includeInstance, this);
54274
+ };
54275
+
54276
+
54277
+ /**
54278
+ * Static version of the {@see toObject} method.
54279
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
54280
+ * the JSPB instance for transitional soy proto support:
54281
+ * http://goto/soy-param-migration
54282
+ * @param {!proto.user.ReadUserKycVerificationDocumentsRequest} msg The msg instance to transform.
54283
+ * @return {!Object}
54284
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54285
+ */
54286
+ proto.user.ReadUserKycVerificationDocumentsRequest.toObject = function(includeInstance, msg) {
54287
+ var f, obj = {
54288
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
54289
+ };
54290
+
54291
+ if (includeInstance) {
54292
+ obj.$jspbMessageInstance = msg;
54293
+ }
54294
+ return obj;
54295
+ };
54296
+ }
54297
+
54298
+
54299
+ /**
54300
+ * Deserializes binary data (in protobuf wire format).
54301
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
54302
+ * @return {!proto.user.ReadUserKycVerificationDocumentsRequest}
54303
+ */
54304
+ proto.user.ReadUserKycVerificationDocumentsRequest.deserializeBinary = function(bytes) {
54305
+ var reader = new jspb.BinaryReader(bytes);
54306
+ var msg = new proto.user.ReadUserKycVerificationDocumentsRequest;
54307
+ return proto.user.ReadUserKycVerificationDocumentsRequest.deserializeBinaryFromReader(msg, reader);
54308
+ };
54309
+
54310
+
54311
+ /**
54312
+ * Deserializes binary data (in protobuf wire format) from the
54313
+ * given reader into the given message object.
54314
+ * @param {!proto.user.ReadUserKycVerificationDocumentsRequest} msg The message object to deserialize into.
54315
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
54316
+ * @return {!proto.user.ReadUserKycVerificationDocumentsRequest}
54317
+ */
54318
+ proto.user.ReadUserKycVerificationDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
54319
+ while (reader.nextField()) {
54320
+ if (reader.isEndGroup()) {
54321
+ break;
54322
+ }
54323
+ var field = reader.getFieldNumber();
54324
+ switch (field) {
54325
+ case 1:
54326
+ var value = /** @type {number} */ (reader.readInt32());
54327
+ msg.setUserId(value);
54328
+ break;
54329
+ default:
54330
+ reader.skipField();
54331
+ break;
54332
+ }
54333
+ }
54334
+ return msg;
54335
+ };
54336
+
54337
+
54338
+ /**
54339
+ * Serializes the message to binary data (in protobuf wire format).
54340
+ * @return {!Uint8Array}
54341
+ */
54342
+ proto.user.ReadUserKycVerificationDocumentsRequest.prototype.serializeBinary = function() {
54343
+ var writer = new jspb.BinaryWriter();
54344
+ proto.user.ReadUserKycVerificationDocumentsRequest.serializeBinaryToWriter(this, writer);
54345
+ return writer.getResultBuffer();
54346
+ };
54347
+
54348
+
54349
+ /**
54350
+ * Serializes the given message to binary data (in protobuf wire
54351
+ * format), writing to the given BinaryWriter.
54352
+ * @param {!proto.user.ReadUserKycVerificationDocumentsRequest} message
54353
+ * @param {!jspb.BinaryWriter} writer
54354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54355
+ */
54356
+ proto.user.ReadUserKycVerificationDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
54357
+ var f = undefined;
54358
+ f = message.getUserId();
54359
+ if (f !== 0) {
54360
+ writer.writeInt32(
54361
+ 1,
54362
+ f
54363
+ );
54364
+ }
54365
+ };
54366
+
54367
+
54368
+ /**
54369
+ * optional int32 user_id = 1;
54370
+ * @return {number}
54371
+ */
54372
+ proto.user.ReadUserKycVerificationDocumentsRequest.prototype.getUserId = function() {
54373
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
54374
+ };
54375
+
54376
+
54377
+ /**
54378
+ * @param {number} value
54379
+ * @return {!proto.user.ReadUserKycVerificationDocumentsRequest} returns this
54380
+ */
54381
+ proto.user.ReadUserKycVerificationDocumentsRequest.prototype.setUserId = function(value) {
54382
+ return jspb.Message.setProto3IntField(this, 1, value);
54383
+ };
54384
+
54385
+
54386
+
54387
+
54388
+
54389
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54390
+ /**
54391
+ * Creates an object representation of this proto.
54392
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
54393
+ * Optional fields that are not set will be set to undefined.
54394
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
54395
+ * For the list of reserved names please see:
54396
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
54397
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
54398
+ * JSPB instance for transitional soy proto support:
54399
+ * http://goto/soy-param-migration
54400
+ * @return {!Object}
54401
+ */
54402
+ proto.user.UserKycVerificationDocumentSide.prototype.toObject = function(opt_includeInstance) {
54403
+ return proto.user.UserKycVerificationDocumentSide.toObject(opt_includeInstance, this);
54404
+ };
54405
+
54406
+
54407
+ /**
54408
+ * Static version of the {@see toObject} method.
54409
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
54410
+ * the JSPB instance for transitional soy proto support:
54411
+ * http://goto/soy-param-migration
54412
+ * @param {!proto.user.UserKycVerificationDocumentSide} msg The msg instance to transform.
54413
+ * @return {!Object}
54414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54415
+ */
54416
+ proto.user.UserKycVerificationDocumentSide.toObject = function(includeInstance, msg) {
54417
+ var f, obj = {
54418
+ side: jspb.Message.getFieldWithDefault(msg, 1, ""),
54419
+ available: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
54420
+ };
54421
+
54422
+ if (includeInstance) {
54423
+ obj.$jspbMessageInstance = msg;
54424
+ }
54425
+ return obj;
54426
+ };
54427
+ }
54428
+
54429
+
54430
+ /**
54431
+ * Deserializes binary data (in protobuf wire format).
54432
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
54433
+ * @return {!proto.user.UserKycVerificationDocumentSide}
54434
+ */
54435
+ proto.user.UserKycVerificationDocumentSide.deserializeBinary = function(bytes) {
54436
+ var reader = new jspb.BinaryReader(bytes);
54437
+ var msg = new proto.user.UserKycVerificationDocumentSide;
54438
+ return proto.user.UserKycVerificationDocumentSide.deserializeBinaryFromReader(msg, reader);
54439
+ };
54440
+
54441
+
54442
+ /**
54443
+ * Deserializes binary data (in protobuf wire format) from the
54444
+ * given reader into the given message object.
54445
+ * @param {!proto.user.UserKycVerificationDocumentSide} msg The message object to deserialize into.
54446
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
54447
+ * @return {!proto.user.UserKycVerificationDocumentSide}
54448
+ */
54449
+ proto.user.UserKycVerificationDocumentSide.deserializeBinaryFromReader = function(msg, reader) {
54450
+ while (reader.nextField()) {
54451
+ if (reader.isEndGroup()) {
54452
+ break;
54453
+ }
54454
+ var field = reader.getFieldNumber();
54455
+ switch (field) {
54456
+ case 1:
54457
+ var value = /** @type {string} */ (reader.readString());
54458
+ msg.setSide(value);
54459
+ break;
54460
+ case 2:
54461
+ var value = /** @type {boolean} */ (reader.readBool());
54462
+ msg.setAvailable(value);
54463
+ break;
54464
+ default:
54465
+ reader.skipField();
54466
+ break;
54467
+ }
54468
+ }
54469
+ return msg;
54470
+ };
54471
+
54472
+
54473
+ /**
54474
+ * Serializes the message to binary data (in protobuf wire format).
54475
+ * @return {!Uint8Array}
54476
+ */
54477
+ proto.user.UserKycVerificationDocumentSide.prototype.serializeBinary = function() {
54478
+ var writer = new jspb.BinaryWriter();
54479
+ proto.user.UserKycVerificationDocumentSide.serializeBinaryToWriter(this, writer);
54480
+ return writer.getResultBuffer();
54481
+ };
54482
+
54483
+
54484
+ /**
54485
+ * Serializes the given message to binary data (in protobuf wire
54486
+ * format), writing to the given BinaryWriter.
54487
+ * @param {!proto.user.UserKycVerificationDocumentSide} message
54488
+ * @param {!jspb.BinaryWriter} writer
54489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54490
+ */
54491
+ proto.user.UserKycVerificationDocumentSide.serializeBinaryToWriter = function(message, writer) {
54492
+ var f = undefined;
54493
+ f = message.getSide();
54494
+ if (f.length > 0) {
54495
+ writer.writeString(
54496
+ 1,
54497
+ f
54498
+ );
54499
+ }
54500
+ f = message.getAvailable();
54501
+ if (f) {
54502
+ writer.writeBool(
54503
+ 2,
54504
+ f
54505
+ );
54506
+ }
54507
+ };
54508
+
54509
+
54510
+ /**
54511
+ * optional string side = 1;
54512
+ * @return {string}
54513
+ */
54514
+ proto.user.UserKycVerificationDocumentSide.prototype.getSide = function() {
54515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
54516
+ };
54517
+
54518
+
54519
+ /**
54520
+ * @param {string} value
54521
+ * @return {!proto.user.UserKycVerificationDocumentSide} returns this
54522
+ */
54523
+ proto.user.UserKycVerificationDocumentSide.prototype.setSide = function(value) {
54524
+ return jspb.Message.setProto3StringField(this, 1, value);
54525
+ };
54526
+
54527
+
54528
+ /**
54529
+ * optional bool available = 2;
54530
+ * @return {boolean}
54531
+ */
54532
+ proto.user.UserKycVerificationDocumentSide.prototype.getAvailable = function() {
54533
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
54534
+ };
54535
+
54536
+
54537
+ /**
54538
+ * @param {boolean} value
54539
+ * @return {!proto.user.UserKycVerificationDocumentSide} returns this
54540
+ */
54541
+ proto.user.UserKycVerificationDocumentSide.prototype.setAvailable = function(value) {
54542
+ return jspb.Message.setProto3BooleanField(this, 2, value);
54543
+ };
54544
+
54545
+
54546
+
54547
+ /**
54548
+ * List of repeated fields within this message type.
54549
+ * @private {!Array<number>}
54550
+ * @const
54551
+ */
54552
+ proto.user.UserKycVerificationDocumentItem.repeatedFields_ = [6];
54553
+
54554
+
54555
+
54556
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54557
+ /**
54558
+ * Creates an object representation of this proto.
54559
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
54560
+ * Optional fields that are not set will be set to undefined.
54561
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
54562
+ * For the list of reserved names please see:
54563
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
54564
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
54565
+ * JSPB instance for transitional soy proto support:
54566
+ * http://goto/soy-param-migration
54567
+ * @return {!Object}
54568
+ */
54569
+ proto.user.UserKycVerificationDocumentItem.prototype.toObject = function(opt_includeInstance) {
54570
+ return proto.user.UserKycVerificationDocumentItem.toObject(opt_includeInstance, this);
54571
+ };
54572
+
54573
+
54574
+ /**
54575
+ * Static version of the {@see toObject} method.
54576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
54577
+ * the JSPB instance for transitional soy proto support:
54578
+ * http://goto/soy-param-migration
54579
+ * @param {!proto.user.UserKycVerificationDocumentItem} msg The msg instance to transform.
54580
+ * @return {!Object}
54581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54582
+ */
54583
+ proto.user.UserKycVerificationDocumentItem.toObject = function(includeInstance, msg) {
54584
+ var f, obj = {
54585
+ documentRef: jspb.Message.getFieldWithDefault(msg, 1, ""),
54586
+ category: jspb.Message.getFieldWithDefault(msg, 2, ""),
54587
+ documentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
54588
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
54589
+ reasonCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
54590
+ sidesList: jspb.Message.toObjectList(msg.getSidesList(),
54591
+ proto.user.UserKycVerificationDocumentSide.toObject, includeInstance),
54592
+ createdAt: jspb.Message.getFieldWithDefault(msg, 7, "")
54593
+ };
54594
+
54595
+ if (includeInstance) {
54596
+ obj.$jspbMessageInstance = msg;
54597
+ }
54598
+ return obj;
54599
+ };
54600
+ }
54601
+
54602
+
54603
+ /**
54604
+ * Deserializes binary data (in protobuf wire format).
54605
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
54606
+ * @return {!proto.user.UserKycVerificationDocumentItem}
54607
+ */
54608
+ proto.user.UserKycVerificationDocumentItem.deserializeBinary = function(bytes) {
54609
+ var reader = new jspb.BinaryReader(bytes);
54610
+ var msg = new proto.user.UserKycVerificationDocumentItem;
54611
+ return proto.user.UserKycVerificationDocumentItem.deserializeBinaryFromReader(msg, reader);
54612
+ };
54613
+
54614
+
54615
+ /**
54616
+ * Deserializes binary data (in protobuf wire format) from the
54617
+ * given reader into the given message object.
54618
+ * @param {!proto.user.UserKycVerificationDocumentItem} msg The message object to deserialize into.
54619
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
54620
+ * @return {!proto.user.UserKycVerificationDocumentItem}
54621
+ */
54622
+ proto.user.UserKycVerificationDocumentItem.deserializeBinaryFromReader = function(msg, reader) {
54623
+ while (reader.nextField()) {
54624
+ if (reader.isEndGroup()) {
54625
+ break;
54626
+ }
54627
+ var field = reader.getFieldNumber();
54628
+ switch (field) {
54629
+ case 1:
54630
+ var value = /** @type {string} */ (reader.readString());
54631
+ msg.setDocumentRef(value);
54632
+ break;
54633
+ case 2:
54634
+ var value = /** @type {string} */ (reader.readString());
54635
+ msg.setCategory(value);
54636
+ break;
54637
+ case 3:
54638
+ var value = /** @type {string} */ (reader.readString());
54639
+ msg.setDocumentType(value);
54640
+ break;
54641
+ case 4:
54642
+ var value = /** @type {string} */ (reader.readString());
54643
+ msg.setStatus(value);
54644
+ break;
54645
+ case 5:
54646
+ var value = /** @type {string} */ (reader.readString());
54647
+ msg.setReasonCode(value);
54648
+ break;
54649
+ case 6:
54650
+ var value = new proto.user.UserKycVerificationDocumentSide;
54651
+ reader.readMessage(value,proto.user.UserKycVerificationDocumentSide.deserializeBinaryFromReader);
54652
+ msg.addSides(value);
54653
+ break;
54654
+ case 7:
54655
+ var value = /** @type {string} */ (reader.readString());
54656
+ msg.setCreatedAt(value);
54657
+ break;
54658
+ default:
54659
+ reader.skipField();
54660
+ break;
54661
+ }
54662
+ }
54663
+ return msg;
54664
+ };
54665
+
54666
+
54667
+ /**
54668
+ * Serializes the message to binary data (in protobuf wire format).
54669
+ * @return {!Uint8Array}
54670
+ */
54671
+ proto.user.UserKycVerificationDocumentItem.prototype.serializeBinary = function() {
54672
+ var writer = new jspb.BinaryWriter();
54673
+ proto.user.UserKycVerificationDocumentItem.serializeBinaryToWriter(this, writer);
54674
+ return writer.getResultBuffer();
54675
+ };
54676
+
54677
+
54678
+ /**
54679
+ * Serializes the given message to binary data (in protobuf wire
54680
+ * format), writing to the given BinaryWriter.
54681
+ * @param {!proto.user.UserKycVerificationDocumentItem} message
54682
+ * @param {!jspb.BinaryWriter} writer
54683
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54684
+ */
54685
+ proto.user.UserKycVerificationDocumentItem.serializeBinaryToWriter = function(message, writer) {
54686
+ var f = undefined;
54687
+ f = message.getDocumentRef();
54688
+ if (f.length > 0) {
54689
+ writer.writeString(
54690
+ 1,
54691
+ f
54692
+ );
54693
+ }
54694
+ f = message.getCategory();
54695
+ if (f.length > 0) {
54696
+ writer.writeString(
54697
+ 2,
54698
+ f
54699
+ );
54700
+ }
54701
+ f = message.getDocumentType();
54702
+ if (f.length > 0) {
54703
+ writer.writeString(
54704
+ 3,
54705
+ f
54706
+ );
54707
+ }
54708
+ f = message.getStatus();
54709
+ if (f.length > 0) {
54710
+ writer.writeString(
54711
+ 4,
54712
+ f
54713
+ );
54714
+ }
54715
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
54716
+ if (f != null) {
54717
+ writer.writeString(
54718
+ 5,
54719
+ f
54720
+ );
54721
+ }
54722
+ f = message.getSidesList();
54723
+ if (f.length > 0) {
54724
+ writer.writeRepeatedMessage(
54725
+ 6,
54726
+ f,
54727
+ proto.user.UserKycVerificationDocumentSide.serializeBinaryToWriter
54728
+ );
54729
+ }
54730
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
54731
+ if (f != null) {
54732
+ writer.writeString(
54733
+ 7,
54734
+ f
54735
+ );
54736
+ }
54737
+ };
54738
+
54739
+
54740
+ /**
54741
+ * optional string document_ref = 1;
54742
+ * @return {string}
54743
+ */
54744
+ proto.user.UserKycVerificationDocumentItem.prototype.getDocumentRef = function() {
54745
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
54746
+ };
54747
+
54748
+
54749
+ /**
54750
+ * @param {string} value
54751
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54752
+ */
54753
+ proto.user.UserKycVerificationDocumentItem.prototype.setDocumentRef = function(value) {
54754
+ return jspb.Message.setProto3StringField(this, 1, value);
54755
+ };
54756
+
54757
+
54758
+ /**
54759
+ * optional string category = 2;
54760
+ * @return {string}
54761
+ */
54762
+ proto.user.UserKycVerificationDocumentItem.prototype.getCategory = function() {
54763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
54764
+ };
54765
+
54766
+
54767
+ /**
54768
+ * @param {string} value
54769
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54770
+ */
54771
+ proto.user.UserKycVerificationDocumentItem.prototype.setCategory = function(value) {
54772
+ return jspb.Message.setProto3StringField(this, 2, value);
54773
+ };
54774
+
54775
+
54776
+ /**
54777
+ * optional string document_type = 3;
54778
+ * @return {string}
54779
+ */
54780
+ proto.user.UserKycVerificationDocumentItem.prototype.getDocumentType = function() {
54781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
54782
+ };
54783
+
54784
+
54785
+ /**
54786
+ * @param {string} value
54787
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54788
+ */
54789
+ proto.user.UserKycVerificationDocumentItem.prototype.setDocumentType = function(value) {
54790
+ return jspb.Message.setProto3StringField(this, 3, value);
54791
+ };
54792
+
54793
+
54794
+ /**
54795
+ * optional string status = 4;
54796
+ * @return {string}
54797
+ */
54798
+ proto.user.UserKycVerificationDocumentItem.prototype.getStatus = function() {
54799
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
54800
+ };
54801
+
54802
+
54803
+ /**
54804
+ * @param {string} value
54805
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54806
+ */
54807
+ proto.user.UserKycVerificationDocumentItem.prototype.setStatus = function(value) {
54808
+ return jspb.Message.setProto3StringField(this, 4, value);
54809
+ };
54810
+
54811
+
54812
+ /**
54813
+ * optional string reason_code = 5;
54814
+ * @return {string}
54815
+ */
54816
+ proto.user.UserKycVerificationDocumentItem.prototype.getReasonCode = function() {
54817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
54818
+ };
54819
+
54820
+
54821
+ /**
54822
+ * @param {string} value
54823
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54824
+ */
54825
+ proto.user.UserKycVerificationDocumentItem.prototype.setReasonCode = function(value) {
54826
+ return jspb.Message.setField(this, 5, value);
54827
+ };
54828
+
54829
+
54830
+ /**
54831
+ * Clears the field making it undefined.
54832
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54833
+ */
54834
+ proto.user.UserKycVerificationDocumentItem.prototype.clearReasonCode = function() {
54835
+ return jspb.Message.setField(this, 5, undefined);
54836
+ };
54837
+
54838
+
54839
+ /**
54840
+ * Returns whether this field is set.
54841
+ * @return {boolean}
54842
+ */
54843
+ proto.user.UserKycVerificationDocumentItem.prototype.hasReasonCode = function() {
54844
+ return jspb.Message.getField(this, 5) != null;
54845
+ };
54846
+
54847
+
54848
+ /**
54849
+ * repeated UserKycVerificationDocumentSide sides = 6;
54850
+ * @return {!Array<!proto.user.UserKycVerificationDocumentSide>}
54851
+ */
54852
+ proto.user.UserKycVerificationDocumentItem.prototype.getSidesList = function() {
54853
+ return /** @type{!Array<!proto.user.UserKycVerificationDocumentSide>} */ (
54854
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycVerificationDocumentSide, 6));
54855
+ };
54856
+
54857
+
54858
+ /**
54859
+ * @param {!Array<!proto.user.UserKycVerificationDocumentSide>} value
54860
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54861
+ */
54862
+ proto.user.UserKycVerificationDocumentItem.prototype.setSidesList = function(value) {
54863
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
54864
+ };
54865
+
54866
+
54867
+ /**
54868
+ * @param {!proto.user.UserKycVerificationDocumentSide=} opt_value
54869
+ * @param {number=} opt_index
54870
+ * @return {!proto.user.UserKycVerificationDocumentSide}
54871
+ */
54872
+ proto.user.UserKycVerificationDocumentItem.prototype.addSides = function(opt_value, opt_index) {
54873
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.user.UserKycVerificationDocumentSide, opt_index);
54874
+ };
54875
+
54876
+
54877
+ /**
54878
+ * Clears the list making it empty but non-null.
54879
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54880
+ */
54881
+ proto.user.UserKycVerificationDocumentItem.prototype.clearSidesList = function() {
54882
+ return this.setSidesList([]);
54883
+ };
54884
+
54885
+
54886
+ /**
54887
+ * optional string created_at = 7;
54888
+ * @return {string}
54889
+ */
54890
+ proto.user.UserKycVerificationDocumentItem.prototype.getCreatedAt = function() {
54891
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
54892
+ };
54893
+
54894
+
54895
+ /**
54896
+ * @param {string} value
54897
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54898
+ */
54899
+ proto.user.UserKycVerificationDocumentItem.prototype.setCreatedAt = function(value) {
54900
+ return jspb.Message.setField(this, 7, value);
54901
+ };
54902
+
54903
+
54904
+ /**
54905
+ * Clears the field making it undefined.
54906
+ * @return {!proto.user.UserKycVerificationDocumentItem} returns this
54907
+ */
54908
+ proto.user.UserKycVerificationDocumentItem.prototype.clearCreatedAt = function() {
54909
+ return jspb.Message.setField(this, 7, undefined);
54910
+ };
54911
+
54912
+
54913
+ /**
54914
+ * Returns whether this field is set.
54915
+ * @return {boolean}
54916
+ */
54917
+ proto.user.UserKycVerificationDocumentItem.prototype.hasCreatedAt = function() {
54918
+ return jspb.Message.getField(this, 7) != null;
54919
+ };
54920
+
54921
+
54922
+
54923
+ /**
54924
+ * List of repeated fields within this message type.
54925
+ * @private {!Array<number>}
54926
+ * @const
54927
+ */
54928
+ proto.user.UserKycVerificationDocumentsResponse.repeatedFields_ = [2];
54929
+
54930
+
54931
+
54932
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54933
+ /**
54934
+ * Creates an object representation of this proto.
54935
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
54936
+ * Optional fields that are not set will be set to undefined.
54937
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
54938
+ * For the list of reserved names please see:
54939
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
54940
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
54941
+ * JSPB instance for transitional soy proto support:
54942
+ * http://goto/soy-param-migration
54943
+ * @return {!Object}
54944
+ */
54945
+ proto.user.UserKycVerificationDocumentsResponse.prototype.toObject = function(opt_includeInstance) {
54946
+ return proto.user.UserKycVerificationDocumentsResponse.toObject(opt_includeInstance, this);
54947
+ };
54948
+
54949
+
54950
+ /**
54951
+ * Static version of the {@see toObject} method.
54952
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
54953
+ * the JSPB instance for transitional soy proto support:
54954
+ * http://goto/soy-param-migration
54955
+ * @param {!proto.user.UserKycVerificationDocumentsResponse} msg The msg instance to transform.
54956
+ * @return {!Object}
54957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54958
+ */
54959
+ proto.user.UserKycVerificationDocumentsResponse.toObject = function(includeInstance, msg) {
54960
+ var f, obj = {
54961
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
54962
+ documentsList: jspb.Message.toObjectList(msg.getDocumentsList(),
54963
+ proto.user.UserKycVerificationDocumentItem.toObject, includeInstance)
54964
+ };
54965
+
54966
+ if (includeInstance) {
54967
+ obj.$jspbMessageInstance = msg;
54968
+ }
54969
+ return obj;
54970
+ };
54971
+ }
54972
+
54973
+
54974
+ /**
54975
+ * Deserializes binary data (in protobuf wire format).
54976
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
54977
+ * @return {!proto.user.UserKycVerificationDocumentsResponse}
54978
+ */
54979
+ proto.user.UserKycVerificationDocumentsResponse.deserializeBinary = function(bytes) {
54980
+ var reader = new jspb.BinaryReader(bytes);
54981
+ var msg = new proto.user.UserKycVerificationDocumentsResponse;
54982
+ return proto.user.UserKycVerificationDocumentsResponse.deserializeBinaryFromReader(msg, reader);
54983
+ };
54984
+
54985
+
54986
+ /**
54987
+ * Deserializes binary data (in protobuf wire format) from the
54988
+ * given reader into the given message object.
54989
+ * @param {!proto.user.UserKycVerificationDocumentsResponse} msg The message object to deserialize into.
54990
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
54991
+ * @return {!proto.user.UserKycVerificationDocumentsResponse}
54992
+ */
54993
+ proto.user.UserKycVerificationDocumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
54994
+ while (reader.nextField()) {
54995
+ if (reader.isEndGroup()) {
54996
+ break;
54997
+ }
54998
+ var field = reader.getFieldNumber();
54999
+ switch (field) {
55000
+ case 1:
55001
+ var value = /** @type {number} */ (reader.readInt32());
55002
+ msg.setUserId(value);
55003
+ break;
55004
+ case 2:
55005
+ var value = new proto.user.UserKycVerificationDocumentItem;
55006
+ reader.readMessage(value,proto.user.UserKycVerificationDocumentItem.deserializeBinaryFromReader);
55007
+ msg.addDocuments(value);
55008
+ break;
55009
+ default:
55010
+ reader.skipField();
55011
+ break;
55012
+ }
55013
+ }
55014
+ return msg;
55015
+ };
55016
+
55017
+
55018
+ /**
55019
+ * Serializes the message to binary data (in protobuf wire format).
55020
+ * @return {!Uint8Array}
55021
+ */
55022
+ proto.user.UserKycVerificationDocumentsResponse.prototype.serializeBinary = function() {
55023
+ var writer = new jspb.BinaryWriter();
55024
+ proto.user.UserKycVerificationDocumentsResponse.serializeBinaryToWriter(this, writer);
55025
+ return writer.getResultBuffer();
55026
+ };
55027
+
55028
+
55029
+ /**
55030
+ * Serializes the given message to binary data (in protobuf wire
55031
+ * format), writing to the given BinaryWriter.
55032
+ * @param {!proto.user.UserKycVerificationDocumentsResponse} message
55033
+ * @param {!jspb.BinaryWriter} writer
55034
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55035
+ */
55036
+ proto.user.UserKycVerificationDocumentsResponse.serializeBinaryToWriter = function(message, writer) {
55037
+ var f = undefined;
55038
+ f = message.getUserId();
55039
+ if (f !== 0) {
55040
+ writer.writeInt32(
55041
+ 1,
55042
+ f
55043
+ );
55044
+ }
55045
+ f = message.getDocumentsList();
55046
+ if (f.length > 0) {
55047
+ writer.writeRepeatedMessage(
55048
+ 2,
55049
+ f,
55050
+ proto.user.UserKycVerificationDocumentItem.serializeBinaryToWriter
55051
+ );
55052
+ }
55053
+ };
55054
+
55055
+
55056
+ /**
55057
+ * optional int32 user_id = 1;
55058
+ * @return {number}
55059
+ */
55060
+ proto.user.UserKycVerificationDocumentsResponse.prototype.getUserId = function() {
55061
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
55062
+ };
55063
+
55064
+
55065
+ /**
55066
+ * @param {number} value
55067
+ * @return {!proto.user.UserKycVerificationDocumentsResponse} returns this
55068
+ */
55069
+ proto.user.UserKycVerificationDocumentsResponse.prototype.setUserId = function(value) {
55070
+ return jspb.Message.setProto3IntField(this, 1, value);
55071
+ };
55072
+
55073
+
55074
+ /**
55075
+ * repeated UserKycVerificationDocumentItem documents = 2;
55076
+ * @return {!Array<!proto.user.UserKycVerificationDocumentItem>}
55077
+ */
55078
+ proto.user.UserKycVerificationDocumentsResponse.prototype.getDocumentsList = function() {
55079
+ return /** @type{!Array<!proto.user.UserKycVerificationDocumentItem>} */ (
55080
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycVerificationDocumentItem, 2));
55081
+ };
55082
+
55083
+
55084
+ /**
55085
+ * @param {!Array<!proto.user.UserKycVerificationDocumentItem>} value
55086
+ * @return {!proto.user.UserKycVerificationDocumentsResponse} returns this
55087
+ */
55088
+ proto.user.UserKycVerificationDocumentsResponse.prototype.setDocumentsList = function(value) {
55089
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
55090
+ };
55091
+
55092
+
55093
+ /**
55094
+ * @param {!proto.user.UserKycVerificationDocumentItem=} opt_value
55095
+ * @param {number=} opt_index
55096
+ * @return {!proto.user.UserKycVerificationDocumentItem}
55097
+ */
55098
+ proto.user.UserKycVerificationDocumentsResponse.prototype.addDocuments = function(opt_value, opt_index) {
55099
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.user.UserKycVerificationDocumentItem, opt_index);
55100
+ };
55101
+
55102
+
55103
+ /**
55104
+ * Clears the list making it empty but non-null.
55105
+ * @return {!proto.user.UserKycVerificationDocumentsResponse} returns this
55106
+ */
55107
+ proto.user.UserKycVerificationDocumentsResponse.prototype.clearDocumentsList = function() {
55108
+ return this.setDocumentsList([]);
55109
+ };
55110
+
55111
+
55112
+
55113
+
55114
+
55115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55116
+ /**
55117
+ * Creates an object representation of this proto.
55118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55119
+ * Optional fields that are not set will be set to undefined.
55120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55121
+ * For the list of reserved names please see:
55122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55124
+ * JSPB instance for transitional soy proto support:
55125
+ * http://goto/soy-param-migration
55126
+ * @return {!Object}
55127
+ */
55128
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.toObject = function(opt_includeInstance) {
55129
+ return proto.user.ReadUserKycVerificationDocumentPreviewRequest.toObject(opt_includeInstance, this);
55130
+ };
55131
+
55132
+
55133
+ /**
55134
+ * Static version of the {@see toObject} method.
55135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55136
+ * the JSPB instance for transitional soy proto support:
55137
+ * http://goto/soy-param-migration
55138
+ * @param {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} msg The msg instance to transform.
55139
+ * @return {!Object}
55140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55141
+ */
55142
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.toObject = function(includeInstance, msg) {
55143
+ var f, obj = {
55144
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
55145
+ documentRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
55146
+ side: jspb.Message.getFieldWithDefault(msg, 3, "")
55147
+ };
55148
+
55149
+ if (includeInstance) {
55150
+ obj.$jspbMessageInstance = msg;
55151
+ }
55152
+ return obj;
55153
+ };
55154
+ }
55155
+
55156
+
55157
+ /**
55158
+ * Deserializes binary data (in protobuf wire format).
55159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55160
+ * @return {!proto.user.ReadUserKycVerificationDocumentPreviewRequest}
55161
+ */
55162
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.deserializeBinary = function(bytes) {
55163
+ var reader = new jspb.BinaryReader(bytes);
55164
+ var msg = new proto.user.ReadUserKycVerificationDocumentPreviewRequest;
55165
+ return proto.user.ReadUserKycVerificationDocumentPreviewRequest.deserializeBinaryFromReader(msg, reader);
55166
+ };
55167
+
55168
+
55169
+ /**
55170
+ * Deserializes binary data (in protobuf wire format) from the
55171
+ * given reader into the given message object.
55172
+ * @param {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} msg The message object to deserialize into.
55173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55174
+ * @return {!proto.user.ReadUserKycVerificationDocumentPreviewRequest}
55175
+ */
55176
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.deserializeBinaryFromReader = function(msg, reader) {
55177
+ while (reader.nextField()) {
55178
+ if (reader.isEndGroup()) {
55179
+ break;
55180
+ }
55181
+ var field = reader.getFieldNumber();
55182
+ switch (field) {
55183
+ case 1:
55184
+ var value = /** @type {number} */ (reader.readInt32());
55185
+ msg.setUserId(value);
55186
+ break;
55187
+ case 2:
55188
+ var value = /** @type {string} */ (reader.readString());
55189
+ msg.setDocumentRef(value);
55190
+ break;
55191
+ case 3:
55192
+ var value = /** @type {string} */ (reader.readString());
55193
+ msg.setSide(value);
55194
+ break;
55195
+ default:
55196
+ reader.skipField();
55197
+ break;
55198
+ }
55199
+ }
55200
+ return msg;
55201
+ };
55202
+
55203
+
55204
+ /**
55205
+ * Serializes the message to binary data (in protobuf wire format).
55206
+ * @return {!Uint8Array}
55207
+ */
55208
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.serializeBinary = function() {
55209
+ var writer = new jspb.BinaryWriter();
55210
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.serializeBinaryToWriter(this, writer);
55211
+ return writer.getResultBuffer();
55212
+ };
55213
+
55214
+
55215
+ /**
55216
+ * Serializes the given message to binary data (in protobuf wire
55217
+ * format), writing to the given BinaryWriter.
55218
+ * @param {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} message
55219
+ * @param {!jspb.BinaryWriter} writer
55220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55221
+ */
55222
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.serializeBinaryToWriter = function(message, writer) {
55223
+ var f = undefined;
55224
+ f = message.getUserId();
55225
+ if (f !== 0) {
55226
+ writer.writeInt32(
55227
+ 1,
55228
+ f
55229
+ );
55230
+ }
55231
+ f = message.getDocumentRef();
55232
+ if (f.length > 0) {
55233
+ writer.writeString(
55234
+ 2,
55235
+ f
55236
+ );
55237
+ }
55238
+ f = message.getSide();
55239
+ if (f.length > 0) {
55240
+ writer.writeString(
55241
+ 3,
55242
+ f
55243
+ );
55244
+ }
55245
+ };
55246
+
55247
+
55248
+ /**
55249
+ * optional int32 user_id = 1;
55250
+ * @return {number}
55251
+ */
55252
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.getUserId = function() {
55253
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
55254
+ };
55255
+
55256
+
55257
+ /**
55258
+ * @param {number} value
55259
+ * @return {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} returns this
55260
+ */
55261
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.setUserId = function(value) {
55262
+ return jspb.Message.setProto3IntField(this, 1, value);
55263
+ };
55264
+
55265
+
55266
+ /**
55267
+ * optional string document_ref = 2;
55268
+ * @return {string}
55269
+ */
55270
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.getDocumentRef = function() {
55271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
55272
+ };
55273
+
55274
+
55275
+ /**
55276
+ * @param {string} value
55277
+ * @return {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} returns this
55278
+ */
55279
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.setDocumentRef = function(value) {
55280
+ return jspb.Message.setProto3StringField(this, 2, value);
55281
+ };
55282
+
55283
+
55284
+ /**
55285
+ * optional string side = 3;
55286
+ * @return {string}
55287
+ */
55288
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.getSide = function() {
55289
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
55290
+ };
55291
+
55292
+
55293
+ /**
55294
+ * @param {string} value
55295
+ * @return {!proto.user.ReadUserKycVerificationDocumentPreviewRequest} returns this
55296
+ */
55297
+ proto.user.ReadUserKycVerificationDocumentPreviewRequest.prototype.setSide = function(value) {
55298
+ return jspb.Message.setProto3StringField(this, 3, value);
55299
+ };
55300
+
55301
+
55302
+
55303
+
55304
+
55305
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55306
+ /**
55307
+ * Creates an object representation of this proto.
55308
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55309
+ * Optional fields that are not set will be set to undefined.
55310
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55311
+ * For the list of reserved names please see:
55312
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55313
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55314
+ * JSPB instance for transitional soy proto support:
55315
+ * http://goto/soy-param-migration
55316
+ * @return {!Object}
55317
+ */
55318
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.toObject = function(opt_includeInstance) {
55319
+ return proto.user.UserKycVerificationDocumentPreviewResponse.toObject(opt_includeInstance, this);
55320
+ };
55321
+
55322
+
55323
+ /**
55324
+ * Static version of the {@see toObject} method.
55325
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55326
+ * the JSPB instance for transitional soy proto support:
55327
+ * http://goto/soy-param-migration
55328
+ * @param {!proto.user.UserKycVerificationDocumentPreviewResponse} msg The msg instance to transform.
55329
+ * @return {!Object}
55330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55331
+ */
55332
+ proto.user.UserKycVerificationDocumentPreviewResponse.toObject = function(includeInstance, msg) {
55333
+ var f, obj = {
55334
+ previewUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
55335
+ mimeType: jspb.Message.getFieldWithDefault(msg, 2, ""),
55336
+ expiresAt: jspb.Message.getFieldWithDefault(msg, 3, "")
55337
+ };
55338
+
55339
+ if (includeInstance) {
55340
+ obj.$jspbMessageInstance = msg;
55341
+ }
55342
+ return obj;
55343
+ };
55344
+ }
55345
+
55346
+
55347
+ /**
55348
+ * Deserializes binary data (in protobuf wire format).
55349
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55350
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse}
55351
+ */
55352
+ proto.user.UserKycVerificationDocumentPreviewResponse.deserializeBinary = function(bytes) {
55353
+ var reader = new jspb.BinaryReader(bytes);
55354
+ var msg = new proto.user.UserKycVerificationDocumentPreviewResponse;
55355
+ return proto.user.UserKycVerificationDocumentPreviewResponse.deserializeBinaryFromReader(msg, reader);
55356
+ };
55357
+
55358
+
55359
+ /**
55360
+ * Deserializes binary data (in protobuf wire format) from the
55361
+ * given reader into the given message object.
55362
+ * @param {!proto.user.UserKycVerificationDocumentPreviewResponse} msg The message object to deserialize into.
55363
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55364
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse}
55365
+ */
55366
+ proto.user.UserKycVerificationDocumentPreviewResponse.deserializeBinaryFromReader = function(msg, reader) {
55367
+ while (reader.nextField()) {
55368
+ if (reader.isEndGroup()) {
55369
+ break;
55370
+ }
55371
+ var field = reader.getFieldNumber();
55372
+ switch (field) {
55373
+ case 1:
55374
+ var value = /** @type {string} */ (reader.readString());
55375
+ msg.setPreviewUrl(value);
55376
+ break;
55377
+ case 2:
55378
+ var value = /** @type {string} */ (reader.readString());
55379
+ msg.setMimeType(value);
55380
+ break;
55381
+ case 3:
55382
+ var value = /** @type {string} */ (reader.readString());
55383
+ msg.setExpiresAt(value);
55384
+ break;
55385
+ default:
55386
+ reader.skipField();
55387
+ break;
55388
+ }
55389
+ }
55390
+ return msg;
55391
+ };
55392
+
55393
+
55394
+ /**
55395
+ * Serializes the message to binary data (in protobuf wire format).
55396
+ * @return {!Uint8Array}
55397
+ */
55398
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.serializeBinary = function() {
55399
+ var writer = new jspb.BinaryWriter();
55400
+ proto.user.UserKycVerificationDocumentPreviewResponse.serializeBinaryToWriter(this, writer);
55401
+ return writer.getResultBuffer();
55402
+ };
55403
+
55404
+
55405
+ /**
55406
+ * Serializes the given message to binary data (in protobuf wire
55407
+ * format), writing to the given BinaryWriter.
55408
+ * @param {!proto.user.UserKycVerificationDocumentPreviewResponse} message
55409
+ * @param {!jspb.BinaryWriter} writer
55410
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55411
+ */
55412
+ proto.user.UserKycVerificationDocumentPreviewResponse.serializeBinaryToWriter = function(message, writer) {
55413
+ var f = undefined;
55414
+ f = message.getPreviewUrl();
55415
+ if (f.length > 0) {
55416
+ writer.writeString(
55417
+ 1,
55418
+ f
55419
+ );
55420
+ }
55421
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
55422
+ if (f != null) {
55423
+ writer.writeString(
55424
+ 2,
55425
+ f
55426
+ );
55427
+ }
55428
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
55429
+ if (f != null) {
55430
+ writer.writeString(
55431
+ 3,
55432
+ f
55433
+ );
55434
+ }
55435
+ };
55436
+
55437
+
55438
+ /**
55439
+ * optional string preview_url = 1;
55440
+ * @return {string}
55441
+ */
55442
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.getPreviewUrl = function() {
55443
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
55444
+ };
55445
+
55446
+
55447
+ /**
55448
+ * @param {string} value
55449
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse} returns this
55450
+ */
55451
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.setPreviewUrl = function(value) {
55452
+ return jspb.Message.setProto3StringField(this, 1, value);
55453
+ };
55454
+
55455
+
55456
+ /**
55457
+ * optional string mime_type = 2;
55458
+ * @return {string}
55459
+ */
55460
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.getMimeType = function() {
55461
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
55462
+ };
55463
+
55464
+
55465
+ /**
55466
+ * @param {string} value
55467
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse} returns this
55468
+ */
55469
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.setMimeType = function(value) {
55470
+ return jspb.Message.setField(this, 2, value);
55471
+ };
55472
+
55473
+
55474
+ /**
55475
+ * Clears the field making it undefined.
55476
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse} returns this
55477
+ */
55478
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.clearMimeType = function() {
55479
+ return jspb.Message.setField(this, 2, undefined);
55480
+ };
55481
+
55482
+
55483
+ /**
55484
+ * Returns whether this field is set.
55485
+ * @return {boolean}
55486
+ */
55487
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.hasMimeType = function() {
55488
+ return jspb.Message.getField(this, 2) != null;
55489
+ };
55490
+
55491
+
55492
+ /**
55493
+ * optional string expires_at = 3;
55494
+ * @return {string}
55495
+ */
55496
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.getExpiresAt = function() {
55497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
55498
+ };
55499
+
55500
+
55501
+ /**
55502
+ * @param {string} value
55503
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse} returns this
55504
+ */
55505
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.setExpiresAt = function(value) {
55506
+ return jspb.Message.setField(this, 3, value);
55507
+ };
55508
+
55509
+
55510
+ /**
55511
+ * Clears the field making it undefined.
55512
+ * @return {!proto.user.UserKycVerificationDocumentPreviewResponse} returns this
55513
+ */
55514
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.clearExpiresAt = function() {
55515
+ return jspb.Message.setField(this, 3, undefined);
55516
+ };
55517
+
55518
+
55519
+ /**
55520
+ * Returns whether this field is set.
55521
+ * @return {boolean}
55522
+ */
55523
+ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.hasExpiresAt = function() {
55524
+ return jspb.Message.getField(this, 3) != null;
55525
+ };
55526
+
55527
+
55528
+
54125
55529
  /**
54126
55530
  * List of repeated fields within this message type.
54127
55531
  * @private {!Array<number>}