@sniipwebmaster/kyc-client-grpcweb 26.5.2208 → 26.5.2260

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.
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
19
19
  goog.object.extend(proto, google_api_annotations_pb);
20
+ var google_api_http_pb = require('./google/api/http_pb.js');
21
+ goog.object.extend(proto, google_api_http_pb);
20
22
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
23
  goog.object.extend(proto, google_protobuf_empty_pb);
22
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
@@ -24,6 +26,7 @@ goog.object.extend(proto, google_protobuf_timestamp_pb);
24
26
  goog.exportSymbol('proto.kycserviceapi.Attachment', null, global);
25
27
  goog.exportSymbol('proto.kycserviceapi.AttachmentSide', null, global);
26
28
  goog.exportSymbol('proto.kycserviceapi.ClearKycExternalIdRequest', null, global);
29
+ goog.exportSymbol('proto.kycserviceapi.ClientFeatureFlagsResponse', null, global);
27
30
  goog.exportSymbol('proto.kycserviceapi.DeleteDocumentRequest', null, global);
28
31
  goog.exportSymbol('proto.kycserviceapi.Document', null, global);
29
32
  goog.exportSymbol('proto.kycserviceapi.DocumentImage', null, global);
@@ -32,10 +35,13 @@ goog.exportSymbol('proto.kycserviceapi.DocumentSaveRequest', null, global);
32
35
  goog.exportSymbol('proto.kycserviceapi.DocumentStatus', null, global);
33
36
  goog.exportSymbol('proto.kycserviceapi.DocumentType', null, global);
34
37
  goog.exportSymbol('proto.kycserviceapi.DriversLicense', null, global);
38
+ goog.exportSymbol('proto.kycserviceapi.FlaggedCardAttachment', null, global);
35
39
  goog.exportSymbol('proto.kycserviceapi.GetDocumentImagesRequest', null, global);
36
40
  goog.exportSymbol('proto.kycserviceapi.GetDocumentImagesResponse', null, global);
37
41
  goog.exportSymbol('proto.kycserviceapi.GetDocumentRequest', null, global);
38
42
  goog.exportSymbol('proto.kycserviceapi.GetExternalKycUrlResponse', null, global);
43
+ goog.exportSymbol('proto.kycserviceapi.GetFlaggedCardAttachmentsRequest', null, global);
44
+ goog.exportSymbol('proto.kycserviceapi.GetFlaggedCardAttachmentsResponse', null, global);
39
45
  goog.exportSymbol('proto.kycserviceapi.GetUserKycStatusInternalRequest', null, global);
40
46
  goog.exportSymbol('proto.kycserviceapi.GetUserKycSummaryRequest', null, global);
41
47
  goog.exportSymbol('proto.kycserviceapi.KycPaymentMethod', null, global);
@@ -43,6 +49,10 @@ goog.exportSymbol('proto.kycserviceapi.KycUserStatusUpdateRequest', null, global
43
49
  goog.exportSymbol('proto.kycserviceapi.KycUserStatusUpdateRequest.DocumentType', null, global);
44
50
  goog.exportSymbol('proto.kycserviceapi.NotifyUserRequest', null, global);
45
51
  goog.exportSymbol('proto.kycserviceapi.Passport', null, global);
52
+ goog.exportSymbol('proto.kycserviceapi.RedactCardPhotoRequest', null, global);
53
+ goog.exportSymbol('proto.kycserviceapi.RedactCardPhotoResponse', null, global);
54
+ goog.exportSymbol('proto.kycserviceapi.RedactionMetadata', null, global);
55
+ goog.exportSymbol('proto.kycserviceapi.RedactionStatus', null, global);
46
56
  goog.exportSymbol('proto.kycserviceapi.RequestUserKycRequest', null, global);
47
57
  goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
48
58
  goog.exportSymbol('proto.kycserviceapi.ResponseCode', null, global);
@@ -693,6 +703,153 @@ if (goog.DEBUG && !COMPILED) {
693
703
  */
694
704
  proto.kycserviceapi.VerifyUserRequest.displayName = 'proto.kycserviceapi.VerifyUserRequest';
695
705
  }
706
+ /**
707
+ * Generated by JsPbCodeGenerator.
708
+ * @param {Array=} opt_data Optional initial data array, typically from a
709
+ * server response, or constructed directly in Javascript. The array is used
710
+ * in place and becomes part of the constructed object. It is not cloned.
711
+ * If no data is provided, the constructed object will be empty, but still
712
+ * valid.
713
+ * @extends {jspb.Message}
714
+ * @constructor
715
+ */
716
+ proto.kycserviceapi.RedactCardPhotoRequest = function(opt_data) {
717
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
718
+ };
719
+ goog.inherits(proto.kycserviceapi.RedactCardPhotoRequest, jspb.Message);
720
+ if (goog.DEBUG && !COMPILED) {
721
+ /**
722
+ * @public
723
+ * @override
724
+ */
725
+ proto.kycserviceapi.RedactCardPhotoRequest.displayName = 'proto.kycserviceapi.RedactCardPhotoRequest';
726
+ }
727
+ /**
728
+ * Generated by JsPbCodeGenerator.
729
+ * @param {Array=} opt_data Optional initial data array, typically from a
730
+ * server response, or constructed directly in Javascript. The array is used
731
+ * in place and becomes part of the constructed object. It is not cloned.
732
+ * If no data is provided, the constructed object will be empty, but still
733
+ * valid.
734
+ * @extends {jspb.Message}
735
+ * @constructor
736
+ */
737
+ proto.kycserviceapi.RedactionMetadata = function(opt_data) {
738
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
739
+ };
740
+ goog.inherits(proto.kycserviceapi.RedactionMetadata, jspb.Message);
741
+ if (goog.DEBUG && !COMPILED) {
742
+ /**
743
+ * @public
744
+ * @override
745
+ */
746
+ proto.kycserviceapi.RedactionMetadata.displayName = 'proto.kycserviceapi.RedactionMetadata';
747
+ }
748
+ /**
749
+ * Generated by JsPbCodeGenerator.
750
+ * @param {Array=} opt_data Optional initial data array, typically from a
751
+ * server response, or constructed directly in Javascript. The array is used
752
+ * in place and becomes part of the constructed object. It is not cloned.
753
+ * If no data is provided, the constructed object will be empty, but still
754
+ * valid.
755
+ * @extends {jspb.Message}
756
+ * @constructor
757
+ */
758
+ proto.kycserviceapi.RedactCardPhotoResponse = function(opt_data) {
759
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
760
+ };
761
+ goog.inherits(proto.kycserviceapi.RedactCardPhotoResponse, jspb.Message);
762
+ if (goog.DEBUG && !COMPILED) {
763
+ /**
764
+ * @public
765
+ * @override
766
+ */
767
+ proto.kycserviceapi.RedactCardPhotoResponse.displayName = 'proto.kycserviceapi.RedactCardPhotoResponse';
768
+ }
769
+ /**
770
+ * Generated by JsPbCodeGenerator.
771
+ * @param {Array=} opt_data Optional initial data array, typically from a
772
+ * server response, or constructed directly in Javascript. The array is used
773
+ * in place and becomes part of the constructed object. It is not cloned.
774
+ * If no data is provided, the constructed object will be empty, but still
775
+ * valid.
776
+ * @extends {jspb.Message}
777
+ * @constructor
778
+ */
779
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest = function(opt_data) {
780
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
781
+ };
782
+ goog.inherits(proto.kycserviceapi.GetFlaggedCardAttachmentsRequest, jspb.Message);
783
+ if (goog.DEBUG && !COMPILED) {
784
+ /**
785
+ * @public
786
+ * @override
787
+ */
788
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.displayName = 'proto.kycserviceapi.GetFlaggedCardAttachmentsRequest';
789
+ }
790
+ /**
791
+ * Generated by JsPbCodeGenerator.
792
+ * @param {Array=} opt_data Optional initial data array, typically from a
793
+ * server response, or constructed directly in Javascript. The array is used
794
+ * in place and becomes part of the constructed object. It is not cloned.
795
+ * If no data is provided, the constructed object will be empty, but still
796
+ * valid.
797
+ * @extends {jspb.Message}
798
+ * @constructor
799
+ */
800
+ proto.kycserviceapi.FlaggedCardAttachment = function(opt_data) {
801
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
802
+ };
803
+ goog.inherits(proto.kycserviceapi.FlaggedCardAttachment, jspb.Message);
804
+ if (goog.DEBUG && !COMPILED) {
805
+ /**
806
+ * @public
807
+ * @override
808
+ */
809
+ proto.kycserviceapi.FlaggedCardAttachment.displayName = 'proto.kycserviceapi.FlaggedCardAttachment';
810
+ }
811
+ /**
812
+ * Generated by JsPbCodeGenerator.
813
+ * @param {Array=} opt_data Optional initial data array, typically from a
814
+ * server response, or constructed directly in Javascript. The array is used
815
+ * in place and becomes part of the constructed object. It is not cloned.
816
+ * If no data is provided, the constructed object will be empty, but still
817
+ * valid.
818
+ * @extends {jspb.Message}
819
+ * @constructor
820
+ */
821
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse = function(opt_data) {
822
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.repeatedFields_, null);
823
+ };
824
+ goog.inherits(proto.kycserviceapi.GetFlaggedCardAttachmentsResponse, jspb.Message);
825
+ if (goog.DEBUG && !COMPILED) {
826
+ /**
827
+ * @public
828
+ * @override
829
+ */
830
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.displayName = 'proto.kycserviceapi.GetFlaggedCardAttachmentsResponse';
831
+ }
832
+ /**
833
+ * Generated by JsPbCodeGenerator.
834
+ * @param {Array=} opt_data Optional initial data array, typically from a
835
+ * server response, or constructed directly in Javascript. The array is used
836
+ * in place and becomes part of the constructed object. It is not cloned.
837
+ * If no data is provided, the constructed object will be empty, but still
838
+ * valid.
839
+ * @extends {jspb.Message}
840
+ * @constructor
841
+ */
842
+ proto.kycserviceapi.ClientFeatureFlagsResponse = function(opt_data) {
843
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
844
+ };
845
+ goog.inherits(proto.kycserviceapi.ClientFeatureFlagsResponse, jspb.Message);
846
+ if (goog.DEBUG && !COMPILED) {
847
+ /**
848
+ * @public
849
+ * @override
850
+ */
851
+ proto.kycserviceapi.ClientFeatureFlagsResponse.displayName = 'proto.kycserviceapi.ClientFeatureFlagsResponse';
852
+ }
696
853
  /**
697
854
  * Generated by JsPbCodeGenerator.
698
855
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4288,7 +4445,8 @@ proto.kycserviceapi.SaveDocumentRequest.prototype.toObject = function(opt_includ
4288
4445
  */
4289
4446
  proto.kycserviceapi.SaveDocumentRequest.toObject = function(includeInstance, msg) {
4290
4447
  var f, obj = {
4291
- data: (f = msg.getData()) && proto.kycserviceapi.DocumentSaveRequest.toObject(includeInstance, f)
4448
+ data: (f = msg.getData()) && proto.kycserviceapi.DocumentSaveRequest.toObject(includeInstance, f),
4449
+ redactionmetadata: (f = msg.getRedactionmetadata()) && proto.kycserviceapi.RedactionMetadata.toObject(includeInstance, f)
4292
4450
  };
4293
4451
 
4294
4452
  if (includeInstance) {
@@ -4330,6 +4488,11 @@ proto.kycserviceapi.SaveDocumentRequest.deserializeBinaryFromReader = function(m
4330
4488
  reader.readMessage(value,proto.kycserviceapi.DocumentSaveRequest.deserializeBinaryFromReader);
4331
4489
  msg.setData(value);
4332
4490
  break;
4491
+ case 2:
4492
+ var value = new proto.kycserviceapi.RedactionMetadata;
4493
+ reader.readMessage(value,proto.kycserviceapi.RedactionMetadata.deserializeBinaryFromReader);
4494
+ msg.setRedactionmetadata(value);
4495
+ break;
4333
4496
  default:
4334
4497
  reader.skipField();
4335
4498
  break;
@@ -4367,6 +4530,14 @@ proto.kycserviceapi.SaveDocumentRequest.serializeBinaryToWriter = function(messa
4367
4530
  proto.kycserviceapi.DocumentSaveRequest.serializeBinaryToWriter
4368
4531
  );
4369
4532
  }
4533
+ f = message.getRedactionmetadata();
4534
+ if (f != null) {
4535
+ writer.writeMessage(
4536
+ 2,
4537
+ f,
4538
+ proto.kycserviceapi.RedactionMetadata.serializeBinaryToWriter
4539
+ );
4540
+ }
4370
4541
  };
4371
4542
 
4372
4543
 
@@ -4407,6 +4578,43 @@ proto.kycserviceapi.SaveDocumentRequest.prototype.hasData = function() {
4407
4578
  };
4408
4579
 
4409
4580
 
4581
+ /**
4582
+ * optional RedactionMetadata redactionMetadata = 2;
4583
+ * @return {?proto.kycserviceapi.RedactionMetadata}
4584
+ */
4585
+ proto.kycserviceapi.SaveDocumentRequest.prototype.getRedactionmetadata = function() {
4586
+ return /** @type{?proto.kycserviceapi.RedactionMetadata} */ (
4587
+ jspb.Message.getWrapperField(this, proto.kycserviceapi.RedactionMetadata, 2));
4588
+ };
4589
+
4590
+
4591
+ /**
4592
+ * @param {?proto.kycserviceapi.RedactionMetadata|undefined} value
4593
+ * @return {!proto.kycserviceapi.SaveDocumentRequest} returns this
4594
+ */
4595
+ proto.kycserviceapi.SaveDocumentRequest.prototype.setRedactionmetadata = function(value) {
4596
+ return jspb.Message.setWrapperField(this, 2, value);
4597
+ };
4598
+
4599
+
4600
+ /**
4601
+ * Clears the message field making it undefined.
4602
+ * @return {!proto.kycserviceapi.SaveDocumentRequest} returns this
4603
+ */
4604
+ proto.kycserviceapi.SaveDocumentRequest.prototype.clearRedactionmetadata = function() {
4605
+ return this.setRedactionmetadata(undefined);
4606
+ };
4607
+
4608
+
4609
+ /**
4610
+ * Returns whether this field is set.
4611
+ * @return {boolean}
4612
+ */
4613
+ proto.kycserviceapi.SaveDocumentRequest.prototype.hasRedactionmetadata = function() {
4614
+ return jspb.Message.getField(this, 2) != null;
4615
+ };
4616
+
4617
+
4410
4618
 
4411
4619
 
4412
4620
 
@@ -7173,8 +7381,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7173
7381
  * http://goto/soy-param-migration
7174
7382
  * @return {!Object}
7175
7383
  */
7176
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.toObject = function(opt_includeInstance) {
7177
- return proto.kycserviceapi.ClearKycExternalIdRequest.toObject(opt_includeInstance, this);
7384
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.toObject = function(opt_includeInstance) {
7385
+ return proto.kycserviceapi.RedactCardPhotoRequest.toObject(opt_includeInstance, this);
7178
7386
  };
7179
7387
 
7180
7388
 
@@ -7183,15 +7391,16 @@ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.toObject = function(opt_
7183
7391
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7184
7392
  * the JSPB instance for transitional soy proto support:
7185
7393
  * http://goto/soy-param-migration
7186
- * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} msg The msg instance to transform.
7394
+ * @param {!proto.kycserviceapi.RedactCardPhotoRequest} msg The msg instance to transform.
7187
7395
  * @return {!Object}
7188
7396
  * @suppress {unusedLocalVariables} f is only used for nested messages
7189
7397
  */
7190
- proto.kycserviceapi.ClearKycExternalIdRequest.toObject = function(includeInstance, msg) {
7398
+ proto.kycserviceapi.RedactCardPhotoRequest.toObject = function(includeInstance, msg) {
7191
7399
  var f, obj = {
7192
- userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7193
- password: jspb.Message.getFieldWithDefault(msg, 2, ""),
7194
- comment: jspb.Message.getFieldWithDefault(msg, 3, "")
7400
+ imagebytes: msg.getImagebytes_asB64(),
7401
+ contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
7402
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 3, 0),
7403
+ correlationid: jspb.Message.getFieldWithDefault(msg, 4, "")
7195
7404
  };
7196
7405
 
7197
7406
  if (includeInstance) {
@@ -7205,23 +7414,23 @@ proto.kycserviceapi.ClearKycExternalIdRequest.toObject = function(includeInstanc
7205
7414
  /**
7206
7415
  * Deserializes binary data (in protobuf wire format).
7207
7416
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7208
- * @return {!proto.kycserviceapi.ClearKycExternalIdRequest}
7417
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest}
7209
7418
  */
7210
- proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinary = function(bytes) {
7419
+ proto.kycserviceapi.RedactCardPhotoRequest.deserializeBinary = function(bytes) {
7211
7420
  var reader = new jspb.BinaryReader(bytes);
7212
- var msg = new proto.kycserviceapi.ClearKycExternalIdRequest;
7213
- return proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader(msg, reader);
7421
+ var msg = new proto.kycserviceapi.RedactCardPhotoRequest;
7422
+ return proto.kycserviceapi.RedactCardPhotoRequest.deserializeBinaryFromReader(msg, reader);
7214
7423
  };
7215
7424
 
7216
7425
 
7217
7426
  /**
7218
7427
  * Deserializes binary data (in protobuf wire format) from the
7219
7428
  * given reader into the given message object.
7220
- * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} msg The message object to deserialize into.
7429
+ * @param {!proto.kycserviceapi.RedactCardPhotoRequest} msg The message object to deserialize into.
7221
7430
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7222
- * @return {!proto.kycserviceapi.ClearKycExternalIdRequest}
7431
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest}
7223
7432
  */
7224
- proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader = function(msg, reader) {
7433
+ proto.kycserviceapi.RedactCardPhotoRequest.deserializeBinaryFromReader = function(msg, reader) {
7225
7434
  while (reader.nextField()) {
7226
7435
  if (reader.isEndGroup()) {
7227
7436
  break;
@@ -7229,16 +7438,20 @@ proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader = func
7229
7438
  var field = reader.getFieldNumber();
7230
7439
  switch (field) {
7231
7440
  case 1:
7232
- var value = /** @type {number} */ (reader.readInt64());
7233
- msg.setUserid(value);
7441
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
7442
+ msg.setImagebytes(value);
7234
7443
  break;
7235
7444
  case 2:
7236
7445
  var value = /** @type {string} */ (reader.readString());
7237
- msg.setPassword(value);
7446
+ msg.setContenttype(value);
7238
7447
  break;
7239
7448
  case 3:
7449
+ var value = /** @type {number} */ (reader.readInt64());
7450
+ msg.setPaymentmethodid(value);
7451
+ break;
7452
+ case 4:
7240
7453
  var value = /** @type {string} */ (reader.readString());
7241
- msg.setComment(value);
7454
+ msg.setCorrelationid(value);
7242
7455
  break;
7243
7456
  default:
7244
7457
  reader.skipField();
@@ -7253,9 +7466,9 @@ proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader = func
7253
7466
  * Serializes the message to binary data (in protobuf wire format).
7254
7467
  * @return {!Uint8Array}
7255
7468
  */
7256
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.serializeBinary = function() {
7469
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.serializeBinary = function() {
7257
7470
  var writer = new jspb.BinaryWriter();
7258
- proto.kycserviceapi.ClearKycExternalIdRequest.serializeBinaryToWriter(this, writer);
7471
+ proto.kycserviceapi.RedactCardPhotoRequest.serializeBinaryToWriter(this, writer);
7259
7472
  return writer.getResultBuffer();
7260
7473
  };
7261
7474
 
@@ -7263,30 +7476,37 @@ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.serializeBinary = functi
7263
7476
  /**
7264
7477
  * Serializes the given message to binary data (in protobuf wire
7265
7478
  * format), writing to the given BinaryWriter.
7266
- * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} message
7479
+ * @param {!proto.kycserviceapi.RedactCardPhotoRequest} message
7267
7480
  * @param {!jspb.BinaryWriter} writer
7268
7481
  * @suppress {unusedLocalVariables} f is only used for nested messages
7269
7482
  */
7270
- proto.kycserviceapi.ClearKycExternalIdRequest.serializeBinaryToWriter = function(message, writer) {
7483
+ proto.kycserviceapi.RedactCardPhotoRequest.serializeBinaryToWriter = function(message, writer) {
7271
7484
  var f = undefined;
7272
- f = message.getUserid();
7273
- if (f !== 0) {
7274
- writer.writeInt64(
7485
+ f = message.getImagebytes_asU8();
7486
+ if (f.length > 0) {
7487
+ writer.writeBytes(
7275
7488
  1,
7276
7489
  f
7277
7490
  );
7278
7491
  }
7279
- f = message.getPassword();
7492
+ f = message.getContenttype();
7280
7493
  if (f.length > 0) {
7281
7494
  writer.writeString(
7282
7495
  2,
7283
7496
  f
7284
7497
  );
7285
7498
  }
7286
- f = message.getComment();
7499
+ f = message.getPaymentmethodid();
7500
+ if (f !== 0) {
7501
+ writer.writeInt64(
7502
+ 3,
7503
+ f
7504
+ );
7505
+ }
7506
+ f = message.getCorrelationid();
7287
7507
  if (f.length > 0) {
7288
7508
  writer.writeString(
7289
- 3,
7509
+ 4,
7290
7510
  f
7291
7511
  );
7292
7512
  }
@@ -7294,82 +7514,1931 @@ proto.kycserviceapi.ClearKycExternalIdRequest.serializeBinaryToWriter = function
7294
7514
 
7295
7515
 
7296
7516
  /**
7297
- * optional int64 userId = 1;
7298
- * @return {number}
7517
+ * optional bytes imageBytes = 1;
7518
+ * @return {!(string|Uint8Array)}
7299
7519
  */
7300
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getUserid = function() {
7301
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7520
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getImagebytes = function() {
7521
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7302
7522
  };
7303
7523
 
7304
7524
 
7305
7525
  /**
7306
- * @param {number} value
7307
- * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
7526
+ * optional bytes imageBytes = 1;
7527
+ * This is a type-conversion wrapper around `getImagebytes()`
7528
+ * @return {string}
7308
7529
  */
7309
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setUserid = function(value) {
7310
- return jspb.Message.setProto3IntField(this, 1, value);
7530
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getImagebytes_asB64 = function() {
7531
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
7532
+ this.getImagebytes()));
7311
7533
  };
7312
7534
 
7313
7535
 
7314
7536
  /**
7315
- * optional string password = 2;
7316
- * @return {string}
7537
+ * optional bytes imageBytes = 1;
7538
+ * Note that Uint8Array is not supported on all browsers.
7539
+ * @see http://caniuse.com/Uint8Array
7540
+ * This is a type-conversion wrapper around `getImagebytes()`
7541
+ * @return {!Uint8Array}
7317
7542
  */
7318
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getPassword = function() {
7319
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7543
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getImagebytes_asU8 = function() {
7544
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
7545
+ this.getImagebytes()));
7320
7546
  };
7321
7547
 
7322
7548
 
7323
7549
  /**
7324
- * @param {string} value
7325
- * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
7550
+ * @param {!(string|Uint8Array)} value
7551
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest} returns this
7326
7552
  */
7327
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setPassword = function(value) {
7328
- return jspb.Message.setProto3StringField(this, 2, value);
7553
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.setImagebytes = function(value) {
7554
+ return jspb.Message.setProto3BytesField(this, 1, value);
7329
7555
  };
7330
7556
 
7331
7557
 
7332
7558
  /**
7333
- * optional string comment = 3;
7559
+ * optional string contentType = 2;
7334
7560
  * @return {string}
7335
7561
  */
7336
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getComment = function() {
7337
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7562
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getContenttype = function() {
7563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7338
7564
  };
7339
7565
 
7340
7566
 
7341
7567
  /**
7342
7568
  * @param {string} value
7343
- * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
7569
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest} returns this
7344
7570
  */
7345
- proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setComment = function(value) {
7346
- return jspb.Message.setProto3StringField(this, 3, value);
7571
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.setContenttype = function(value) {
7572
+ return jspb.Message.setProto3StringField(this, 2, value);
7347
7573
  };
7348
7574
 
7349
7575
 
7350
-
7351
-
7352
-
7353
- if (jspb.Message.GENERATE_TO_OBJECT) {
7354
7576
  /**
7355
- * Creates an object representation of this proto.
7356
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7357
- * Optional fields that are not set will be set to undefined.
7358
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7359
- * For the list of reserved names please see:
7360
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7361
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7362
- * JSPB instance for transitional soy proto support:
7363
- * http://goto/soy-param-migration
7364
- * @return {!Object}
7577
+ * optional int64 paymentMethodId = 3;
7578
+ * @return {number}
7365
7579
  */
7366
- proto.kycserviceapi.GetDocumentImagesRequest.prototype.toObject = function(opt_includeInstance) {
7367
- return proto.kycserviceapi.GetDocumentImagesRequest.toObject(opt_includeInstance, this);
7580
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getPaymentmethodid = function() {
7581
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7368
7582
  };
7369
7583
 
7370
7584
 
7371
7585
  /**
7372
- * Static version of the {@see toObject} method.
7586
+ * @param {number} value
7587
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest} returns this
7588
+ */
7589
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.setPaymentmethodid = function(value) {
7590
+ return jspb.Message.setProto3IntField(this, 3, value);
7591
+ };
7592
+
7593
+
7594
+ /**
7595
+ * optional string correlationId = 4;
7596
+ * @return {string}
7597
+ */
7598
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.getCorrelationid = function() {
7599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7600
+ };
7601
+
7602
+
7603
+ /**
7604
+ * @param {string} value
7605
+ * @return {!proto.kycserviceapi.RedactCardPhotoRequest} returns this
7606
+ */
7607
+ proto.kycserviceapi.RedactCardPhotoRequest.prototype.setCorrelationid = function(value) {
7608
+ return jspb.Message.setProto3StringField(this, 4, value);
7609
+ };
7610
+
7611
+
7612
+
7613
+
7614
+
7615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7616
+ /**
7617
+ * Creates an object representation of this proto.
7618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7619
+ * Optional fields that are not set will be set to undefined.
7620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7621
+ * For the list of reserved names please see:
7622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7624
+ * JSPB instance for transitional soy proto support:
7625
+ * http://goto/soy-param-migration
7626
+ * @return {!Object}
7627
+ */
7628
+ proto.kycserviceapi.RedactionMetadata.prototype.toObject = function(opt_includeInstance) {
7629
+ return proto.kycserviceapi.RedactionMetadata.toObject(opt_includeInstance, this);
7630
+ };
7631
+
7632
+
7633
+ /**
7634
+ * Static version of the {@see toObject} method.
7635
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7636
+ * the JSPB instance for transitional soy proto support:
7637
+ * http://goto/soy-param-migration
7638
+ * @param {!proto.kycserviceapi.RedactionMetadata} msg The msg instance to transform.
7639
+ * @return {!Object}
7640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7641
+ */
7642
+ proto.kycserviceapi.RedactionMetadata.toObject = function(includeInstance, msg) {
7643
+ var f, obj = {
7644
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
7645
+ pandetected: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
7646
+ panlast4: jspb.Message.getFieldWithDefault(msg, 3, ""),
7647
+ cvvdetected: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
7648
+ regionsredacted: jspb.Message.getFieldWithDefault(msg, 5, 0),
7649
+ passes: jspb.Message.getFieldWithDefault(msg, 6, 0),
7650
+ processingms: jspb.Message.getFieldWithDefault(msg, 7, 0),
7651
+ engineversion: jspb.Message.getFieldWithDefault(msg, 8, ""),
7652
+ last4mismatch: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
7653
+ };
7654
+
7655
+ if (includeInstance) {
7656
+ obj.$jspbMessageInstance = msg;
7657
+ }
7658
+ return obj;
7659
+ };
7660
+ }
7661
+
7662
+
7663
+ /**
7664
+ * Deserializes binary data (in protobuf wire format).
7665
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7666
+ * @return {!proto.kycserviceapi.RedactionMetadata}
7667
+ */
7668
+ proto.kycserviceapi.RedactionMetadata.deserializeBinary = function(bytes) {
7669
+ var reader = new jspb.BinaryReader(bytes);
7670
+ var msg = new proto.kycserviceapi.RedactionMetadata;
7671
+ return proto.kycserviceapi.RedactionMetadata.deserializeBinaryFromReader(msg, reader);
7672
+ };
7673
+
7674
+
7675
+ /**
7676
+ * Deserializes binary data (in protobuf wire format) from the
7677
+ * given reader into the given message object.
7678
+ * @param {!proto.kycserviceapi.RedactionMetadata} msg The message object to deserialize into.
7679
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7680
+ * @return {!proto.kycserviceapi.RedactionMetadata}
7681
+ */
7682
+ proto.kycserviceapi.RedactionMetadata.deserializeBinaryFromReader = function(msg, reader) {
7683
+ while (reader.nextField()) {
7684
+ if (reader.isEndGroup()) {
7685
+ break;
7686
+ }
7687
+ var field = reader.getFieldNumber();
7688
+ switch (field) {
7689
+ case 1:
7690
+ var value = /** @type {!proto.kycserviceapi.RedactionStatus} */ (reader.readEnum());
7691
+ msg.setStatus(value);
7692
+ break;
7693
+ case 2:
7694
+ var value = /** @type {boolean} */ (reader.readBool());
7695
+ msg.setPandetected(value);
7696
+ break;
7697
+ case 3:
7698
+ var value = /** @type {string} */ (reader.readString());
7699
+ msg.setPanlast4(value);
7700
+ break;
7701
+ case 4:
7702
+ var value = /** @type {boolean} */ (reader.readBool());
7703
+ msg.setCvvdetected(value);
7704
+ break;
7705
+ case 5:
7706
+ var value = /** @type {number} */ (reader.readInt32());
7707
+ msg.setRegionsredacted(value);
7708
+ break;
7709
+ case 6:
7710
+ var value = /** @type {number} */ (reader.readInt32());
7711
+ msg.setPasses(value);
7712
+ break;
7713
+ case 7:
7714
+ var value = /** @type {number} */ (reader.readInt64());
7715
+ msg.setProcessingms(value);
7716
+ break;
7717
+ case 8:
7718
+ var value = /** @type {string} */ (reader.readString());
7719
+ msg.setEngineversion(value);
7720
+ break;
7721
+ case 9:
7722
+ var value = /** @type {boolean} */ (reader.readBool());
7723
+ msg.setLast4mismatch(value);
7724
+ break;
7725
+ default:
7726
+ reader.skipField();
7727
+ break;
7728
+ }
7729
+ }
7730
+ return msg;
7731
+ };
7732
+
7733
+
7734
+ /**
7735
+ * Serializes the message to binary data (in protobuf wire format).
7736
+ * @return {!Uint8Array}
7737
+ */
7738
+ proto.kycserviceapi.RedactionMetadata.prototype.serializeBinary = function() {
7739
+ var writer = new jspb.BinaryWriter();
7740
+ proto.kycserviceapi.RedactionMetadata.serializeBinaryToWriter(this, writer);
7741
+ return writer.getResultBuffer();
7742
+ };
7743
+
7744
+
7745
+ /**
7746
+ * Serializes the given message to binary data (in protobuf wire
7747
+ * format), writing to the given BinaryWriter.
7748
+ * @param {!proto.kycserviceapi.RedactionMetadata} message
7749
+ * @param {!jspb.BinaryWriter} writer
7750
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7751
+ */
7752
+ proto.kycserviceapi.RedactionMetadata.serializeBinaryToWriter = function(message, writer) {
7753
+ var f = undefined;
7754
+ f = message.getStatus();
7755
+ if (f !== 0.0) {
7756
+ writer.writeEnum(
7757
+ 1,
7758
+ f
7759
+ );
7760
+ }
7761
+ f = message.getPandetected();
7762
+ if (f) {
7763
+ writer.writeBool(
7764
+ 2,
7765
+ f
7766
+ );
7767
+ }
7768
+ f = message.getPanlast4();
7769
+ if (f.length > 0) {
7770
+ writer.writeString(
7771
+ 3,
7772
+ f
7773
+ );
7774
+ }
7775
+ f = message.getCvvdetected();
7776
+ if (f) {
7777
+ writer.writeBool(
7778
+ 4,
7779
+ f
7780
+ );
7781
+ }
7782
+ f = message.getRegionsredacted();
7783
+ if (f !== 0) {
7784
+ writer.writeInt32(
7785
+ 5,
7786
+ f
7787
+ );
7788
+ }
7789
+ f = message.getPasses();
7790
+ if (f !== 0) {
7791
+ writer.writeInt32(
7792
+ 6,
7793
+ f
7794
+ );
7795
+ }
7796
+ f = message.getProcessingms();
7797
+ if (f !== 0) {
7798
+ writer.writeInt64(
7799
+ 7,
7800
+ f
7801
+ );
7802
+ }
7803
+ f = message.getEngineversion();
7804
+ if (f.length > 0) {
7805
+ writer.writeString(
7806
+ 8,
7807
+ f
7808
+ );
7809
+ }
7810
+ f = message.getLast4mismatch();
7811
+ if (f) {
7812
+ writer.writeBool(
7813
+ 9,
7814
+ f
7815
+ );
7816
+ }
7817
+ };
7818
+
7819
+
7820
+ /**
7821
+ * optional RedactionStatus status = 1;
7822
+ * @return {!proto.kycserviceapi.RedactionStatus}
7823
+ */
7824
+ proto.kycserviceapi.RedactionMetadata.prototype.getStatus = function() {
7825
+ return /** @type {!proto.kycserviceapi.RedactionStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7826
+ };
7827
+
7828
+
7829
+ /**
7830
+ * @param {!proto.kycserviceapi.RedactionStatus} value
7831
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7832
+ */
7833
+ proto.kycserviceapi.RedactionMetadata.prototype.setStatus = function(value) {
7834
+ return jspb.Message.setProto3EnumField(this, 1, value);
7835
+ };
7836
+
7837
+
7838
+ /**
7839
+ * optional bool panDetected = 2;
7840
+ * @return {boolean}
7841
+ */
7842
+ proto.kycserviceapi.RedactionMetadata.prototype.getPandetected = function() {
7843
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
7844
+ };
7845
+
7846
+
7847
+ /**
7848
+ * @param {boolean} value
7849
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7850
+ */
7851
+ proto.kycserviceapi.RedactionMetadata.prototype.setPandetected = function(value) {
7852
+ return jspb.Message.setProto3BooleanField(this, 2, value);
7853
+ };
7854
+
7855
+
7856
+ /**
7857
+ * optional string panLast4 = 3;
7858
+ * @return {string}
7859
+ */
7860
+ proto.kycserviceapi.RedactionMetadata.prototype.getPanlast4 = function() {
7861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7862
+ };
7863
+
7864
+
7865
+ /**
7866
+ * @param {string} value
7867
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7868
+ */
7869
+ proto.kycserviceapi.RedactionMetadata.prototype.setPanlast4 = function(value) {
7870
+ return jspb.Message.setProto3StringField(this, 3, value);
7871
+ };
7872
+
7873
+
7874
+ /**
7875
+ * optional bool cvvDetected = 4;
7876
+ * @return {boolean}
7877
+ */
7878
+ proto.kycserviceapi.RedactionMetadata.prototype.getCvvdetected = function() {
7879
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
7880
+ };
7881
+
7882
+
7883
+ /**
7884
+ * @param {boolean} value
7885
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7886
+ */
7887
+ proto.kycserviceapi.RedactionMetadata.prototype.setCvvdetected = function(value) {
7888
+ return jspb.Message.setProto3BooleanField(this, 4, value);
7889
+ };
7890
+
7891
+
7892
+ /**
7893
+ * optional int32 regionsRedacted = 5;
7894
+ * @return {number}
7895
+ */
7896
+ proto.kycserviceapi.RedactionMetadata.prototype.getRegionsredacted = function() {
7897
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7898
+ };
7899
+
7900
+
7901
+ /**
7902
+ * @param {number} value
7903
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7904
+ */
7905
+ proto.kycserviceapi.RedactionMetadata.prototype.setRegionsredacted = function(value) {
7906
+ return jspb.Message.setProto3IntField(this, 5, value);
7907
+ };
7908
+
7909
+
7910
+ /**
7911
+ * optional int32 passes = 6;
7912
+ * @return {number}
7913
+ */
7914
+ proto.kycserviceapi.RedactionMetadata.prototype.getPasses = function() {
7915
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
7916
+ };
7917
+
7918
+
7919
+ /**
7920
+ * @param {number} value
7921
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7922
+ */
7923
+ proto.kycserviceapi.RedactionMetadata.prototype.setPasses = function(value) {
7924
+ return jspb.Message.setProto3IntField(this, 6, value);
7925
+ };
7926
+
7927
+
7928
+ /**
7929
+ * optional int64 processingMs = 7;
7930
+ * @return {number}
7931
+ */
7932
+ proto.kycserviceapi.RedactionMetadata.prototype.getProcessingms = function() {
7933
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7934
+ };
7935
+
7936
+
7937
+ /**
7938
+ * @param {number} value
7939
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7940
+ */
7941
+ proto.kycserviceapi.RedactionMetadata.prototype.setProcessingms = function(value) {
7942
+ return jspb.Message.setProto3IntField(this, 7, value);
7943
+ };
7944
+
7945
+
7946
+ /**
7947
+ * optional string engineVersion = 8;
7948
+ * @return {string}
7949
+ */
7950
+ proto.kycserviceapi.RedactionMetadata.prototype.getEngineversion = function() {
7951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
7952
+ };
7953
+
7954
+
7955
+ /**
7956
+ * @param {string} value
7957
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7958
+ */
7959
+ proto.kycserviceapi.RedactionMetadata.prototype.setEngineversion = function(value) {
7960
+ return jspb.Message.setProto3StringField(this, 8, value);
7961
+ };
7962
+
7963
+
7964
+ /**
7965
+ * optional bool last4Mismatch = 9;
7966
+ * @return {boolean}
7967
+ */
7968
+ proto.kycserviceapi.RedactionMetadata.prototype.getLast4mismatch = function() {
7969
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
7970
+ };
7971
+
7972
+
7973
+ /**
7974
+ * @param {boolean} value
7975
+ * @return {!proto.kycserviceapi.RedactionMetadata} returns this
7976
+ */
7977
+ proto.kycserviceapi.RedactionMetadata.prototype.setLast4mismatch = function(value) {
7978
+ return jspb.Message.setProto3BooleanField(this, 9, value);
7979
+ };
7980
+
7981
+
7982
+
7983
+
7984
+
7985
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7986
+ /**
7987
+ * Creates an object representation of this proto.
7988
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7989
+ * Optional fields that are not set will be set to undefined.
7990
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7991
+ * For the list of reserved names please see:
7992
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7993
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7994
+ * JSPB instance for transitional soy proto support:
7995
+ * http://goto/soy-param-migration
7996
+ * @return {!Object}
7997
+ */
7998
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.toObject = function(opt_includeInstance) {
7999
+ return proto.kycserviceapi.RedactCardPhotoResponse.toObject(opt_includeInstance, this);
8000
+ };
8001
+
8002
+
8003
+ /**
8004
+ * Static version of the {@see toObject} method.
8005
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8006
+ * the JSPB instance for transitional soy proto support:
8007
+ * http://goto/soy-param-migration
8008
+ * @param {!proto.kycserviceapi.RedactCardPhotoResponse} msg The msg instance to transform.
8009
+ * @return {!Object}
8010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8011
+ */
8012
+ proto.kycserviceapi.RedactCardPhotoResponse.toObject = function(includeInstance, msg) {
8013
+ var f, obj = {
8014
+ redactedimagebytes: msg.getRedactedimagebytes_asB64(),
8015
+ contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
8016
+ metadata: (f = msg.getMetadata()) && proto.kycserviceapi.RedactionMetadata.toObject(includeInstance, f),
8017
+ responsecode: (f = msg.getResponsecode()) && proto.kycserviceapi.ResponseCode.toObject(includeInstance, f)
8018
+ };
8019
+
8020
+ if (includeInstance) {
8021
+ obj.$jspbMessageInstance = msg;
8022
+ }
8023
+ return obj;
8024
+ };
8025
+ }
8026
+
8027
+
8028
+ /**
8029
+ * Deserializes binary data (in protobuf wire format).
8030
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8031
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse}
8032
+ */
8033
+ proto.kycserviceapi.RedactCardPhotoResponse.deserializeBinary = function(bytes) {
8034
+ var reader = new jspb.BinaryReader(bytes);
8035
+ var msg = new proto.kycserviceapi.RedactCardPhotoResponse;
8036
+ return proto.kycserviceapi.RedactCardPhotoResponse.deserializeBinaryFromReader(msg, reader);
8037
+ };
8038
+
8039
+
8040
+ /**
8041
+ * Deserializes binary data (in protobuf wire format) from the
8042
+ * given reader into the given message object.
8043
+ * @param {!proto.kycserviceapi.RedactCardPhotoResponse} msg The message object to deserialize into.
8044
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8045
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse}
8046
+ */
8047
+ proto.kycserviceapi.RedactCardPhotoResponse.deserializeBinaryFromReader = function(msg, reader) {
8048
+ while (reader.nextField()) {
8049
+ if (reader.isEndGroup()) {
8050
+ break;
8051
+ }
8052
+ var field = reader.getFieldNumber();
8053
+ switch (field) {
8054
+ case 1:
8055
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
8056
+ msg.setRedactedimagebytes(value);
8057
+ break;
8058
+ case 2:
8059
+ var value = /** @type {string} */ (reader.readString());
8060
+ msg.setContenttype(value);
8061
+ break;
8062
+ case 3:
8063
+ var value = new proto.kycserviceapi.RedactionMetadata;
8064
+ reader.readMessage(value,proto.kycserviceapi.RedactionMetadata.deserializeBinaryFromReader);
8065
+ msg.setMetadata(value);
8066
+ break;
8067
+ case 4:
8068
+ var value = new proto.kycserviceapi.ResponseCode;
8069
+ reader.readMessage(value,proto.kycserviceapi.ResponseCode.deserializeBinaryFromReader);
8070
+ msg.setResponsecode(value);
8071
+ break;
8072
+ default:
8073
+ reader.skipField();
8074
+ break;
8075
+ }
8076
+ }
8077
+ return msg;
8078
+ };
8079
+
8080
+
8081
+ /**
8082
+ * Serializes the message to binary data (in protobuf wire format).
8083
+ * @return {!Uint8Array}
8084
+ */
8085
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.serializeBinary = function() {
8086
+ var writer = new jspb.BinaryWriter();
8087
+ proto.kycserviceapi.RedactCardPhotoResponse.serializeBinaryToWriter(this, writer);
8088
+ return writer.getResultBuffer();
8089
+ };
8090
+
8091
+
8092
+ /**
8093
+ * Serializes the given message to binary data (in protobuf wire
8094
+ * format), writing to the given BinaryWriter.
8095
+ * @param {!proto.kycserviceapi.RedactCardPhotoResponse} message
8096
+ * @param {!jspb.BinaryWriter} writer
8097
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8098
+ */
8099
+ proto.kycserviceapi.RedactCardPhotoResponse.serializeBinaryToWriter = function(message, writer) {
8100
+ var f = undefined;
8101
+ f = message.getRedactedimagebytes_asU8();
8102
+ if (f.length > 0) {
8103
+ writer.writeBytes(
8104
+ 1,
8105
+ f
8106
+ );
8107
+ }
8108
+ f = message.getContenttype();
8109
+ if (f.length > 0) {
8110
+ writer.writeString(
8111
+ 2,
8112
+ f
8113
+ );
8114
+ }
8115
+ f = message.getMetadata();
8116
+ if (f != null) {
8117
+ writer.writeMessage(
8118
+ 3,
8119
+ f,
8120
+ proto.kycserviceapi.RedactionMetadata.serializeBinaryToWriter
8121
+ );
8122
+ }
8123
+ f = message.getResponsecode();
8124
+ if (f != null) {
8125
+ writer.writeMessage(
8126
+ 4,
8127
+ f,
8128
+ proto.kycserviceapi.ResponseCode.serializeBinaryToWriter
8129
+ );
8130
+ }
8131
+ };
8132
+
8133
+
8134
+ /**
8135
+ * optional bytes redactedImageBytes = 1;
8136
+ * @return {!(string|Uint8Array)}
8137
+ */
8138
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getRedactedimagebytes = function() {
8139
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8140
+ };
8141
+
8142
+
8143
+ /**
8144
+ * optional bytes redactedImageBytes = 1;
8145
+ * This is a type-conversion wrapper around `getRedactedimagebytes()`
8146
+ * @return {string}
8147
+ */
8148
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getRedactedimagebytes_asB64 = function() {
8149
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
8150
+ this.getRedactedimagebytes()));
8151
+ };
8152
+
8153
+
8154
+ /**
8155
+ * optional bytes redactedImageBytes = 1;
8156
+ * Note that Uint8Array is not supported on all browsers.
8157
+ * @see http://caniuse.com/Uint8Array
8158
+ * This is a type-conversion wrapper around `getRedactedimagebytes()`
8159
+ * @return {!Uint8Array}
8160
+ */
8161
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getRedactedimagebytes_asU8 = function() {
8162
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
8163
+ this.getRedactedimagebytes()));
8164
+ };
8165
+
8166
+
8167
+ /**
8168
+ * @param {!(string|Uint8Array)} value
8169
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8170
+ */
8171
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.setRedactedimagebytes = function(value) {
8172
+ return jspb.Message.setProto3BytesField(this, 1, value);
8173
+ };
8174
+
8175
+
8176
+ /**
8177
+ * optional string contentType = 2;
8178
+ * @return {string}
8179
+ */
8180
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getContenttype = function() {
8181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8182
+ };
8183
+
8184
+
8185
+ /**
8186
+ * @param {string} value
8187
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8188
+ */
8189
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.setContenttype = function(value) {
8190
+ return jspb.Message.setProto3StringField(this, 2, value);
8191
+ };
8192
+
8193
+
8194
+ /**
8195
+ * optional RedactionMetadata metadata = 3;
8196
+ * @return {?proto.kycserviceapi.RedactionMetadata}
8197
+ */
8198
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getMetadata = function() {
8199
+ return /** @type{?proto.kycserviceapi.RedactionMetadata} */ (
8200
+ jspb.Message.getWrapperField(this, proto.kycserviceapi.RedactionMetadata, 3));
8201
+ };
8202
+
8203
+
8204
+ /**
8205
+ * @param {?proto.kycserviceapi.RedactionMetadata|undefined} value
8206
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8207
+ */
8208
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.setMetadata = function(value) {
8209
+ return jspb.Message.setWrapperField(this, 3, value);
8210
+ };
8211
+
8212
+
8213
+ /**
8214
+ * Clears the message field making it undefined.
8215
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8216
+ */
8217
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.clearMetadata = function() {
8218
+ return this.setMetadata(undefined);
8219
+ };
8220
+
8221
+
8222
+ /**
8223
+ * Returns whether this field is set.
8224
+ * @return {boolean}
8225
+ */
8226
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.hasMetadata = function() {
8227
+ return jspb.Message.getField(this, 3) != null;
8228
+ };
8229
+
8230
+
8231
+ /**
8232
+ * optional ResponseCode responseCode = 4;
8233
+ * @return {?proto.kycserviceapi.ResponseCode}
8234
+ */
8235
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.getResponsecode = function() {
8236
+ return /** @type{?proto.kycserviceapi.ResponseCode} */ (
8237
+ jspb.Message.getWrapperField(this, proto.kycserviceapi.ResponseCode, 4));
8238
+ };
8239
+
8240
+
8241
+ /**
8242
+ * @param {?proto.kycserviceapi.ResponseCode|undefined} value
8243
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8244
+ */
8245
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.setResponsecode = function(value) {
8246
+ return jspb.Message.setWrapperField(this, 4, value);
8247
+ };
8248
+
8249
+
8250
+ /**
8251
+ * Clears the message field making it undefined.
8252
+ * @return {!proto.kycserviceapi.RedactCardPhotoResponse} returns this
8253
+ */
8254
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.clearResponsecode = function() {
8255
+ return this.setResponsecode(undefined);
8256
+ };
8257
+
8258
+
8259
+ /**
8260
+ * Returns whether this field is set.
8261
+ * @return {boolean}
8262
+ */
8263
+ proto.kycserviceapi.RedactCardPhotoResponse.prototype.hasResponsecode = function() {
8264
+ return jspb.Message.getField(this, 4) != null;
8265
+ };
8266
+
8267
+
8268
+
8269
+
8270
+
8271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8272
+ /**
8273
+ * Creates an object representation of this proto.
8274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8275
+ * Optional fields that are not set will be set to undefined.
8276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8277
+ * For the list of reserved names please see:
8278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8280
+ * JSPB instance for transitional soy proto support:
8281
+ * http://goto/soy-param-migration
8282
+ * @return {!Object}
8283
+ */
8284
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.toObject = function(opt_includeInstance) {
8285
+ return proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.toObject(opt_includeInstance, this);
8286
+ };
8287
+
8288
+
8289
+ /**
8290
+ * Static version of the {@see toObject} method.
8291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8292
+ * the JSPB instance for transitional soy proto support:
8293
+ * http://goto/soy-param-migration
8294
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} msg The msg instance to transform.
8295
+ * @return {!Object}
8296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8297
+ */
8298
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.toObject = function(includeInstance, msg) {
8299
+ var f, obj = {
8300
+ manualreviewreason: jspb.Message.getFieldWithDefault(msg, 1, ""),
8301
+ pagesize: jspb.Message.getFieldWithDefault(msg, 2, 0),
8302
+ pageoffset: jspb.Message.getFieldWithDefault(msg, 3, 0)
8303
+ };
8304
+
8305
+ if (includeInstance) {
8306
+ obj.$jspbMessageInstance = msg;
8307
+ }
8308
+ return obj;
8309
+ };
8310
+ }
8311
+
8312
+
8313
+ /**
8314
+ * Deserializes binary data (in protobuf wire format).
8315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8316
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest}
8317
+ */
8318
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.deserializeBinary = function(bytes) {
8319
+ var reader = new jspb.BinaryReader(bytes);
8320
+ var msg = new proto.kycserviceapi.GetFlaggedCardAttachmentsRequest;
8321
+ return proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.deserializeBinaryFromReader(msg, reader);
8322
+ };
8323
+
8324
+
8325
+ /**
8326
+ * Deserializes binary data (in protobuf wire format) from the
8327
+ * given reader into the given message object.
8328
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} msg The message object to deserialize into.
8329
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8330
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest}
8331
+ */
8332
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.deserializeBinaryFromReader = function(msg, reader) {
8333
+ while (reader.nextField()) {
8334
+ if (reader.isEndGroup()) {
8335
+ break;
8336
+ }
8337
+ var field = reader.getFieldNumber();
8338
+ switch (field) {
8339
+ case 1:
8340
+ var value = /** @type {string} */ (reader.readString());
8341
+ msg.setManualreviewreason(value);
8342
+ break;
8343
+ case 2:
8344
+ var value = /** @type {number} */ (reader.readInt32());
8345
+ msg.setPagesize(value);
8346
+ break;
8347
+ case 3:
8348
+ var value = /** @type {number} */ (reader.readInt32());
8349
+ msg.setPageoffset(value);
8350
+ break;
8351
+ default:
8352
+ reader.skipField();
8353
+ break;
8354
+ }
8355
+ }
8356
+ return msg;
8357
+ };
8358
+
8359
+
8360
+ /**
8361
+ * Serializes the message to binary data (in protobuf wire format).
8362
+ * @return {!Uint8Array}
8363
+ */
8364
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.serializeBinary = function() {
8365
+ var writer = new jspb.BinaryWriter();
8366
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.serializeBinaryToWriter(this, writer);
8367
+ return writer.getResultBuffer();
8368
+ };
8369
+
8370
+
8371
+ /**
8372
+ * Serializes the given message to binary data (in protobuf wire
8373
+ * format), writing to the given BinaryWriter.
8374
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} message
8375
+ * @param {!jspb.BinaryWriter} writer
8376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8377
+ */
8378
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.serializeBinaryToWriter = function(message, writer) {
8379
+ var f = undefined;
8380
+ f = message.getManualreviewreason();
8381
+ if (f.length > 0) {
8382
+ writer.writeString(
8383
+ 1,
8384
+ f
8385
+ );
8386
+ }
8387
+ f = message.getPagesize();
8388
+ if (f !== 0) {
8389
+ writer.writeInt32(
8390
+ 2,
8391
+ f
8392
+ );
8393
+ }
8394
+ f = message.getPageoffset();
8395
+ if (f !== 0) {
8396
+ writer.writeInt32(
8397
+ 3,
8398
+ f
8399
+ );
8400
+ }
8401
+ };
8402
+
8403
+
8404
+ /**
8405
+ * optional string manualReviewReason = 1;
8406
+ * @return {string}
8407
+ */
8408
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.getManualreviewreason = function() {
8409
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8410
+ };
8411
+
8412
+
8413
+ /**
8414
+ * @param {string} value
8415
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} returns this
8416
+ */
8417
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.setManualreviewreason = function(value) {
8418
+ return jspb.Message.setProto3StringField(this, 1, value);
8419
+ };
8420
+
8421
+
8422
+ /**
8423
+ * optional int32 pageSize = 2;
8424
+ * @return {number}
8425
+ */
8426
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.getPagesize = function() {
8427
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8428
+ };
8429
+
8430
+
8431
+ /**
8432
+ * @param {number} value
8433
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} returns this
8434
+ */
8435
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.setPagesize = function(value) {
8436
+ return jspb.Message.setProto3IntField(this, 2, value);
8437
+ };
8438
+
8439
+
8440
+ /**
8441
+ * optional int32 pageOffset = 3;
8442
+ * @return {number}
8443
+ */
8444
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.getPageoffset = function() {
8445
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8446
+ };
8447
+
8448
+
8449
+ /**
8450
+ * @param {number} value
8451
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsRequest} returns this
8452
+ */
8453
+ proto.kycserviceapi.GetFlaggedCardAttachmentsRequest.prototype.setPageoffset = function(value) {
8454
+ return jspb.Message.setProto3IntField(this, 3, value);
8455
+ };
8456
+
8457
+
8458
+
8459
+
8460
+
8461
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8462
+ /**
8463
+ * Creates an object representation of this proto.
8464
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8465
+ * Optional fields that are not set will be set to undefined.
8466
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8467
+ * For the list of reserved names please see:
8468
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8469
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8470
+ * JSPB instance for transitional soy proto support:
8471
+ * http://goto/soy-param-migration
8472
+ * @return {!Object}
8473
+ */
8474
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.toObject = function(opt_includeInstance) {
8475
+ return proto.kycserviceapi.FlaggedCardAttachment.toObject(opt_includeInstance, this);
8476
+ };
8477
+
8478
+
8479
+ /**
8480
+ * Static version of the {@see toObject} method.
8481
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8482
+ * the JSPB instance for transitional soy proto support:
8483
+ * http://goto/soy-param-migration
8484
+ * @param {!proto.kycserviceapi.FlaggedCardAttachment} msg The msg instance to transform.
8485
+ * @return {!Object}
8486
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8487
+ */
8488
+ proto.kycserviceapi.FlaggedCardAttachment.toObject = function(includeInstance, msg) {
8489
+ var f, obj = {
8490
+ attachmentid: jspb.Message.getFieldWithDefault(msg, 1, 0),
8491
+ documentid: jspb.Message.getFieldWithDefault(msg, 2, 0),
8492
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0),
8493
+ useremail: jspb.Message.getFieldWithDefault(msg, 4, ""),
8494
+ requiresopsreviewreason: jspb.Message.getFieldWithDefault(msg, 5, ""),
8495
+ redactionstatus: jspb.Message.getFieldWithDefault(msg, 6, ""),
8496
+ redactionpanlast4: jspb.Message.getFieldWithDefault(msg, 7, ""),
8497
+ redactionengineversion: jspb.Message.getFieldWithDefault(msg, 8, ""),
8498
+ redactionpasses: jspb.Message.getFieldWithDefault(msg, 9, 0),
8499
+ createdat: jspb.Message.getFieldWithDefault(msg, 10, 0)
8500
+ };
8501
+
8502
+ if (includeInstance) {
8503
+ obj.$jspbMessageInstance = msg;
8504
+ }
8505
+ return obj;
8506
+ };
8507
+ }
8508
+
8509
+
8510
+ /**
8511
+ * Deserializes binary data (in protobuf wire format).
8512
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8513
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment}
8514
+ */
8515
+ proto.kycserviceapi.FlaggedCardAttachment.deserializeBinary = function(bytes) {
8516
+ var reader = new jspb.BinaryReader(bytes);
8517
+ var msg = new proto.kycserviceapi.FlaggedCardAttachment;
8518
+ return proto.kycserviceapi.FlaggedCardAttachment.deserializeBinaryFromReader(msg, reader);
8519
+ };
8520
+
8521
+
8522
+ /**
8523
+ * Deserializes binary data (in protobuf wire format) from the
8524
+ * given reader into the given message object.
8525
+ * @param {!proto.kycserviceapi.FlaggedCardAttachment} msg The message object to deserialize into.
8526
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8527
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment}
8528
+ */
8529
+ proto.kycserviceapi.FlaggedCardAttachment.deserializeBinaryFromReader = function(msg, reader) {
8530
+ while (reader.nextField()) {
8531
+ if (reader.isEndGroup()) {
8532
+ break;
8533
+ }
8534
+ var field = reader.getFieldNumber();
8535
+ switch (field) {
8536
+ case 1:
8537
+ var value = /** @type {number} */ (reader.readInt64());
8538
+ msg.setAttachmentid(value);
8539
+ break;
8540
+ case 2:
8541
+ var value = /** @type {number} */ (reader.readInt64());
8542
+ msg.setDocumentid(value);
8543
+ break;
8544
+ case 3:
8545
+ var value = /** @type {number} */ (reader.readInt64());
8546
+ msg.setUserid(value);
8547
+ break;
8548
+ case 4:
8549
+ var value = /** @type {string} */ (reader.readString());
8550
+ msg.setUseremail(value);
8551
+ break;
8552
+ case 5:
8553
+ var value = /** @type {string} */ (reader.readString());
8554
+ msg.setRequiresopsreviewreason(value);
8555
+ break;
8556
+ case 6:
8557
+ var value = /** @type {string} */ (reader.readString());
8558
+ msg.setRedactionstatus(value);
8559
+ break;
8560
+ case 7:
8561
+ var value = /** @type {string} */ (reader.readString());
8562
+ msg.setRedactionpanlast4(value);
8563
+ break;
8564
+ case 8:
8565
+ var value = /** @type {string} */ (reader.readString());
8566
+ msg.setRedactionengineversion(value);
8567
+ break;
8568
+ case 9:
8569
+ var value = /** @type {number} */ (reader.readInt32());
8570
+ msg.setRedactionpasses(value);
8571
+ break;
8572
+ case 10:
8573
+ var value = /** @type {number} */ (reader.readInt64());
8574
+ msg.setCreatedat(value);
8575
+ break;
8576
+ default:
8577
+ reader.skipField();
8578
+ break;
8579
+ }
8580
+ }
8581
+ return msg;
8582
+ };
8583
+
8584
+
8585
+ /**
8586
+ * Serializes the message to binary data (in protobuf wire format).
8587
+ * @return {!Uint8Array}
8588
+ */
8589
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.serializeBinary = function() {
8590
+ var writer = new jspb.BinaryWriter();
8591
+ proto.kycserviceapi.FlaggedCardAttachment.serializeBinaryToWriter(this, writer);
8592
+ return writer.getResultBuffer();
8593
+ };
8594
+
8595
+
8596
+ /**
8597
+ * Serializes the given message to binary data (in protobuf wire
8598
+ * format), writing to the given BinaryWriter.
8599
+ * @param {!proto.kycserviceapi.FlaggedCardAttachment} message
8600
+ * @param {!jspb.BinaryWriter} writer
8601
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8602
+ */
8603
+ proto.kycserviceapi.FlaggedCardAttachment.serializeBinaryToWriter = function(message, writer) {
8604
+ var f = undefined;
8605
+ f = message.getAttachmentid();
8606
+ if (f !== 0) {
8607
+ writer.writeInt64(
8608
+ 1,
8609
+ f
8610
+ );
8611
+ }
8612
+ f = message.getDocumentid();
8613
+ if (f !== 0) {
8614
+ writer.writeInt64(
8615
+ 2,
8616
+ f
8617
+ );
8618
+ }
8619
+ f = message.getUserid();
8620
+ if (f !== 0) {
8621
+ writer.writeInt64(
8622
+ 3,
8623
+ f
8624
+ );
8625
+ }
8626
+ f = message.getUseremail();
8627
+ if (f.length > 0) {
8628
+ writer.writeString(
8629
+ 4,
8630
+ f
8631
+ );
8632
+ }
8633
+ f = message.getRequiresopsreviewreason();
8634
+ if (f.length > 0) {
8635
+ writer.writeString(
8636
+ 5,
8637
+ f
8638
+ );
8639
+ }
8640
+ f = message.getRedactionstatus();
8641
+ if (f.length > 0) {
8642
+ writer.writeString(
8643
+ 6,
8644
+ f
8645
+ );
8646
+ }
8647
+ f = message.getRedactionpanlast4();
8648
+ if (f.length > 0) {
8649
+ writer.writeString(
8650
+ 7,
8651
+ f
8652
+ );
8653
+ }
8654
+ f = message.getRedactionengineversion();
8655
+ if (f.length > 0) {
8656
+ writer.writeString(
8657
+ 8,
8658
+ f
8659
+ );
8660
+ }
8661
+ f = message.getRedactionpasses();
8662
+ if (f !== 0) {
8663
+ writer.writeInt32(
8664
+ 9,
8665
+ f
8666
+ );
8667
+ }
8668
+ f = message.getCreatedat();
8669
+ if (f !== 0) {
8670
+ writer.writeInt64(
8671
+ 10,
8672
+ f
8673
+ );
8674
+ }
8675
+ };
8676
+
8677
+
8678
+ /**
8679
+ * optional int64 attachmentId = 1;
8680
+ * @return {number}
8681
+ */
8682
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getAttachmentid = function() {
8683
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8684
+ };
8685
+
8686
+
8687
+ /**
8688
+ * @param {number} value
8689
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8690
+ */
8691
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setAttachmentid = function(value) {
8692
+ return jspb.Message.setProto3IntField(this, 1, value);
8693
+ };
8694
+
8695
+
8696
+ /**
8697
+ * optional int64 documentId = 2;
8698
+ * @return {number}
8699
+ */
8700
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getDocumentid = function() {
8701
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8702
+ };
8703
+
8704
+
8705
+ /**
8706
+ * @param {number} value
8707
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8708
+ */
8709
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setDocumentid = function(value) {
8710
+ return jspb.Message.setProto3IntField(this, 2, value);
8711
+ };
8712
+
8713
+
8714
+ /**
8715
+ * optional int64 userId = 3;
8716
+ * @return {number}
8717
+ */
8718
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getUserid = function() {
8719
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8720
+ };
8721
+
8722
+
8723
+ /**
8724
+ * @param {number} value
8725
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8726
+ */
8727
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setUserid = function(value) {
8728
+ return jspb.Message.setProto3IntField(this, 3, value);
8729
+ };
8730
+
8731
+
8732
+ /**
8733
+ * optional string userEmail = 4;
8734
+ * @return {string}
8735
+ */
8736
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getUseremail = function() {
8737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8738
+ };
8739
+
8740
+
8741
+ /**
8742
+ * @param {string} value
8743
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8744
+ */
8745
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setUseremail = function(value) {
8746
+ return jspb.Message.setProto3StringField(this, 4, value);
8747
+ };
8748
+
8749
+
8750
+ /**
8751
+ * optional string requiresOpsReviewReason = 5;
8752
+ * @return {string}
8753
+ */
8754
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getRequiresopsreviewreason = function() {
8755
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8756
+ };
8757
+
8758
+
8759
+ /**
8760
+ * @param {string} value
8761
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8762
+ */
8763
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setRequiresopsreviewreason = function(value) {
8764
+ return jspb.Message.setProto3StringField(this, 5, value);
8765
+ };
8766
+
8767
+
8768
+ /**
8769
+ * optional string redactionStatus = 6;
8770
+ * @return {string}
8771
+ */
8772
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getRedactionstatus = function() {
8773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
8774
+ };
8775
+
8776
+
8777
+ /**
8778
+ * @param {string} value
8779
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8780
+ */
8781
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setRedactionstatus = function(value) {
8782
+ return jspb.Message.setProto3StringField(this, 6, value);
8783
+ };
8784
+
8785
+
8786
+ /**
8787
+ * optional string redactionPanLast4 = 7;
8788
+ * @return {string}
8789
+ */
8790
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getRedactionpanlast4 = function() {
8791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
8792
+ };
8793
+
8794
+
8795
+ /**
8796
+ * @param {string} value
8797
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8798
+ */
8799
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setRedactionpanlast4 = function(value) {
8800
+ return jspb.Message.setProto3StringField(this, 7, value);
8801
+ };
8802
+
8803
+
8804
+ /**
8805
+ * optional string redactionEngineVersion = 8;
8806
+ * @return {string}
8807
+ */
8808
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getRedactionengineversion = function() {
8809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
8810
+ };
8811
+
8812
+
8813
+ /**
8814
+ * @param {string} value
8815
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8816
+ */
8817
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setRedactionengineversion = function(value) {
8818
+ return jspb.Message.setProto3StringField(this, 8, value);
8819
+ };
8820
+
8821
+
8822
+ /**
8823
+ * optional int32 redactionPasses = 9;
8824
+ * @return {number}
8825
+ */
8826
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getRedactionpasses = function() {
8827
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
8828
+ };
8829
+
8830
+
8831
+ /**
8832
+ * @param {number} value
8833
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8834
+ */
8835
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setRedactionpasses = function(value) {
8836
+ return jspb.Message.setProto3IntField(this, 9, value);
8837
+ };
8838
+
8839
+
8840
+ /**
8841
+ * optional int64 createdAt = 10;
8842
+ * @return {number}
8843
+ */
8844
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.getCreatedat = function() {
8845
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
8846
+ };
8847
+
8848
+
8849
+ /**
8850
+ * @param {number} value
8851
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment} returns this
8852
+ */
8853
+ proto.kycserviceapi.FlaggedCardAttachment.prototype.setCreatedat = function(value) {
8854
+ return jspb.Message.setProto3IntField(this, 10, value);
8855
+ };
8856
+
8857
+
8858
+
8859
+ /**
8860
+ * List of repeated fields within this message type.
8861
+ * @private {!Array<number>}
8862
+ * @const
8863
+ */
8864
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.repeatedFields_ = [1];
8865
+
8866
+
8867
+
8868
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8869
+ /**
8870
+ * Creates an object representation of this proto.
8871
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8872
+ * Optional fields that are not set will be set to undefined.
8873
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8874
+ * For the list of reserved names please see:
8875
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8876
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8877
+ * JSPB instance for transitional soy proto support:
8878
+ * http://goto/soy-param-migration
8879
+ * @return {!Object}
8880
+ */
8881
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.toObject = function(opt_includeInstance) {
8882
+ return proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.toObject(opt_includeInstance, this);
8883
+ };
8884
+
8885
+
8886
+ /**
8887
+ * Static version of the {@see toObject} method.
8888
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8889
+ * the JSPB instance for transitional soy proto support:
8890
+ * http://goto/soy-param-migration
8891
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} msg The msg instance to transform.
8892
+ * @return {!Object}
8893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8894
+ */
8895
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.toObject = function(includeInstance, msg) {
8896
+ var f, obj = {
8897
+ attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(),
8898
+ proto.kycserviceapi.FlaggedCardAttachment.toObject, includeInstance),
8899
+ totalcount: jspb.Message.getFieldWithDefault(msg, 2, 0),
8900
+ responsecode: (f = msg.getResponsecode()) && proto.kycserviceapi.ResponseCode.toObject(includeInstance, f)
8901
+ };
8902
+
8903
+ if (includeInstance) {
8904
+ obj.$jspbMessageInstance = msg;
8905
+ }
8906
+ return obj;
8907
+ };
8908
+ }
8909
+
8910
+
8911
+ /**
8912
+ * Deserializes binary data (in protobuf wire format).
8913
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8914
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse}
8915
+ */
8916
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.deserializeBinary = function(bytes) {
8917
+ var reader = new jspb.BinaryReader(bytes);
8918
+ var msg = new proto.kycserviceapi.GetFlaggedCardAttachmentsResponse;
8919
+ return proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.deserializeBinaryFromReader(msg, reader);
8920
+ };
8921
+
8922
+
8923
+ /**
8924
+ * Deserializes binary data (in protobuf wire format) from the
8925
+ * given reader into the given message object.
8926
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} msg The message object to deserialize into.
8927
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8928
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse}
8929
+ */
8930
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.deserializeBinaryFromReader = function(msg, reader) {
8931
+ while (reader.nextField()) {
8932
+ if (reader.isEndGroup()) {
8933
+ break;
8934
+ }
8935
+ var field = reader.getFieldNumber();
8936
+ switch (field) {
8937
+ case 1:
8938
+ var value = new proto.kycserviceapi.FlaggedCardAttachment;
8939
+ reader.readMessage(value,proto.kycserviceapi.FlaggedCardAttachment.deserializeBinaryFromReader);
8940
+ msg.addAttachments(value);
8941
+ break;
8942
+ case 2:
8943
+ var value = /** @type {number} */ (reader.readInt32());
8944
+ msg.setTotalcount(value);
8945
+ break;
8946
+ case 3:
8947
+ var value = new proto.kycserviceapi.ResponseCode;
8948
+ reader.readMessage(value,proto.kycserviceapi.ResponseCode.deserializeBinaryFromReader);
8949
+ msg.setResponsecode(value);
8950
+ break;
8951
+ default:
8952
+ reader.skipField();
8953
+ break;
8954
+ }
8955
+ }
8956
+ return msg;
8957
+ };
8958
+
8959
+
8960
+ /**
8961
+ * Serializes the message to binary data (in protobuf wire format).
8962
+ * @return {!Uint8Array}
8963
+ */
8964
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.serializeBinary = function() {
8965
+ var writer = new jspb.BinaryWriter();
8966
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.serializeBinaryToWriter(this, writer);
8967
+ return writer.getResultBuffer();
8968
+ };
8969
+
8970
+
8971
+ /**
8972
+ * Serializes the given message to binary data (in protobuf wire
8973
+ * format), writing to the given BinaryWriter.
8974
+ * @param {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} message
8975
+ * @param {!jspb.BinaryWriter} writer
8976
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8977
+ */
8978
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.serializeBinaryToWriter = function(message, writer) {
8979
+ var f = undefined;
8980
+ f = message.getAttachmentsList();
8981
+ if (f.length > 0) {
8982
+ writer.writeRepeatedMessage(
8983
+ 1,
8984
+ f,
8985
+ proto.kycserviceapi.FlaggedCardAttachment.serializeBinaryToWriter
8986
+ );
8987
+ }
8988
+ f = message.getTotalcount();
8989
+ if (f !== 0) {
8990
+ writer.writeInt32(
8991
+ 2,
8992
+ f
8993
+ );
8994
+ }
8995
+ f = message.getResponsecode();
8996
+ if (f != null) {
8997
+ writer.writeMessage(
8998
+ 3,
8999
+ f,
9000
+ proto.kycserviceapi.ResponseCode.serializeBinaryToWriter
9001
+ );
9002
+ }
9003
+ };
9004
+
9005
+
9006
+ /**
9007
+ * repeated FlaggedCardAttachment attachments = 1;
9008
+ * @return {!Array<!proto.kycserviceapi.FlaggedCardAttachment>}
9009
+ */
9010
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.getAttachmentsList = function() {
9011
+ return /** @type{!Array<!proto.kycserviceapi.FlaggedCardAttachment>} */ (
9012
+ jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.FlaggedCardAttachment, 1));
9013
+ };
9014
+
9015
+
9016
+ /**
9017
+ * @param {!Array<!proto.kycserviceapi.FlaggedCardAttachment>} value
9018
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} returns this
9019
+ */
9020
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.setAttachmentsList = function(value) {
9021
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
9022
+ };
9023
+
9024
+
9025
+ /**
9026
+ * @param {!proto.kycserviceapi.FlaggedCardAttachment=} opt_value
9027
+ * @param {number=} opt_index
9028
+ * @return {!proto.kycserviceapi.FlaggedCardAttachment}
9029
+ */
9030
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.addAttachments = function(opt_value, opt_index) {
9031
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kycserviceapi.FlaggedCardAttachment, opt_index);
9032
+ };
9033
+
9034
+
9035
+ /**
9036
+ * Clears the list making it empty but non-null.
9037
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} returns this
9038
+ */
9039
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.clearAttachmentsList = function() {
9040
+ return this.setAttachmentsList([]);
9041
+ };
9042
+
9043
+
9044
+ /**
9045
+ * optional int32 totalCount = 2;
9046
+ * @return {number}
9047
+ */
9048
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.getTotalcount = function() {
9049
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9050
+ };
9051
+
9052
+
9053
+ /**
9054
+ * @param {number} value
9055
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} returns this
9056
+ */
9057
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.setTotalcount = function(value) {
9058
+ return jspb.Message.setProto3IntField(this, 2, value);
9059
+ };
9060
+
9061
+
9062
+ /**
9063
+ * optional ResponseCode responseCode = 3;
9064
+ * @return {?proto.kycserviceapi.ResponseCode}
9065
+ */
9066
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.getResponsecode = function() {
9067
+ return /** @type{?proto.kycserviceapi.ResponseCode} */ (
9068
+ jspb.Message.getWrapperField(this, proto.kycserviceapi.ResponseCode, 3));
9069
+ };
9070
+
9071
+
9072
+ /**
9073
+ * @param {?proto.kycserviceapi.ResponseCode|undefined} value
9074
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} returns this
9075
+ */
9076
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.setResponsecode = function(value) {
9077
+ return jspb.Message.setWrapperField(this, 3, value);
9078
+ };
9079
+
9080
+
9081
+ /**
9082
+ * Clears the message field making it undefined.
9083
+ * @return {!proto.kycserviceapi.GetFlaggedCardAttachmentsResponse} returns this
9084
+ */
9085
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.clearResponsecode = function() {
9086
+ return this.setResponsecode(undefined);
9087
+ };
9088
+
9089
+
9090
+ /**
9091
+ * Returns whether this field is set.
9092
+ * @return {boolean}
9093
+ */
9094
+ proto.kycserviceapi.GetFlaggedCardAttachmentsResponse.prototype.hasResponsecode = function() {
9095
+ return jspb.Message.getField(this, 3) != null;
9096
+ };
9097
+
9098
+
9099
+
9100
+
9101
+
9102
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9103
+ /**
9104
+ * Creates an object representation of this proto.
9105
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9106
+ * Optional fields that are not set will be set to undefined.
9107
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9108
+ * For the list of reserved names please see:
9109
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9110
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9111
+ * JSPB instance for transitional soy proto support:
9112
+ * http://goto/soy-param-migration
9113
+ * @return {!Object}
9114
+ */
9115
+ proto.kycserviceapi.ClientFeatureFlagsResponse.prototype.toObject = function(opt_includeInstance) {
9116
+ return proto.kycserviceapi.ClientFeatureFlagsResponse.toObject(opt_includeInstance, this);
9117
+ };
9118
+
9119
+
9120
+ /**
9121
+ * Static version of the {@see toObject} method.
9122
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9123
+ * the JSPB instance for transitional soy proto support:
9124
+ * http://goto/soy-param-migration
9125
+ * @param {!proto.kycserviceapi.ClientFeatureFlagsResponse} msg The msg instance to transform.
9126
+ * @return {!Object}
9127
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9128
+ */
9129
+ proto.kycserviceapi.ClientFeatureFlagsResponse.toObject = function(includeInstance, msg) {
9130
+ var f, obj = {
9131
+ cardredactorenabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
9132
+ };
9133
+
9134
+ if (includeInstance) {
9135
+ obj.$jspbMessageInstance = msg;
9136
+ }
9137
+ return obj;
9138
+ };
9139
+ }
9140
+
9141
+
9142
+ /**
9143
+ * Deserializes binary data (in protobuf wire format).
9144
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9145
+ * @return {!proto.kycserviceapi.ClientFeatureFlagsResponse}
9146
+ */
9147
+ proto.kycserviceapi.ClientFeatureFlagsResponse.deserializeBinary = function(bytes) {
9148
+ var reader = new jspb.BinaryReader(bytes);
9149
+ var msg = new proto.kycserviceapi.ClientFeatureFlagsResponse;
9150
+ return proto.kycserviceapi.ClientFeatureFlagsResponse.deserializeBinaryFromReader(msg, reader);
9151
+ };
9152
+
9153
+
9154
+ /**
9155
+ * Deserializes binary data (in protobuf wire format) from the
9156
+ * given reader into the given message object.
9157
+ * @param {!proto.kycserviceapi.ClientFeatureFlagsResponse} msg The message object to deserialize into.
9158
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9159
+ * @return {!proto.kycserviceapi.ClientFeatureFlagsResponse}
9160
+ */
9161
+ proto.kycserviceapi.ClientFeatureFlagsResponse.deserializeBinaryFromReader = function(msg, reader) {
9162
+ while (reader.nextField()) {
9163
+ if (reader.isEndGroup()) {
9164
+ break;
9165
+ }
9166
+ var field = reader.getFieldNumber();
9167
+ switch (field) {
9168
+ case 1:
9169
+ var value = /** @type {boolean} */ (reader.readBool());
9170
+ msg.setCardredactorenabled(value);
9171
+ break;
9172
+ default:
9173
+ reader.skipField();
9174
+ break;
9175
+ }
9176
+ }
9177
+ return msg;
9178
+ };
9179
+
9180
+
9181
+ /**
9182
+ * Serializes the message to binary data (in protobuf wire format).
9183
+ * @return {!Uint8Array}
9184
+ */
9185
+ proto.kycserviceapi.ClientFeatureFlagsResponse.prototype.serializeBinary = function() {
9186
+ var writer = new jspb.BinaryWriter();
9187
+ proto.kycserviceapi.ClientFeatureFlagsResponse.serializeBinaryToWriter(this, writer);
9188
+ return writer.getResultBuffer();
9189
+ };
9190
+
9191
+
9192
+ /**
9193
+ * Serializes the given message to binary data (in protobuf wire
9194
+ * format), writing to the given BinaryWriter.
9195
+ * @param {!proto.kycserviceapi.ClientFeatureFlagsResponse} message
9196
+ * @param {!jspb.BinaryWriter} writer
9197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9198
+ */
9199
+ proto.kycserviceapi.ClientFeatureFlagsResponse.serializeBinaryToWriter = function(message, writer) {
9200
+ var f = undefined;
9201
+ f = message.getCardredactorenabled();
9202
+ if (f) {
9203
+ writer.writeBool(
9204
+ 1,
9205
+ f
9206
+ );
9207
+ }
9208
+ };
9209
+
9210
+
9211
+ /**
9212
+ * optional bool cardRedactorEnabled = 1;
9213
+ * @return {boolean}
9214
+ */
9215
+ proto.kycserviceapi.ClientFeatureFlagsResponse.prototype.getCardredactorenabled = function() {
9216
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
9217
+ };
9218
+
9219
+
9220
+ /**
9221
+ * @param {boolean} value
9222
+ * @return {!proto.kycserviceapi.ClientFeatureFlagsResponse} returns this
9223
+ */
9224
+ proto.kycserviceapi.ClientFeatureFlagsResponse.prototype.setCardredactorenabled = function(value) {
9225
+ return jspb.Message.setProto3BooleanField(this, 1, value);
9226
+ };
9227
+
9228
+
9229
+
9230
+
9231
+
9232
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9233
+ /**
9234
+ * Creates an object representation of this proto.
9235
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9236
+ * Optional fields that are not set will be set to undefined.
9237
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9238
+ * For the list of reserved names please see:
9239
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9240
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9241
+ * JSPB instance for transitional soy proto support:
9242
+ * http://goto/soy-param-migration
9243
+ * @return {!Object}
9244
+ */
9245
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.toObject = function(opt_includeInstance) {
9246
+ return proto.kycserviceapi.ClearKycExternalIdRequest.toObject(opt_includeInstance, this);
9247
+ };
9248
+
9249
+
9250
+ /**
9251
+ * Static version of the {@see toObject} method.
9252
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9253
+ * the JSPB instance for transitional soy proto support:
9254
+ * http://goto/soy-param-migration
9255
+ * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} msg The msg instance to transform.
9256
+ * @return {!Object}
9257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9258
+ */
9259
+ proto.kycserviceapi.ClearKycExternalIdRequest.toObject = function(includeInstance, msg) {
9260
+ var f, obj = {
9261
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
9262
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
9263
+ comment: jspb.Message.getFieldWithDefault(msg, 3, "")
9264
+ };
9265
+
9266
+ if (includeInstance) {
9267
+ obj.$jspbMessageInstance = msg;
9268
+ }
9269
+ return obj;
9270
+ };
9271
+ }
9272
+
9273
+
9274
+ /**
9275
+ * Deserializes binary data (in protobuf wire format).
9276
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9277
+ * @return {!proto.kycserviceapi.ClearKycExternalIdRequest}
9278
+ */
9279
+ proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinary = function(bytes) {
9280
+ var reader = new jspb.BinaryReader(bytes);
9281
+ var msg = new proto.kycserviceapi.ClearKycExternalIdRequest;
9282
+ return proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader(msg, reader);
9283
+ };
9284
+
9285
+
9286
+ /**
9287
+ * Deserializes binary data (in protobuf wire format) from the
9288
+ * given reader into the given message object.
9289
+ * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} msg The message object to deserialize into.
9290
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9291
+ * @return {!proto.kycserviceapi.ClearKycExternalIdRequest}
9292
+ */
9293
+ proto.kycserviceapi.ClearKycExternalIdRequest.deserializeBinaryFromReader = function(msg, reader) {
9294
+ while (reader.nextField()) {
9295
+ if (reader.isEndGroup()) {
9296
+ break;
9297
+ }
9298
+ var field = reader.getFieldNumber();
9299
+ switch (field) {
9300
+ case 1:
9301
+ var value = /** @type {number} */ (reader.readInt64());
9302
+ msg.setUserid(value);
9303
+ break;
9304
+ case 2:
9305
+ var value = /** @type {string} */ (reader.readString());
9306
+ msg.setPassword(value);
9307
+ break;
9308
+ case 3:
9309
+ var value = /** @type {string} */ (reader.readString());
9310
+ msg.setComment(value);
9311
+ break;
9312
+ default:
9313
+ reader.skipField();
9314
+ break;
9315
+ }
9316
+ }
9317
+ return msg;
9318
+ };
9319
+
9320
+
9321
+ /**
9322
+ * Serializes the message to binary data (in protobuf wire format).
9323
+ * @return {!Uint8Array}
9324
+ */
9325
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.serializeBinary = function() {
9326
+ var writer = new jspb.BinaryWriter();
9327
+ proto.kycserviceapi.ClearKycExternalIdRequest.serializeBinaryToWriter(this, writer);
9328
+ return writer.getResultBuffer();
9329
+ };
9330
+
9331
+
9332
+ /**
9333
+ * Serializes the given message to binary data (in protobuf wire
9334
+ * format), writing to the given BinaryWriter.
9335
+ * @param {!proto.kycserviceapi.ClearKycExternalIdRequest} message
9336
+ * @param {!jspb.BinaryWriter} writer
9337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9338
+ */
9339
+ proto.kycserviceapi.ClearKycExternalIdRequest.serializeBinaryToWriter = function(message, writer) {
9340
+ var f = undefined;
9341
+ f = message.getUserid();
9342
+ if (f !== 0) {
9343
+ writer.writeInt64(
9344
+ 1,
9345
+ f
9346
+ );
9347
+ }
9348
+ f = message.getPassword();
9349
+ if (f.length > 0) {
9350
+ writer.writeString(
9351
+ 2,
9352
+ f
9353
+ );
9354
+ }
9355
+ f = message.getComment();
9356
+ if (f.length > 0) {
9357
+ writer.writeString(
9358
+ 3,
9359
+ f
9360
+ );
9361
+ }
9362
+ };
9363
+
9364
+
9365
+ /**
9366
+ * optional int64 userId = 1;
9367
+ * @return {number}
9368
+ */
9369
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getUserid = function() {
9370
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9371
+ };
9372
+
9373
+
9374
+ /**
9375
+ * @param {number} value
9376
+ * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
9377
+ */
9378
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setUserid = function(value) {
9379
+ return jspb.Message.setProto3IntField(this, 1, value);
9380
+ };
9381
+
9382
+
9383
+ /**
9384
+ * optional string password = 2;
9385
+ * @return {string}
9386
+ */
9387
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getPassword = function() {
9388
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9389
+ };
9390
+
9391
+
9392
+ /**
9393
+ * @param {string} value
9394
+ * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
9395
+ */
9396
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setPassword = function(value) {
9397
+ return jspb.Message.setProto3StringField(this, 2, value);
9398
+ };
9399
+
9400
+
9401
+ /**
9402
+ * optional string comment = 3;
9403
+ * @return {string}
9404
+ */
9405
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.getComment = function() {
9406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9407
+ };
9408
+
9409
+
9410
+ /**
9411
+ * @param {string} value
9412
+ * @return {!proto.kycserviceapi.ClearKycExternalIdRequest} returns this
9413
+ */
9414
+ proto.kycserviceapi.ClearKycExternalIdRequest.prototype.setComment = function(value) {
9415
+ return jspb.Message.setProto3StringField(this, 3, value);
9416
+ };
9417
+
9418
+
9419
+
9420
+
9421
+
9422
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9423
+ /**
9424
+ * Creates an object representation of this proto.
9425
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9426
+ * Optional fields that are not set will be set to undefined.
9427
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9428
+ * For the list of reserved names please see:
9429
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9430
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9431
+ * JSPB instance for transitional soy proto support:
9432
+ * http://goto/soy-param-migration
9433
+ * @return {!Object}
9434
+ */
9435
+ proto.kycserviceapi.GetDocumentImagesRequest.prototype.toObject = function(opt_includeInstance) {
9436
+ return proto.kycserviceapi.GetDocumentImagesRequest.toObject(opt_includeInstance, this);
9437
+ };
9438
+
9439
+
9440
+ /**
9441
+ * Static version of the {@see toObject} method.
7373
9442
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7374
9443
  * the JSPB instance for transitional soy proto support:
7375
9444
  * http://goto/soy-param-migration
@@ -8793,6 +10862,16 @@ proto.kycserviceapi.AttachmentSide = {
8793
10862
  BACK: 1
8794
10863
  };
8795
10864
 
10865
+ /**
10866
+ * @enum {number}
10867
+ */
10868
+ proto.kycserviceapi.RedactionStatus = {
10869
+ REDACTION_STATUS_UNKNOWN: 0,
10870
+ REDACTED: 1,
10871
+ NO_PAN_FOUND: 2,
10872
+ FAILED_VERIFY: 3
10873
+ };
10874
+
8796
10875
  /**
8797
10876
  * @enum {number}
8798
10877
  */